mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
improve message when trying to pay 0
This commit is contained in:
parent
093a297856
commit
59c57c289b
@ -119,7 +119,7 @@ module.exports = {
|
|||||||
} else if (value === 0) {
|
} else if (value === 0) {
|
||||||
throw new frappe.errors.ValidationError(
|
throw new frappe.errors.ValidationError(
|
||||||
frappe._(
|
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.`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user