File size: 4,241 Bytes
8143f06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "customer": {
      "type": "string",
      "description": "customer name (Customer)"
    },
    "customerAddress": {
      "type": "string",
      "description": "customer address lines"
    },
    "invoiceNumber": {
      "type": "string",
      "description": "invoice number (Invoice No.)"
    },
    "invoiceDate": {
      "type": "string",
      "description": "invoice date (Invoice Date) as printed"
    },
    "paymentDueDate": {
      "type": "string",
      "description": "payment due date (Payment Due Date) as printed"
    },
    "shipper": {
      "type": "string",
      "description": "shipper name (Shipper)"
    },
    "consignee": {
      "type": "string",
      "description": "consignee name (Consignee)"
    },
    "placeOfOrigin": {
      "type": "string",
      "description": "place of origin (Place of Origin)"
    },
    "finalDestination": {
      "type": "string",
      "description": "final destination (Final destination)"
    },
    "vesselFlight": {
      "type": "string",
      "description": "vessel / flight (Vessel / Flight)"
    },
    "jobNumber": {
      "type": "string",
      "description": "job number (Job Number)"
    },
    "masterNumber": {
      "type": "string",
      "description": "master bill number (Master Number)"
    },
    "houseNumber": {
      "type": "string",
      "description": "house bill number (House No.)"
    },
    "numberOfPacks": {
      "type": "number",
      "description": "number of packs (Number of Packs)"
    },
    "weightKgs": {
      "type": "number",
      "description": "weight in kilograms (Weight in Kgs)"
    },
    "volumeCbm": {
      "type": "number",
      "description": "volume in cubic meters (Volume in CBM)"
    },
    "currency": {
      "type": "string",
      "description": "invoice currency from the Total line, e.g. AED"
    },
    "amountInWords": {
      "type": "string",
      "description": "total amount written in words, as printed"
    },
    "charges": {
      "type": "array",
      "description": "one entry per charge row in the charge table",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string",
            "description": "charge description (Charge Description), e.g. DELIVERY ORDER CHARGES"
          },
          "currency": {
            "type": "string",
            "description": "currency code (Curr) for the row, e.g. AED"
          },
          "ratePerUnit": {
            "type": "number",
            "description": "rate per unit (Rate Per Unit)"
          },
          "unit": {
            "type": "number",
            "description": "number of units (Unit)"
          },
          "currencyAmount": {
            "type": "number",
            "description": "currency amount (Curr. Amount)"
          },
          "roe": {
            "type": "number",
            "description": "rate of exchange (ROE)"
          },
          "totalPriceExclVat": {
            "type": "number",
            "description": "total price excluding VAT (Total Price excl. VAT)"
          },
          "vatPercent": {
            "type": "number",
            "description": "VAT percentage (VAT%), numeric without percent sign"
          },
          "vatAmount": {
            "type": "number",
            "description": "VAT amount (VAT Amount)"
          },
          "total": {
            "type": "number",
            "description": "row total including VAT (Total)"
          }
        },
        "required": [
          "description",
          "totalPriceExclVat",
          "vatPercent",
          "vatAmount",
          "total"
        ]
      }
    },
    "totalExclVat": {
      "type": "number",
      "description": "sum of totals excluding VAT from the Total line"
    },
    "totalVat": {
      "type": "number",
      "description": "total VAT amount from the Total line"
    },
    "grandTotal": {
      "type": "number",
      "description": "grand total including VAT from the Total line"
    }
  },
  "required": [
    "customer",
    "invoiceNumber",
    "invoiceDate",
    "charges",
    "grandTotal"
  ]
}