From f5a290483ff27984cb2b66ac1ec50c5e2d36d087 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 5 Mar 2012 14:14:41 +0100 Subject: [PATCH] Fixed typo in location variable. --- purchasing/includes/db/grn_db.inc | 2 +- purchasing/includes/ui/grn_ui.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/purchasing/includes/db/grn_db.inc b/purchasing/includes/db/grn_db.inc index a31bc2ec..24e421a6 100644 --- a/purchasing/includes/db/grn_db.inc +++ b/purchasing/includes/db/grn_db.inc @@ -364,7 +364,7 @@ function read_grn($grn_batch, &$order) $order->trans_type = ST_SUPPRECEIVE; $order->orig_order_date = sql2date($row["delivery_date"]); - $order->location = $row["loc_code"]; + $order->Location = $row["loc_code"]; $order->reference = $row["reference"]; read_grn_items_to_order($grn_batch, $order); diff --git a/purchasing/includes/ui/grn_ui.inc b/purchasing/includes/ui/grn_ui.inc index a5c88381..cfb2f26c 100644 --- a/purchasing/includes/ui/grn_ui.inc +++ b/purchasing/includes/ui/grn_ui.inc @@ -36,7 +36,7 @@ function display_grn_summary(&$po, $editable=false) ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'"); if (!isset($_POST['Location'])) - $_POST['Location'] = $po->location; + $_POST['Location'] = $po->Location; label_cell(_("Deliver Into Location"), "class='tableheader2'"); locations_list_cells(null, "Location", $_POST['Location']); @@ -51,7 +51,7 @@ function display_grn_summary(&$po, $editable=false) else { label_cells(_("Reference"), $po->reference, "class='tableheader2'"); - label_cells(_("Deliver Into Location"), get_location_name($po->location), "class='tableheader2'"); + label_cells(_("Deliver Into Location"), get_location_name($po->Location), "class='tableheader2'"); label_cells(_("Supplier's Reference"), $po->supp_ref, "class='tableheader2'"); } -- 2.30.2