close #2267 Enhancement: Invoice- settings changes are not saved when you choose a invoice template

This commit is contained in:
Cüneyt Şentürk 2021-10-05 23:49:44 +03:00
parent a696f71069
commit 5ca55088cf

View File

@ -103,6 +103,16 @@ const app = new Vue({
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;
},