refactor: refs #8316 restore filter for supplier and related entities in InvoiceInCard
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jose Antonio Tubau 2025-01-13 08:41:45 +01:00
parent de7906bbf3
commit 3c87882805
1 changed files with 35 additions and 0 deletions

View File

@ -1,6 +1,40 @@
<script setup>
import VnCardBeta from 'components/common/VnCardBeta.vue';
import InvoiceInDescriptor from './InvoiceInDescriptor.vue';
const filter = {
include: [
{
relation: 'supplier',
scope: {
include: {
relation: 'contacts',
scope: { where: { email: { neq: null } } },
},
},
},
{ relation: 'invoiceInDueDay' },
{ relation: 'company' },
{ relation: 'currency' },
{
relation: 'dms',
scope: {
fields: [
'dmsTypeFk',
'reference',
'hardCopyNumber',
'workerFk',
'description',
'hasFile',
'file',
'created',
'companyFk',
'warehouseFk',
],
},
},
],
};
</script>
<template>
@ -8,5 +42,6 @@ import InvoiceInDescriptor from './InvoiceInDescriptor.vue';
data-key="InvoiceIn"
base-url="InvoiceIns"
:descriptor="InvoiceInDescriptor"
:filter="filter"
/>
</template>