projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
References saved in refs table for all documents for easy access.
[fa-stable.git]
/
inventory
/
includes
/
db
/
items_adjust_db.inc
diff --git
a/inventory/includes/db/items_adjust_db.inc
b/inventory/includes/db/items_adjust_db.inc
index 57f74bb53b8f8376db783ae2f5dd20fd5f83755d..b51110694fb70eab1face682d684a9a445a10a1b 100644
(file)
--- a/
inventory/includes/db/items_adjust_db.inc
+++ b/
inventory/includes/db/items_adjust_db.inc
@@
-29,7
+29,8
@@
function add_stock_adjustment($items, $location, $date_, $type, $increase, $refe
add_comments(systypes::inventory_adjustment(), $adj_id, $date_, $memo_);
add_comments(systypes::inventory_adjustment(), $adj_id, $date_, $memo_);
- references::save_last($reference, systypes::inventory_adjustment());
+ references::save(systypes::inventory_adjustment(), $adj_id, $reference);
+ add_audit_trail(systypes::inventory_adjustment(), $adj_id, $date_);
commit_transaction();
commit_transaction();