mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 16:02:15 +00:00
fix: balance qty for stock ledger report
(cherry picked from commit f00ae0b92b)
This commit is contained in:
committed by
Mergify
parent
82ce228433
commit
74ed656bb9
@@ -61,6 +61,8 @@ def execute(filters=None):
|
|||||||
actual_qty += flt(sle.actual_qty, precision)
|
actual_qty += flt(sle.actual_qty, precision)
|
||||||
stock_value += sle.stock_value_difference
|
stock_value += sle.stock_value_difference
|
||||||
batch_balance_dict[sle.batch_no] += sle.actual_qty
|
batch_balance_dict[sle.batch_no] += sle.actual_qty
|
||||||
|
if filters.get("segregate_serial_batch_bundle"):
|
||||||
|
actual_qty = batch_balance_dict[sle.batch_no]
|
||||||
|
|
||||||
if sle.voucher_type == "Stock Reconciliation" and not sle.actual_qty:
|
if sle.voucher_type == "Stock Reconciliation" and not sle.actual_qty:
|
||||||
actual_qty = sle.qty_after_transaction
|
actual_qty = sle.qty_after_transaction
|
||||||
|
|||||||
Reference in New Issue
Block a user