fix(ux): overbiling message in SO->SI, PO->PI (#28088)

This commit is contained in:
Ankush Menat
2021-10-27 10:30:05 +05:30
committed by GitHub
parent a87c201785
commit 6ec047cba9
2 changed files with 19 additions and 3 deletions

View File

@@ -1032,7 +1032,7 @@ class AccountsController(TransactionBase):
if role_allowed_to_over_bill in user_roles and total_overbilled_amt > 0.1:
frappe.msgprint(_("Overbilling of {} ignored because you have {} role.")
.format(total_overbilled_amt, role_allowed_to_over_bill), title=_("Warning"), indicator="orange")
.format(total_overbilled_amt, role_allowed_to_over_bill), indicator="orange", alert=True)
def throw_overbill_exception(self, item, max_allowed_amt):
frappe.throw(_("Cannot overbill for Item {0} in row {1} more than {2}. To allow over-billing, please set allowance in Accounts Settings")