Skip to content

Commit

Permalink
Fix bad value
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 20, 2017
1 parent 6780b20 commit 5b8ff63
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions htdocs/comm/card.php
Expand Up @@ -556,6 +556,11 @@

if ($conf->facture->enabled)
{
$tmp = $object->getOutstandingBills();
$outstandingOpened=$tmp['opened'];
$outstandingTotal=$tmp['total_ht'];
$outstandingTotalIncTax=$tmp['total_ttc'];

$text=$langs->trans("OverAllInvoices");
$link='';
$icon='bill';
Expand All @@ -567,10 +572,6 @@
if ($link) $boxstat.='</a>';

// Box outstanding bill
$tmp = $object->getOutstandingBills();
$outstandingOpened=$tmp['opened'];
$outstandingTotal=$tmp['total_ht'];
$outstandingTotalIncTax=$tmp['total_ttc'];
$warn = '';
if ($object->outstanding_limit != '' && $object->outstanding_limit < $outstandingOpened)
{
Expand Down

0 comments on commit 5b8ff63

Please sign in to comment.