X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_delivery.php;fp=sales%2Fcustomer_delivery.php;h=767fd7c2910104164a4b72bac6a59e5fad8b48be;hb=19dce8c7be29e4cc8e7be92d044259348373d456;hp=a49c5c55c236c5a0d95156f9fd44ba8e15740eac;hpb=5ac9ea61baac0cf298b07317051da51e781645b7;p=fa-stable.git diff --git a/sales/customer_delivery.php b/sales/customer_delivery.php index a49c5c55..767fd7c2 100644 --- a/sales/customer_delivery.php +++ b/sales/customer_delivery.php @@ -173,7 +173,7 @@ function check_data() } if ($_SESSION['Items']->trans_no==0) { - if (!$Refs->is_valid($_POST['ref'])) { + if (!$Refs->is_valid($_POST['ref'], ST_CUSTDELIVERY)) { display_error(_("You must enter a reference.")); set_focus('ref'); return false; @@ -333,7 +333,10 @@ start_row(); // $_POST['ref'] = $Refs->get_next(ST_CUSTDELIVERY); if ($_SESSION['Items']->trans_no==0) { - ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'"); + ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'", false, ST_CUSTDELIVERY, + array('customer' => $_SESSION['Items']->customer_id, + 'branch' => $_SESSION['Items']->Branch, + 'date' => get_post('DispatchDate')); } else { label_cells(_("Reference"), $_SESSION['Items']->reference, "class='tableheader2'"); }