Merge branch 'master'

This commit is contained in:
Mohit Panjwani
2021-12-01 19:22:24 +05:30
2 changed files with 13 additions and 6 deletions

View File

@ -109,7 +109,7 @@ async function removeMultipleRecurringInvoices(id = null) {
.deleteMultipleRecurringInvoices(id)
.then((res) => {
if (res.data.success) {
// refreshTable()
props.table && props.table.refresh()
recurringInvoiceStore.$patch((state) => {
state.selectedRecurringInvoices = []
state.selectAllField = false

View File

@ -278,12 +278,19 @@ export const useEstimateStore = (useWindow = false) => {
axios
.post(`/api/v1/estimates/${data.id}/status`, data)
.then((response) => {
const notificationStore = useNotificationStore()
let pos = this.estimates.findIndex(
(estimate) => estimate.id === data.id
)
if (this.estimates[pos]) {
this.estimates[pos].status = 'ACCEPTED'
notificationStore.showNotification({
type: 'success',
message: global.t('estimates.marked_as_accepted_message'),
})
const notificationStore = useNotificationStore()
notificationStore.showNotification({
type: 'success',
message: global.t('estimates.marked_as_accepted_message'),
})
}
resolve(response)
})
.catch((err) => {