2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00

fix: Rename "No" to "Unit"

- fix eslint issues
This commit is contained in:
Faris Ansari 2019-12-13 12:25:23 +05:30
parent 6ad61976b8
commit fca0a8986f

View File

@ -1,3 +1,5 @@
const frappe = require('frappejs');
module.exports = { module.exports = {
name: 'Item', name: 'Item',
doctype: 'DocType', doctype: 'DocType',
@ -25,8 +27,8 @@ module.exports = {
fieldname: 'unit', fieldname: 'unit',
label: 'Unit Type', label: 'Unit Type',
fieldtype: 'Select', fieldtype: 'Select',
default: 'No', default: 'Unit',
options: ['No', 'Kg', 'Gram', 'Hour', 'Day'] options: ['Unit', 'Kg', 'Gram', 'Hour', 'Day']
}, },
{ {
fieldname: 'incomeAccount', fieldname: 'incomeAccount',
@ -36,7 +38,7 @@ module.exports = {
placeholder: 'Sales', placeholder: 'Sales',
required: 1, required: 1,
disableCreation: true, disableCreation: true,
getFilters: query => { getFilters: () => {
return { return {
isGroup: 0, isGroup: 0,
accountType: 'Income Account' accountType: 'Income Account'
@ -51,7 +53,7 @@ module.exports = {
placeholder: 'Cost of Goods Sold', placeholder: 'Cost of Goods Sold',
required: 1, required: 1,
disableCreation: true, disableCreation: true,
getFilters: query => { getFilters: () => {
return { return {
isGroup: 0, isGroup: 0,
accountType: [ accountType: [