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;
}
} 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();