X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fincludes%2Fui%2Fgrn_ui.inc;h=cfb2f26c21fa7dc120c76a4eeab39247a0017150;hb=5e5944444f1518e2c622091ceb5e3caefa7fe0d5;hp=81bd8617153be72374c5174a09af7efcbf9189c0;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/purchasing/includes/ui/grn_ui.inc b/purchasing/includes/ui/grn_ui.inc index 81bd8617..cfb2f26c 100644 --- a/purchasing/includes/ui/grn_ui.inc +++ b/purchasing/includes/ui/grn_ui.inc @@ -13,8 +13,8 @@ function display_grn_summary(&$po, $editable=false) { - global $table_style2, $Refs; - start_table("$table_style2 width=90%"); + global $Refs; + start_table(TABLESTYLE2, "width=90%"); start_row(); label_cells(_("Supplier"), $po->supplier_name, "class='tableheader2'"); @@ -26,14 +26,13 @@ function display_grn_summary(&$po, $editable=false) "class='tableheader2'"); label_cells(_("Ordered On"), $po->orig_order_date, "class='tableheader2'"); - label_cells(_("Supplier's Reference"), $po->requisition_no, "class='tableheader2'"); end_row(); start_row(); if ($editable) { if (!isset($_POST['ref'])) - $_POST['ref'] = $Refs->get_next(25); + $_POST['ref'] = $Refs->get_next(ST_SUPPRECEIVE); ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'"); if (!isset($_POST['Location'])) @@ -45,12 +44,15 @@ function display_grn_summary(&$po, $editable=false) $_POST['DefaultReceivedDate'] = new_doc_date(); date_cells(_("Date Items Received"), 'DefaultReceivedDate', '', true, 0, 0, 0, "class='tableheader2'"); - + // currently this is related order supp reference +// ref_cells(_("Supplier's Reference"), 'supp_ref', _("Supplier's Reference"), null, "class='tableheader2'"); + label_cells(_("Supplier's Reference"), $po->supp_ref, "class='tableheader2'"); } else { label_cells(_("Reference"), $po->reference, "class='tableheader2'"); label_cells(_("Deliver Into Location"), get_location_name($po->Location), "class='tableheader2'"); + label_cells(_("Supplier's Reference"), $po->supp_ref, "class='tableheader2'"); } end_row();