Fix bad value

This commit is contained in:
Laurent Destailleur 2017-01-20 14:17:58 +01:00
parent 6780b20968
commit 5b8ff63981

View File

@ -556,6 +556,11 @@ if ($id > 0)
if ($conf->facture->enabled) if ($conf->facture->enabled)
{ {
$tmp = $object->getOutstandingBills();
$outstandingOpened=$tmp['opened'];
$outstandingTotal=$tmp['total_ht'];
$outstandingTotalIncTax=$tmp['total_ttc'];
$text=$langs->trans("OverAllInvoices"); $text=$langs->trans("OverAllInvoices");
$link=''; $link='';
$icon='bill'; $icon='bill';
@ -567,10 +572,6 @@ if ($id > 0)
if ($link) $boxstat.='</a>'; if ($link) $boxstat.='</a>';
// Box outstanding bill // Box outstanding bill
$tmp = $object->getOutstandingBills();
$outstandingOpened=$tmp['opened'];
$outstandingTotal=$tmp['total_ht'];
$outstandingTotalIncTax=$tmp['total_ttc'];
$warn = ''; $warn = '';
if ($object->outstanding_limit != '' && $object->outstanding_limit < $outstandingOpened) if ($object->outstanding_limit != '' && $object->outstanding_limit < $outstandingOpened)
{ {