fix: stock balance report issue

This commit is contained in:
Rohit Waghchaure
2026-02-05 14:32:48 +05:30
parent cb4e6ad825
commit 7e584dd84a

View File

@@ -282,10 +282,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 or not entry.serial_no or not entry.serial_and_batch_bundle
):
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
else: