aboutsummaryrefslogtreecommitdiff
path: root/src/components/PrintPreview.vue
blob: a4344b7b7897f126fd35ee4df578eb54a9b2a859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script setup lang="ts">
  import PrintPreviewHeader from './PrintPreviewHeader.vue'
  import PrintPreviewRecipientDetails from './PrintPreviewRecipientDetails.vue'
  import PrintPreviewItemsList from './PrintPreviewItemsList.vue'
  import PrintPreviewFooter from './PrintPreviewFooter.vue'

  const props = defineProps(["invoice", "total"])
</script>

<template>
  <div class="print-preview">
    <PrintPreviewHeader 
      :invoice="props.invoice" />
    <PrintPreviewRecipientDetails 
      :invoice="props.invoice"/>
    <PrintPreviewItemsList 
      :items="props.invoice.Items"
      :total="props.total"/>
    <PrintPreviewFooter 
      :invoice="props.invoice"
      :total="props.total"/>
  </div>
</template>

<style>
.print-preview * {
  font-size: 9pt;
}
.print-preview p {
  margin: 0;
}
.print-preview {
  display: grid;
  grid-template-rows: 1fr 1.5fr auto 1.5fr;
  row-gap: 1em;
}
</style>