Changes related to rewrite and optimalzation of taz register.
[fa-stable.git] / gl / includes / db / gl_db_bank_trans.inc
index 6e440080ebef97c3b047d0ba240d37a2a101d334..32e2d86e0e2c346f50d9ccb5008783feed599670 100644 (file)
@@ -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();
 }