Merge pull request #53065 from frappe/mergify/bp/version-15-hotfix/pr-53062

fix: correct sle voucher_type comparison in get_ref_doctype (backport #53062)
This commit is contained in:
Mihir Kandoi
2026-03-01 21:01:39 +05:30
committed by GitHub

View File

@@ -1299,7 +1299,7 @@ class update_entries_after:
else:
if sle.voucher_type in ("Delivery Note", "Sales Invoice"):
ref_doctype = "Packed Item"
elif sle == "Subcontracting Receipt":
elif sle.voucher_type == "Subcontracting Receipt":
ref_doctype = "Subcontracting Receipt Supplied Item"
else:
ref_doctype = "Purchase Receipt Item Supplied"