Fixed transaction date check messages.
[fa-stable.git] / sales / customer_credit_invoice.php
index 48f3f0d597ef6fd122f3a4a5e0e55451867f89f3..c46215389ae56f464bfe160dd5f60cf91cfae23f 100644 (file)
@@ -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();