Skip to content

Commit

Permalink
Merge pull request #43108 from frappe/mergify/bp/version-14/pr-43104
Browse files Browse the repository at this point in the history
fix: incorrect qty after transaction in SLE (backport #43103) (backport #43104)
  • Loading branch information
rohitwaghchaure authored Sep 7, 2024
2 parents 610f74c + f054261 commit 873962a
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 873962a

Please sign in to comment.