fix status action in view invoice

This commit is contained in:
satyaprakash10
2019-11-14 19:54:23 +05:30
parent 5aeac185ea
commit 090c33f63c
5 changed files with 51 additions and 8 deletions

View File

@ -28,6 +28,12 @@ export default {
state.invoices[pos] = data.invoice
},
[types.UPDATE_INVOICE_STATUS] (state, data) {
let pos = state.invoices.findIndex(invoice => invoice.id === data.id)
state.invoices[pos].status = data.status
},
[types.RESET_SELECTED_INVOICES] (state, data) {
state.selectedInvoices = []
state.selectAllField = false