Sign fix for total amount column.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 17 Jun 2009 14:08:11 +0000 (14:08 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 17 Jun 2009 14:08:11 +0000 (14:08 +0000)
purchasing/allocations/supplier_allocation_main.php

index f13b7593e09e2cff40e7c57ae2c039fdf1cc21a7..4c731d6ebbe4551f35f2dc2a947c56557f825dc2 100644 (file)
@@ -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')
        );