mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
made some changes and removed changes of vue-multi-select
This commit is contained in:
@ -233,6 +233,8 @@ export default {
|
|||||||
confirm_mark_as_accepted: 'This estimate will be marked as Accepted',
|
confirm_mark_as_accepted: 'This estimate will be marked as Accepted',
|
||||||
confirm_mark_as_rejected: 'This estimate will be marked as Rejected',
|
confirm_mark_as_rejected: 'This estimate will be marked as Rejected',
|
||||||
no_matching_estimates: 'There are no matching estimates!',
|
no_matching_estimates: 'There are no matching estimates!',
|
||||||
|
mark_as_sent_successfully: 'Estimate marked as sent successfully',
|
||||||
|
send_estimate_successfully: 'Estimate sent successfully',
|
||||||
errors: {
|
errors: {
|
||||||
required: 'Field is required'
|
required: 'Field is required'
|
||||||
},
|
},
|
||||||
@ -323,6 +325,8 @@ export default {
|
|||||||
list_of_invoices: 'This section will contain the list of invoices.',
|
list_of_invoices: 'This section will contain the list of invoices.',
|
||||||
select_invoice: 'Select Invoice',
|
select_invoice: 'Select Invoice',
|
||||||
no_matching_invoices: 'There are no matching invoices!',
|
no_matching_invoices: 'There are no matching invoices!',
|
||||||
|
mark_as_sent_successfully: 'Invoice marked as sent successfully',
|
||||||
|
send_invoice_successfully: 'Invoice sent successfully',
|
||||||
item: {
|
item: {
|
||||||
title: 'Item Title',
|
title: 'Item Title',
|
||||||
description: 'Description',
|
description: 'Description',
|
||||||
|
|||||||
@ -237,6 +237,8 @@ export default {
|
|||||||
confirm_mark_as_sent: 'Esta estimación se marcará como enviada',
|
confirm_mark_as_sent: 'Esta estimación se marcará como enviada',
|
||||||
confirm_mark_as_accepted: 'Esta estimación se marcará como Aceptada',
|
confirm_mark_as_accepted: 'Esta estimación se marcará como Aceptada',
|
||||||
confirm_mark_as_rejected: 'Esta estimación se marcará como Rechazada',
|
confirm_mark_as_rejected: 'Esta estimación se marcará como Rechazada',
|
||||||
|
mark_as_sent_successfully: 'Estimación marcada como enviada correctamente',
|
||||||
|
send_estimate_successfully: 'Estimación enviada con éxito',
|
||||||
errors: {
|
errors: {
|
||||||
required: 'Se requiere campo'
|
required: 'Se requiere campo'
|
||||||
},
|
},
|
||||||
@ -326,6 +328,8 @@ export default {
|
|||||||
no_invoices: '¡Aún no hay facturas!',
|
no_invoices: '¡Aún no hay facturas!',
|
||||||
list_of_invoices: 'Esta sección contendrá la lista de facturas.',
|
list_of_invoices: 'Esta sección contendrá la lista de facturas.',
|
||||||
select_invoice: 'Seleccionar factura',
|
select_invoice: 'Seleccionar factura',
|
||||||
|
mark_as_sent_successfully: 'Factura marcada como enviada con éxito',
|
||||||
|
send_invoice_successfully: 'Factura enviada exitosamente',
|
||||||
item: {
|
item: {
|
||||||
title: 'Título del artículo',
|
title: 'Título del artículo',
|
||||||
description: 'Descripción',
|
description: 'Descripción',
|
||||||
|
|||||||
@ -237,6 +237,8 @@ export default {
|
|||||||
confirm_mark_as_sent: 'Cette estimation sera marquée comme envoyé',
|
confirm_mark_as_sent: 'Cette estimation sera marquée comme envoyé',
|
||||||
confirm_mark_as_accepted: 'Cette estimation sera marquée comme acceptée',
|
confirm_mark_as_accepted: 'Cette estimation sera marquée comme acceptée',
|
||||||
confirm_mark_as_rejected: 'Cette estimation sera marquée comme Rejetée',
|
confirm_mark_as_rejected: 'Cette estimation sera marquée comme Rejetée',
|
||||||
|
mark_as_sent_successfully: 'Estimation marquée comme envoyée avec succès',
|
||||||
|
send_estimate_successfully: 'Estimation envoyée avec succès',
|
||||||
errors: {
|
errors: {
|
||||||
required: 'Champ requis'
|
required: 'Champ requis'
|
||||||
},
|
},
|
||||||
@ -326,6 +328,8 @@ export default {
|
|||||||
no_invoices: 'Aucune facture pour le moment!',
|
no_invoices: 'Aucune facture pour le moment!',
|
||||||
list_of_invoices: 'Cette section contiendra la liste des factures.',
|
list_of_invoices: 'Cette section contiendra la liste des factures.',
|
||||||
select_invoice: 'Sélectionnez facture',
|
select_invoice: 'Sélectionnez facture',
|
||||||
|
mark_as_sent_successfully: 'Facture marquée comme envoyée avec succès',
|
||||||
|
send_invoice_successfully: 'Facture envoyée avec succès',
|
||||||
item: {
|
item: {
|
||||||
title: 'Titre de larticle',
|
title: 'Titre de larticle',
|
||||||
description: 'La description',
|
description: 'La description',
|
||||||
|
|||||||
@ -396,7 +396,7 @@ export default {
|
|||||||
swal({
|
swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$tc('estimates.confirm_delete', 1),
|
text: this.$tc('estimates.confirm_delete', 1),
|
||||||
icon: 'error',
|
icon: '/assets/icon/trash-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (willDelete) => {
|
}).then(async (willDelete) => {
|
||||||
@ -416,7 +416,7 @@ export default {
|
|||||||
swal({
|
swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('estimates.confirm_conversion'),
|
text: this.$t('estimates.confirm_conversion'),
|
||||||
icon: 'error',
|
icon: '/assets/icon/envelope-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (willDelete) => {
|
}).then(async (willDelete) => {
|
||||||
@ -433,14 +433,24 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
async onMarkAsSent (id) {
|
async onMarkAsSent (id) {
|
||||||
const data = {
|
swal({
|
||||||
id: id
|
title: this.$t('general.are_you_sure'),
|
||||||
}
|
text: this.$t('estimates.confirm_mark_as_sent'),
|
||||||
let response = await this.markAsSent(data)
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
this.$refs.table.refresh()
|
buttons: true,
|
||||||
if (response.data) {
|
dangerMode: true
|
||||||
window.toastr['success'](this.$tc('estimates.mark_as_sent'))
|
}).then(async (willMarkAsSent) => {
|
||||||
}
|
if (willMarkAsSent) {
|
||||||
|
const data = {
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
let response = await this.markAsSent(data)
|
||||||
|
this.$refs.table.refresh()
|
||||||
|
if (response.data) {
|
||||||
|
window.toastr['success'](this.$tc('estimates.mark_as_sent_successfully'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
async removeInvoice (id) {
|
async removeInvoice (id) {
|
||||||
@ -448,7 +458,7 @@ export default {
|
|||||||
swal({
|
swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$tc('invoices.confirm_delete'),
|
text: this.$tc('invoices.confirm_delete'),
|
||||||
icon: 'error',
|
icon: '/assets/icon/trash-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (willDelete) => {
|
}).then(async (willDelete) => {
|
||||||
@ -465,24 +475,44 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async sendInvoice (id) {
|
async sendInvoice (id) {
|
||||||
const data = {
|
swal({
|
||||||
id: id
|
title: this.$t('general.are_you_sure'),
|
||||||
}
|
text: this.$t('invoices.confirm_send'),
|
||||||
let response = await this.sendEmail(data)
|
icon: '/assets/icon/paper-plane-solid.svg',
|
||||||
this.$refs.table.refresh()
|
buttons: true,
|
||||||
if (response.data) {
|
dangerMode: true
|
||||||
window.toastr['success'](this.$tc('invoices.send_invoice'))
|
}).then(async (willSendInvoice) => {
|
||||||
}
|
if (willSendInvoice) {
|
||||||
|
const data = {
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
let response = await this.sendEmail(data)
|
||||||
|
this.$refs.table.refresh()
|
||||||
|
if (response.data) {
|
||||||
|
window.toastr['success'](this.$tc('invoices.send_invoice_successfully'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
async sentInvoice (id) {
|
async sentInvoice (id) {
|
||||||
const data = {
|
swal({
|
||||||
id: id
|
title: this.$t('general.are_you_sure'),
|
||||||
}
|
text: this.$t('invoices.invoice_mark_as_sent'),
|
||||||
let response = await this.markAsSent(data)
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
this.$refs.table.refresh()
|
buttons: true,
|
||||||
if (response.data) {
|
dangerMode: true
|
||||||
window.toastr['success'](this.$tc('invoices.mark_as_sent'))
|
}).then(async (willMarkAsSend) => {
|
||||||
}
|
if (willMarkAsSend) {
|
||||||
|
const data = {
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
let response = await this.markAsSent(data)
|
||||||
|
this.$refs.table.refresh()
|
||||||
|
if (response.data) {
|
||||||
|
window.toastr['success'](this.$tc('invoices.mark_as_sent_successfully'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -570,7 +570,7 @@ export default {
|
|||||||
let response = await this.markAsSent(data)
|
let response = await this.markAsSent(data)
|
||||||
this.refreshTable()
|
this.refreshTable()
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
window.toastr['success'](this.$tc('estimates.mark_as_sent'))
|
window.toastr['success'](this.$tc('estimates.mark_as_sent_successfully'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -590,7 +590,7 @@ export default {
|
|||||||
let response = await this.sendEmail(data)
|
let response = await this.sendEmail(data)
|
||||||
this.refreshTable()
|
this.refreshTable()
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
window.toastr['success'](this.$tc('estimates.mark_as_sent'))
|
window.toastr['success'](this.$tc('estimates.send_estimate_successfully'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -237,7 +237,7 @@ export default {
|
|||||||
let response = await this.markAsSent({id: this.estimate.id})
|
let response = await this.markAsSent({id: this.estimate.id})
|
||||||
this.isMarkAsSent = false
|
this.isMarkAsSent = false
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
window.toastr['success'](this.$tc('estimates.mark_as_sent'))
|
window.toastr['success'](this.$tc('estimates.mark_as_sent_successfully'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -390,15 +390,15 @@ export default {
|
|||||||
icon: '/assets/icon/paper-plane-solid.svg',
|
icon: '/assets/icon/paper-plane-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (Send_Invoice) => {
|
}).then(async (willSendInvoice) => {
|
||||||
if (Send_Invoice) {
|
if (willSendInvoice) {
|
||||||
const data = {
|
const data = {
|
||||||
id: id
|
id: id
|
||||||
}
|
}
|
||||||
let response = await this.sendEmail(data)
|
let response = await this.sendEmail(data)
|
||||||
this.refreshTable()
|
this.refreshTable()
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
window.toastr['success'](this.$tc('invoices.send_invoice'))
|
window.toastr['success'](this.$tc('invoices.send_invoice_successfully'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -410,15 +410,15 @@ export default {
|
|||||||
icon: '/assets/icon/check-circle-solid.svg',
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (MarkAsSend_Invoice) => {
|
}).then(async (willMarkAsSend) => {
|
||||||
if (MarkAsSend_Invoice) {
|
if (willMarkAsSend) {
|
||||||
const data = {
|
const data = {
|
||||||
id: id
|
id: id
|
||||||
}
|
}
|
||||||
let response = await this.markAsSent(data)
|
let response = await this.markAsSent(data)
|
||||||
this.refreshTable()
|
this.refreshTable()
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
window.toastr['success'](this.$tc('invoices.mark_as_sent'))
|
window.toastr['success'](this.$tc('invoices.mark_as_sent_successfully'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -274,7 +274,6 @@ fieldset[disabled] .multiselect {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
padding-bottom: 70px;
|
|
||||||
}
|
}
|
||||||
.multiselect--above .multiselect__content-wrapper {
|
.multiselect--above .multiselect__content-wrapper {
|
||||||
bottom: 100%;
|
bottom: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user