Merge branch 'master' of https://gitlab.com/mohit.panjvani/crater-web into fix-small-issue

This commit is contained in:
raishvaria
2019-11-12 09:24:06 +05:30
17 changed files with 53 additions and 37 deletions

View File

@ -582,7 +582,7 @@ export default {
},
openTemplateModal () {
this.openModal({
'title': 'Choose a template',
'title': this.$t('general.choose_template'),
'componentName': 'EstimateTemplate',
'data': this.estimateTemplates
})

View File

@ -159,7 +159,7 @@ export default {
},
openTaxModal () {
this.openModal({
'title': 'Add Tax',
'title': this.$t('settings.tax_types.add_tax'),
'componentName': 'TaxTypeModal'
})
}

View File

@ -591,7 +591,7 @@ export default {
},
openTemplateModal () {
this.openModal({
'title': 'Choose a template',
'title': this.$t('general.choose_template'),
'componentName': 'InvoiceTemplate',
'data': this.invoiceTemplates
})

View File

@ -500,7 +500,7 @@ export default {
},
openTemplateModal () {
this.openModal({
'title': 'Choose a template',
'title': this.$t('general.choose_template'),
'componentName': 'InvoiceTemplate',
'data': this.invoiceTemplates
})

View File

@ -156,7 +156,7 @@ export default {
},
openTaxModal () {
this.openModal({
'title': 'Add Tax',
'title': this.$t('settings.tax_types.add_tax'),
'componentName': 'TaxTypeModal'
})
}

View File

@ -161,15 +161,15 @@ export default {
async removeTax (id, index) {
let response = await this.deleteTaxType(id)
if (response.data.success) {
window.toastr['success'](this.$t('settings.sales_taxes.deleted_message'))
window.toastr['success'](this.$t('settings.tax_types.deleted_message'))
this.id = null
this.$refs.table.refresh()
return true
}window.toastr['success'](this.$t('settings.sales_taxes.already_in_use'))
}window.toastr['success'](this.$t('settings.tax_types.already_in_use'))
},
openTaxModal () {
this.openModal({
'title': 'Add Tax',
'title': this.$t('settings.tax_types.add_tax'),
'componentName': 'TaxTypeModal'
})
this.$refs.table.refresh()