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-Tag: 2.3-final~1151 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=61c780745e4743d3bf4c8ef8d23ad2f34ddc121b;p=fa-stable.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 6ccd9e43..182dff71 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 9664c546..8daa1ebf 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; }