Skip to content

Commit 350282f

Browse files
Merge pull request #52463 from frappe/mergify/bp/version-15/pr-52462
fix: stock balance report issue (backport #52462)
2 parents 6ba8725 + 3d525ad commit 350282f

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
@@ -198,10 +198,8 @@ def prepare_item_warehouse_map(self, item_warehouse_map, entry, group_by_key):
198198
for field in self.inventory_dimensions:
199199
qty_dict[field] = entry.get(field)
200200

201-
if (
202-
entry.voucher_type == "Stock Reconciliation"
203-
and frappe.get_cached_value(entry.voucher_type, entry.voucher_no, "purpose") != "Opening Stock"
204-
and (not entry.batch_no or entry.serial_no)
201+
if entry.voucher_type == "Stock Reconciliation" and (
202+
not entry.batch_no and not entry.serial_no and not entry.serial_and_batch_bundle
205203
):
206204
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
207205
else:

0 commit comments

Comments
 (0)