[Frontaccounting-cvs_updates] /hgroot/frontaccounting/frontaccounting: When updating costs and...
Brought to you by:
frontaccounting,
itronics
From: FrontAccounting <fro...@us...> - 2013-02-01 16:13:28
|
details: http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/frontaccounting/hgroot/frontaccounting/frontaccounting/rev/6493a106eabf changeset: 3176:6493a106eabf user: Joe Hunt <joe...@gm...> date: Fri Feb 01 17:12:48 2013 +0100 description: When updating costs and no quantity on hand we got a db error (in newer mysql releases). diffstat: inventory/includes/db/items_trans_db.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r b1f99aad3438 -r 6493a106eabf inventory/includes/db/items_trans_db.inc --- a/inventory/includes/db/items_trans_db.inc Thu Jan 31 11:02:04 2013 +0100 +++ b/inventory/includes/db/items_trans_db.inc Fri Feb 01 17:12:48 2013 +0100 @@ -67,7 +67,8 @@ } } - add_audit_trail(ST_COSTUPDATE, $update_no, $date_); + if ($update_no != -1) + add_audit_trail(ST_COSTUPDATE, $update_no, $date_); commit_transaction(); return $update_no; |