Skip to content

Commit

Permalink
fix: don't show disabled items in Item Shortage Report
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Aug 8, 2023
1 parent 11d5327 commit 453970f
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 453970f

Please sign in to comment.