X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_entry_items.php;h=1f0bfedd7cd416db42b2e84e95b938e0c50f617c;hb=e6d9f3706a42003ac003820c0532db20d5d50ff8;hp=6e35437e6902767fb4de998f719ef6f3a4ad4c19;hpb=817fa441b65944281a5ce8b59484f7629b4c8588;p=fa-stable.git diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index 6e35437e..1f0bfedd 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -437,7 +437,8 @@ function handle_commit_order() //Direct GRN if ($cart->trans_type == ST_SUPPRECEIVE) $cart->reference = $ref; - $cart->Comments = $cart->reference; //grn does not hold supp_ref + if ($cart->trans_type != ST_SUPPINVOICE) + $cart->Comments = $cart->reference; //grn does not hold supp_ref foreach($cart->line_items as $key => $line) $cart->line_items[$key]->receive_qty = $line->quantity; $grn_no = add_grn($cart); @@ -457,7 +458,7 @@ function handle_commit_order() $inv->tax_included = $cart->tax_included; $supp = get_supplier($cart->supplier_id); $inv->tax_group_id = $supp['tax_group_id']; -// $inv->ov_discount 'this isn't used at all' + $inv->ov_amount = $inv->ov_gst = $inv->ov_discount = 0; foreach($cart->line_items as $key => $line) {