0
0
Fork 0

fix: refs #7543 fix changed descriptors

This commit is contained in:
Jon Elias 2024-07-03 08:20:16 +02:00
parent e13f98dffb
commit 363abb899f
2 changed files with 1 additions and 16 deletions

View File

@ -9,7 +9,6 @@ import { useRole } from 'src/composables/useRole';
import { downloadFile } from 'src/composables/downloadFile';
import { useArrayData } from 'src/composables/useArrayData';
import { usePrintService } from 'composables/usePrintService';
import useCardDescription from 'src/composables/useCardDescription';
import VnLv from 'src/components/ui/VnLv.vue';
import CardDescriptor from 'components/ui/CardDescriptor.vue';
import FetchData from 'src/components/FetchData.vue';
@ -20,12 +19,7 @@ import { useCapitalize } from 'src/composables/useCapitalize';
import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorProxy.vue';
import InvoiceInToBook from '../InvoiceInToBook.vue';
const $props = defineProps({
id: {
type: Number,
default: null,
},
});
const $props = defineProps({ id: { type: Number, default: null } });
const { push, currentRoute } = useRouter();
@ -258,9 +252,6 @@ const createInvoiceInCorrection = async () => {
);
push({ path: `/invoice-in/${correctingId}/summary` });
};
const data = ref(useCardDescription());
const setData = (entity) => (data.value = useCardDescription(entity.name, entity.id));
</script>
<template>
<FetchData
@ -292,8 +283,6 @@ const setData = (entity) => (data.value = useCardDescription(entity.name, entity
:url="`InvoiceIns/${entityId}`"
:filter="filter"
title="supplierRef"
@on-fetch="setData"
:summary="$attrs"
>
<template #menu="{ entity }">
<InvoiceInToBook>

View File

@ -70,8 +70,6 @@ const filter = {
};
const data = ref(useCardDescription());
const setData = (entity) =>
(data.value = useCardDescription(entity.client?.name, entity.id));
</script>
<template>
@ -82,8 +80,6 @@ const setData = (entity) =>
:title="data.title"
:subtitle="data.subtitle"
data-key="ticketData"
@on-fetch="setData"
:summary="$attrs"
>
<template #menu="{ entity }">
<TicketDescriptorMenu :ticket="entity" />