Do not prompt to update invoice client/team details when closing client/team modal.

Always pass invoice id when updating.
When changing team info re-prefill invoice team info.
This commit is contained in:
HenriT
2021-04-13 16:27:28 +03:00
parent 0a5d45e64b
commit e23e1f720e
13 changed files with 144 additions and 93 deletions

View File

@ -101,7 +101,10 @@ export default {
this.$store.dispatch('invoices/getInvoice', this.$route.params.id);
},
updateProp(props) {
this.$store.dispatch('invoices/updateInvoice', props);
this.$store.dispatch('invoices/updateInvoice', {
props,
invoiceId: this.invoice.id,
});
},
addRow() {
this.$store.dispatch('invoiceRows/addRow', this.invoice.id);