projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea52fc0
)
Direct Invoice has wrong Comment (auto).
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 7 Mar 2013 11:06:29 +0000
(12:06 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 7 Mar 2013 11:06:29 +0000
(12:06 +0100)
purchasing/po_entry_items.php
patch
|
blob
|
history
diff --git
a/purchasing/po_entry_items.php
b/purchasing/po_entry_items.php
index a2c3d5f7f423af75e47bef2c119d062e7b199cf0..1f0bfedd7cd416db42b2e84e95b938e0c50f617c 100644
(file)
--- 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);