forked from verdnatura/salix-front
fix: refs #4466 redirect to rectificatives
This commit is contained in:
parent
21dc1b4eea
commit
8d33408bda
|
@ -165,77 +165,47 @@ const onSave = (data) => data?.deletes && router.push(`/invoice-in/${invoiceId}/
|
|||
<QList>
|
||||
<QItem>
|
||||
<QInput
|
||||
class="full-width"
|
||||
:label="t('Original invoice')"
|
||||
v-model="props.row['correctedFk']"
|
||||
readonly
|
||||
/>
|
||||
</QItem>
|
||||
<!-- <QItem>
|
||||
<QInput
|
||||
:label="t('Taxable base')"
|
||||
:class="{
|
||||
'no-pointer-events': isNotEuro(
|
||||
invoiceIn.currency.code
|
||||
),
|
||||
}"
|
||||
class="full-width"
|
||||
:disable="isNotEuro(invoiceIn.currency.code)"
|
||||
clear-icon="close"
|
||||
v-model="props.row.taxableBase"
|
||||
clearable
|
||||
>
|
||||
<template #append>
|
||||
<QIcon name="euro" size="xs" flat />
|
||||
</template>
|
||||
</QInput>
|
||||
</QItem>
|
||||
<QItem>
|
||||
<VnSelectFilter
|
||||
:label="t('Sage iva')"
|
||||
class="full-width"
|
||||
v-model="props.row['taxTypeSageFk']"
|
||||
:options="sageTaxTypes"
|
||||
v-model="props.row['cplusRectificationTypeFk']"
|
||||
:options="cplusRectificationTypes"
|
||||
option-value="id"
|
||||
option-label="vat"
|
||||
:filter-options="['id', 'vat']"
|
||||
>
|
||||
<template #option="scope">
|
||||
<QItem v-bind="scope.itemProps">
|
||||
<QItemSection>
|
||||
<QItemLabel>{{
|
||||
scope.opt.vat
|
||||
}}</QItemLabel>
|
||||
<QItemLabel>
|
||||
{{ `#${scope.opt.id}` }}
|
||||
</QItemLabel>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
</template>
|
||||
</VnSelectFilter>
|
||||
option-label="description"
|
||||
:label="useFirstUpper(t('globals.type'))"
|
||||
:readonly="props.row.invoiceIn.isBooked"
|
||||
/>
|
||||
</QItem>
|
||||
<QItem>
|
||||
<VnSelectFilter
|
||||
class="full-width"
|
||||
v-model="props.row['transactionTypeSageFk']"
|
||||
:options="sageTransactionTypes"
|
||||
v-model="props.row['siiTypeInvoiceOutFk']"
|
||||
:options="siiTypeInvoiceOuts"
|
||||
option-value="id"
|
||||
option-label="transaction"
|
||||
:filter-options="['id', 'transaction']"
|
||||
>
|
||||
<template #option="scope">
|
||||
<QItem v-bind="scope.itemProps">
|
||||
<QItemSection>
|
||||
<QItemLabel>{{
|
||||
scope.opt.transaction
|
||||
}}</QItemLabel>
|
||||
<QItemLabel>
|
||||
{{ `#${scope.opt.id}` }}
|
||||
</QItemLabel>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
</template>
|
||||
</VnSelectFilter>
|
||||
</QItem> -->
|
||||
option-label="code"
|
||||
:label="useFirstUpper(t('globals.class'))"
|
||||
:rules="[requiredFieldRule]"
|
||||
:readonly="props.row.invoiceIn.isBooked"
|
||||
/>
|
||||
</QItem>
|
||||
<QItem>
|
||||
<VnSelectFilter
|
||||
class="full-width"
|
||||
v-model="props.row['invoiceCorrectionTypeFk']"
|
||||
:options="invoiceCorrectionTypes"
|
||||
option-value="id"
|
||||
option-label="description"
|
||||
:label="useFirstUpper(t('globals.reason'))"
|
||||
:rules="[requiredFieldRule]"
|
||||
:readonly="props.row.invoiceIn.isBooked"
|
||||
/>
|
||||
</QItem>
|
||||
</QList>
|
||||
</QCard>
|
||||
</div>
|
||||
|
|
|
@ -112,16 +112,13 @@ const routes = reactive({
|
|||
};
|
||||
},
|
||||
getCorrection: (invoiceInCorrection) => {
|
||||
if (invoiceInCorrection.correcting.length > 1) {
|
||||
return;
|
||||
// Se crea una sección aparte?
|
||||
/* return {
|
||||
if (invoiceInCorrection.correcting.length > 1)
|
||||
return {
|
||||
name: 'InvoiceInList',
|
||||
params: {
|
||||
search: invoiceInCorrection.correcting.join(),
|
||||
query: {
|
||||
params: JSON.stringify({ correctedFk: entityId.value }),
|
||||
},
|
||||
}; */
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'InvoiceInCard',
|
||||
|
@ -161,7 +158,7 @@ async function setInvoiceCorrection(id) {
|
|||
},
|
||||
},
|
||||
}),
|
||||
await axios.get('InvoiceInCorrections', {
|
||||
axios.get('InvoiceInCorrections', {
|
||||
params: {
|
||||
filter: {
|
||||
where: {
|
||||
|
@ -171,7 +168,7 @@ async function setInvoiceCorrection(id) {
|
|||
},
|
||||
}),
|
||||
]);
|
||||
|
||||
console.log(correctedData, correctedData);
|
||||
if (correctingData[0]) invoiceInCorrection.corrected = correctingData[0].correctedFk;
|
||||
|
||||
invoiceInCorrection.correcting = correctedData.map(
|
||||
|
|
|
@ -61,7 +61,7 @@ const suppliersRef = ref();
|
|||
<QItem>
|
||||
<QItemSection>
|
||||
<QInput
|
||||
:label="useFirstUpper(t('params.correctives'))"
|
||||
:label="useFirstUpper(t('params.correctedFk'))"
|
||||
v-model="params.correctedFk"
|
||||
>
|
||||
<template #prepend>
|
||||
|
@ -295,7 +295,7 @@ en:
|
|||
serial: Serial
|
||||
account: Account
|
||||
isBooked: is booked
|
||||
correctives: correctives
|
||||
correctedFk: Rectificatives
|
||||
es:
|
||||
params:
|
||||
search: Contiene
|
||||
|
@ -312,7 +312,7 @@ es:
|
|||
account: Cuenta
|
||||
created: Creada
|
||||
dued: Vencida
|
||||
correctives: rectificativas
|
||||
correctedFk: Rectificativas
|
||||
From: Desde
|
||||
To: Hasta
|
||||
Amount: Importe
|
||||
|
|
Loading…
Reference in New Issue