X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_adjust_db.inc;h=b51110694fb70eab1face682d684a9a445a10a1b;hb=1a851e527fe366364c6d2baaf2684222f9394b48;hp=09e6f417886550b1ecd29a86239a7ecb94938e41;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git diff --git a/inventory/includes/db/items_adjust_db.inc b/inventory/includes/db/items_adjust_db.inc index 09e6f417..b5111069 100644 --- a/inventory/includes/db/items_adjust_db.inc +++ b/inventory/includes/db/items_adjust_db.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ //------------------------------------------------------------------------------------------------------------- @@ -29,7 +29,8 @@ function add_stock_adjustment($items, $location, $date_, $type, $increase, $refe 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();