38 lines
991 B
Vue
38 lines
991 B
Vue
<script setup>
|
|
import VnCard from 'components/common/VnCard.vue';
|
|
import InvoiceInDescriptor from './InvoiceInDescriptor.vue';
|
|
import InvoiceInFilter from '../InvoiceInFilter.vue';
|
|
import InvoiceInSearchbar from '../InvoiceInSearchbar.vue';
|
|
|
|
const filter = {
|
|
include: [
|
|
{
|
|
relation: 'supplier',
|
|
scope: {
|
|
include: {
|
|
relation: 'contacts',
|
|
scope: { where: { email: { neq: null } } },
|
|
},
|
|
},
|
|
},
|
|
{ relation: 'invoiceInDueDay' },
|
|
{ relation: 'company' },
|
|
{ relation: 'currency' },
|
|
],
|
|
};
|
|
</script>
|
|
<template>
|
|
<VnCard
|
|
data-key="InvoiceIn"
|
|
base-url="InvoiceIns"
|
|
:filter="filter"
|
|
:descriptor="InvoiceInDescriptor"
|
|
:filter-panel="InvoiceInFilter"
|
|
search-data-key="InvoiceInList"
|
|
>
|
|
<template #searchbar>
|
|
<InvoiceInSearchbar />
|
|
</template>
|
|
</VnCard>
|
|
</template>
|