If setting the delivered items in PO Receive Items to 0 the value is not updated
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 20 Aug 2009 08:07:00 +0000 (08:07 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 20 Aug 2009 08:07:00 +0000 (08:07 +0000)
CHANGELOG.txt
purchasing/po_receive_items.php

index 6ccd9e43974d0f9bf43fcfb54278dae764d6ddcc..182dff71cfe721224e7a99af58d2dcf4525de3ba 100644 (file)
@@ -22,6 +22,8 @@ $ -> Affected files
 20-Aug-2009 Joe Hunt
 # If account code2 is used in the accounts the report Chart of Accounts gave a bad index and didn't print the code.
 $ /gl/includes/gl_db_accounts.inc
+# If setting the delivered items in PO Receive Items to 0 the value is not updated 
+$ /purchasing/po_receive_items.php
 
 19-Aug-2009 Joe Hunt
 ! Change of Quick Entries to use the Tax Types instead, due to complexity using the Tax Groups in EU.
index 9664c54607c3b2695e92132180221dc0ef8f8300..8daa1ebf5161819f9f8e66f4988d4c1a440f4664 100644 (file)
@@ -78,7 +78,7 @@ function display_po_receive_items()
 
                $qty_outstanding = $ln_itm->quantity - $ln_itm->qty_received;
 
-               if ($ln_itm->receive_qty == 0)
+                       if (!isset($_POST['Update']) && !isset($_POST['ProcessGoodsReceived']) && $ln_itm->receive_qty == 0)
                {   //If no quantites yet input default the balance to be received
                $ln_itm->receive_qty = $qty_outstanding;
                }