27require
'../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
29require_once DOL_DOCUMENT_ROOT.
'/compta/facture/class/facture.class.php';
40$langs->load(
"companies");
41if (isModEnabled(
'invoice')) {
42 $langs->load(
"bills");
47if ($user->socid > 0) {
51$result =
restrictedArea($user,
'societe',
$id,
'&societe',
'',
'fk_soc',
'rowid', 0);
62 $societe->fetch($socid);
69 print
dol_get_fiche_head($head,
'customer', $langs->trans(
"ThirdParty"), 0,
'company');
72 print
"<table width=\"100%\">\n";
73 print
'<tr><td valign="top" width="50%">';
75 print
'<table class="border centpercent">';
78 print
'<tr><td width="20%">'.$langs->trans(
"ThirdParty").
'</td><td width="80%" colspan="3">'.$societe->getNomUrl(1).
'</td></tr>';
82 print
'<tr><td>'.$langs->trans(
"Prefix").
'</td><td colspan="3">';
83 print($societe->prefix_comm ? $societe->prefix_comm :
' ');
89 print
"</td></tr></table>\n";
94 print $langs->trans(
"FeatureNotYetAvailable");
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.
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 a 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.