0004468: Cannot modify a funds transfer twice. Fixed by Braathwaate.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 31 May 2018 06:57:58 +0000 (08:57 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 31 May 2018 06:57:58 +0000 (08:57 +0200)
gl/includes/db/gl_db_banking.inc

index d587746bce2150cdc13fe6c7f38181a29d90972c..82776de14d8799059dc846d99cdc6473408c77e4 100644 (file)
@@ -357,7 +357,7 @@ function update_bank_transfer(
 {
        begin_transaction();
        delete_comments(ST_BANKTRANSFER, $trans_no);
-       void_bank_trans(ST_BANKTRANSFER, $trans_no, true);
+       void_transaction(ST_BANKTRANSFER, $trans_no, Today(), _("Document reentered."));
        void_gl_trans(ST_BANKTRANSFER, $trans_no, true);
        $new_trans_no = add_bank_transfer(
                $from_account, $to_account, $date_, $amount,