Fixed typo in location variable.
[fa-stable.git] / purchasing / includes / db / grn_db.inc
index a31bc2ec83665bc9ebe9ff0a3dcfa47c7f96889f..24e421a6c3078c37b7e5bac16b8d2b7da2dc065a 100644 (file)
@@ -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);