Merge pull request #31497 from HarryPaulo/develop

fix: translated message for credit limit blocking
This commit is contained in:
Deepesh Garg 2022-07-22 14:22:58 +05:30 committed by GitHub
commit 538f5a9964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,11 +527,14 @@ def check_credit_limit(customer, company, ignore_outstanding_sales_order=False,
_("Please contact your administrator to extend the credit limits for {0}.").format(customer)
)
message = """Please contact any of the following users to extend the credit limits for {0}:
<br><br><ul><li>{1}</li></ul>""".format(
customer, "<li>".join(credit_controller_users_formatted)
user_list = "<br><br><ul><li>{0}</li></ul>".format(
"<li>".join(credit_controller_users_formatted)
)
message = _(
"Please contact any of the following users to extend the credit limits for {0}: {1}"
).format(customer, user_list)
# if the current user does not have permissions to override credit limit,
# prompt them to send out an email to the controller users
frappe.msgprint(