$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);
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']);
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'");
}