Leave request
Paid leave, sick leave or special leave, approved by the requester's manager, and by the head of the department too for more than five business days (fictional rules). Paid leave takes the days from the balance the leave book keeps
File: leave.ringi (the request leave, version 1, sha256:a82bdbcf4b1d4612).
Kept by the team Human Resources (hr).
The organization is read in each of its versions: from 2026-04-01 and 2027-04-01.
When it can be used
- From 2026-04-01: the first version of the organization
shared/company.ringi(data../org). - With no end: nothing it reads ends.
Who may submit it
It may be submitted by everyone, except the members of the team Board (board).
In numbers: 19 of 24 people in the organization from 2026-04-01, and 18 of 23 from 2027-04-01.
A person may also submit it in the name of someone they stand in for (a proxy for submitting): the request is then that person's.
Form
| Field | Type | Accepts | Required | Shown |
|---|---|---|---|---|
| Kind of leave | one of Paid leave, Sick leave or Special leave | — | yes | always |
| First day | date, a business day of the calendar office | from 2026-01-01 to 2027-12-31 | yes | always |
| Business days | number | from 1 to 20 | yes | always |
| Back at work on | date, worked out: “Business days” business days of the calendar office after “First day” | — | worked out | always |
| Reason | text | up to 200 characters | when “Kind of leave” is “Special leave” | always |
| Who covers for you | a person of the organization | — | no | always |
A field left empty has no value: one that is optional, one asked for or shown on a condition, and one an approver fills in, until they do. A condition that a field “is not” a value holds when it has no value; one that it “is” a value, or that compares it, does not. A computation that reads a field with no value has none either, but a total, which adds the rows whose cell is filled in.
Route
The request takes the shared route manager_approval (shared/manager_approval.ringi). For the route, long holds when “Business days” is more than 5.
The shared route manager_approval: Approval by the manager
| Stage | Who answers | When it comes |
|---|---|---|
| manager | manager | always |
| head | dept_head | when “Business days” is more than 5 |
How the approvers are chosen
| Approver | Who it is |
|---|---|
| manager | the requester's manager: the head of the team the requester is mainly in, or of the team above where that head is the requester or there is none |
| dept_head | the head of the first team of the kind Department (department) above the requester |
Each approver is chosen when the stage starts, in the version of the organization in effect then. A proxy in effect that day answers beside them (see “Proxies”).
Deadlines and reminders
Every stage of the shared route manager_approval:
- It is due 2 business days after it starts, at the end of the day.
- Its approvers are reminded 1 business day after it starts, at 09:00.
- When it is late, it goes up to the head above, and its deadline is counted again from then; when it is late again, the ticket expires.
- When nobody can answer it, it goes up to the head above; at the top of the organization, the stage is skipped.
For a stage that starts on 2026-04-03 (Fri), the days the request's calendar closes skipped (times in UTC+09:00):
| Stage | Reminder | Due | Due after going up |
|---|---|---|---|
| manager | 2026-04-06 (Mon) 09:00 | 2026-04-07 (Tue), at the end of the day | 2026-04-10 (Fri), at the end of the day |
| head | 2026-04-06 (Mon) 09:00 | 2026-04-07 (Tue), at the end of the day | 2026-04-10 (Fri), at the end of the day |
A ticket ends within 40 business days at the most (3 × 10 at its stages, 2 × 5 with the requester). ritsu ringi doc --longest shows the dates of the longest.
Rules of a ticket
- A requester does not approve their own request: they are left out of the approvers of every stage, and so is the one who submitted it in their name.
- A stage whose one approver approved the stage right before it is done with that approval.
- An approver may send it back to the requester, at most 2 times in all, withdrawals counted. After that, they approve or reject it.
- Sent back to the requester, it may be submitted again until the end of the day 5 business days after; then it expires. Only the fields that change are given again.
- The requester may withdraw it until it is decided. Withdrawn, it comes back to them, to be submitted again or dropped.
- An approver may reject it: it ends rejected, and cannot be submitted again.
- The team that keeps the request may add an approver to the stage a ticket is at, and hand one approver's part over to someone else. Neither moves a deadline.
Comments
- A person may add a comment to what they do (submitting, approving, sending back, rejecting, withdrawing and the others), or write one on its own. One with no comment is the same as one with an empty comment.
- Who may write one is decided by the gate
shared/company.gate, as for the other operations. - A comment is up to 2000 characters. It is kept in the ticket's history, on the line of what the person did, with who wrote it and when, and is not changed after. Writing one on its own changes neither the state of the ticket nor its deadlines.
- An approver may reject or send back a request without a reason, but a reason written tells the requester what to correct.
Proxies
- A proxy for approving answers the stages of the person they stand in for, beside them, on the days the row says. Their answer counts once, in that person's seat. They may also pause and resume, correct the fields approvers correct, and retract an approval they gave.
- A proxy for submitting submits requests in the name of the person they stand in for, and may withdraw, submit again and drop them as the requester does.
- Whatever a proxy does is kept in the history with whose place they did it in.
The proxies the organization's data has for this request:
| Person | Proxy | For | Days |
|---|---|---|---|
| e1203 (Sales staff 3) | e1201 (Sales staff 1) | submitting | 2026-12-01 to 2026-12-31 |
Books and flows
- When it is submitted, it holds
leave.takein the book, withdaysfrom “Business days”, where “Kind of leave” is “Paid leave”. - When it is approved, the hold
leave.takeis made final, where “Kind of leave” is “Paid leave”. - When it is sent back, rejected, withdrawn or expired, the hold
leave.takeis let go, where “Kind of leave” is “Paid leave”.
Claims
The check holds each of these: a claim that did not hold would stop the request.
ends_in_time: every ticket ends within 40 business days; at the most it takes 40.
Scenarios
The check runs each of these on the ticket machine, and holds that every event comes to the stage and the state written.
a_long_paid_leave
Submitted by e1203 (Sales staff 3).
- Kind of leave: Paid leave
- First day: 2026-12-21
- Business days: 8
- Reason: “A family visit”
| At | Event | By | Stage after | State |
|---|---|---|---|---|
| 2026-11-16 09:00 | submit | e1203 (Sales staff 3) | manager | in progress |
| 2026-11-16 17:00 | approve | e1101 (Manager of Section 1A) | head | in progress |
| 2026-11-17 09:00 | reminder | — | head | in progress |
| 2026-11-19 00:00 | the deadline passes | — | head | in progress |
| 2026-11-19 10:00 | approve | e0101 (Head of Sales Division) | — | approved |
a_leave_sent_back_with_a_comment
Submitted by e1203 (Sales staff 3).
- Kind of leave: Paid leave
- First day: 2026-12-21
- Business days: 3
- Reason: “A family visit”
| At | Event | By | Comment | Stage after | State |
|---|---|---|---|---|---|
| 2026-11-16 09:00 | submit | e1203 (Sales staff 3) | manager | in progress | |
| 2026-11-16 11:00 | comment | e1101 (Manager of Section 1A) | “Who covers for you while you are away?” | manager | in progress |
| 2026-11-16 13:00 | comment | e1203 (Sales staff 3) | “e1201 does” | manager | in progress |
| 2026-11-16 17:00 | send back | e1101 (Manager of Section 1A) | “Write e1201 as the cover, please” | — | with the requester |
| 2026-11-16 17:30 | comment | e1203 (Sales staff 3) | “Where do I write the cover?” | — | with the requester |
| 2026-11-16 17:45 | comment | e1101 (Manager of Section 1A) | “In the cover field of the form” | — | with the requester |
| 2026-11-17 09:00 | submit again (“Who covers for you”: e1201 (Sales staff 1)) | e1203 (Sales staff 3) | “e1201 is written as the cover” | manager | in progress |
| 2026-11-17 10:00 | approve | e1101 (Manager of Section 1A) | “Have a good trip” | — | approved |
a_leave_rejected_with_a_reason
Submitted by e1203 (Sales staff 3).
- Kind of leave: Paid leave
- First day: 2026-12-21
- Business days: 8
- Reason: “A family visit”
| At | Event | By | Comment | Stage after | State |
|---|---|---|---|---|---|
| 2026-11-16 09:00 | submit | e1203 (Sales staff 3) | manager | in progress | |
| 2026-11-16 17:00 | approve | e1101 (Manager of Section 1A) | head | in progress | |
| 2026-11-16 18:00 | reject | e3101 (Head of Sales Department 1) | “The week before the year end is our busiest” | — | rejected |