close #2267 Enhancement: Invoice- settings changes are not saved when you choose a invoice template
This commit is contained in:
parent
a696f71069
commit
5ca55088cf
10
resources/assets/js/views/settings/settings.js
vendored
10
resources/assets/js/views/settings/settings.js
vendored
@ -103,6 +103,16 @@ const app = new Vue({
|
|||||||
|
|
||||||
this.invoice_form = new Form('template');
|
this.invoice_form = new Form('template');
|
||||||
|
|
||||||
|
let skips = [
|
||||||
|
'_method', '_prefix', '_token', 'action', 'errors', 'loading', 'method', 'response'
|
||||||
|
];
|
||||||
|
|
||||||
|
for (const [key, value] of Object.entries(this.form)) {
|
||||||
|
if (!skips.includes(key)) {
|
||||||
|
this.invoice_form[key] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.invoice_form.template = this.invoice_form._template;
|
this.invoice_form.template = this.invoice_form._template;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user