X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=10993cc040cd73cf76e91f54e3f59c8abf97f2d9;hb=f44132511cc91b83f20f91af0625d4b112b4c26e;hp=ec42340284cd6beb9034caa4dcc067dae6bb711e;hpb=d1babda7c01b314d35fb89f2d195553b55936532;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index ec423402..10993cc0 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -331,7 +331,7 @@ function check_data() } if ($_SESSION['Items']->trans_no == 0) { - if (!$Refs->is_valid($_POST['ref'])) { + if (!$Refs->is_valid($_POST['ref'], ST_SALESINVOICE)) { display_error(_("You must enter a reference.")); set_focus('ref'); return false; @@ -460,7 +460,10 @@ end_row(); start_row(); if ($_SESSION['Items']->trans_no == 0) { - ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'"); + ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'", false, ST_SALESINVOICE, + array('customer' => $_SESSION['Items']->customer_id, + 'branch' => $_SESSION['Items']->Branch, + 'date' => get_post('InvoiceDate'))); } else { label_cells(_("Reference"), $_SESSION['Items']->reference, "class='tableheader2'"); }