$err_msg = "Cannot insert a supplier transaction record";
db_query($sql, $err_msg);
- add_audit_trail($type, $trans_no, $date_);
+ if ($type != ST_JOURNAL && $type != ST_BANKDEPOSIT && $type != ST_BANKPAYMENT)
+ add_audit_trail($type, $trans_no, $date_);
return $trans_no;
}
}
db_query($sql, "The debtor transaction record could not be inserted");
- if ($trans_type != ST_JOURNAL) // skip for journal entries
+ if ($trans_type != ST_JOURNAL && $trans_type != ST_BANKDEPOSIT && $trans_type != ST_BANKPAYMENT) // skip for journal entries
add_audit_trail($trans_type, $trans_no, $date_, $new ? '': _("Updated."));
return $trans_no;