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:
parent
6ad61976b8
commit
fca0a8986f
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user