From: Janusz Dobrowolski Date: Wed, 12 Nov 2008 10:14:20 +0000 (+0000) Subject: Fixed $cols acording to db_pager api change. X-Git-Tag: v2.4.2~19^2~1767 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=b3eb4fd60e006f521b57bf974f21268f2dcc91c3;p=fa-stable.git Fixed $cols acording to db_pager api change. --- diff --git a/purchasing/inquiry/supplier_inquiry.php b/purchasing/inquiry/supplier_inquiry.php index c3c5b1b9..3f41b03e 100644 --- a/purchasing/inquiry/supplier_inquiry.php +++ b/purchasing/inquiry/supplier_inquiry.php @@ -103,7 +103,7 @@ function trans_view($trans) function due_date($row) { return ($row["type"]== 20) || ($row["type"]== 21) - ? sql2date($row["due_date"]) : ''; + ? $row["due_date"] : ''; } function gl_view($row) @@ -185,17 +185,17 @@ function check_overdue($row) } $cols = array( - _("Type") => array('type'=>'spec', 'fun'=>'systype_name', 'ord'=>''), - _("#") => array('type'=>'spec', 'fun'=>'trans_view', 'ord'=>''), + _("Type") => array('fun'=>'systype_name', 'ord'=>''), + _("#") => array('fun'=>'trans_view', 'ord'=>''), _("Reference"), - _("Supplier") => 'text', + _("Supplier"), _("Supplier's Reference"), _("Date") => array('type'=>'date', 'ord'=>'desc'), - _("Due Date") => array('type'=>'spec', 'fun'=>'due_date'), - _("Currency") => 'text', - _("Debit") => array('type'=>'spec', 'fun'=>'fmt_debit'), - _("Credit") => array('type'=>'insert', 'fun'=>'fmt_credit'), - array('type'=>'insert', 'fun'=>'gl_view'), + _("Due Date") => array('type'=>'date', 'fun'=>'due_date'), + _("Currency") => array('align'=>'center'), + _("Debit") => array('align'=>'right', 'fun'=>'fmt_debit'), + _("Credit") => array('align'=>'right', 'insert'=>true,'fun'=>'fmt_credit'), + array('insert'=>true, 'fun'=>'gl_view'), ); if ($_POST['supplier_id'] != reserved_words::get_all())