2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09: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 = {
name: 'Item',
doctype: 'DocType',
@ -25,8 +27,8 @@ module.exports = {
fieldname: 'unit',
label: 'Unit Type',
fieldtype: 'Select',
default: 'No',
options: ['No', 'Kg', 'Gram', 'Hour', 'Day']
default: 'Unit',
options: ['Unit', 'Kg', 'Gram', 'Hour', 'Day']
},
{
fieldname: 'incomeAccount',
@ -36,7 +38,7 @@ module.exports = {
placeholder: 'Sales',
required: 1,
disableCreation: true,
getFilters: query => {
getFilters: () => {
return {
isGroup: 0,
accountType: 'Income Account'
@ -51,7 +53,7 @@ module.exports = {
placeholder: 'Cost of Goods Sold',
required: 1,
disableCreation: true,
getFilters: query => {
getFilters: () => {
return {
isGroup: 0,
accountType: [