X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_receive_items.php;h=2bcd6085343995db86bd367ea16ddc6b2116bda5;hb=95303d7b5280820af76ddbd8908b120813f1e763;hp=a6f12cee33b26e352950adc1e627709c7d6fca2d;hpb=6425de92749015d0e7ab29b5fd071a9d70cbb7d5;p=fa-stable.git diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php index a6f12cee..2bcd6085 100644 --- a/purchasing/po_receive_items.php +++ b/purchasing/po_receive_items.php @@ -80,7 +80,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; } @@ -104,7 +104,7 @@ function display_po_receive_items() else label_cell(number_format2($ln_itm->receive_qty, $dec), "align=right"); - amount_cell($ln_itm->price); + amount_decimal_cell($ln_itm->price); amount_cell($line_total); end_row(); }