Merged changes up to 2.3.16 into unstable
[fa-stable.git] / purchasing / po_entry_items.php
index 961bb5b3a85ac2440d8c027c2e3ca411d733f026..f8f4a45c5e325f1dc0005a6aae3ebfe95bc35525 100644 (file)
@@ -447,7 +447,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);