File size: 3,440 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
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "department": {
      "type": "string",
      "description": "department (部署), original Japanese"
    },
    "paymentDate": {
      "type": "string",
      "description": "travel-expense payment date (旅費支払日) as printed"
    },
    "preparationDate": {
      "type": "string",
      "description": "preparation date (作成年月日) as printed"
    },
    "tripRows": {
      "type": "array",
      "description": "one entry per trip-leg row; flattened across all employees",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "employeeNumber": {
            "type": "string",
            "description": "employee number (社員番号) this row belongs to"
          },
          "departureDateTime": {
            "type": "string",
            "description": "departure date and time (出発日時) as printed, e.g. 06/05 08:30"
          },
          "returnDateTime": {
            "type": "string",
            "description": "return date and time (帰着日時) as printed"
          },
          "distanceCategory": {
            "type": "string",
            "description": "distance category (距離区分), e.g. 隔地 / 附近 / 地域"
          },
          "purposeCategory": {
            "type": "string",
            "description": "purpose category (目的区分), e.g. 業務 / 研修"
          },
          "destination": {
            "type": "string",
            "description": "destination organization (出張先) in original Japanese; normalize all parentheses to fullwidth ( )"
          },
          "route": {
            "type": "string",
            "description": "route segment (区間) in original Japanese, origin and destination separated by a fullwidth dash - (U+FF0D); normalize any horizontal-bar separator including the kanji 一 to - and drop surrounding spaces, e.g. 東京-大阪"
          },
          "nights": {
            "type": "number",
            "description": "number of nights stayed (宿泊数); 0 or omit if blank"
          },
          "paymentAmount": {
            "type": "number",
            "description": "payment amount (支払額) in yen"
          }
        },
        "required": [
          "employeeNumber",
          "departureDateTime",
          "returnDateTime",
          "destination",
          "route",
          "paymentAmount"
        ]
      }
    },
    "employeeSubtotals": {
      "type": "array",
      "description": "one entry per employee group, holding that employee's 合計 subtotal",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "employeeNumber": {
            "type": "string",
            "description": "employee number (社員番号)"
          },
          "subtotal": {
            "type": "number",
            "description": "per-employee subtotal (合計) in yen"
          }
        },
        "required": [
          "employeeNumber",
          "subtotal"
        ]
      }
    },
    "headcount": {
      "type": "number",
      "description": "total headcount from the bottom 合計 line (人)"
    },
    "grandTotal": {
      "type": "number",
      "description": "grand total (合計) in yen at the bottom"
    }
  },
  "required": [
    "department",
    "tripRows",
    "grandTotal"
  ]
}