Skip to content

Commit

Permalink
Merge pull request #45360 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-45242

fix: include pos invoice in modifing key for returned item validation (backport #45242)
  • Loading branch information
ruthra-kumar authored Jan 21, 2025
2 parents abf9369 + 70ed8b7 commit 10d99f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/sales_and_purchase_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def validate_returned_items(doc):
for d in doc.get("items"):
key = d.item_code
raise_exception = False
if doc.doctype in ["Purchase Receipt", "Purchase Invoice", "Sales Invoice"]:
if doc.doctype in ["Purchase Receipt", "Purchase Invoice", "Sales Invoice", "POS Invoice"]:
field = frappe.scrub(doc.doctype) + "_item"
if d.get(field):
key = (d.item_code, d.get(field))
Expand Down

0 comments on commit 10d99f4

Please sign in to comment.