32require
'../main.inc.php';
33require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
44$langs->load(
"companies");
49$action =
GETPOST(
'action',
'aZ09');
59$permissionnote = $user->hasRight(
'societe',
'creer');
62$hookmanager->initHooks(array(
'thirdpartynote',
'globalcard'));
65if ($user->socid > 0) {
67 $socid = $user->socid;
78$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
83 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
93$title = $langs->trans(
"ThirdParty").
' - '.$langs->trans(
"Notes");
95 $title =
$object->name.
' - '.$langs->trans(
"Notes");
97$help_url =
'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
109 $linkback =
'<a href="'.DOL_URL_ROOT.
'/societe/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
111 dol_banner_tab($object,
'socid', $linkback, ($user->socid ? 0 : 1),
'rowid',
'nom');
113 $cssclass =
'titlefield';
117 print
'<div class="fichecenter">';
119 print
'<div class="underbanner clearboth"></div>';
120 print
'<table class="border centpercent tableforfield">';
123 print
'<tr><td class="titlefield">'.$langs->trans(
'NatureOfThirdParty').
'</td><td>';
128 print
'<tr><td class="'.$cssclass.
'">'.$langs->trans(
'Prefix').
'</td><td colspan="3">'.
$object->prefix_comm.
'</td></tr>';
132 print
'<tr><td class="'.$cssclass.
'">';
133 print $langs->trans(
'CustomerCode').
'</td><td colspan="3">';
135 $tmpcheck =
$object->check_codeclient();
136 if ($tmpcheck != 0 && $tmpcheck != -5) {
137 print
' <span class="error">('.$langs->trans(
"WrongCustomerCode").
')</span>';
143 print
'<tr><td class="'.$cssclass.
'">';
144 print $langs->trans(
'SupplierCode').
'</td><td colspan="3">';
146 $tmpcheck =
$object->check_codefournisseur();
147 if ($tmpcheck != 0 && $tmpcheck != -5) {
148 print
' <span class="error">('.$langs->trans(
"WrongSupplierCode").
')</span>';
160 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
164 $langs->load(
"errors");
165 print $langs->trans(
"ErrorRecordNotFound");
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage third parties objects (customers, suppliers, prospects...)
societe_prepare_head(Societe $object)
Return array of tabs to used on pages for third parties cards.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
showValueWithClipboardCPButton($valuetocopy, $showonlyonhover=1, $texttoshow='')
Create a button to copy $valuetocopy in the clipboard (for copy and paste feature).
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.