Skip to content

Commit

Permalink
fix: Return against internal purchase invoice (frappe#33635)
Browse files Browse the repository at this point in the history
fix: Return against internal purchase invoice (frappe#33635)

(cherry picked from commit 906ad10)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
2 people authored and SaiFi0102 committed Feb 22, 2023
1 parent f6ff563 commit c5eeeb1
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 @@ -383,7 +383,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 c5eeeb1

Please sign in to comment.