From 674f142eac9e9c32810f85d0a8f7fce5a09db0ec Mon Sep 17 00:00:00 2001 From: WShells Date: Sat, 14 Jul 2018 12:42:00 +0300 Subject: [PATCH] Items Display in Inv Summary Report Item names weren't showing in the inventory summary report due to variable issue... --- application/models/reports/Inventory_summary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/reports/Inventory_summary.php b/application/models/reports/Inventory_summary.php index 20215cd68..35e808ca1 100644 --- a/application/models/reports/Inventory_summary.php +++ b/application/models/reports/Inventory_summary.php @@ -19,7 +19,7 @@ class Inventory_summary extends Report public function getData(array $inputs) { - $this->db->select($this->Item->get_item_name('item_name') . ', items.item_number, item_quantities.quantity, item_quantities.quantity, (item_quantities.quantity * items.qty_per_pack) as low_sell_quantity, items.reorder_level, stock_locations.location_name, items.cost_price, items.unit_price, (items.cost_price * item_quantities.quantity) AS sub_total_value'); + $this->db->select($this->Item->get_item_name('name') . ', items.item_number, item_quantities.quantity, item_quantities.quantity, (item_quantities.quantity * items.qty_per_pack) as low_sell_quantity, items.reorder_level, stock_locations.location_name, items.cost_price, items.unit_price, (items.cost_price * item_quantities.quantity) AS sub_total_value'); $this->db->from('items AS items'); $this->db->join('item_quantities AS item_quantities', 'items.item_id = item_quantities.item_id'); $this->db->join('stock_locations AS stock_locations', 'item_quantities.location_id = stock_locations.location_id');