X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_bank.php;h=b965f1d50aefa0a8e05945d262111153d712bf53;hb=11109ad9f0e6af3f59d72731a95e473e72fb308b;hp=5bc7cecd4af4c8f806c878ccfc49c4c0fccfc112;hpb=fc24ee893402902fc58632dabb5d7c2594e191d0;p=fa-stable.git diff --git a/gl/gl_bank.php b/gl/gl_bank.php index 5bc7cecd..b965f1d5 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -25,9 +25,9 @@ include_once($path_to_root . "/gl/includes/gl_ui.inc"); include_once($path_to_root . "/admin/db/attachments_db.inc"); $js = ''; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(800, 500); -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); if (isset($_GET['NewPayment'])) { @@ -48,6 +48,9 @@ page($_SESSION['page_title'], false, false, '', $js); //----------------------------------------------------------------------------------------------- check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); +if (isset($_GET['ModifyDeposit']) || isset($_GET['ModifyPayment'])) + check_is_editable($_SESSION['pay_items']->trans_type, $_SESSION['pay_items']->order_id); + //---------------------------------------------------------------------------------------- if (list_updated('PersonDetailID')) { $br = get_branch(get_post('PersonDetailID')); @@ -192,7 +195,7 @@ function create_cart($type, $trans_no) // apply exchange rate foreach($cart->gl_items as $line_no => $line) $cart->gl_items[$line_no]->amount *= $ex_rate; - + } else { $cart->reference = $Refs->get_next($cart->trans_type); $cart->tran_date = new_doc_date(); @@ -263,7 +266,7 @@ function check_trans() } elseif (!is_date_in_fiscalyear($_POST['date_'])) { - display_error(_("The entered date is not in fiscal year.")); + display_error(_("The entered date is out of fiscal year or is closed for further data entry.")); set_focus('date_'); $input_error = 1; } @@ -421,4 +424,3 @@ end_form(); end_page(); -?>