X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_adjust_db.inc;h=07137bf246f97593e344837a1de5733c7bb4f8c9;hb=89e8ca2be9235215ac2e2bf5e58d7eedd2dda84d;hp=0085f98360b7b702b226bccd3421fc836ef3dc86;hpb=5a7ef37131354aabdcf04c639a903e5876b743e4;p=fa-stable.git diff --git a/inventory/includes/db/items_adjust_db.inc b/inventory/includes/db/items_adjust_db.inc index 0085f983..07137bf2 100644 --- a/inventory/includes/db/items_adjust_db.inc +++ b/inventory/includes/db/items_adjust_db.inc @@ -14,7 +14,7 @@ function add_stock_adjustment($items, $location, $date_, $reference, $memo_) { 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', 'date_', 'reference', 'memo_'), $args); $args->trans_no = 0; @@ -61,9 +61,11 @@ function add_stock_adjustment($items, $location, $date_, $reference, $memo_) function void_stock_adjustment($type_no) { + begin_transaction(__FUNCTION__, func_get_args()); hook_db_prevoid(ST_INVADJUST, $type_no); void_gl_trans(ST_INVADJUST, $type_no); void_stock_move(ST_INVADJUST, $type_no); + commit_transaction(); } //-------------------------------------------------------------------------------------------------------------