From: Janusz Dobrowolski Date: Wed, 17 Jun 2009 14:08:11 +0000 (+0000) Subject: Sign fix for total amount column. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=99961109b6980572bbf4da7bff6d717ce8c6ef3a;p=textcart.git Sign fix for total amount column. --- diff --git a/purchasing/allocations/supplier_allocation_main.php b/purchasing/allocations/supplier_allocation_main.php index f13b759..4c731d6 100644 --- a/purchasing/allocations/supplier_allocation_main.php +++ b/purchasing/allocations/supplier_allocation_main.php @@ -93,7 +93,7 @@ function amount_left($row) function amount_total($row) { - return -$row["Total"]; + return price_format(-$row["Total"]); } function check_settled($row) @@ -111,7 +111,7 @@ $cols = array( _("Date") => array('name'=>'tran_date', 'type'=>'date', 'ord'=>'asc'), _("Supplier") => array('ord'=>''), _("Currency") => array('align'=>'center'), - _("Total") => 'amount', + _("Total") => array('align'=>'right', 'fun'=>'amount_total'), _("Left to Allocate") => array('align'=>'right','insert'=>true, 'fun'=>'amount_left'), array('insert'=>true, 'fun'=>'alloc_link') );