Fixed extension module update and deletion.
[fa-stable.git] / gl / bank_transfer.php
index 893fabea478d9f018b631c7ed34210fde343a929..f971fc569249772f9eced311c8d63ecd785dc6f6 100644 (file)
@@ -129,6 +129,11 @@ function check_valid_entries()
                set_focus('charge');
                return false;
        }
+       if (isset($_POST['charge']) && input_num('charge') > 0 && get_company_pref('bank_charge_act') == '') {
+               display_error(_("The Bank Charge Account has not been set in System and General GL Setup."));
+               set_focus('charge');
+               return false;
+       }
        if (!$Refs->is_valid($_POST['ref'])) 
        {
                display_error(_("You must enter a reference."));