Skip to content

Commit

Permalink
fix: incorrect qty after transaction in SLE (#43103)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5ff87ed)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Sep 7, 2024
1 parent 6bd95a6 commit 564213b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ def get_previous_sle_of_current_voucher(args, operator="<", exclude_current_vouc
voucher_no = args.get("voucher_no")
voucher_condition = f"and voucher_no != '{voucher_no}'"

elif args.get("creation"):
elif args.get("creation") and args.get("sle_id"):
creation = args.get("creation")
operator = "<="
voucher_condition = f"and creation < '{creation}'"
Expand Down

0 comments on commit 564213b

Please sign in to comment.