X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcredit_note_entry.php;fp=sales%2Fcredit_note_entry.php;h=98fd6c1e0b6c9d997f72a167efdcbd12b3ed3f96;hb=19dce8c7be29e4cc8e7be92d044259348373d456;hp=8181f7a34c24c3e1154af1642676bb1f622109c1;hpb=5ac9ea61baac0cf298b07317051da51e781645b7;p=fa-stable.git diff --git a/sales/credit_note_entry.php b/sales/credit_note_entry.php index 8181f7a3..98fd6c1e 100644 --- a/sales/credit_note_entry.php +++ b/sales/credit_note_entry.php @@ -143,7 +143,7 @@ function can_process() if ($_SESSION['Items']->count_items() == 0 && (!check_num('ChargeFreightCost',0))) return false; if($_SESSION['Items']->trans_no == 0) { - if (!$Refs->is_valid($_POST['ref'])) { + if (!$Refs->is_valid($_POST['ref'], ST_CUSTCREDIT)) { display_error( _("You must enter a reference.")); set_focus('ref'); $input_error = 1;