X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fincludes%2Fdb%2Fgl_db_bank_trans.inc;h=32e2d86e0e2c346f50d9ccb5008783feed599670;hb=4e436722cb991b7273c08bdc1dc53b5390772972;hp=6e440080ebef97c3b047d0ba240d37a2a101d334;hpb=4e52f6e836018fde4bc99c35eb95c85afde31576;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 6e440080..32e2d86e 100644 --- a/gl/includes/db/gl_db_bank_trans.inc +++ b/gl/includes/db/gl_db_bank_trans.inc @@ -105,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(); }