X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=blobdiff_plain;f=gl%2Fincludes%2Fdb%2Fgl_db_banking.inc;h=1a6aed3e857b6c78ea52d4a75ad3cd298b7f5947;hp=c1a5e16d23a193e3d3ce3c67a4177fa7d94a08a1;hb=a131056057ace6c8e61eafabd7d78ef36bb8d4bb;hpb=5ea101caa9cd7c477f64a069a13af9959be2f42c diff --git a/gl/includes/db/gl_db_banking.inc b/gl/includes/db/gl_db_banking.inc index c1a5e16d..1a6aed3e 100644 --- a/gl/includes/db/gl_db_banking.inc +++ b/gl/includes/db/gl_db_banking.inc @@ -351,7 +351,7 @@ function update_bank_transfer( { begin_transaction(); delete_comments(ST_BANKTRANSFER, $trans_no); - void_transaction(ST_BANKTRANSFER, $trans_no, Today(), _("Document reentered.")); + void_transaction(ST_BANKTRANSFER, $trans_no, $date_, _("Document reentered.")); void_gl_trans(ST_BANKTRANSFER, $trans_no, true); $new_trans_no = add_bank_transfer( $from_account, $to_account, $date_, $amount, @@ -518,7 +518,7 @@ function write_bank_transaction($trans_type, $trans_no, $from_account, $items, $ // otherwise the operation could fail for cash accounts due to temporary negative balance if ($old_trans) { - $msg = void_transaction($trans_type, $old_trans, Today(), _("Document reentered.")); + $msg = void_transaction($trans_type, $old_trans, $date_, _("Document reentered.")); if ($msg) { display_error($msg);