Skip to content

Commit

Permalink
fix: do not show zero balance stock items in stock balance report (ba…
Browse files Browse the repository at this point in the history
…ckport #41958) (#41961)

fix: do not show zero balance stock in stock balance

(cherry picked from commit 7f7b363)

Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Jun 20, 2024
1 parent cd1db37 commit c10b123
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erpnext/stock/report/stock_balance/stock_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def prepare_new_data(self):
report_data.update(
{"reserved_stock": sre_details.get((report_data.item_code, report_data.warehouse), 0.0)}
)

if report_data and report_data.bal_qty == 0 and report_data.bal_val == 0:
continue

self.data.append(report_data)

def get_item_warehouse_map(self):
Expand Down

0 comments on commit c10b123

Please sign in to comment.