mirror of
https://github.com/frappe/books.git
synced 2025-02-02 12:08:27 +00:00
fix: update Account, Item models Currency fields
This commit is contained in:
parent
b4957c3a64
commit
373684aab7
@ -68,7 +68,6 @@ export default {
|
||||
fieldname: 'balance',
|
||||
label: 'Balance',
|
||||
fieldtype: 'Currency',
|
||||
default: '0',
|
||||
readOnly: 1,
|
||||
},
|
||||
{
|
||||
|
@ -104,9 +104,8 @@ export default {
|
||||
fieldname: 'rate',
|
||||
label: 'Rate',
|
||||
fieldtype: 'Currency',
|
||||
placeholder: '0.00',
|
||||
validate(value) {
|
||||
if (!value) {
|
||||
if (value.lte(0)) {
|
||||
throw new frappe.errors.ValidationError(
|
||||
'Rate must be greater than 0'
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user