From b132892b257dcad80cb85092b3b19cfc5532ece6 Mon Sep 17 00:00:00 2001 From: Wolfram Schmidt Date: Sun, 24 Mar 2024 07:43:40 +0100 Subject: [PATCH] refactor: better pop message for Internal Customer validation -added more meaningful description to message when using "internal Customer" scenario --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index aa0048df019..253ecb1da48 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -1954,9 +1954,9 @@ def validate_inter_company_party(doctype, party, company, inter_company_referenc companies = [d.company for d in companies] if company not in companies: frappe.throw( - _("{0} not allowed to transact with {1}. Please change the Company.").format( - _(partytype), company - ) + _( + "{0} not allowed to transact with {1}. Please change the Company or add the Company in the 'Allowed To Transact With'-Section in the Customer record." + ).format(_(partytype), company) )