X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_transfer_db.inc;h=5784453b0361fb9582c53c25527d56597bd97865;hb=8f7ac519b7aaf8ec219862597e878d3a28316ac6;hp=67bbdc7c0af602957674c8946468ed4fe63a8982;hpb=7a50c189ea995d5fe6785feb7710c00396065d2b;p=fa-stable.git diff --git a/inventory/includes/db/items_transfer_db.inc b/inventory/includes/db/items_transfer_db.inc index 67bbdc7c..5784453b 100644 --- a/inventory/includes/db/items_transfer_db.inc +++ b/inventory/includes/db/items_transfer_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------------------------------------------------- function add_stock_transfer($Items, $location_from, $location_to, $date_, $type, $reference, $memo_) @@ -16,7 +25,8 @@ function add_stock_transfer($Items, $location_from, $location_to, $date_, $type, add_comments(systypes::location_transfer(), $transfer_id, $date_, $memo_); - references::save_last($reference, systypes::location_transfer()); + references::save(systypes::location_transfer(), $transfer_id, $reference); + add_audit_trail(systypes::location_transfer(), $transfer_id, $date_); commit_transaction();