2
0
mirror of https://github.com/frappe/books.git synced 2025-01-22 22:58:28 +00:00

Quotation Settings

This commit is contained in:
Revant Nandgaonkar 2018-03-29 13:53:27 +05:30
parent 2714171d0e
commit c5976d1ebc
4 changed files with 11 additions and 0 deletions

View File

@ -3,5 +3,6 @@ const Quotation = Invoice;
Quotation.name = "Quotation";
Quotation.label = "Quotation";
Quotation.settings = "QuotationSettings";
module.exports = Quotation;

View File

@ -0,0 +1,8 @@
const InvoiceSettings = require('../InvoiceSettings/InvoiceSettings');
const QuotationSettings = InvoiceSettings;
QuotationSettings.name = "QuotationSettings";
QuotationSettings.label = "Quotation Settings";
QuotationSettings.fields.find((field)=>{
if (field.fieldname == "numberSeries") field.default = "QTN";
});
module.exports = QuotationSettings;

View File

@ -26,5 +26,6 @@ module.exports = {
JournalEntrySettings: require('./doctype/JournalEntrySettings/JournalEntrySettings.js'),
Quotation: require('./doctype/Quotation/Quotation.js'),
QuotationSettings: require('./doctype/QuotationSettings/QuotationSettings.js'),
}
}

View File

@ -25,6 +25,7 @@ module.exports = {
await naming.createNumberSeries('INV-', 'InvoiceSettings');
await naming.createNumberSeries('PAY-', 'PaymentSettings');
await naming.createNumberSeries('JV-', 'JournalEntrySettings');
await naming.createNumberSeries('QTN-', 'QuotationSettings');
frappe.registerMethod({
method: 'general-ledger',