projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Old ineffective sql_trail superseded by new improved db_trail logging only calls...
[fa-stable.git]
/
purchasing
/
includes
/
db
/
grn_db.inc
diff --git
a/purchasing/includes/db/grn_db.inc
b/purchasing/includes/db/grn_db.inc
index fbf231f47eac6352aa6aa3eb42aedfa6383ca5a9..f5df6084db51c0fe3de9086b7d70470bbf0b642c 100644
(file)
--- a/
purchasing/includes/db/grn_db.inc
+++ b/
purchasing/includes/db/grn_db.inc
@@
-89,7
+89,7
@@
function write_grn(&$po)
$date_ = $po->tran_date;
$grn = $po->grn_id;
$date_ = $po->tran_date;
$grn = $po->grn_id;
- begin_transaction();
+ begin_transaction(
__FUNCTION__, func_get_args()
);
hook_db_prewrite($po, ST_SUPPRECEIVE);
if (!is_company_currency($po->curr_code))
hook_db_prewrite($po, ST_SUPPRECEIVE);
if (!is_company_currency($po->curr_code))
@@
-448,7
+448,7
@@
function void_grn($grn_batch)
if (exists_grn_on_invoices($grn_batch))
return false;
if (exists_grn_on_invoices($grn_batch))
return false;
- begin_transaction();
+ begin_transaction(
__FUNCTION__, func_get_args()
);
hook_db_prevoid(ST_SUPPRECEIVE, $grn_batch);
void_bank_trans(ST_SUPPRECEIVE, $grn_batch, true);
hook_db_prevoid(ST_SUPPRECEIVE, $grn_batch);
void_bank_trans(ST_SUPPRECEIVE, $grn_batch, true);