Bug [0000074] Marked items are overdue. For Filled (fully delivered) Sales Order
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 15 Oct 2008 08:39:58 +0000 (08:39 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 15 Oct 2008 08:39:58 +0000 (08:39 +0000)
CHANGELOG.txt
sales/inquiry/sales_orders_view.php

index 74f79985f6e5f0c99cff0c333cad0adc9d9de8e3..81be36aae0e931feeab665ecb67224f01edf1f01 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+15-Oct-2008 Joe Hunt
+# Bug [0000074] Marked items are overdue. For Filled (fully delivered) Sales Order
+$ /sales/inquiry/sales_orders_view.php
+
 08-Oct-2008 Janusz Dobrowolski
 # [0000071] Ordering from customer on hold was possible after double exact search in list.
 $ /sales/includes/ui/sales_order_ui.inc
index bcf416caece07fa14f3cf5239fcc7cbef9091d6e..129bb673683c70d8554f5100fd9e9e0fc04dbeb4 100644 (file)
@@ -217,8 +217,8 @@ if ($result)
                }
 //         $not_closed =  $myrow['type'] && ($myrow["TotDelivered"] < $myrow["TotQuantity"]);
 
-       // if overdue orders, then highlight as so
-       if ($myrow['type'] == 0 && date1_greater_date2(Today(), $formated_del_date))
+       // if overdue orders, then highlight as so. 2008-10-15 added totdelivered < totquantity as well for qualifying overdue
+       if ($myrow['type'] == 0 && date1_greater_date2(Today(), $formated_del_date) && ($myrow["TotDelivered"] < $myrow["TotQuantity"]))
        {
                 start_row("class='overduebg'");
                 $overdue_items = true;