Skip to content

Commit

Permalink
Merge pull request #41102 from rohitwaghchaure/fixed-stock-ledeger-re…
Browse files Browse the repository at this point in the history
…port-balance-qty-13622

fix: balance qty for stock ledger report
  • Loading branch information
rohitwaghchaure authored Apr 19, 2024
2 parents a4b6eda + f00ae0b commit 29153ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/stock/report/stock_ledger/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def execute(filters=None):
actual_qty += flt(sle.actual_qty, precision)
stock_value += sle.stock_value_difference
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:
actual_qty = sle.qty_after_transaction
Expand Down

0 comments on commit 29153ed

Please sign in to comment.