3 //---------------------------------------------------------------------------------------------------
5 function display_grn_summary(&$po, $editable=false)
8 start_table("$table_style2 width=90%");
11 label_cells(_("Supplier"), $po->supplier_name, "class='tableheader2'");
13 if (!is_company_currency($po->curr_code))
14 label_cells(_("Order Currency"), $po->curr_code, "class='tableheader2'");
16 label_cells(_("For Purchase Order"), get_trans_view_str(systypes::po(), $po->order_no),
17 "class='tableheader2'");
19 label_cells(_("Ordered On"), $po->orig_order_date, "class='tableheader2'");
20 label_cells(_("Supplier's Reference"), $po->requisition_no, "class='tableheader2'");
26 if (!isset($_POST['ref']))
27 $_POST['ref'] = references::get_next(25);
28 ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'");
30 if (!isset($_POST['Location']))
31 $_POST['Location'] = $po->Location;
32 label_cell(_("Deliver Into Location"), "class='tableheader2'");
33 locations_list_cells(null, "Location", $_POST['Location']);
35 if (!isset($_POST['DefaultReceivedDate']))
36 $_POST['DefaultReceivedDate'] = Today();
38 date_cells(_("Date Items Received"), 'DefaultReceivedDate', '', null, 0, 0, 0, "class='tableheader2'");
43 label_cells(_("Reference"), $po->reference, "class='tableheader2'");
44 label_cells(_("Deliver Into Location"), get_location_name($po->Location), "class='tableheader2'");
51 label_row(_("Delivery Address"), $po->delivery_address, "class='tableheader2'", "colspan=9");
53 if ($po->Comments != "")
54 label_row(_("Order Comments"), $po->Comments, "class='tableheader2'", "colspan=9");