mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
refactor: better pop message for Internal Customer validation
-added more meaningful description to message when using "internal Customer" scenario
(cherry picked from commit b132892b25)
This commit is contained in:
committed by
ruthra kumar
parent
208a46fbe4
commit
2834d25ce3
@@ -1817,9 +1817,9 @@ def validate_inter_company_party(doctype, party, company, inter_company_referenc
|
|||||||
companies = [d.company for d in companies]
|
companies = [d.company for d in companies]
|
||||||
if not company in companies:
|
if not company in companies:
|
||||||
frappe.throw(
|
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)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user