From a29ed40ad36a797094009f0fd75317350b90f04f Mon Sep 17 00:00:00 2001 From: Kenneth Sequeira <33246109+kennethsequeira@users.noreply.github.com> Date: Mon, 27 May 2019 11:47:07 +0530 Subject: [PATCH] fix: Improve error message (#17747) Change ```Allocated amount can not greater than unadjusted amount``` to ```Allocated amount cannot be greater than unadjusted amount``` ```Allocated amount can not be negative``` to ```Allocated amount cannot be negative``` --- erpnext/accounts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 7c9e9b88d6..96f64e8db3 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -378,9 +378,9 @@ def check_if_advance_entry_modified(args): def validate_allocated_amount(args): if args.get("allocated_amount") < 0: - throw(_("Allocated amount can not be negative")) + throw(_("Allocated amount cannot be negative")) elif args.get("allocated_amount") > args.get("unadjusted_amount"): - throw(_("Allocated amount can not greater than unadjusted amount")) + throw(_("Allocated amount cannot be greater than unadjusted amount")) def update_reference_in_journal_entry(d, jv_obj): """