Skip to content

Commit dd66496

Browse files
committed
Remove deleted stock locations from low inventory report (opensourcepos#916)
1 parent d2e21e1 commit dd66496

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

UPGRADE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ How to Upgrade
1111
8. Take the saved old database.php and change the new database.php to contain all the configuration you had in the old setup.
1212
Please try not to use the old layout, use the new one and just copy the content of the config variables
1313
9. Once new code is in place, database is updated and config files are sorted you are good to start the new OSPOS
14-
10. If any issue please check GitHub issues as somebody else might have had your problem already or post a question
14+
10. If any issue please check FAQ and/or GitHub issues as somebody else might have had your problem already or post a question

application/libraries/Tracking_lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct()
2727
)
2828
);
2929

30-
$this->tracking = new \Racecore\GATracking\GATracking('UA-82359828-1', $options);
30+
$this->tracking = new \Racecore\GATracking\GATracking('UA-82359828-2', $options);
3131

3232
if(empty($clientId))
3333
{

application/models/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public function create_temp_table()
525525
ON items.item_id = item_quantities.item_id
526526
INNER JOIN ' . $this->db->dbprefix('stock_locations') . ' AS stock_locations
527527
ON item_quantities.location_id = stock_locations.location_id
528-
WHERE items.deleted = 0
528+
WHERE items.deleted = 0 AND stock_locations.deleted = 0
529529
)'
530530
);
531531
}

0 commit comments

Comments
 (0)