From 67e4d0835c11dad9acda44036705248521b8bff1 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 17 Jun 2009 14:08:11 +0000 Subject: [PATCH] Sign fix for total amount column. --- purchasing/allocations/supplier_allocation_main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/purchasing/allocations/supplier_allocation_main.php b/purchasing/allocations/supplier_allocation_main.php index f13b7593..4c731d6e 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') ); -- 2.30.2