FIX php error if multicompany disabled
This commit is contained in:
parent
987d3cf52e
commit
a9d1519f96
@ -342,7 +342,7 @@ if ($resql)
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans('Bill').'</td>';
|
print '<td>'.$langs->trans('Bill').'</td>';
|
||||||
print '<td>'.$langs->trans('Company').'</td>';
|
print '<td>'.$langs->trans('Company').'</td>';
|
||||||
if($conf->global->MULTICOMPANY_INVOICE_SHARING_ENABLED )print '<td>'.$langs->trans('Entity').'</td>';
|
if (!empty($conf->multicompany->enabled) && $conf->global->MULTICOMPANY_INVOICE_SHARING_ENABLED ) print '<td>'.$langs->trans('Entity').'</td>';
|
||||||
print '<td class="right">'.$langs->trans('ExpectedToPay').'</td>';
|
print '<td class="right">'.$langs->trans('ExpectedToPay').'</td>';
|
||||||
print '<td class="right">'.$langs->trans('PayedByThisPayment').'</td>';
|
print '<td class="right">'.$langs->trans('PayedByThisPayment').'</td>';
|
||||||
print '<td class="right">'.$langs->trans('RemainderToPay').'</td>';
|
print '<td class="right">'.$langs->trans('RemainderToPay').'</td>';
|
||||||
@ -379,7 +379,7 @@ if ($resql)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Expected to pay
|
// Expected to pay
|
||||||
if($conf->global->MULTICOMPANY_INVOICE_SHARING_ENABLED ){
|
if(!empty($conf->multicompany->enabled) && $conf->global->MULTICOMPANY_INVOICE_SHARING_ENABLED ){
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$mc->getInfo($objp->entity);
|
$mc->getInfo($objp->entity);
|
||||||
print $mc->label;
|
print $mc->label;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user