fix i18n headers

This commit is contained in:
Joel Crespo 2023-11-22 07:32:20 -03:00
parent 5246427e8d
commit 010ddd01a6
3 changed files with 84 additions and 20 deletions

View File

@ -403,6 +403,21 @@ export default {
criticalInvoiceError: 'Critical invoicing error, process stopped', 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: { worker: {
pageTitles: { pageTitles: {

View File

@ -405,6 +405,21 @@ export default {
criticalInvoiceError: 'Error crítico en la facturación, proceso detenido', 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: { worker: {
pageTitles: { pageTitles: {

View File

@ -18,33 +18,73 @@ const payload = ref({
}); });
const columns = 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', field: 'amount',
name: 'amount', name: 'amount',
align: 'left', align: 'left',
format: (value) => toCurrency(value), 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', field: 'hasToInvoice',
name: 'hasToInvoice', name: 'hasToInvoice',
align: 'left', align: 'left',
}, },
{ {
label: 'Verified data', label: 'verifiedData',
field: 'isTaxDataChecked', field: 'isTaxDataChecked',
name: 'verifiedData', name: 'verifiedData',
align: 'left', align: 'left',
}, },
{ label: 'Comercial', field: 'comercialName', name: 'comercial', align: 'left' }, {
label: 'comercial',
field: 'comercialName',
name: 'comercial',
align: 'left',
},
]); ]);
const wrapCsvValue = (val, formatFn, row) => { const wrapCsvValue = (val, formatFn, row) => {
@ -77,16 +117,10 @@ const exportTable = () => {
if (status !== true) { if (status !== true) {
console.log('Browser denied file download...'); console.log('Browser denied file download...');
/* $q.notify({
message: 'Browser denied file download...',
color: 'negative',
icon: 'warning',
}); */
} }
}; };
const search = async () => { const search = async () => {
console.log(payload.value);
rows.value = await invoiceOutService.getNegativeBases(payload.value); rows.value = await invoiceOutService.getNegativeBases(payload.value);
}; };
@ -121,7 +155,7 @@ onMounted(async () => {
type="date" type="date"
mask="date" mask="date"
class="q-mr-sm q" class="q-mr-sm q"
:label="t('from')" :label="t('invoiceOut.negativeBases.from')"
/> />
<QInput <QInput
dense dense
@ -129,7 +163,7 @@ onMounted(async () => {
type="date" type="date"
mask="date" mask="date"
class="q-mr-md q" class="q-mr-md q"
:label="t('to')" :label="t('invoiceOut.negativeBases.to')"
/> />
<QBtn <QBtn
color="primary" color="primary"
@ -158,7 +192,7 @@ onMounted(async () => {
<QTr :props="props" class="full-height"> <QTr :props="props" class="full-height">
<QTh v-for="col in props.cols" :key="col.name" :props="props"> <QTh v-for="col in props.cols" :key="col.name" :props="props">
<div class="column justify-start items-start full-height"> <div class="column justify-start items-start full-height">
{{ col.label }} {{ t(`invoiceOut.negativeBases.${col.label}`) }}
<QInput <QInput
:disable=" :disable="
[ [