freee-demo-kit 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +280 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +35 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/commands/auth.d.ts +3 -0
  8. package/dist/commands/auth.d.ts.map +1 -0
  9. package/dist/commands/auth.js +57 -0
  10. package/dist/commands/auth.js.map +1 -0
  11. package/dist/commands/corrupt.d.ts +3 -0
  12. package/dist/commands/corrupt.d.ts.map +1 -0
  13. package/dist/commands/corrupt.js +72 -0
  14. package/dist/commands/corrupt.js.map +1 -0
  15. package/dist/commands/dry-run.d.ts +3 -0
  16. package/dist/commands/dry-run.d.ts.map +1 -0
  17. package/dist/commands/dry-run.js +59 -0
  18. package/dist/commands/dry-run.js.map +1 -0
  19. package/dist/commands/list.d.ts +3 -0
  20. package/dist/commands/list.d.ts.map +1 -0
  21. package/dist/commands/list.js +58 -0
  22. package/dist/commands/list.js.map +1 -0
  23. package/dist/commands/load-all.d.ts +3 -0
  24. package/dist/commands/load-all.d.ts.map +1 -0
  25. package/dist/commands/load-all.js +69 -0
  26. package/dist/commands/load-all.js.map +1 -0
  27. package/dist/commands/load.d.ts +25 -0
  28. package/dist/commands/load.d.ts.map +1 -0
  29. package/dist/commands/load.js +197 -0
  30. package/dist/commands/load.js.map +1 -0
  31. package/dist/commands/reset.d.ts +3 -0
  32. package/dist/commands/reset.d.ts.map +1 -0
  33. package/dist/commands/reset.js +117 -0
  34. package/dist/commands/reset.js.map +1 -0
  35. package/dist/commands/setup.d.ts +4 -0
  36. package/dist/commands/setup.d.ts.map +1 -0
  37. package/dist/commands/setup.js +190 -0
  38. package/dist/commands/setup.js.map +1 -0
  39. package/dist/commands/status.d.ts +3 -0
  40. package/dist/commands/status.d.ts.map +1 -0
  41. package/dist/commands/status.js +25 -0
  42. package/dist/commands/status.js.map +1 -0
  43. package/dist/commands/validate.d.ts +5 -0
  44. package/dist/commands/validate.d.ts.map +1 -0
  45. package/dist/commands/validate.js +132 -0
  46. package/dist/commands/validate.js.map +1 -0
  47. package/dist/commands/verify.d.ts +3 -0
  48. package/dist/commands/verify.d.ts.map +1 -0
  49. package/dist/commands/verify.js +87 -0
  50. package/dist/commands/verify.js.map +1 -0
  51. package/dist/commands/whoami.d.ts +3 -0
  52. package/dist/commands/whoami.d.ts.map +1 -0
  53. package/dist/commands/whoami.js +31 -0
  54. package/dist/commands/whoami.js.map +1 -0
  55. package/dist/types/freee.d.ts +112 -0
  56. package/dist/types/freee.d.ts.map +1 -0
  57. package/dist/types/freee.js +3 -0
  58. package/dist/types/freee.js.map +1 -0
  59. package/dist/types/preset.d.ts +14 -0
  60. package/dist/types/preset.d.ts.map +1 -0
  61. package/dist/types/preset.js +2 -0
  62. package/dist/types/preset.js.map +1 -0
  63. package/dist/utils/accounting-validator.d.ts +13 -0
  64. package/dist/utils/accounting-validator.d.ts.map +1 -0
  65. package/dist/utils/accounting-validator.js +95 -0
  66. package/dist/utils/accounting-validator.js.map +1 -0
  67. package/dist/utils/auth-flow.d.ts +17 -0
  68. package/dist/utils/auth-flow.d.ts.map +1 -0
  69. package/dist/utils/auth-flow.js +137 -0
  70. package/dist/utils/auth-flow.js.map +1 -0
  71. package/dist/utils/config.d.ts +11 -0
  72. package/dist/utils/config.d.ts.map +1 -0
  73. package/dist/utils/config.js +13 -0
  74. package/dist/utils/config.js.map +1 -0
  75. package/dist/utils/confirm-company.d.ts +7 -0
  76. package/dist/utils/confirm-company.d.ts.map +1 -0
  77. package/dist/utils/confirm-company.js +20 -0
  78. package/dist/utils/confirm-company.js.map +1 -0
  79. package/dist/utils/corrupt-injector.d.ts +17 -0
  80. package/dist/utils/corrupt-injector.d.ts.map +1 -0
  81. package/dist/utils/corrupt-injector.js +123 -0
  82. package/dist/utils/corrupt-injector.js.map +1 -0
  83. package/dist/utils/env-loader.d.ts +9 -0
  84. package/dist/utils/env-loader.d.ts.map +1 -0
  85. package/dist/utils/env-loader.js +12 -0
  86. package/dist/utils/env-loader.js.map +1 -0
  87. package/dist/utils/env-writer.d.ts +10 -0
  88. package/dist/utils/env-writer.d.ts.map +1 -0
  89. package/dist/utils/env-writer.js +40 -0
  90. package/dist/utils/env-writer.js.map +1 -0
  91. package/dist/utils/freee-api.d.ts +24 -0
  92. package/dist/utils/freee-api.d.ts.map +1 -0
  93. package/dist/utils/freee-api.js +175 -0
  94. package/dist/utils/freee-api.js.map +1 -0
  95. package/dist/utils/logger.d.ts +6 -0
  96. package/dist/utils/logger.d.ts.map +1 -0
  97. package/dist/utils/logger.js +22 -0
  98. package/dist/utils/logger.js.map +1 -0
  99. package/dist/utils/pkce.d.ts +12 -0
  100. package/dist/utils/pkce.d.ts.map +1 -0
  101. package/dist/utils/pkce.js +18 -0
  102. package/dist/utils/pkce.js.map +1 -0
  103. package/dist/utils/preset-loader.d.ts +3 -0
  104. package/dist/utils/preset-loader.d.ts.map +1 -0
  105. package/dist/utils/preset-loader.js +47 -0
  106. package/dist/utils/preset-loader.js.map +1 -0
  107. package/dist/utils/preset-validator.d.ts +10 -0
  108. package/dist/utils/preset-validator.d.ts.map +1 -0
  109. package/dist/utils/preset-validator.js +23 -0
  110. package/dist/utils/preset-validator.js.map +1 -0
  111. package/dist/utils/state-store.d.ts +6 -0
  112. package/dist/utils/state-store.d.ts.map +1 -0
  113. package/dist/utils/state-store.js +37 -0
  114. package/dist/utils/state-store.js.map +1 -0
  115. package/dist/utils/token-store.d.ts +6 -0
  116. package/dist/utils/token-store.d.ts.map +1 -0
  117. package/dist/utils/token-store.js +30 -0
  118. package/dist/utils/token-store.js.map +1 -0
  119. package/package.json +58 -0
  120. package/presets/README.md +182 -0
  121. package/presets/accounting/README.md +3 -0
  122. package/presets/accounting/construction/preset.json +309 -0
  123. package/presets/accounting/freelance-invoice/preset.json +261 -0
  124. package/presets/accounting/full-year/preset.json +1534 -0
  125. package/presets/accounting/it-startup/preset.json +472 -0
  126. package/presets/accounting/manufacturing/preset.json +333 -0
  127. package/presets/accounting/medical/preset.json +453 -0
  128. package/presets/accounting/non-profit/preset.json +375 -0
  129. package/presets/accounting/npo-subsidy/preset.json +454 -0
  130. package/presets/accounting/payroll-agency/preset.json +286 -0
  131. package/presets/accounting/quickstart/preset.json +917 -0
  132. package/presets/accounting/real-estate/preset.json +453 -0
  133. package/presets/accounting/restaurant/preset.json +349 -0
  134. package/presets/accounting/retail/preset.json +536 -0
  135. package/presets/accounting/sole-proprietor/preset.json +408 -0
  136. package/presets/advanced/multi-company/README.md +3 -0
  137. package/presets/advanced/multi-company/preset.json +640 -0
  138. package/presets/advanced/multi-period/README.md +3 -0
  139. package/presets/advanced/multi-period/preset.json +633 -0
  140. package/presets/common/depreciation/preset.json +433 -0
  141. package/presets/errors/consumption-tax/preset.json +136 -0
  142. package/presets/errors/depreciation-method/preset.json +133 -0
  143. package/presets/errors/duplicate-journal/preset.json +181 -0
  144. package/presets/errors/entertainment/preset.json +108 -0
  145. package/presets/errors/mixed/preset.json +171 -0
  146. package/presets/errors/officer-pay/preset.json +100 -0
  147. package/presets/errors/overdue-receivable/preset.json +157 -0
  148. package/presets/errors/tax-code/preset.json +140 -0
  149. package/presets/errors/year-end-closing/preset.json +163 -0
  150. package/presets/expenses/README.md +3 -0
  151. package/presets/expenses/quickstart/preset.json +240 -0
  152. package/presets/hr/README.md +3 -0
  153. package/presets/hr/quickstart/preset.json +443 -0
  154. package/presets/invoices/README.md +3 -0
  155. package/presets/invoices/quickstart/preset.json +246 -0
  156. package/presets/invoices/subscription/preset.json +263 -0
  157. package/presets/unclassified/quickstart/preset.json +182 -0
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "役員報酬誤計上エラーデータ",
3
+ "description": "役員報酬を「給料手当」で誤計上したエラーデータ。OFFICER-PAY-001ルールの検証・修正トレーニング用。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 1,
7
+ "deals": 6,
8
+ "manualJournals": 3
9
+ },
10
+ "error_manifest": [
11
+ {
12
+ "rule": "OFFICER-PAY-001",
13
+ "location": "deals[0] / deals[2] / deals[4] — partner_name: 代表取締役 佐藤 義雄",
14
+ "description": "役員報酬を「給料手当」で計上している。役員は労働者ではないため給与規程の対象外。",
15
+ "expected_fix": "account_item_name を「役員報酬」に変更する"
16
+ }
17
+ ],
18
+ "data": {
19
+ "walletables": [
20
+ {
21
+ "type": "bank_account",
22
+ "name": "やよい銀行 普通預金(給与振込口座)",
23
+ "bank_id": 2407
24
+ }
25
+ ],
26
+ "deals": [
27
+ {
28
+ "issue_date": "2026-01-25",
29
+ "type": "expense",
30
+ "partner_name": "代表取締役 佐藤 義雄",
31
+ "details": [
32
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 600000, "description": "1月度 役員報酬(科目誤り: 給料手当→役員報酬に修正が必要)" }
33
+ ]
34
+ },
35
+ {
36
+ "issue_date": "2026-01-25",
37
+ "type": "expense",
38
+ "partner_name": "社員 青木 一郎",
39
+ "details": [
40
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 280000, "description": "1月度 基本給" }
41
+ ]
42
+ },
43
+ {
44
+ "issue_date": "2026-02-25",
45
+ "type": "expense",
46
+ "partner_name": "代表取締役 佐藤 義雄",
47
+ "details": [
48
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 600000, "description": "2月度 役員報酬(科目誤り: 給料手当→役員報酬に修正が必要)" }
49
+ ]
50
+ },
51
+ {
52
+ "issue_date": "2026-02-25",
53
+ "type": "expense",
54
+ "partner_name": "社員 青木 一郎",
55
+ "details": [
56
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 280000, "description": "2月度 基本給" }
57
+ ]
58
+ },
59
+ {
60
+ "issue_date": "2026-03-25",
61
+ "type": "expense",
62
+ "partner_name": "代表取締役 佐藤 義雄",
63
+ "details": [
64
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 600000, "description": "3月度 役員報酬(科目誤り: 給料手当→役員報酬に修正が必要)" }
65
+ ]
66
+ },
67
+ {
68
+ "issue_date": "2026-03-25",
69
+ "type": "expense",
70
+ "partner_name": "社員 青木 一郎",
71
+ "details": [
72
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 280000, "description": "3月度 基本給" }
73
+ ]
74
+ }
75
+ ],
76
+ "manualJournals": [
77
+ {
78
+ "issue_date": "2026-01-31",
79
+ "details": [
80
+ { "entry_side": "debit", "account_item_name": "法定福利費", "tax_code": 0, "amount": 85000, "description": "1月 社会保険料 会社負担分" },
81
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 85000, "description": "1月 社会保険料 未払計上" }
82
+ ]
83
+ },
84
+ {
85
+ "issue_date": "2026-02-28",
86
+ "details": [
87
+ { "entry_side": "debit", "account_item_name": "法定福利費", "tax_code": 0, "amount": 85000, "description": "2月 社会保険料 会社負担分" },
88
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 85000, "description": "2月 社会保険料 未払計上" }
89
+ ]
90
+ },
91
+ {
92
+ "issue_date": "2026-03-31",
93
+ "details": [
94
+ { "entry_side": "debit", "account_item_name": "法定福利費", "tax_code": 0, "amount": 85000, "description": "3月 社会保険料 会社負担分" },
95
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 85000, "description": "3月 社会保険料 未払計上" }
96
+ ]
97
+ }
98
+ ]
99
+ }
100
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "name": "売掛金・未収金 回収遅延エラーデータ",
3
+ "description": "売掛金・未収金の回収遅延・貸倒れに関するエラーデータ。長期未回収売掛金の放置、貸倒引当金の未計上、貸倒損失の計上漏れ、不適切な相殺処理など。与信管理と債権管理の研修用シナリオ。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 1,
7
+ "deals": 9,
8
+ "manualJournals": 6
9
+ },
10
+ "error_manifest": [
11
+ {
12
+ "rule": "RECEIVABLE-001",
13
+ "location": "deals[0~2] — account_item_name: 売掛金, 6ヶ月超未回収",
14
+ "description": "売掛金が6ヶ月以上回収できていないにもかかわらず、貸倒引当金を計上していない。長期未回収債権に対する貸倒見積もりを行わないと、資産の過大計上・当期損益の歪みが生じる。",
15
+ "expected_fix": "6ヶ月超の未回収売掛金に対して、回収可能性を評価した上で貸倒引当金(一般債権は期末残高×貸倒実績率、個別評価債権は回収不能見込額)を計上する"
16
+ },
17
+ {
18
+ "rule": "RECEIVABLE-002",
19
+ "location": "deals[3~5] — account_item_name: 売掛金, 相殺処理の誤り",
20
+ "description": "同一取引先への買掛金と売掛金を、両者の合意なく一方的に相殺している。相殺は両者の合意(相殺予約または相殺通知・承諾)が必要であり、勝手な相殺は民法上の問題が生じる可能性がある。",
21
+ "expected_fix": "相殺する場合は必ず相手方の同意を得た上で相殺合意書を作成し、相殺通知を送付する。その上で買掛金・売掛金を同額消込する"
22
+ },
23
+ {
24
+ "rule": "RECEIVABLE-003",
25
+ "location": "deals[6~8] — account_item_name: 売掛金, 法的に貸倒れ確定",
26
+ "description": "取引先の倒産(破産手続き開始決定)が確定しているにもかかわらず、売掛金を資産として計上し続けている。貸倒損失として計上せず、資産が過大表示されている状態。",
27
+ "expected_fix": "破産手続き開始決定等の法的事実が確定した時点で、売掛金残高を貸倒損失として費用計上する(または貸倒引当金を取り崩す)"
28
+ }
29
+ ],
30
+ "data": {
31
+ "walletables": [
32
+ {
33
+ "type": "bank_account",
34
+ "name": "さくら銀行 普通預金(債権管理テスト)",
35
+ "bank_id": 2407
36
+ }
37
+ ],
38
+ "deals": [
39
+ {
40
+ "issue_date": "2025-07-31",
41
+ "type": "income",
42
+ "partner_name": "株式会社レイクサイドトレーディング",
43
+ "details": [
44
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 330000, "description": "商品販売 7月(誤り: 8ヶ月経過・未回収。貸倒引当金未計上)" }
45
+ ]
46
+ },
47
+ {
48
+ "issue_date": "2025-08-31",
49
+ "type": "income",
50
+ "partner_name": "株式会社レイクサイドトレーディング",
51
+ "details": [
52
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 275000, "description": "商品販売 8月(誤り: 7ヶ月経過・未回収)" }
53
+ ]
54
+ },
55
+ {
56
+ "issue_date": "2025-09-30",
57
+ "type": "income",
58
+ "partner_name": "株式会社レイクサイドトレーディング",
59
+ "details": [
60
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 220000, "description": "商品販売 9月(誤り: 6ヶ月経過・未回収)" }
61
+ ]
62
+ },
63
+ {
64
+ "issue_date": "2026-01-15",
65
+ "type": "income",
66
+ "partner_name": "株式会社マウンテンビュー",
67
+ "details": [
68
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 165000, "description": "役務提供代金 1月(誤り: 買掛金110,000と勝手に相殺し差額55,000のみ請求する処理が行われた)" }
69
+ ]
70
+ },
71
+ {
72
+ "issue_date": "2026-02-15",
73
+ "type": "income",
74
+ "partner_name": "株式会社マウンテンビュー",
75
+ "details": [
76
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 198000, "description": "役務提供代金 2月(誤り: 同取引先への買掛金88,000と合意なく相殺処理)" }
77
+ ]
78
+ },
79
+ {
80
+ "issue_date": "2026-03-15",
81
+ "type": "income",
82
+ "partner_name": "株式会社マウンテンビュー",
83
+ "details": [
84
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 132000, "description": "役務提供代金 3月(相殺予約あり・正常: 相互合意済み)" }
85
+ ]
86
+ },
87
+ {
88
+ "issue_date": "2026-01-20",
89
+ "type": "income",
90
+ "partner_name": "株式会社サンセットカンパニー",
91
+ "details": [
92
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 440000, "description": "商品販売 1月(誤り: 2月に破産手続き開始決定。売掛金を貸倒損失として計上すべきだが未処理)" }
93
+ ]
94
+ },
95
+ {
96
+ "issue_date": "2026-01-25",
97
+ "type": "income",
98
+ "partner_name": "株式会社サンセットカンパニー",
99
+ "details": [
100
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 220000, "description": "商品販売 1月追加分(誤り: 同社は2月に破産手続き。回収見込みなし)" }
101
+ ]
102
+ },
103
+ {
104
+ "issue_date": "2026-02-01",
105
+ "type": "income",
106
+ "partner_name": "株式会社サンセットカンパニー",
107
+ "details": [
108
+ { "account_item_name": "売掛金", "tax_code": 0, "amount": 110000, "description": "商品販売 2月上旬(誤り: 破産手続き開始直前の取引。回収不能)" }
109
+ ]
110
+ }
111
+ ],
112
+ "manualJournals": [
113
+ {
114
+ "issue_date": "2026-03-31",
115
+ "details": [
116
+ { "entry_side": "debit", "account_item_name": "貸倒繰入額(販)", "tax_code": 0, "amount": 412500, "description": "レイクサイドトレーディング 長期未回収売掛金 貸倒引当金計上(825,000×50%)" },
117
+ { "entry_side": "credit", "account_item_name": "貸倒引当金(売)", "tax_code": 0, "amount": 412500, "description": "長期未回収売掛金 個別評価引当(回収可能性50%判断)" }
118
+ ]
119
+ },
120
+ {
121
+ "issue_date": "2026-02-28",
122
+ "details": [
123
+ { "entry_side": "debit", "account_item_name": "貸倒損失(販)", "tax_code": 0, "amount": 770000, "description": "サンセットカンパニー 破産手続き開始決定に伴う売掛金の貸倒損失計上(440,000+220,000+110,000)" },
124
+ { "entry_side": "credit", "account_item_name": "売掛金", "tax_code": 0, "amount": 770000, "description": "サンセットカンパニー 売掛金消込(貸倒確定)" }
125
+ ]
126
+ },
127
+ {
128
+ "issue_date": "2026-01-15",
129
+ "details": [
130
+ { "entry_side": "debit", "account_item_name": "買掛金", "tax_code": 0, "amount": 110000, "description": "マウンテンビュー 相殺(買掛金側: 正しい相殺処理の見本)" },
131
+ { "entry_side": "credit", "account_item_name": "売掛金", "tax_code": 0, "amount": 110000, "description": "マウンテンビュー 相殺(売掛金側: 双方合意後の消込)" }
132
+ ]
133
+ },
134
+ {
135
+ "issue_date": "2026-02-15",
136
+ "details": [
137
+ { "entry_side": "debit", "account_item_name": "買掛金", "tax_code": 0, "amount": 88000, "description": "マウンテンビュー 2月相殺(正しくは合意書面を要する)" },
138
+ { "entry_side": "credit", "account_item_name": "売掛金", "tax_code": 0, "amount": 88000, "description": "マウンテンビュー 2月相殺消込" }
139
+ ]
140
+ },
141
+ {
142
+ "issue_date": "2026-03-31",
143
+ "details": [
144
+ { "entry_side": "debit", "account_item_name": "売掛金", "tax_code": 0, "amount": 500000, "description": "3月末 売掛金残高計上(回収済み分以外)" },
145
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 21, "amount": 500000, "description": "3月末 売上対応売掛金" }
146
+ ]
147
+ },
148
+ {
149
+ "issue_date": "2026-03-31",
150
+ "details": [
151
+ { "entry_side": "debit", "account_item_name": "貸倒繰入額(販)", "tax_code": 0, "amount": 5000, "description": "3月末 一般債権 期末残高の1%貸倒引当金追加計上" },
152
+ { "entry_side": "credit", "account_item_name": "貸倒引当金(売)", "tax_code": 0, "amount": 5000, "description": "一般債権 期末評価 引当金計上" }
153
+ ]
154
+ }
155
+ ]
156
+ }
157
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "name": "税区分誤りエラーデータ",
3
+ "description": "売上高・外注費・給料手当の税区分が誤っているエラーデータ。TAX-CODE-001ルールの検証・修正トレーニング用。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 2,
7
+ "deals": 9,
8
+ "manualJournals": 3
9
+ },
10
+ "error_manifest": [
11
+ {
12
+ "rule": "TAX-CODE-001",
13
+ "location": "deals[0~2] — account_item_name: 売上高, tax_code: 0",
14
+ "description": "売上高(課税売上10%)に非課税コード(0)が設定されている。消費税申告で売上が過少申告となる。",
15
+ "expected_fix": "tax_code を 21(課税売上10%)に変更する"
16
+ },
17
+ {
18
+ "rule": "TAX-CODE-001",
19
+ "location": "deals[3~5] — account_item_name: 外注費, tax_code: 0",
20
+ "description": "外注費(課税仕入10%)に非課税コード(0)が設定されている。仕入税額控除が受けられない。",
21
+ "expected_fix": "tax_code を 34(課税仕入10%)に変更する"
22
+ },
23
+ {
24
+ "rule": "TAX-CODE-001",
25
+ "location": "deals[6~8] — account_item_name: 給料手当, tax_code: 34",
26
+ "description": "給料手当(不課税)に課税仕入コード(34)が設定されている。消費税の仕入控除対象外の支出を誤って控除している。",
27
+ "expected_fix": "tax_code を 0(不課税)に変更する"
28
+ }
29
+ ],
30
+ "data": {
31
+ "walletables": [
32
+ {
33
+ "type": "bank_account",
34
+ "name": "ひばり信用金庫 普通預金",
35
+ "bank_id": 2407
36
+ },
37
+ {
38
+ "type": "wallet",
39
+ "name": "小口現金"
40
+ }
41
+ ],
42
+ "deals": [
43
+ {
44
+ "issue_date": "2026-01-10",
45
+ "type": "income",
46
+ "partner_name": "株式会社エコーシステムズ",
47
+ "details": [
48
+ { "account_item_name": "売上高", "tax_code": 0, "amount": 1100000, "description": "ITコンサルティング 1月分(税区分誤り: 0→21に修正が必要)" }
49
+ ]
50
+ },
51
+ {
52
+ "issue_date": "2026-02-10",
53
+ "type": "income",
54
+ "partner_name": "株式会社エコーシステムズ",
55
+ "details": [
56
+ { "account_item_name": "売上高", "tax_code": 0, "amount": 1100000, "description": "ITコンサルティング 2月分(税区分誤り: 0→21に修正が必要)" }
57
+ ]
58
+ },
59
+ {
60
+ "issue_date": "2026-03-10",
61
+ "type": "income",
62
+ "partner_name": "株式会社エコーシステムズ",
63
+ "details": [
64
+ { "account_item_name": "売上高", "tax_code": 0, "amount": 1100000, "description": "ITコンサルティング 3月分(税区分誤り: 0→21に修正が必要)" }
65
+ ]
66
+ },
67
+ {
68
+ "issue_date": "2026-01-25",
69
+ "type": "expense",
70
+ "partner_name": "フリーランスエンジニア 木村",
71
+ "details": [
72
+ { "account_item_name": "外注費", "tax_code": 0, "amount": 330000, "description": "開発委託費 1月(税区分誤り: 0→34に修正が必要)" }
73
+ ]
74
+ },
75
+ {
76
+ "issue_date": "2026-02-25",
77
+ "type": "expense",
78
+ "partner_name": "フリーランスエンジニア 木村",
79
+ "details": [
80
+ { "account_item_name": "外注費", "tax_code": 0, "amount": 330000, "description": "開発委託費 2月(税区分誤り: 0→34に修正が必要)" }
81
+ ]
82
+ },
83
+ {
84
+ "issue_date": "2026-03-25",
85
+ "type": "expense",
86
+ "partner_name": "フリーランスエンジニア 木村",
87
+ "details": [
88
+ { "account_item_name": "外注費", "tax_code": 0, "amount": 330000, "description": "開発委託費 3月(税区分誤り: 0→34に修正が必要)" }
89
+ ]
90
+ },
91
+ {
92
+ "issue_date": "2026-01-25",
93
+ "type": "expense",
94
+ "partner_name": "社員 青木 一郎",
95
+ "details": [
96
+ { "account_item_name": "給料手当", "tax_code": 34, "amount": 280000, "description": "1月度 基本給(税区分誤り: 34→0に修正が必要)" }
97
+ ]
98
+ },
99
+ {
100
+ "issue_date": "2026-02-25",
101
+ "type": "expense",
102
+ "partner_name": "社員 青木 一郎",
103
+ "details": [
104
+ { "account_item_name": "給料手当", "tax_code": 34, "amount": 280000, "description": "2月度 基本給(税区分誤り: 34→0に修正が必要)" }
105
+ ]
106
+ },
107
+ {
108
+ "issue_date": "2026-03-25",
109
+ "type": "expense",
110
+ "partner_name": "社員 青木 一郎",
111
+ "details": [
112
+ { "account_item_name": "給料手当", "tax_code": 34, "amount": 280000, "description": "3月度 基本給(税区分誤り: 34→0に修正が必要)" }
113
+ ]
114
+ }
115
+ ],
116
+ "manualJournals": [
117
+ {
118
+ "issue_date": "2026-01-31",
119
+ "details": [
120
+ { "entry_side": "debit", "account_item_name": "売掛金", "tax_code": 0, "amount": 1100000, "description": "1月末 売掛金計上" },
121
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 0, "amount": 1100000, "description": "1月末 売上計上(税区分誤り: 0→21に修正が必要)" }
122
+ ]
123
+ },
124
+ {
125
+ "issue_date": "2026-02-28",
126
+ "details": [
127
+ { "entry_side": "debit", "account_item_name": "売掛金", "tax_code": 0, "amount": 1100000, "description": "2月末 売掛金計上" },
128
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 0, "amount": 1100000, "description": "2月末 売上計上(税区分誤り: 0→21に修正が必要)" }
129
+ ]
130
+ },
131
+ {
132
+ "issue_date": "2026-03-31",
133
+ "details": [
134
+ { "entry_side": "debit", "account_item_name": "売掛金", "tax_code": 0, "amount": 1100000, "description": "3月末 売掛金計上" },
135
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 0, "amount": 1100000, "description": "3月末 売上計上(税区分誤り: 0→21に修正が必要)" }
136
+ ]
137
+ }
138
+ ]
139
+ }
140
+ }
@@ -0,0 +1,163 @@
1
+ {
2
+ "name": "期末決算ミスエラーデータ",
3
+ "description": "期末決算処理における典型的なミスを含むエラーデータ。売上・費用の期間帰属誤り、減価償却・引当金の計上漏れ、仮勘定の未振替など、実務研修・修正トレーニング用シナリオ。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 1,
7
+ "deals": 9,
8
+ "manualJournals": 6
9
+ },
10
+ "error_manifest": [
11
+ {
12
+ "rule": "PERIOD-001",
13
+ "location": "deals[0~2] — account_item_name: 売上高, issue_date: 翌期の取引を当期に計上",
14
+ "description": "翌期(4月以降)に確定する売上を当期(3月)に前倒しで計上している。実現主義の原則に反する期間帰属の誤り。",
15
+ "expected_fix": "売上計上日を役務提供完了日(翌期)に修正し、当期3月末時点では前受金または未計上とする"
16
+ },
17
+ {
18
+ "rule": "PERIOD-002",
19
+ "location": "deals[3~5] — account_item_name: 前払費用, tax_code: 34",
20
+ "description": "翌期分の保険料・家賃を費用計上してしまっている。前払費用として資産計上すべき期間帰属の誤り。",
21
+ "expected_fix": "翌期分は前払費用(資産)として計上し、当期分のみ費用に振り替える"
22
+ },
23
+ {
24
+ "rule": "ACCRUAL-001",
25
+ "location": "manualJournals[0~1] — account_item_name: 未払費用, 計上漏れ",
26
+ "description": "当期発生の電気料金・外注費が翌期支払のため未計上。発生主義に反する費用計上漏れ。",
27
+ "expected_fix": "当期末に未払費用(負債)として発生額を計上する"
28
+ },
29
+ {
30
+ "rule": "SUSPENSE-001",
31
+ "location": "manualJournals[2~3] — account_item_name: 仮受金, 未振替",
32
+ "description": "期中に計上した仮受金(内容不明入金)を期末までに本勘定へ振り替えていない。仮勘定は期末に残高を持ってはならない。",
33
+ "expected_fix": "仮受金の入金内容を確認し、売上高・前受金等の適切な勘定科目に振り替える"
34
+ }
35
+ ],
36
+ "data": {
37
+ "walletables": [
38
+ {
39
+ "type": "bank_account",
40
+ "name": "みどり銀行 普通預金(決算テスト用)",
41
+ "bank_id": 2407
42
+ }
43
+ ],
44
+ "deals": [
45
+ {
46
+ "issue_date": "2026-03-25",
47
+ "type": "income",
48
+ "partner_name": "株式会社フォワードビジネス",
49
+ "details": [
50
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 330000, "description": "システム開発 最終納品(誤り: 4月納品予定の売上を3月に前倒し計上)" }
51
+ ]
52
+ },
53
+ {
54
+ "issue_date": "2026-03-28",
55
+ "type": "income",
56
+ "partner_name": "合同会社スプリングテック",
57
+ "details": [
58
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 165000, "description": "コンサルティング 3月分(誤り: 4月実施分を3月請求書発行日で計上)" }
59
+ ]
60
+ },
61
+ {
62
+ "issue_date": "2026-03-31",
63
+ "type": "income",
64
+ "partner_name": "株式会社フォワードビジネス",
65
+ "details": [
66
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 220000, "description": "保守サービス 4月分前払(誤り: 翌期分を当期収益に計上)" }
67
+ ]
68
+ },
69
+ {
70
+ "issue_date": "2026-03-01",
71
+ "type": "expense",
72
+ "partner_name": "ビジネスインシュアランス株式会社",
73
+ "details": [
74
+ { "account_item_name": "保険料", "tax_code": 0, "amount": 120000, "description": "火災保険料 年払い(誤り: 4月〜翌3月分12ヶ月分を全額費用計上。翌期9ヶ月分は前払費用計上が正しい)" }
75
+ ]
76
+ },
77
+ {
78
+ "issue_date": "2026-03-01",
79
+ "type": "expense",
80
+ "partner_name": "ビジネスシェアスペース株式会社",
81
+ "details": [
82
+ { "account_item_name": "地代家賃", "tax_code": 34, "amount": 66000, "description": "事務所家賃 3月・4月の2ヶ月分(誤り: 翌期4月分も当期費用に計上。前払費用計上が正しい)" }
83
+ ]
84
+ },
85
+ {
86
+ "issue_date": "2026-03-31",
87
+ "type": "expense",
88
+ "partner_name": "ネットワークインフラ株式会社",
89
+ "details": [
90
+ { "account_item_name": "通信費", "tax_code": 34, "amount": 11000, "description": "通信費 3月・4月2ヶ月分(誤り: 翌期4月分も当期費用に計上)" }
91
+ ]
92
+ },
93
+ {
94
+ "issue_date": "2026-02-10",
95
+ "type": "income",
96
+ "partner_name": "不明入金",
97
+ "details": [
98
+ { "account_item_name": "仮受金", "tax_code": 0, "amount": 55000, "description": "2月 原因不明の入金(誤り: 期末までに本勘定へ振替が必要。売上高等への振替漏れ)" }
99
+ ]
100
+ },
101
+ {
102
+ "issue_date": "2026-03-05",
103
+ "type": "income",
104
+ "partner_name": "不明入金",
105
+ "details": [
106
+ { "account_item_name": "仮受金", "tax_code": 0, "amount": 33000, "description": "3月 原因不明の入金(誤り: 期末までに本勘定へ振替が必要)" }
107
+ ]
108
+ },
109
+ {
110
+ "issue_date": "2026-03-31",
111
+ "type": "expense",
112
+ "partner_name": "株式会社クリエイティブツールズ",
113
+ "details": [
114
+ { "account_item_name": "消耗品費", "tax_code": 34, "amount": 8800, "description": "事務用品(3月末仕入・4月支払)— 正常計上(未払費用として翌月支払)" }
115
+ ]
116
+ }
117
+ ],
118
+ "manualJournals": [
119
+ {
120
+ "issue_date": "2026-03-31",
121
+ "details": [
122
+ { "entry_side": "debit", "account_item_name": "水道光熱費", "tax_code": 34, "amount": 18700, "description": "3月電気料金 未払計上漏れ(誤り: 発生主義では当期費用計上必須)" },
123
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 18700, "description": "3月電気料金 未払金計上漏れ" }
124
+ ]
125
+ },
126
+ {
127
+ "issue_date": "2026-03-31",
128
+ "details": [
129
+ { "entry_side": "debit", "account_item_name": "外注費", "tax_code": 34, "amount": 88000, "description": "3月外注費 未払計上漏れ(誤り: 役務受領済みのため当期費用計上必須)" },
130
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 88000, "description": "3月外注費 未払金計上漏れ" }
131
+ ]
132
+ },
133
+ {
134
+ "issue_date": "2026-03-31",
135
+ "details": [
136
+ { "entry_side": "debit", "account_item_name": "仮受金", "tax_code": 0, "amount": 55000, "description": "2月 仮受金振替(誤り: 本来は判明次第速やかに振替。3月末も未振替のまま)" },
137
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 21, "amount": 55000, "description": "2月 仮受金の売上振替(正しい処理の見本)" }
138
+ ]
139
+ },
140
+ {
141
+ "issue_date": "2026-03-31",
142
+ "details": [
143
+ { "entry_side": "debit", "account_item_name": "仮受金", "tax_code": 0, "amount": 33000, "description": "3月 仮受金振替(誤り: 本来は期末前に振替済みであるべき)" },
144
+ { "entry_side": "credit", "account_item_name": "前受金", "tax_code": 0, "amount": 33000, "description": "3月 仮受金の前受金振替(内容確認後に適切な科目へ)" }
145
+ ]
146
+ },
147
+ {
148
+ "issue_date": "2026-03-31",
149
+ "details": [
150
+ { "entry_side": "debit", "account_item_name": "減価償却費", "tax_code": 0, "amount": 42000, "description": "備品 年間減価償却費(計上漏れ: 期末に計上忘れとなりがちな項目)" },
151
+ { "entry_side": "credit", "account_item_name": "減価償却累計額", "tax_code": 0, "amount": 42000, "description": "備品 減価償却累計額計上" }
152
+ ]
153
+ },
154
+ {
155
+ "issue_date": "2026-03-31",
156
+ "details": [
157
+ { "entry_side": "debit", "account_item_name": "貸倒繰入額(販)", "tax_code": 0, "amount": 15000, "description": "売掛金 貸倒引当金計上(計上漏れ: 期末評価の引当金計上忘れ)" },
158
+ { "entry_side": "credit", "account_item_name": "貸倒引当金(売)", "tax_code": 0, "amount": 15000, "description": "売掛金残高の1%相当 貸倒引当金計上" }
159
+ ]
160
+ }
161
+ ]
162
+ }
163
+ }
@@ -0,0 +1,3 @@
1
+ # expenses Preset
2
+
3
+ freee expenses デモデータのプリセット。将来実装予定。