Skip to content

Commit

Permalink
fix: incorrect balance qty in the stock ledger report
Browse files Browse the repository at this point in the history
(cherry picked from commit cbdaab9)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Mar 30, 2023
1 parent e54ff34 commit dab1f1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/report/stock_ledger/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def execute(filters=None):
conversion_factors.append(0)

actual_qty = stock_value = 0
if opening_row:
actual_qty = opening_row.get("qty_after_transaction")
stock_value = opening_row.get("stock_value")

available_serial_nos = {}
for sle in sl_entries:
Expand Down

0 comments on commit dab1f1a

Please sign in to comment.