diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index dc74935ce98..ac9ff663539 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -396,6 +396,10 @@ if ($id > 0) print $form->editfieldkey("OutstandingBill",'OutstandingBill',$object->outstanding_limit,$object,$user->rights->societe->creer); print ''; print $form->editfieldval("OutstandingBill",'OutstandingBill',$object->outstanding_limit,$object,$user->rights->societe->creer,'amount',($object->outstanding_limit != '' ? price($object->outstanding_limit) : '')); + // display amount and link to unpaid bill + $outstandigBills = $object->get_OutstandingBill(); + if ($outstandigBills != 0) + print " / ".price($outstandigBills).''; print ''; print ''; }