fix: do not show zero balance stock items in stock balance report (backport #41958) (#41961)

fix: do not show zero balance stock in stock balance

(cherry picked from commit 7f7b363d48)

Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-06-20 17:04:58 +05:30
committed by GitHub
parent cd1db37c74
commit c10b123a81

View File

@@ -137,6 +137,10 @@ class StockBalanceReport:
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):