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=f4737ea725de62440c8bf58a7b4d7b187268fe93;hp=6e440080ebef97c3b047d0ba240d37a2a101d334;hpb=818719f38b8327cdca616d58b13913dbd174d96a;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..de2ce486 100644 --- a/gl/includes/db/gl_db_bank_trans.inc +++ b/gl/includes/db/gl_db_bank_trans.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ //---------------------------------------------------------------------------------- @@ -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(); }