Skip to content

Commit

Permalink
fix: Return against internal purchase invoice (frappe#33635)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 authored Jan 15, 2023
1 parent 242af68 commit 906ad10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def validate_inter_company_reference(self):
self.get("inter_company_reference")
or self.get("inter_company_invoice_reference")
or self.get("inter_company_order_reference")
):
) and not self.get("is_return"):
msg = _("Internal Sale or Delivery Reference missing.")
msg += _("Please create purchase from internal sale or delivery document itself")
frappe.throw(msg, title=_("Internal Sales Reference Missing"))
Expand Down

0 comments on commit 906ad10

Please sign in to comment.