26require
'../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
28require_once DOL_DOCUMENT_ROOT.
'/compta/facture/class/facture.class.php';
31$langs->load(
"companies");
32if (isModEnabled(
'invoice')) {
33 $langs->load(
"bills");
38if ($user->socid > 0) {
42$result =
restrictedArea($user,
'societe', $id,
'&societe',
'',
'fk_soc',
'rowid', 0);
53 $societe->fetch($socid);
60 print
dol_get_fiche_head($head,
'customer', $langs->trans(
"ThirdParty"), 0,
'company');
63 print
"<table width=\"100%\">\n";
64 print
'<tr><td valign="top" width="50%">';
66 print
'<table class="border centpercent">';
69 print
'<tr><td width="20%">'.$langs->trans(
"ThirdParty").
'</td><td width="80%" colspan="3">'.$societe->getNomUrl(1).
'</td></tr>';
73 print
'<tr><td>'.$langs->trans(
"Prefix").
'</td><td colspan="3">';
74 print($societe->prefix_comm ? $societe->prefix_comm :
' ');
80 print
"</td></tr></table>\n";
85 print $langs->trans(
"FeatureNotYetAvailable");
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
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.
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_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
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.