Skip to content

Commit

Permalink
Merge pull request #43107 from frappe/mergify/bp/version-15/pr-43105
Browse files Browse the repository at this point in the history
fix: incorrect qty after transaction in SLE (backport #43103) (backport #43105)
  • Loading branch information
rohitwaghchaure authored Sep 7, 2024
2 parents 7f261f3 + 0bc947f commit 4649cf0
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 4649cf0

Please sign in to comment.