projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73ab8fd
)
0003962: in Inventory Purchasing Report the result is wrongly showing.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 30 Jul 2017 10:12:52 +0000
(12:12 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 30 Jul 2017 10:12:52 +0000
(12:12 +0200)
purchasing/includes/db/grn_db.inc
patch
|
blob
|
history
diff --git
a/purchasing/includes/db/grn_db.inc
b/purchasing/includes/db/grn_db.inc
index d5efafdb21ca86d2fc6157cfa57af0830d908682..832787d05fac080a0af86845073070bb17e10ce6 100644
(file)
--- a/
purchasing/includes/db/grn_db.inc
+++ b/
purchasing/includes/db/grn_db.inc
@@
-140,9
+140,11
@@
function add_grn(&$po)
$po->line_items[$line_no]->grn_item_id = $grn_item;
/* Update location stock records - NB a po cannot be entered for a service/kit parts done automatically */
$po->line_items[$line_no]->grn_item_id = $grn_item;
/* Update location stock records - NB a po cannot be entered for a service/kit parts done automatically */
+ //add_stock_move(ST_SUPPRECEIVE, $order_line->stock_id, $grn, $po->Location, $date_, "",
+ // $order_line->receive_qty, $order_line->standard_cost,
+ // $po->supplier_id, 1, $order_line->taxfree_charge_value($po)/$order_line->receive_qty);
add_stock_move(ST_SUPPRECEIVE, $order_line->stock_id, $grn, $po->Location, $date_, "",
add_stock_move(ST_SUPPRECEIVE, $order_line->stock_id, $grn, $po->Location, $date_, "",
- $order_line->receive_qty, $order_line->standard_cost,
- $po->supplier_id, 1, $order_line->taxfree_charge_value($po)/$order_line->receive_qty);
+ $order_line->receive_qty, $order_line->standard_cost, $order_line->taxfree_charge_value($po)/$order_line->receive_qty);
} /*quantity received is != 0 */
} /*end of order_line loop */
} /*quantity received is != 0 */
} /*end of order_line loop */