0
0
Fork 0

refs #5835 refactor

This commit is contained in:
Jorge Penadés 2023-12-04 15:26:19 +01:00
parent 3d046e4bf7
commit b43985b9db
3 changed files with 13 additions and 9 deletions

View File

@ -347,7 +347,7 @@ export default {
},
invoiceOut: {
pageTitles: {
invoiceOuts: 'Invoices Out',
invoiceOuts: 'Create invoice',
list: 'List',
createInvoiceOut: 'Create invoice out',
summary: 'Summary',

View File

@ -347,7 +347,7 @@ export default {
},
invoiceOut: {
pageTitles: {
invoiceOuts: 'Fact. emitidas',
invoiceOuts: 'Crear factura',
list: 'Listado',
createInvoiceOut: 'Crear fact. emitida',
summary: 'Resumen',

View File

@ -193,6 +193,10 @@ function taxRate(taxableBase, rate) {
}
return 0;
}
function getLink(param) {
return `#/invoice-in/${entityId.value}/${param}`;
}
</script>
<template>
@ -208,7 +212,7 @@ function taxRate(taxableBase, rate) {
<!--Basic Data-->
<QCard class="vn-one">
<QCardSection class="q-pa-none">
<a class="header" :href="`#/invoice-in/${entityId}/basic-data`">
<a class="header" :href="getLink('basic-data')">
{{ t('invoiceIn.pageTitles.basicData') }}
<QIcon name="open_in_new" color="primary" />
</a>
@ -232,7 +236,7 @@ function taxRate(taxableBase, rate) {
</QCard>
<QCard class="vn-one">
<QCardSection class="q-pa-none">
<a class="header" :href="`#/invoice-in/${entityId}/basic-data`">
<a class="header" :href="getLink('basic-data')">
{{ t('invoiceIn.pageTitles.basicData') }}
<QIcon name="open_in_new" color="primary" />
</a>
@ -257,7 +261,7 @@ function taxRate(taxableBase, rate) {
</QCard>
<QCard class="vn-one">
<QCardSection class="q-pa-none">
<a class="header" :href="`#/invoice-in/${entityId}/basic-data`">
<a class="header" :href="getLink('basic-data')">
{{ t('invoiceIn.pageTitles.basicData') }}
<QIcon name="open_in_new" color="primary" />
</a>
@ -281,7 +285,7 @@ function taxRate(taxableBase, rate) {
</QCard>
<QCard class="vn-one">
<QCardSection class="q-pa-none">
<a class="header" :href="`#/invoice-in/${entityId}/basic-data`">
<a class="header" :href="getLink('basic-data')">
{{ t('invoiceIn.pageTitles.basicData') }}
<QIcon name="open_in_new" color="primary" />
</a>
@ -317,7 +321,7 @@ function taxRate(taxableBase, rate) {
</QCard>
<!--Vat-->
<QCard v-if="invoiceIn.invoiceInTax.length">
<a class="header" :href="`#/invoice-in/${entityId}/vat`">
<a class="header" :href="getLink('vat')">
{{ t('invoiceIn.card.vat') }}
<QIcon name="open_in_new" color="primary" />
</a>
@ -350,7 +354,7 @@ function taxRate(taxableBase, rate) {
</QCard>
<!--Due Day-->
<QCard v-if="invoiceIn.invoiceInDueDay.length">
<a class="header" :href="`#/invoice-in/${entityId}/due-day`">
<a class="header" :href="getLink('due-day')">
{{ t('invoiceIn.card.dueDay') }}
<QIcon name="open_in_new" color="primary" />
</a>
@ -380,7 +384,7 @@ function taxRate(taxableBase, rate) {
</QCard>
<!--Intrastat-->
<QCard v-if="invoiceIn.invoiceInIntrastat.length">
<a class="header" :href="`#/invoice-in/${entityId}/intrastat`">
<a class="header" :href="getUrl('intrastat')">
{{ t('invoiceIn.card.intrastat') }}
<QIcon name="open_in_new" color="primary" />
</a>