From: Joe Hunt Date: Thu, 20 Aug 2009 08:07:00 +0000 (+0000) Subject: If setting the delivered items in PO Receive Items to 0 the value is not updated X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=a139cdafd2125c2a62c636de7b64d54652037f2c;p=textcart.git If setting the delivered items in PO Receive Items to 0 the value is not updated --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6ccd9e4..182dff7 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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. diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php index 9664c54..8daa1eb 100644 --- a/purchasing/po_receive_items.php +++ b/purchasing/po_receive_items.php @@ -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; }