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.
while ($myrow = db_fetch($result))
{
- if ($myrow['OverDue'] == 1)
+ if (($myrow['TotalAmount']>$myrow['Allocated']) && $myrow['OverDue'] == 1)
{
start_row("class='overduebg'");
$over_due = true;
$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)
{