From 43c2bbe4eca53d0e4cca99b3fc90059e3f91c91a Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 24 Nov 2012 11:20:53 +0100 Subject: [PATCH] Added option to sort by customer and order number in customer allocations. --- sales/inquiry/customer_allocation_inquiry.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sales/inquiry/customer_allocation_inquiry.php b/sales/inquiry/customer_allocation_inquiry.php index e7b0ca2..66bbb58 100644 --- a/sales/inquiry/customer_allocation_inquiry.php +++ b/sales/inquiry/customer_allocation_inquiry.php @@ -139,15 +139,14 @@ function fmt_credit($row) $sql = get_sql_for_customer_allocation_inquiry(); //------------------------------------------------------------------------------------------------ - $cols = array( _("Type") => array('fun'=>'systype_name'), _("#") => array('fun'=>'view_link'), _("Reference"), - _("Order") => array('fun'=>'order_link'), + _("Order") => array('fun'=>'order_link', 'ord'=>''), _("Date") => array('name'=>'tran_date', 'type'=>'date', 'ord'=>'asc'), _("Due Date") => array('type'=>'date', 'fun'=>'due_date'), - _("Customer"), + _("Customer") => array('name' =>'name', 'ord'=>'asc'), _("Currency") => array('align'=>'center'), _("Debit") => array('align'=>'right','fun'=>'fmt_debit'), _("Credit") => array('align'=>'right','insert'=>true, 'fun'=>'fmt_credit'), -- 2.30.2