mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
fix: stock balance report issue
This commit is contained in:
@@ -198,10 +198,8 @@ class StockBalanceReport:
|
|||||||
for field in self.inventory_dimensions:
|
for field in self.inventory_dimensions:
|
||||||
qty_dict[field] = entry.get(field)
|
qty_dict[field] = entry.get(field)
|
||||||
|
|
||||||
if (
|
if entry.voucher_type == "Stock Reconciliation" and (
|
||||||
entry.voucher_type == "Stock Reconciliation"
|
not entry.batch_no and not entry.serial_no and not entry.serial_and_batch_bundle
|
||||||
and frappe.get_cached_value(entry.voucher_type, entry.voucher_no, "purpose") != "Opening Stock"
|
|
||||||
and (not entry.batch_no or entry.serial_no)
|
|
||||||
):
|
):
|
||||||
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
|
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user