Skip to content

Commit

Permalink
Merge pull request frappe#41107 from frappe/mergify/bp/version-15-hot…
Browse files Browse the repository at this point in the history
…fix/pr-41102

fix: balance qty for stock ledger report (backport frappe#41102)
  • Loading branch information
rohitwaghchaure authored Apr 20, 2024
2 parents 82ce228 + 74ed656 commit 77a764e
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 77a764e

Please sign in to comment.