X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_bank.php;h=8c8860d0c47dbf405d7521eb43b8b2033d029571;hb=3f3cfa578adbc2b71f4fd9c8d0f5536d26af43d8;hp=b11dcd34de20367a65d500e7428027584b030206;hpb=6a12518d87e341c16dd2e2898f36e74320369d71;p=fa-stable.git diff --git a/gl/gl_bank.php b/gl/gl_bank.php index b11dcd34..8c8860d0 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -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')); @@ -119,7 +122,7 @@ if (isset($_GET['UpdatedDep'])) $trans_no = $_GET['UpdatedDep']; $trans_type = ST_BANKDEPOSIT; - display_notification_centered(_("Deposit $trans_no has been modified")); + display_notification_centered(sprintf(_("Deposit %d has been modified"), $trans_no)); display_note(get_gl_view_str($trans_type, $trans_no, _("&View the GL Postings for this Deposit"))); @@ -194,7 +197,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(); @@ -264,7 +267,7 @@ if (isset($_POST['Process'])) } 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; } @@ -296,7 +299,7 @@ if (isset($_POST['Process'])) $_SESSION['pay_items']->trans_type, $_SESSION['pay_items']->order_id, $_POST['bank_account'], $_SESSION['pay_items'], $_POST['date_'], $_POST['PayType'], $_POST['person_id'], get_post('PersonDetailID'), - $_POST['ref'], $_POST['memo_'], true); + $_POST['ref'], $_POST['memo_'], false); $trans_type = $trans[0]; $trans_no = $trans[1];