Skip to content

Commit bc9928b

Browse files
Merge pull request #52464 from frappe/mergify/bp/version-16/pr-52461
fix: stock balance report issue (backport #52459) (backport #52461)
2 parents 0312d58 + 4305415 commit bc9928b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

erpnext/stock/report/stock_balance/stock_balance.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,8 @@ def prepare_item_warehouse_map(self, entry, group_by_key):
282282
for field in self.inventory_dimensions:
283283
qty_dict[field] = entry.get(field)
284284

285-
if (
286-
entry.voucher_type == "Stock Reconciliation"
287-
and frappe.get_cached_value(entry.voucher_type, entry.voucher_no, "purpose") != "Opening Stock"
288-
and (not entry.batch_no or entry.serial_no)
285+
if entry.voucher_type == "Stock Reconciliation" and (
286+
not entry.batch_no and not entry.serial_no and not entry.serial_and_batch_bundle
289287
):
290288
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
291289
else:

0 commit comments

Comments
 (0)