mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
Merge pull request #43107 from frappe/mergify/bp/version-15/pr-43105
fix: incorrect qty after transaction in SLE (backport #43103) (backport #43105)
This commit is contained in:
@@ -1527,7 +1527,7 @@ def get_previous_sle_of_current_voucher(args, operator="<", exclude_current_vouc
|
|||||||
voucher_no = args.get("voucher_no")
|
voucher_no = args.get("voucher_no")
|
||||||
voucher_condition = f"and voucher_no != '{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")
|
creation = args.get("creation")
|
||||||
operator = "<="
|
operator = "<="
|
||||||
voucher_condition = f"and creation < '{creation}'"
|
voucher_condition = f"and creation < '{creation}'"
|
||||||
|
|||||||
Reference in New Issue
Block a user