From ba480840fbf40ae7e1b825a269c5672ef661deaf Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 18 Jan 2020 09:03:18 +0100 Subject: [PATCH] Fixed Assets Depreciation: removed invalid and obsolete audit record update. --- fixed_assets/includes/fixed_assets_db.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/fixed_assets/includes/fixed_assets_db.inc b/fixed_assets/includes/fixed_assets_db.inc index 11c9c027..39c3f44e 100644 --- a/fixed_assets/includes/fixed_assets_db.inc +++ b/fixed_assets/includes/fixed_assets_db.inc @@ -57,8 +57,6 @@ function process_fixed_asset_depreciation($stock_id, $gl_rows, $refline, $memo_) WHERE stock_id=".db_escape($stock_id); db_query($sql,"The depreciation start date could not be updated"); - $update_no = -1; - add_audit_trail(ST_JOURNAL, $update_no, $date_); commit_transaction(); return $trans_no; -- 2.30.2