Merge pull request #49452 from frappe/mergify/bp/version-15-hotfix/pr-49449

fix: incorrect stock value in the report (backport #49449)
This commit is contained in:
rohitwaghchaure
2025-09-04 07:10:40 +05:30
committed by GitHub

View File

@@ -72,6 +72,7 @@ def execute(filters=None):
batch_balance_dict[sle.batch_no] = [0, 0]
batch_balance_dict[sle.batch_no][0] += sle.actual_qty
batch_balance_dict[sle.batch_no][1] += stock_value
if filters.get("segregate_serial_batch_bundle"):
actual_qty = batch_balance_dict[sle.batch_no][0]