2
0
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:
Revant Nandgaonkar 2018-03-29 12:58:56 +05:30
parent 7bf0cf12d9
commit 2714171d0e
5 changed files with 13 additions and 4 deletions

View File

@ -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");

View File

@ -0,0 +1,7 @@
const Invoice = require('../Invoice/Invoice');
const Quotation = Invoice;
Quotation.name = "Quotation";
Quotation.label = "Quotation";
module.exports = Quotation;

View File

@ -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'),
} }
} }

View File

@ -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',