mirror of
https://github.com/frappe/books.git
synced 2025-01-22 22:58:28 +00:00
Quotation Settings
This commit is contained in:
parent
2714171d0e
commit
c5976d1ebc
@ -3,5 +3,6 @@ const Quotation = Invoice;
|
||||
|
||||
Quotation.name = "Quotation";
|
||||
Quotation.label = "Quotation";
|
||||
Quotation.settings = "QuotationSettings";
|
||||
|
||||
module.exports = Quotation;
|
||||
|
8
models/doctype/QuotationSettings/QuotationSettings.js
Normal file
8
models/doctype/QuotationSettings/QuotationSettings.js
Normal 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;
|
@ -26,5 +26,6 @@ module.exports = {
|
||||
JournalEntrySettings: require('./doctype/JournalEntrySettings/JournalEntrySettings.js'),
|
||||
|
||||
Quotation: require('./doctype/Quotation/Quotation.js'),
|
||||
QuotationSettings: require('./doctype/QuotationSettings/QuotationSettings.js'),
|
||||
}
|
||||
}
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user