mirror of
https://github.com/frappe/books.git
synced 2025-01-22 22:58:28 +00:00
fix: Item Rate validation
This commit is contained in:
parent
7d4d2e6c50
commit
ce864c5d0c
@ -93,7 +93,14 @@ module.exports = {
|
||||
fieldname: 'rate',
|
||||
label: 'Rate',
|
||||
fieldtype: 'Currency',
|
||||
placeholder: '0.00'
|
||||
placeholder: '0.00',
|
||||
validate(value) {
|
||||
if (!value) {
|
||||
throw new frappe.errors.ValidationError(
|
||||
'Rate must be greater than 0'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
quickEditFields: ['rate', 'unit', 'itemType', 'tax', 'description'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user