mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-20 15:24:35 -04:00
Change the inventory reports to exclude non-stock items.
This commit is contained in:
1 parent
2719c43e3d
commit
d75a936472
2 files changed
+2
-1
No files matched your search
@@ -27,7 +27,7 @@ class Inventory_low extends Report
|
||||
$this->db->join('stock_locations', 'item_quantities.location_id = stock_locations.location_id');
|
||||
$this->db->where('items.deleted', 0);
|
||||
$this->db->where('stock_locations.deleted', 0);
|
||||
$this->db->where('item_quantities.quantity <= items.reorder_level');
|
||||
$this->db->where('items.stock_type', 0);
|
||||
$this->db->order_by('items.name');
|
||||
|
||||
return $this->db->get()->result_array();
|
||||
|
||||
@@ -28,6 +28,7 @@ class Inventory_summary extends Report
|
||||
$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');
|
||||
$this->db->where('items.deleted', 0);
|
||||
$this->db->where('items.stock_type', 0);
|
||||
$this->db->where('stock_locations.deleted', 0);
|
||||
|
||||
// should be corresponding to values Inventory_summary::getItemCountDropdownArray() returns...
|
||||
|
||||
Reference in new issue
Block a user