X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fincludes%2Fdb%2Fgl_db_bank_trans.inc;h=de2ce4862920f121b5d256b89b5c79c63855f6d9;hb=19b77e12bf5c056e3141032c62cc8d9ad7a21d6e;hp=2c47f2badb4aa907b87a18ce1890f99c7bfc00c7;hpb=257a9e6800a4ba8bdfada30bf9eeb7ac47a73a12;p=fa-stable.git diff --git a/gl/includes/db/gl_db_bank_trans.inc b/gl/includes/db/gl_db_bank_trans.inc index 2c47f2ba..de2ce486 100644 --- a/gl/includes/db/gl_db_bank_trans.inc +++ b/gl/includes/db/gl_db_bank_trans.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------- // add a bank transaction @@ -96,14 +105,14 @@ function void_bank_trans($type, $type_no, $nested=false) // in case it's a customer trans - probably better to check first void_cust_allocations($type, $type_no); - void_customer_trans_tax_details($type, $type_no); void_customer_trans($type, $type_no); // in case it's a supplier trans - probably better to check first void_supp_allocations($type, $type_no); - void_supp_invoice_tax_items($type, $type_no); void_supp_trans($type, $type_no); + void_trans_tax_details($type, $type_no); + if (!$nested) commit_transaction(); }