Merged last changes from stable.
[fa-stable.git] / purchasing / supplier_payment.php
index b3fe7ceeaefc241a3a35141d238e500edd2c969a..cf05dfd9d9c29acc4e051ae7abc4b0c0b1acbc73 100644 (file)
@@ -144,7 +144,7 @@ function check_inputs()
        }
 
        if (isset($_POST['charge']) && input_num('charge') > 0) {
-               $charge_acct = get_company_pref('bank_charge_act');
+               $charge_acct = get_bank_charge_account($_POST['bank_account']);
                if (get_gl_account($charge_acct) == false) {
                        display_error(_("The Bank Charge Account has not been set in System and General GL Setup."));
                        set_focus('charge');