20 lines
489 B
Vue
20 lines
489 B
Vue
<script setup>
|
|
import PdfViewer from "../../../../../Views/Components/PdfViewer.vue";
|
|
import DistanceAllowance from "./DistanceAllowance.vue";
|
|
|
|
const props = defineProps({
|
|
data: {
|
|
type: Object,
|
|
required: true
|
|
}
|
|
})
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<span id="invoice_details_body">
|
|
<PdfViewer :url="'/api/v1/invoice/showReceipt/' + props.data.id" v-if="props.data.documentFilename !== null" />
|
|
<DistanceAllowance v-else :invoice="props.data" />
|
|
</span>
|
|
</template>
|