+ end_table(1);
+}
+
+function edit_grn_summary(&$po)
+{
+ global $Refs;
+
+ start_outer_table(TABLESTYLE2, "width='80%'");
+
+ table_section(1);
+ label_row(_("Supplier"), $po->supplier_name);
+
+ if (!is_company_currency($po->curr_code))
+ label_row(_("Order Currency"), $po->curr_code);
+
+ label_row(_("For Purchase Order"), get_trans_view_str(ST_PURCHORDER, $po->order_no));
+
+ label_row(_("Ordered On"), $po->tran_date);
+
+ table_section(2);
+ if (!isset($_POST['ref']))
+ $_POST['ref'] = $Refs->get_next(ST_SUPPRECEIVE, null, array('supplier' => $po->supplier_id, 'date' => Today()));
+ ref_row(_("Reference"), 'ref', '', null);
+ if (!isset($_POST['Location']))
+ $_POST['Location'] = $po->Location;
+
+ locations_list_row(_("Deliver Into Location"), "Location", $_POST['Location']);
+
+ if (!isset($_POST['tran_date']))
+ $_POST['tran_date'] = new_doc_date();
+
+ date_row(_("Date Items Received"), 'tran_date', '', true, 0, 0, 0, '', true);
+
+ table_section(3);
+ label_row(_("Supplier's Reference"), $po->supp_ref);
+
+ label_row(_("Delivery Address"), $po->delivery_address);
+
+ if ($po->Comments != "")
+ label_row(_("Order Comments"), $po->Comments, "class='tableheader2'", "colspan=9");
+
+ if (!is_company_currency($po->curr_code))
+ exchange_rate_display(get_company_currency(), $po->curr_code, get_post('tran_date'));
+ end_outer_table(1);