aboutsummaryrefslogtreecommitdiff
path: root/src/components/invoice_header.vue
blob: 2c3c515ff1d1709e203d051b66508c0372bcf6fb (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<script setup lang="ts">
import { toRaw, defineProps } from 'vue'
const props = defineProps(["invoice"])
</script>

<template>
  <div class="row g-3">
    <div class="col-md-2"><!-- spacer --></div>

    <!-- customer details -->
    <div class="col-md-3">
      <table class="table">
        <tr>
          <td>Invoice Number</td>
          <td>{{ props.invoice.InvoiceNumber }}</td>
        </tr>

        <tr>
          <td>Invoice Date</td>
          <td>{{ props.invoice.InvoiceDate }}</td>
        </tr>

        <tr>
          <td>Customer</td>
          <td>{{ props.invoice.CustomerName }}</td>
        </tr>

        <tr>
          <td>GSTIN</td>
          <td>{{ props.invoice.CustomerGstin }}</td>
        </tr>

        <tr>
          <td>Contact Name</td>
          <td>{{ props.invoice.CustomerContactName }}</td>
        </tr>

        <tr>
          <td>Phone</td>
          <td>{{ props.invoice.CustomerPhone }}</td>
        </tr>

        <tr>
          <td>Email</td>
          <td>{{ props.invoice.CustomerEmail }}</td>
        </tr>

        <tr>
          <td>Website</td>
          <td>{{ props.invoice.CustomerWebsite }}</td>
        </tr>
      </table>
    </div>

    <!-- billing address -->
    <div class="col-md-3">
      <table class="table">
        <tr>
          <td>Address</td>
          <td>{{ props.invoice.BillingAddress.AddressText }}</td>
        </tr>

        <tr>
          <td>City</td>
          <td>{{ props.invoice.BillingAddress.City }}</td>
        </tr>

        <tr>
          <td>State</td>
          <td>{{ props.invoice.BillingAddress.State }}</td>
        </tr>

        <tr>
          <td>Postal Code</td>
          <td>{{ props.invoice.BillingAddress.PostalCode }}</td>
        </tr>

        <tr>
          <td>Country</td>
          <td>{{ props.invoice.BillingAddress.Country }}</td>
        </tr>
      </table>
    </div>

    <!-- shipping address -->
    <div class="col-md-3">
      <table class="table">
        <tr>
          <td>Address</td>
          <td>{{ props.invoice.ShippingAddress.AddressText }}</td>
        </tr>

        <tr>
          <td>City</td>
          <td>{{ props.invoice.ShippingAddress.City }}</td>
        </tr>

        <tr>
          <td>State</td>
          <td>{{ props.invoice.ShippingAddress.State }}</td>
        </tr>

        <tr>
          <td>Postal Code</td>
          <td>{{ props.invoice.ShippingAddress.PostalCode }}</td>
        </tr>

        <tr>
          <td>Country</td>
          <td>{{ props.invoice.ShippingAddress.Country }}</td>
        </tr>
      </table>
    </div>
  </div>
</template>