Fix displayed required date
[order_line_extra.git] / order_lines_view.php
index 2f0a14ad7d5ee66b075702e98b4a75c6f590408f..0bbc5e45b9b9b865608db862b5e56d3b24f652bc 100644 (file)
@@ -80,7 +80,7 @@ if($customer_id) {
        );
 }
 else {
-       $sql = get_order_summary();
+       $sql = get_order_summary('DEF');
        $cols = array(
        'customer id' => 'skip',
 _("Customer") => array('ord' => '', 'fun' => 'customer_link'),
@@ -88,6 +88,8 @@ _("Branch") => array('ord' => ''),
 _("Delivery Date") => array('ord' => '', 'type' => 'date'),
 _("Quantity") => array('ord' => '', 'type' => 'qty', 'dec' => 0),
 _("Amount") => array('ord' => '', 'type' => 'amount'),
+_("Avail. Q") => array('ord' => '', 'type' => 'qty', 'dec' => 0),
+_("Avail. A") => array('ord' => '', 'type' => 'amount', 'dec' => 0),
 _("required date") => array('ord' => '', 'type' => 'date'),
 _("Comments") => array('ord' => '', 'fun' => 'aggregate_comment'),
 _("comment 2 ") =>  'skip'