2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

improve message when trying to pay 0

This commit is contained in:
Ankit Singhaniya 2021-11-01 23:09:31 +05:30 committed by GitHub
parent 093a297856
commit 59c57c289b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ module.exports = {
} else if (value === 0) {
throw new frappe.errors.ValidationError(
frappe._(
`Payment amount cannot be ${frappe.format(value, 'Currency')}`
`Payment amount cannot be ${frappe.format(value, 'Currency')}. Amount has been reset to max viable amount.`
)
);
}