jaz-clio 5.20.36 → 5.20.37
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/assets/skills/api/SKILL.md +1 -1
- package/assets/skills/api/references/claims.md +14 -0
- package/assets/skills/cli/SKILL.md +1 -1
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/jaz-pseudo-sql/SKILL.md +1 -1
- package/assets/skills/jobs/SKILL.md +1 -1
- package/assets/skills/transaction-recipes/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,20 @@ The employee-expense **Claims** feature. This reference covers the **claim recor
|
|
|
5
5
|
profiles / posting rules). Claim → journal conversion + employee payouts are a
|
|
6
6
|
separate surface.
|
|
7
7
|
|
|
8
|
+
## Bill vs claim routing + self-claims (agent)
|
|
9
|
+
|
|
10
|
+
A receipt is a BILL (a vendor's invoice) or a CLAIM (an employee's reimbursed expense)
|
|
11
|
+
— different tools. Decide by intent, else by capability: call `get_my_context` and read
|
|
12
|
+
`moduleRoles` — PURCHASES ≠ NO_ACCESS → bill (`create_bt_from_attachment`); else
|
|
13
|
+
EMPLOYEE_CLAIMS ≠ NO_ACCESS → claim (`create_claim_from_attachment`). The always-on
|
|
14
|
+
`claims-routing` policy carries the full rule.
|
|
15
|
+
|
|
16
|
+
`create_claim_from_attachment` makes an UNBOUND draft (async, no claim id). Bind the
|
|
17
|
+
employee once it materialises (`search_claims` status DRAFT → `update_claim`
|
|
18
|
+
`employeeResourceId`): no other employee named → the caller's own
|
|
19
|
+
(`get_my_context.employee`; null = not set up for claims, don't invent one); a named
|
|
20
|
+
employee → `search_employees` then bind that id.
|
|
21
|
+
|
|
8
22
|
## Claim records (`claims` + `claim_processing` namespaces)
|
|
9
23
|
|
|
10
24
|
CLI: `clio claims …`. **Claims have no bare list or create** — a claim is born DRAFT
|