fix issues

This commit is contained in:
makwanar587
2021-12-01 14:46:25 +05:30
parent f3dad8d48b
commit e22f60ff16
5 changed files with 27 additions and 4 deletions

View File

@ -278,6 +278,14 @@ export const useInvoiceStore = (useWindow = false) => {
axios
.post(`/api/v1/invoices/${data.id}/status`, data)
.then((response) => {
let pos = this.invoices.findIndex(
(invoices) => invoices.id === data.id
)
if (this.invoices[pos]) {
this.invoices[pos].status = 'SENT'
}
notificationStore.showNotification({
type: 'success',
message: global.t('invoices.mark_as_sent_successfully'),