Skip to content

Commit

Permalink
fix: don't show disabled items in Item Shortage Report (backport #3…
Browse files Browse the repository at this point in the history
…6550) (#36571)

fix: don't show disabled items in `Item Shortage Report` (#36550)

(cherry picked from commit 4a7fc15)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r authored Aug 10, 2023
1 parent 8083c0b commit 19cfcea
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ def get_data(filters):
item.item_name,
item.description,
)
.where((bin.projected_qty < 0) & (wh.name == bin.warehouse) & (bin.item_code == item.name))
.where(
(item.disabled == 0)
& (bin.projected_qty < 0)
& (wh.name == bin.warehouse)
& (bin.item_code == item.name)
)
.orderby(bin.projected_qty)
)

Expand Down

0 comments on commit 19cfcea

Please sign in to comment.