mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Quotation added : Inherits from Invoice
This commit is contained in:
parent
7bf0cf12d9
commit
2714171d0e
@ -22,6 +22,7 @@ module.exports = {
|
|||||||
frappe.desk.menu.addItem('Accounts', '#list/Account');
|
frappe.desk.menu.addItem('Accounts', '#list/Account');
|
||||||
frappe.desk.menu.addItem('Items', '#list/Item');
|
frappe.desk.menu.addItem('Items', '#list/Item');
|
||||||
frappe.desk.menu.addItem('Customers', '#list/Customer');
|
frappe.desk.menu.addItem('Customers', '#list/Customer');
|
||||||
|
frappe.desk.menu.addItem('Quotation', '#list/Quotation');
|
||||||
frappe.desk.menu.addItem('Invoice', '#list/Invoice');
|
frappe.desk.menu.addItem('Invoice', '#list/Invoice');
|
||||||
frappe.desk.menu.addItem('Journal Entry', '#list/JournalEntry');
|
frappe.desk.menu.addItem('Journal Entry', '#list/JournalEntry');
|
||||||
frappe.desk.menu.addItem('Address', "#list/Address");
|
frappe.desk.menu.addItem('Address', "#list/Address");
|
||||||
|
7
models/doctype/Quotation/Quotation.js
Normal file
7
models/doctype/Quotation/Quotation.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
const Invoice = require('../Invoice/Invoice');
|
||||||
|
const Quotation = Invoice;
|
||||||
|
|
||||||
|
Quotation.name = "Quotation";
|
||||||
|
Quotation.label = "Quotation";
|
||||||
|
|
||||||
|
module.exports = Quotation;
|
@ -23,7 +23,8 @@ module.exports = {
|
|||||||
|
|
||||||
JournalEntry: require('./doctype/JournalEntry/JournalEntry.js'),
|
JournalEntry: require('./doctype/JournalEntry/JournalEntry.js'),
|
||||||
JournalEntryAccount: require('./doctype/JournalEntryAccount/JournalEntryAccount.js'),
|
JournalEntryAccount: require('./doctype/JournalEntryAccount/JournalEntryAccount.js'),
|
||||||
JournalEntrySetting: require('./doctype/JournalEntrySetting/JournalEntrySetting.js'),
|
JournalEntrySettings: require('./doctype/JournalEntrySettings/JournalEntrySettings.js'),
|
||||||
|
|
||||||
|
Quotation: require('./doctype/Quotation/Quotation.js'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,9 @@ module.exports = {
|
|||||||
frappe.syncDoc(require('../fixtures/invoicePrint'));
|
frappe.syncDoc(require('../fixtures/invoicePrint'));
|
||||||
|
|
||||||
// init naming series if missing
|
// init naming series if missing
|
||||||
await naming.createNumberSeries('INV-', 'InvoiceSetting');
|
await naming.createNumberSeries('INV-', 'InvoiceSettings');
|
||||||
await naming.createNumberSeries('PAY-', 'PaymentSetting');
|
await naming.createNumberSeries('PAY-', 'PaymentSettings');
|
||||||
await naming.createNumberSeries('JV-', 'JournalEntrySetting');
|
await naming.createNumberSeries('JV-', 'JournalEntrySettings');
|
||||||
|
|
||||||
frappe.registerMethod({
|
frappe.registerMethod({
|
||||||
method: 'general-ledger',
|
method: 'general-ledger',
|
||||||
|
Loading…
Reference in New Issue
Block a user