Skip to content

Commit

Permalink
fix: incorrect qty after transaction in SLE (backport #43103) (#43104)
Browse files Browse the repository at this point in the history
fix: incorrect qty after transaction in SLE (#43103)

(cherry picked from commit 5ff87ed)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Sep 7, 2024
1 parent 4bd7ce3 commit 77892f4
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 @@ -1237,7 +1237,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 77892f4

Please sign in to comment.