X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=inventory%2Fincludes%2Fdb%2Fitems_transfer_db.inc;h=b4b0180e0ecfaa1ab1ee25d5ae6d9a469fd65728;hb=89e8ca2be9235215ac2e2bf5e58d7eedd2dda84d;hp=f35bf3696c43439ca0bfcb6c26ba574a960e2a04;hpb=dace790b5b71c554f8de87babda2585dfa2a074c;p=fa-stable.git diff --git a/inventory/includes/db/items_transfer_db.inc b/inventory/includes/db/items_transfer_db.inc index f35bf369..b4b0180e 100644 --- a/inventory/includes/db/items_transfer_db.inc +++ b/inventory/includes/db/items_transfer_db.inc @@ -15,7 +15,7 @@ function add_stock_transfer($Items, $location_from, $location_to, $date_, $refer { global $SysPrefs, $path_to_root, $Refs; - begin_transaction(); + begin_transaction(__FUNCTION__, func_get_args()); $args = func_get_args(); $args = (object)array_combine(array('Items', 'location_from', 'location_to', 'date_', 'reference', 'memo_'), $args); @@ -118,7 +118,9 @@ function get_stock_transfer_items($trans_no) function void_stock_transfer($type_no) { + begin_transaction(__FUNCTION__, func_get_args()); hook_db_prevoid(ST_LOCTRANSFER, $type_no); void_stock_move(ST_LOCTRANSFER, $type_no); + commit_transaction(); }