Fixed date format in supplier transactions table.
[fa-stable.git] / purchasing / inquiry / supplier_inquiry.php
index a2f18aaae665930f784b98251649f9e338a6ad40..e495c661743c792a22cf5c268f5d582df1db5d93 100644 (file)
@@ -115,7 +115,7 @@ function trans_view($trans)
 function due_date($row)
 {
        return ($row["type"]== 20) || ($row["type"]== 21)
-                ? $row["due_date"] : '';
+                ? sql2date($row["due_date"]) : '';
 }
 
 function gl_view($row)
@@ -211,7 +211,7 @@ $cols = array(
                        _("Reference"), 
                        _("Supplier"),
                        _("Supplier's Reference"), 
-                       _("Date") => array('type'=>'date', 'ord'=>'desc'), 
+                       _("Date") => array('name'=>'tran_date', 'type'=>'date', 'ord'=>'desc'), 
                        _("Due Date") => array('type'=>'date', 'fun'=>'due_date'), 
                        _("Currency") => array('align'=>'center'),
                        _("Debit") => array('align'=>'right', 'fun'=>'fmt_debit'),