mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-29 17:01:07 -04:00
Separated client form into tabs. Fixed deleting client. Implemented custom fields for client and invoice client fields. Removed "hardcoded" client_reg_no and client_vat_no fields from client and invoice model - can be replaced with custom fields. Abstracted invoice-rows management to separate store namespace. Invoice client fields are prefilled from selected client.
This commit is contained in:
@ -52,13 +52,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
updateProp(props) {
|
||||
this.$store.dispatch('invoices/updateInvoiceRow', {
|
||||
this.$store.dispatch('invoiceRows/updateInvoiceRow', {
|
||||
props,
|
||||
id: this.row.id,
|
||||
});
|
||||
},
|
||||
async removeRow(row) {
|
||||
await this.$store.dispatch('invoices/removeRow', row);
|
||||
await this.$store.dispatch('invoiceRows/removeRow', row.id);
|
||||
this.updateProp();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user