@geekbeer/minion 4.1.1 → 4.1.2
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.
package/package.json
CHANGED
|
@@ -48,6 +48,32 @@ Response 201: { "reimbursement": { "id", "expense_journal_entry_id" } }
|
|
|
48
48
|
422 missing_default_payable_account — 立替者の default_payable_account_id が未設定
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
### PATCH /api/accounting/expense-reimbursements/[id]
|
|
52
|
+
|
|
53
|
+
未精算の立替経費を編集する。仕訳ヘッダ・明細・reimbursement ヘッダを整合させた状態で更新する。
|
|
54
|
+
精算済みの立替は編集できない (先に精算を取り消す必要がある)。
|
|
55
|
+
**counterparty (立替者) の変更はサポートしない** — 変更する場合は削除して再作成すること。
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Body (すべて optional、最低1つは渡す):
|
|
59
|
+
{
|
|
60
|
+
"occurred_on": "YYYY-MM-DD",
|
|
61
|
+
"amount": 1200,
|
|
62
|
+
"expense_account_id": "<費用科目 uuid>",
|
|
63
|
+
"description": "新幹線代 東京→大阪 (金額訂正)",
|
|
64
|
+
"category_dimensions": { "net_asset_restriction": "general" }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
Response 200: { "reimbursement": { "id", "expense_journal_entry_id" } }
|
|
68
|
+
|
|
69
|
+
主要エラー:
|
|
70
|
+
400 invalid_amount / invalid_date / expense_account_not_found / invalid_expense_account_type
|
|
71
|
+
404 reimbursement_not_found
|
|
72
|
+
409 already_settled — 精算済み (next_action: 精算を先に取り消す)
|
|
73
|
+
409 period_closed — 変更前後の日付が締め済期間内
|
|
74
|
+
422 missing_default_payable_account
|
|
75
|
+
```
|
|
76
|
+
|
|
51
77
|
### POST /api/accounting/expense-reimbursements/[id]/settle
|
|
52
78
|
|
|
53
79
|
立替を全額精算する。**部分精算は非対応**。
|