Merge pull request #52463 from frappe/mergify/bp/version-15/pr-52462

fix: stock balance report issue (backport #52462)
This commit is contained in:
rohitwaghchaure
2026-02-05 16:20:43 +05:30
committed by GitHub

View File

@@ -198,10 +198,8 @@ class StockBalanceReport:
for field in self.inventory_dimensions:
qty_dict[field] = entry.get(field)
if (
entry.voucher_type == "Stock Reconciliation"
and frappe.get_cached_value(entry.voucher_type, entry.voucher_no, "purpose") != "Opening Stock"
and (not entry.batch_no or entry.serial_no)
if entry.voucher_type == "Stock Reconciliation" and (
not entry.batch_no and not entry.serial_no and not entry.serial_and_batch_bundle
):
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
else: