2
0
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:
18alantom 2021-12-29 13:12:21 +05:30
parent b4957c3a64
commit 373684aab7
2 changed files with 1 additions and 3 deletions

View File

@ -68,7 +68,6 @@ export default {
fieldname: 'balance',
label: 'Balance',
fieldtype: 'Currency',
default: '0',
readOnly: 1,
},
{

View File

@ -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'
);