Fixed Assets Depreciation: removed invalid and obsolete audit record update.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 18 Jan 2020 08:03:18 +0000 (09:03 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 18 Jan 2020 08:03:18 +0000 (09:03 +0100)
fixed_assets/includes/fixed_assets_db.inc

index 11c9c027d50662f5d85d8fbf5c87174f9ca21750..39c3f44eac7af63dcfaab2494163e5acaae867e0 100644 (file)
@@ -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;