diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 7e97a377b..e3b9b9533 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -403,6 +403,21 @@ export default { criticalInvoiceError: 'Critical invoicing error, process stopped', }, }, + negativeBases: { + from: 'From', + to: 'To', + company: 'Company', + country: 'Country', + clientId: 'Client Id', + client: 'Client', + amount: 'Amount', + base: 'Base', + ticketId: 'Ticket Id', + active: 'Active', + hasToInvoice: 'Has to Invoice', + verifiedData: 'Verified Data', + comercial: 'Comercial', + }, }, worker: { pageTitles: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 6bd7954da..0f1dead30 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -405,6 +405,21 @@ export default { criticalInvoiceError: 'Error crítico en la facturación, proceso detenido', }, }, + negativeBases: { + from: 'Desde', + to: 'Hasta', + company: 'Empresa', + country: 'País', + clientId: 'ID Cliente', + client: 'Cliente', + amount: 'Importe', + base: 'Base', + ticketId: 'ID Ticket', + active: 'Activo', + hasToInvoice: 'Tiene que facturar', + verifiedData: 'Datos verificados', + comercial: 'Comercial', + }, }, worker: { pageTitles: { diff --git a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue index 60d5c3eca..5f63c06db 100644 --- a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue +++ b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue @@ -18,33 +18,73 @@ const payload = ref({ }); const columns = ref([ - { label: 'Company', field: 'company', name: 'company', align: 'left' }, - { label: 'Country', field: 'country', name: 'country', align: 'left' }, - { label: 'Client Id', field: 'clientId', name: 'clientId', align: 'left' }, - { label: 'Client', field: 'clientSocialName', name: 'client', align: 'left' }, { - label: 'Amount', + label: 'company', + field: 'company', + name: 'company', + align: 'left', + }, + { + label: 'country', + field: 'country', + name: 'country', + align: 'left', + }, + { + label: 'clientId', + field: 'clientId', + name: 'clientId', + align: 'left', + }, + { + label: 'client', + field: 'clientSocialName', + name: 'client', + align: 'left', + }, + { + label: 'amount', field: 'amount', name: 'amount', align: 'left', format: (value) => toCurrency(value), }, - { label: 'Base', field: 'taxableBase', name: 'base', align: 'left' }, - { label: 'Ticket Id', field: 'ticketFk', name: 'ticketId', align: 'left' }, - { label: 'Active', field: 'isActive', name: 'active', align: 'left' }, { - label: 'Has to invoice', + label: 'base', + field: 'taxableBase', + name: 'base', + align: 'left', + }, + { + label: 'ticketId', + field: 'ticketFk', + name: 'ticketId', + align: 'left', + }, + { + label: 'active', + field: 'isActive', + name: 'active', + align: 'left', + }, + { + label: 'hasToInvoice', field: 'hasToInvoice', name: 'hasToInvoice', align: 'left', }, { - label: 'Verified data', + label: 'verifiedData', field: 'isTaxDataChecked', name: 'verifiedData', align: 'left', }, - { label: 'Comercial', field: 'comercialName', name: 'comercial', align: 'left' }, + { + label: 'comercial', + field: 'comercialName', + name: 'comercial', + align: 'left', + }, ]); const wrapCsvValue = (val, formatFn, row) => { @@ -77,16 +117,10 @@ const exportTable = () => { if (status !== true) { console.log('Browser denied file download...'); - /* $q.notify({ - message: 'Browser denied file download...', - color: 'negative', - icon: 'warning', - }); */ } }; const search = async () => { - console.log(payload.value); rows.value = await invoiceOutService.getNegativeBases(payload.value); }; @@ -121,7 +155,7 @@ onMounted(async () => { type="date" mask="date" class="q-mr-sm q" - :label="t('from')" + :label="t('invoiceOut.negativeBases.from')" /> { type="date" mask="date" class="q-mr-md q" - :label="t('to')" + :label="t('invoiceOut.negativeBases.to')" /> {
- {{ col.label }} + {{ t(`invoiceOut.negativeBases.${col.label}`) }}