fix: correct sle voucher_type comparison in get_ref_doctype

This commit is contained in:
Sanjesh
2026-03-01 16:31:53 +05:30
parent 061d2e45a9
commit cffb59ae73

View File

@@ -1303,7 +1303,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"