2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

fix: Formatting and model name

This commit is contained in:
Faris Ansari 2019-12-18 23:54:58 +05:30
parent d104a4ffa4
commit bd5ee080c2
4 changed files with 41 additions and 37 deletions

View File

@ -1,5 +1,5 @@
module.exports = {
name: 'Dashboard',
name: 'DashboardSettings',
label: 'Dashboard Settings',
doctype: 'DocType',
isSingle: 1,

View File

@ -1,18 +1,18 @@
module.exports = {
"name": "JournalEntrySetting",
"label": "Journal Entry Setting",
"doctype": "DocType",
"isSingle": 1,
"isChild": 0,
"keywordFields": [],
"fields": [
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"required": 1,
"default": "JV"
}
]
}
name: 'JournalEntrySettings',
label: 'Journal Entry Setting',
doctype: 'DocType',
isSingle: 1,
isChild: 0,
keywordFields: [],
fields: [
{
fieldname: 'numberSeries',
label: 'Number Series',
fieldtype: 'Link',
target: 'NumberSeries',
required: 1,
default: 'JV'
}
]
};

View File

@ -1,20 +1,24 @@
const model = require('frappejs/model');
const SalesInvoice = require('../SalesInvoice/SalesInvoice');
const Quotation = model.extend(SalesInvoice, {
name: "Quotation",
label: "Quotation",
settings: "QuotationSettings",
const Quotation = model.extend(
SalesInvoice,
{
name: 'Quotation',
label: 'Quotation',
settings: 'QuotationSettings',
fields: [
{
"fieldname": "items",
"childtype": "QuotationItem"
}
{
fieldname: 'items',
childtype: 'QuotationItem'
}
],
links: []
}, {
},
{
skipFields: ['account'],
overrideProps: ['links']
});
}
);
module.exports = Quotation;

View File

@ -2,13 +2,13 @@ const model = require('frappejs/model');
const Quotation = require('../Quotation/Quotation');
module.exports = model.extend(Quotation, {
name: "SalesOrder",
label: "Sales Order",
settings: "SalesOrderSettings",
fields: [
{
"fieldname": "items",
"childtype": "SalesOrderItem"
}
]
name: 'SalesOrder',
label: 'Sales Order',
settings: 'SalesOrderSettings',
fields: [
{
fieldname: 'items',
childtype: 'SalesOrderItem'
}
]
});