$js .= get_js_open_window(900, 500);
page(_("Supplier Allocations"), false, false, "", $js);
-//--------------------------------------------------------------------------------
-if ($ret = context_restore()) {
- if(isset($ret['supplier_id']))
- $_POST['supplier_id'] = $ret['supplier_id'];
-}
-if (isset($_POST['_supplier_id_editor'])) {
- context_call($path_to_root.'/purchasing/manage/suppliers.php?supplier_id='.$_POST['supplier_id'] );
-}
-
//--------------------------------------------------------------------------------
start_form();
function amount_total($row)
{
- return -$row["Total"];
+ return price_format(-$row["Total"]);
}
function check_settled($row)
_("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')
);