X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_credit_invoice.php;h=c46215389ae56f464bfe160dd5f60cf91cfae23f;hb=6ffe5f040543994725beaf9f8059c054919043d7;hp=48f3f0d597ef6fd122f3a4a5e0e55451867f89f3;hpb=b611def496e4942321d66f183fe0e1d95417c99f;p=fa-stable.git diff --git a/sales/customer_credit_invoice.php b/sales/customer_credit_invoice.php index 48f3f0d5..c4621538 100644 --- a/sales/customer_credit_invoice.php +++ b/sales/customer_credit_invoice.php @@ -90,7 +90,7 @@ function can_process() set_focus('CreditDate'); return false; } elseif (!is_date_in_fiscalyear($_POST['CreditDate'])) { - 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('CreditDate'); return false; } @@ -142,6 +142,7 @@ if (isset($_GET['InvoiceNumber']) && $_GET['InvoiceNumber'] > 0) { } elseif ( isset($_GET['ModifyCredit']) && $_GET['ModifyCredit']>0) { + check_is_closed(ST_CUSTCREDIT,$_GET['ModifyCredit']); $_SESSION['Items'] = new Cart(ST_CUSTCREDIT,$_GET['ModifyCredit']); copy_from_cart();