Skip to content

Commit

Permalink
Merge pull request frappe#34664 from rohitwaghchaure/fixed-incorrect-…
Browse files Browse the repository at this point in the history
…balance-qty-stock-ledger

fix: incorrect balance qty in the stock ledger report
  • Loading branch information
rohitwaghchaure authored Mar 30, 2023
2 parents ddb17a8 + cbdaab9 commit 06eac67
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 @@ -34,6 +34,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 = {}
inventory_dimension_filters_applied = check_inventory_dimension_filters_applied(filters)
Expand Down

0 comments on commit 06eac67

Please sign in to comment.