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:
parent
d104a4ffa4
commit
bd5ee080c2
@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
name: 'Dashboard',
|
||||
name: 'DashboardSettings',
|
||||
label: 'Dashboard Settings',
|
||||
doctype: 'DocType',
|
||||
isSingle: 1,
|
||||
|
@ -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'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user