fix invoice getter

This commit is contained in:
yogesh_gohil
2019-11-15 12:55:35 +05:30
parent 090c33f63c
commit adbc04846c
3 changed files with 19 additions and 24 deletions

View File

@ -122,7 +122,7 @@ export const updateInvoice = ({ commit, dispatch, state }, data) => {
export const markAsSent = ({ commit, dispatch, state }, data) => {
return new Promise((resolve, reject) => {
window.axios.post(`/api/invoices/mark-as-sent`, data).then((response) => {
// commit(types.UPDATE_INVOICE, response.data)
commit(types.UPDATE_INVOICE_STATUS, {id: data.id, status: 'SENT'})
resolve(response)
}).catch((err) => {
reject(err)