Skip to content

Commit f498a9d

Browse files
authored
Merge pull request #818 from boxwise/fix-deleted-products-in-stock-planning
Avoid using deleted products in Stock Planning
2 parents 0ae6705 + 1943610 commit f498a9d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/stock_overview.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ function box_state_id_from_filter($applied_filter)
118118
products as b ON upper(a.name)=upper(b.name)
119119
WHERE
120120
a.camp_id = :camp_id and b.camp_id = :camp_id and a.id<=b.id
121+
AND (NOT a.deleted OR a.deleted IS NULL)
122+
AND (NOT b.deleted OR b.deleted IS NULL)
121123
GROUP BY
122124
upper(a.name)
123125
) prod_a

0 commit comments

Comments
 (0)