fix(ux): fix unstranslated text in msgprint/throw

This commit is contained in:
Ankush Menat
2021-05-25 19:54:40 +05:30
parent 99636c6aca
commit ff96bdf0c1
11 changed files with 23 additions and 22 deletions

View File

@@ -264,7 +264,7 @@ def make_loan_write_off(loan, company=None, posting_date=None, amount=0, as_dict
pending_amount = amounts['pending_principal_amount']
if amount and (amount > pending_amount):
frappe.throw('Write Off amount cannot be greater than pending loan amount')
frappe.throw(_('Write Off amount cannot be greater than pending loan amount'))
if not amount:
amount = pending_amount