Bug [0000067] in supplier allocation inquiry fixed.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 30 Sep 2008 14:45:38 +0000 (14:45 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 30 Sep 2008 14:45:38 +0000 (14:45 +0000)
CHANGELOG.txt
purchasing/inquiry/supplier_allocation_inquiry.php

index a587ab4a281c1a7ad590f4b738965da7f4159c99..862a35e1459c67d1ff65214a6851581b6ea69358 100644 (file)
@@ -21,9 +21,10 @@ $ -> Affected files
 
 30-Sep-2008 Janusz Dobrowolski
 # Bug [0000067] Settled supplier documents were displayed as overdued.
-$ purchasing/inquiry/supplier_inquiry.php
+$ /purchasing/inquiry/supplier_inquiry.php
+  /purchasing/inquiry/supplier_allocation_inquiry.php
 # Bug [0000068] Removed unneeded constraint on edition of fully allocated sales doc.
-$ sales/allocations/customer_allocation_main.php
+$ /sales/allocations/customer_allocation_main.php
 
 29-Sep-2008 Janusz Dobrowolski
 # Bug [0000065] Changing item type during adding new item caused record reset.
index 2c3a6fae4702500f3cab0d3a9f5764c7dfb824b6..cc15d580da095e771b02f18ad5df46e4af23c200 100644 (file)
@@ -141,7 +141,7 @@ if (db_num_rows($result) == 0)
   while ($myrow = db_fetch($result))
   {
 
-       if ($myrow['OverDue'] == 1)
+       if (($myrow['TotalAmount']>$myrow['Allocated']) && $myrow['OverDue'] == 1)
        {
                start_row("class='overduebg'");
                $over_due = true;
@@ -178,8 +178,6 @@ if (db_num_rows($result) == 0)
                $balance = $myrow["TotalAmount"] - $myrow["Allocated"];
        amount_cell($balance);
 
-       //if (($myrow["type"] == 1 || $myrow["type"] == 21 || $myrow["type"] == 22) &&
-       //      $myrow["Void"] == 0)
        if (($myrow["type"] == 1 || $myrow["type"] == 21 || $myrow["type"] == 22) &&
                $balance > 0)
        {