From c3bf3c45d764780c23ca0857e55fc4ace22a8b86 Mon Sep 17 00:00:00 2001 From: BENKE Charles Date: Fri, 13 Feb 2015 04:13:32 +0100 Subject: [PATCH] Update card.php Display amount and link to unpaid bill --- htdocs/comm/card.php | 4 ++++ 1 file changed, 4 insertions(+) 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 ''; }