From e39de7da91ecfd75c09a8537b4d5192e690687e7 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 7 Mar 2013 12:06:29 +0100 Subject: [PATCH] Direct Invoice has wrong Comment (auto). --- purchasing/po_entry_items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index a2c3d5f7..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); -- 2.30.2