Skip to content

ASR · Insurance

A car changes insurer over the years; each period is an insurance_policies row. A claim names its insurer and must use one of that insurer's partner garages (bengkel rekanan). Code ASR, from asuransi. A claim keeps its photos as rows of their own, like an inspection's or a background check's.

Insurers, garages and partner garages themselves are master data: who adds, changes, retires and restores them is on Master data, R-MD-52 to R-MD-82.

  • Fixing a claim photo's kind after it is saved (#263): yes, at Vehicle Management's level. zuki, 2026-10-22: "claim photo can be edit by admin vehicle level" (admin_fleet's label is Admin vehicle). R-ASR-12; R-ASR-10 keeps the file and the row from being deleted or overwritten.

  • How policies relate to the car's documents, to each other and to expiry (#465): zuki, 2026-11-30. Policies and the insurance document are separate (R-ASR-27); two policies on one car may overlap (R-ASR-22); changing a policy is in scope (R-ASR-23); the expiry list is /insurance (R-ASR-29) and the car's Polis tab (R-ASR-31); a window of 30 days (R-ASR-25) and expired insurance blocks nothing (R-ASR-26).

  • The one column of asuransi_claims no step reads. Claimed by a rule or signed as ignored by zuki (R-MIG-10); BE names it on #304. v1's claim_letters are not claims' letters: they are debt letters (see the Collection page).
  • D95's insurance notification and its pg_cron job go to a new issue, not #465.
  • Where the claim's work order link comes from. work_order_id is filled only when the work order load (R-WO-10) can name it.

R-ASR-01 · A claim that names an insurer and a garage uses one of that insurer's partner garages

Section titled “R-ASR-01 · A claim that names an insurer and a garage uses one of that insurer's partner garages”
  • Status: built
  • Example: given insurer A partners with garage X but not garage Y, when a claim with insurer A and garage Y is saved, then it is refused.
  • Refusal: none: foreign_key_violation (23503), from insurance_claims_partner_garage_fk.
  • Who: every writer.
  • Source: [Ref] Data model V13: insurance_claims, insurer_garages.

R-ASR-02 · A claim code is unique within the organization

Section titled “R-ASR-02 · A claim code is unique within the organization”
  • Status: built
  • Example: given a claim with a code, when a second claim with the same code is saved in the organization, then it is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: insurance_claims.

R-ASR-03 · A policy number is unique per insurer within the organization

Section titled “R-ASR-03 · A policy number is unique per insurer within the organization”
  • Status: built
  • Example: given insurer A's policy P-001, when a second P-001 for insurer A is saved, then it is refused; P-001 for insurer B is accepted.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: insurance_policies.

R-ASR-04 · Reading insurance policies and claims needs insurance:read at the car's pool

Section titled “R-ASR-04 · Reading insurance policies and claims needs insurance:read at the car's pool”
  • Status: built
  • Example: given a checker at PML, when they read insurance_claims, then nothing comes back; an asuransi user at PML sees PML's claims.
  • Refusal: none: hidden.
  • Who: super_admin, admin, admin_fleet, asuransi and viewer hold insurance:read.
  • Source: [Ref] Roles, policy matrix.

R-ASR-05 · Adding or changing an insurance policy or claim needs insurance:write at the car's pool

Section titled “R-ASR-05 · Adding or changing an insurance policy or claim needs insurance:write at the car's pool”
  • Status: built
  • Example: given a maintenance user at PML, when they file a claim for a PML car, then it is refused; an asuransi user at PML may.
  • Refusal: for a policy, insurance.not_allowed (42501) from add_policy and change_policy (R-ASR-16, R-ASR-23); a direct write is refused by R-ASR-24. For a claim, none: insufficient_privilege (42501) on insert; no effect on update.
  • Who: super_admin, admin, admin_fleet and asuransi hold insurance:write.
  • Source: [Ref] Roles, policy matrix; the policy key by zuki on #465, 2026-11-30.

R-ASR-06 · A claim has any number of photos, each with a kind: accident, ktp, sim or other

Section titled “R-ASR-06 · A claim has any number of photos, each with a kind: accident, ktp, sim or other”
  • Status: built
  • Example: given claim Claim/VM/TOP/20261019-001, when an asuransi user adds three photos of the damage and one of the driver's SIM, then the claim has four photo rows, three of kind accident and one of kind sim; a photo saved with kind selfie is refused.
  • Refusal: none: the kind is an enum, so an unknown value is refused (22P02).
  • Who: every writer of claim photos.
  • Source: #250 (a home for v1's 1,895 claim photos, D60: every v1 file moves); the CTO on #250 (2026-10-21: the kinds come from v1's labels, laka, fotoktp, fotosim and the rest). BE builds the table in #251.

R-ASR-07 · A claim photo is stored at organization_id/insurance_claim_photos/row_id/file, and Storage finds its pool through its claim's car

Section titled “R-ASR-07 · A claim photo is stored at organization_id/insurance_claim_photos/row_id/file, and Storage finds its pool through its claim's car”
  • Status: built
  • Example: given a photo row 9a1c… for a claim on a car whose home pool is PML, when the photo is uploaded, then its path is <organization_id>/insurance_claim_photos/<row_id>/accident-1.jpg, with no pool in it; when the car later moves to SBY, SBY's asuransi user opens it and PML's no longer can (R-STO-03).
  • Refusal: none: an upload outside this pattern has no policy that allows it (R-STO-02).
  • Who: every upload of a claim photo.
  • Source: D14 (paths follow the owning row; the pool comes from the row's resolver); R-STO-02; #250.

R-ASR-08 · Reading a claim's photos needs insurance:read at its car's pool

Section titled “R-ASR-08 · Reading a claim's photos needs insurance:read at its car's pool”
  • Status: built
  • Example: given a checker at PML, when they read a PML claim's photos, then nothing comes back; an asuransi user at PML sees them, and the files open for that user (R-STO-03).
  • Refusal: none: hidden.
  • Who: super_admin, admin, admin_fleet, asuransi and viewer hold insurance:read, as for the claim itself (R-ASR-04).
  • Source: [Ref] Roles, policy matrix (insurance claims); R-ASR-04; #250.

R-ASR-09 · Adding a claim photo needs insurance:write at its car's pool

Section titled “R-ASR-09 · Adding a claim photo needs insurance:write at its car's pool”
  • Status: built
  • Example: given a maintenance user at PML, when they add a photo to a PML claim, then it is refused; an asuransi user at PML may, and so may an admin_fleet.
  • Refusal: none: insufficient_privilege (42501).
  • Who: super_admin, admin, admin_fleet and asuransi hold insurance:write, as for the claim (R-ASR-05). The insurance roles D63 names are these; it adds none.
  • Source: [Ref] Roles, policy matrix; R-ASR-05; #250.

R-ASR-10 · App users can't delete a claim photo, or overwrite its file

Section titled “R-ASR-10 · App users can't delete a claim photo, or overwrite its file”
  • Status: built
  • Example: given a saved accident photo, when an asuransi user or an admin_fleet deletes the row or uploads over its file, then nothing changes; a better photo is added as a new row (R-ASR-06). Its kind can be fixed (R-ASR-12).
  • Refusal: none: no effect on delete, as there is no policy; Storage refuses the overwrite (R-STO-12).
  • Who: every app user, super_admin included. Removing one is never an app action (D65).
  • Source: #250 (files never overwritten or deleted by app users); R-STO-12; D65; zuki on #263 (the kind may be edited, R-ASR-12).

R-ASR-11 · The photo copy gives each v1 claim photo its kind from its v1 label: laka to accident, fotoktp to ktp, fotosim to sim, anything else to other

Section titled “R-ASR-11 · The photo copy gives each v1 claim photo its kind from its v1 label: laka to accident, fotoktp to ktp, fotosim to sim, anything else to other”
  • Status: built
  • Example: given v1's file asuransi/…/laka_3.jpg named by claim 812, when the photo copy runs, then the claim's v2 row has a photo of kind accident at its R-ASR-07 path; a file with any other label becomes kind other. A claim photo stored inline in v1's asuransi_claims.data is copied the same way, as a file.
  • Refusal: none.
  • Who: the migration's photo copy (data phase row 6).
  • Source: the CTO on #250 (2026-10-21: accident from laka, 1,584 files; ktp from fotoktp; sim from fotosim; other); #184 (1,895 files in mop-files' asuransi folder, 3 inline); D60. A file whose claim can't be told is a file from v1 on its car (D70).

R-ASR-12 · Changing a claim photo's kind needs insurance:write and vehicle:write at its car's pool; nothing else about it changes

Section titled “R-ASR-12 · Changing a claim photo's kind needs insurance:write and vehicle:write at its car's pool; nothing else about it changes”
  • Status: built
  • Example: given a PML claim photo saved as sim that shows the KTP, when an admin_fleet at PML changes its kind to ktp, then it is saved and the audit log keeps the change; an asuransi user at PML, who holds insurance:write but not vehicle:write, changes nothing. Its claim, its path and its file stay as they were (R-ASR-10).
  • Refusal: none: no effect on update.
  • Who: admin_fleet (Admin vehicle), admin and super_admin, who hold both permissions. asuransi doesn't hold vehicle:write.
  • Source: zuki on #263 (2026-10-22: "claim photo can be edit by admin vehicle level"); the CTO's proposed answer there (the kind can be fixed, the file can't). No new permission: admin_fleet's level is the holders of both.

R-ASR-13 · The operations step loads each v1 insurance claim as one claim, with its v1 code as claim_code, its car by plate, and its status through value_map: Proses Pengajuan to submitted, Proses Perbaikan to in_repair, Selesai to done

Section titled “R-ASR-13 · The operations step loads each v1 insurance claim as one claim, with its v1 code as claim_code, its car by plate, and its status through value_map: Proses Pengajuan to submitted, Proses Perbaikan to in_repair, Selesai to done”
  • Status: built
  • Example: given v1's 189 claims on the v1 copy of 2026-11-02 (v1copy) (Selesai 99, Proses Perbaikan 24, Proses Pengajuan 66), when the step has run twice, then v2 holds 189 claims with the same ids both times (R-MIG-03): 99 done, 24 in_repair, 66 submitted. A claim whose car can't be found is listed in migration.unmatched (R-MIG-04), and a code another claim holds is refused by R-ASR-02, so both are listed. A status, category or accident type with no value_map row stops the step (R-MIG-02): the accident types Light, Medium, Heavy and Super Heavy map to v2's grades light, medium, heavy and super_heavy, and an empty category or accident type stays empty (zuki on #439 (2026-11-03)). Its insurer and garage are found as R-ASR-15 says, and the partner pairs are added by R-ASR-14. Its dates (accident, SPK, in garage, completed) are v1's, and an empty date stays empty. The earlier copy of 2026-10-29 held 148 (74, 37 and 37).
  • Refusal: none.
  • Who: the data phase's operations step (#304)
  • Source: #356; BE-DP-35's run on the copy of 2026-10-29 (the CTO's reading on #356, 2026-10-30); R-MIG-02; R-MIG-03; R-MIG-04. D70; R-ASR-02; R-ASR-11 (the photo copy then attaches the asuransi folder to these claims, R-STO-23).

R-ASR-14 · For each insurer and garage pair on a v1 claim that names both, the operations step adds an insurer_garages row, so the claim loads and R-ASR-01 holds

Section titled “R-ASR-14 · For each insurer and garage pair on a v1 claim that names both, the operations step adds an insurer_garages row, so the claim loads and R-ASR-01 holds”
  • Status: built
  • Example: given v1's 189 claims on the v1 copy of 2026-11-02 (v1copy), 107 of which name an insurer and a garage (189 less the 82 with no insurer) and make 39 distinct pairs once insurer case is ignored, when the step runs, then each distinct pair has one insurer_garages row before its claims load, and a second run adds none (R-MIG-03). A claim with an insurer and no garage, or a garage and no insurer, needs no row. The 82 claims with no insurer are R-ASR-15's.
  • Refusal: none.
  • Who: the data phase's operations step (#304).
  • Source: zuki on #415 (2026-11-02: option b, add the pair); R-ASR-01; #356.

R-ASR-15 · A v1 claim's insurer and garage are found in master data, by name without regard to case, and a claim with no insurer loads with insurer_id empty and its garage kept

Section titled “R-ASR-15 · A v1 claim's insurer and garage are found in master data, by name without regard to case, and a claim with no insurer loads with insurer_id empty and its garage kept”
  • Status: built
  • Example: given v1 claims naming Sompo and SOMPO, when the step runs, then both find the one Sompo row of the insurers table; the claims name 13 insurers: ACA and Garda Oto, which v1's insurer list holds, and Aswata, Avrist, Etiqa, MAG, MPM, Raksa, Ramayana, Sompo, Sunday, TAP Insure and TOB, which it lacks and which are master data by R-MD-21 (11 names on 74 claims on the copy of 2026-11-03). A spelling v1 has that differs beyond case is a value_map row (R-MIG-02). The garages are found the same way in the garages table, 'Polsek' (3 rows) among them: it is a section of our own pool used for small mechanic repairs, a garage like the others, with no special case. The claims' 'INTERNAL POOL / BARANG BUKTI POLSEK' maps to Polsek and 'MPM Cilenggang' to MPM BSD through value_map rows (zuki on #304, 2026-11-03, answers 2 and 3). A garage with no master-data row stops the step (R-MIG-02), and none is invented; an insurer v1's claims name is master data by R-MD-21. The claims with no insurer (82 on v1copy of 2026-11-02, 86 on the earlier copy) load with insurer_id empty and the garage kept; the partner check passes on the empty insurer (R-ASR-01).
  • Refusal: none.
  • Who: the data phase's operations step (#304).
  • Source: zuki on #415 (2026-11-02); zuki on #304 (2026-11-03, answers 1(a), 2 and 3); R-MIG-02; master data (R-MD-21).

A policy is written only by add_policy and change_policy. A car's insurance state is read from its policy with the latest end date, and the expiry list and the car's Polis tab show it. A policy is not the vehicle document of type insurance (R-ASR-27).

R-ASR-16 · add_policy saves a policy for a car and returns its id: the insurer, the policy number, the start and end dates, and optionally the coverage and the premium

Section titled “R-ASR-16 · add_policy saves a policy for a car and returns its id: the insurer, the policy number, the start and end dates, and optionally the coverage and the premium”
  • Status: built
  • Example: given a car at PML, when an asuransi user at PML calls add_policy with insurer A, number P-001, starts_on 2026-12-01, ends_on 2027-11-30, coverage "All risk" and premium 4500000, then a row is saved for that car in the car's organization with those values, and its id is returned. The coverage and the premium may be left out. The car may be inactive.
  • Refusal: vehicle.not_found (a car the user can't read); insurance.not_allowed (42501: no insurance:write at the car's home pool, R-ASR-05), which can be known only once the car is found. The checks of R-ASR-17 to R-ASR-21 follow, in this order: field_required, dates_invalid, premium_invalid, policy_number_taken, then the insurer (master_data.not_found, master_data.retired).
  • Who: insurance:write holders at the car's home pool.
  • Source: #465; zuki, 2026-11-30 (the Align answers); D3 (a policy is money, so it is written by a function); D10; R-VEH-48 and add_vehicle_document as the pattern.

R-ASR-17 · A policy needs an insurer, a policy number that is not blank once trimmed, a start date and an end date

Section titled “R-ASR-17 · A policy needs an insurer, a policy number that is not blank once trimmed, a start date and an end date”
  • Status: built
  • Example: given an add_policy call with a policy number of " ", when it runs, then it is refused with insurance.field_required and {field: policy_number} in its detail; a missing insurer_id, starts_on or ends_on is refused the same way, naming that field. The number is saved trimmed. The coverage and the premium are optional.
  • Refusal: insurance.field_required, with {field}, the argument's name, in its detail; checked after vehicle.not_found and insurance.not_allowed, with the first missing field in the order insurer_id, policy_number, starts_on, ends_on.
  • Who: insurance:write holders, through add_policy and change_policy (R-ASR-24).
  • Source: #465; zuki, 2026-11-30 (the Align answers); D10; R-VEH-47 (field_required as the vehicle functions raise it).

R-ASR-18 · A policy's end date is on or after its start date

Section titled “R-ASR-18 · A policy's end date is on or after its start date”
  • Status: built
  • Example: given a policy with starts_on 2026-12-01, when ends_on 2026-11-30 is saved, then it is refused; ends_on 2026-12-01 (a one-day policy) is accepted.
  • Refusal: insurance.dates_invalid, with {starts_on, ends_on} in its detail. The table's check insurance_policies_dates stays as the backstop.
  • Who: insurance:write holders, through add_policy and change_policy.
  • Source: #465; zuki, 2026-11-30 (the Align answers); the data model's check (R-ASR-03's table).

R-ASR-19 · A premium, when given, is a whole number of rupiah above zero

Section titled “R-ASR-19 · A premium, when given, is a whole number of rupiah above zero”
  • Status: built
  • Example: given add_policy with premium 4500000, then it is saved as 4500000; with premium 0 or -1, then it is refused with the key; with 1500.5, it is a cast error; with no premium, the policy is saved with the premium empty. There is no currency column: the amount is always rupiah.
  • Refusal: insurance.premium_invalid, with {premium} in its detail. A value that is not a whole number, such as 1500.5, or not a number at all, is a cast error from the API (22P02) before the function runs, not a key.
  • Who: insurance:write holders, through add_policy and change_policy.
  • Source: #465; zuki, 2026-11-30 (the Align answers); bigint whole rupiah as for other money columns (conventions).

R-ASR-20 · A policy number already held by the same insurer in the organization is refused with a key; the same number at another insurer is accepted

Section titled “R-ASR-20 · A policy number already held by the same insurer in the organization is refused with a key; the same number at another insurer is accepted”
  • Status: built
  • Example: given insurer A's policy P-001, when add_policy is called with insurer A and P-001 for any car, then it is refused; with insurer B and P-001, it is saved. A change that would make a policy's number or insurer collide with another policy is refused the same way.
  • Refusal: insurance.policy_number_taken, with {insurer_id, policy_number} in its detail. R-ASR-03's unique constraint stays as the backstop (unique_violation, 23505) for any write that doesn't go through the functions.
  • Who: insurance:write holders, through add_policy and change_policy.
  • Source: #465; zuki, 2026-11-30 (the Align answers); R-ASR-03; D10.

R-ASR-21 · A policy's insurer belongs to the organization and isn't retired; a retired insurer is refused when a policy is added or its insurer changed

Section titled “R-ASR-21 · A policy's insurer belongs to the organization and isn't retired; a retired insurer is refused when a policy is added or its insurer changed”
  • Status: built
  • Example: given a retired insurer R, when add_policy names R, then it is refused; an insurer id that doesn't exist, or belongs to another organization, is refused as not found; a change that sends the policy's own insurer on a policy whose insurer was retired later is accepted, so the change form's picker lists the current insurer even when retired. A composite key (insurer_id, organization_id) is the backstop for a write outside the functions.
  • Refusal: master_data.retired, with {field: insurer_id, id} in its detail, checked only when the call sets or changes the insurer (change_policy always sends one, so it compares it with the stored one); master_data.not_found, with {field: insurer_id, id}, for an insurer that doesn't exist or is of another organization, as R-MD-60 does for a partner garage; a write outside the functions: none: foreign_key_violation (23503) from the composite key.
  • Who: insurance:write holders, through add_policy and change_policy.
  • Source: #465; zuki, 2026-11-30 (the Align answers); R-MD-60 and its retired-key pattern on Master data; R-TEN-05.

R-ASR-22 · Two policies on one car may overlap in time

Section titled “R-ASR-22 · Two policies on one car may overlap in time”
  • Status: built
  • Example: given a car with a policy running 2026-01-01 to 2026-12-31, when a second policy from insurer B running 2026-10-01 to 2027-09-30 is added, then both are saved; no exclusion constraint or key refuses it. A gap between two policies is allowed too, and nothing flags it.
  • Refusal: none.
  • Who: insurance:write holders.
  • Source: #465; zuki, 2026-11-30 (the Align answers); zuki chose to allow overlap (an early renewal, an add-on cover from a second insurer), so no overlap key exists. A car's state reads its policy with the latest end date (R-ASR-25).

R-ASR-23 · change_policy changes a policy's insurer, number, coverage, dates and premium, and never the car it belongs to

Section titled “R-ASR-23 · change_policy changes a policy's insurer, number, coverage, dates and premium, and never the car it belongs to”
  • Status: built
  • Example: given a policy P-001 on car C1 ending 2026-12-31, when an asuransi user at C1's pool calls change_policy with ends_on 2027-01-31, then the policy has the new date and the audit log keeps the change (audit_row on the table); a call that names another car changes nothing about the car, because the function takes no vehicle argument. The call replaces every field: the form sends all of them, with the current values for those the user didn't touch, and a coverage or premium sent empty is emptied.
  • Refusal: insurance.policy_not_found (a policy the user can't read, or no such id); insurance.not_allowed (42501: no insurance:write at the car's home pool), which can be known only once the policy is found; then the checks of R-ASR-17 to R-ASR-21 on the values that change, in the order R-ASR-16 gives.
  • Who: insurance:write holders at the car's home pool.
  • Source: #465; zuki, 2026-11-30 (the Align answers); D3; D10.

R-ASR-24 · App users write a policy only through add_policy and change_policy; a direct insert, update or delete is refused

Section titled “R-ASR-24 · App users write a policy only through add_policy and change_policy; a direct insert, update or delete is refused”
  • Status: built
  • Example: given an asuransi user, when they insert, update or delete a row of insurance_policies through the API, then it is refused (a delete too, D65); reading under R-ASR-04 is unaffected. A car's policy is never removed in the app: a wrong one is changed (R-ASR-23).
  • Refusal: none: insufficient_privilege (42501) for the insert, the update and the delete alike: authenticated holds none of those privileges on the table.
  • Who: every app user, super_admin included.
  • Source: #465; zuki, 2026-11-30 (the Align answers); D3 (money is written by functions); D65.

R-ASR-25 · A car's insurance state is active, expiring, expired or none, read from the car's policy with the latest end date: expiring from 30 days before that date through it, expired the day after it

Section titled “R-ASR-25 · A car's insurance state is active, expiring, expired or none, read from the car's policy with the latest end date: expiring from 30 days before that date through it, expired the day after it”
  • Status: built
  • Example: given a pool whose today is 2026-11-30, when its cars are read, then: ends_on 2026-12-31 is active (31 days ahead); ends_on 2026-12-30 is expiring (30 days ahead is the last day of the window); ends_on 2026-11-30 is expiring (valid through that date, R-VEH-51); ends_on 2026-11-29 is expired; a car with no policy is none. Given policies ending 2026-10-01 and 2027-06-30, the 2027 one counts and the car is active, however the periods overlap (R-ASR-22). Today is the home pool's (app.pool_today), and the 30 days is a constant in Postgres, not a setting.
  • Refusal: none.
  • Who: every reader of policies (R-ASR-04).
  • Source: #465; zuki, 2026-11-30 (the Align answers); D95 and D110 (30 days); D47; R-VEH-51 (inclusive end date, the pool's today).

R-ASR-26 · An expired or missing policy blocks nothing

Section titled “R-ASR-26 · An expired or missing policy blocks nothing”
  • Status: built
  • Example: given a car whose latest policy ended 2026-10-01, or that has none, when it is set ready, rented out or returned, then no insurance key refuses it; only the STNK guards ready (R-VEH-25).
  • Refusal: none.
  • Who: every role.
  • Source: #465; zuki, 2026-11-30 (the Align answers); D47 (it names the STNK only).

R-ASR-27 · A document of type insurance and a policy are separate: adding one never adds or changes the other, and the expiry list counts policies only

Section titled “R-ASR-27 · A document of type insurance and a policy are separate: adding one never adds or changes the other, and the expiry list counts policies only”
  • Status: built
  • Example: given a car with an insurance document expiring 2027-06-30 and no policy, when the list is read, then the car is none; given a policy ending 2027-06-30 and no document, the car is active, and R-VEH-48 and the documents tab are unchanged.
  • Refusal: none.
  • Who: every reader and writer.
  • Source: #465; zuki, 2026-11-30 (the Align answers); R-VEH-48 (untouched); the document is a scanned copy.

R-ASR-28 · /insurance, labelled Asuransi, opens for a user who holds insurance:read; without it the menu item is hidden and the page is refused

Section titled “R-ASR-28 · /insurance, labelled Asuransi, opens for a user who holds insurance:read; without it the menu item is hidden and the page is refused”
  • Status: built
  • Example: given a checker, who holds no insurance:read, when they open /insurance, then the menu has no Asuransi item and the page is refused as the shell refuses any page the user may not open; an asuransi user, an admin_fleet or a viewer sees the item and opens the list. Claims join the page later as a tab (M5-06).
  • Refusal: none: the page is refused by the shell.
  • Who: super_admin, admin, admin_fleet, asuransi and viewer hold insurance:read (R-ASR-04).
  • Source: #465; zuki, 2026-11-30 (the Align answers); R-VEH-43 as the pattern; lib/nav.ts; D107 (the page is built from an approved mockup).

R-ASR-29 · The expiry list on /insurance shows one row per car that isn't inactive, in the pools the user reads: unit code, plate, pool, insurer, policy number, end date and state

Section titled “R-ASR-29 · The expiry list on /insurance shows one row per car that isn't inactive, in the pools the user reads: unit code, plate, pool, insurer, policy number, end date and state”
  • Status: built
  • Example: given a car with no policy, an active car, an expiring car and an inactive car, when an asuransi user opens /insurance, then three rows show and the inactive car doesn't; a member limited to some rental companies sees only those companies' cars (R-ACC-43, R-ACC-44, as R-VEH-52 does for documents); the car with no policy shows state none (Belum ada), with the insurer, number and end date empty; each row shows its latest-ending policy (R-ASR-25), and states read Aktif, Segera berakhir, Berakhir and Belum ada. A row links to the car's sheet, its Polis tab.
  • Refusal: none: hidden for a car or pool the user doesn't read, as R-ASR-04 says.
  • Who: insurance:read holders, within the member's rental companies (R-ACC-43, R-ACC-44).
  • Source: #465; zuki, 2026-11-30 (the Align answers); the lead, 2026-11-30 (the rental-company limit applies, as the CTO answered for documents on 2026-11-24); R-ASR-25; R-VEH-45 as the pattern for columns.

R-ASR-30 · The expiry list filters by pool and state, combined with AND, and is sorted by end date, soonest first, with cars that have no policy last

Section titled “R-ASR-30 · The expiry list filters by pool and state, combined with AND, and is sorted by end date, soonest first, with cars that have no policy last”
  • Status: built
  • Example: given cars ending 2026-11-01 (expired), 2026-12-10 (expiring) and 2027-06-01 (active) and one with none, when the list loads with no filter, then it shows them in that order; with state expiring, only the second; with pool PML and state expired, only an expired car at PML. The list is paged as the vehicle list is (R-VEH-40).
  • Refusal: none.
  • Who: insurance:read holders.
  • Source: #465; zuki, 2026-11-30 (the Align answers); R-VEH-39 and R-VEH-40 as the pattern.

R-ASR-31 · The vehicle sheet has a Polis tab listing every policy of the car, latest end date first, with its insurer, number, coverage, period, premium and state, to an insurance:read holder at the car's pool

Section titled “R-ASR-31 · The vehicle sheet has a Polis tab listing every policy of the car, latest end date first, with its insurer, number, coverage, period, premium and state, to an insurance:read holder at the car's pool”
  • Status: built
  • Example: given a car with two overlapping policies, when an insurance:read holder opens its Polis tab, then both show, the one ending later first, each with Asuransi, No. polis, Cakupan, Mulai, Berakhir, Premi (rupiah) and its own state (Aktif, Segera berakhir or Berakhir, by its own end date, R-ASR-25); a dash for an empty coverage or premium; a user without insurance:read at the pool sees no tab, and a member limited to some rental companies sees only those companies' cars (R-ACC-43, R-ACC-44). A holder of insurance:write also sees the add-policy form and a change control on each row; others don't.
  • Refusal: none: hidden, as R-ASR-04 says.
  • Who: insurance:read holders to read, within the member's rental companies (R-ACC-43, R-ACC-44); insurance:write holders to add and change.
  • Source: #465; zuki, 2026-11-30 (the Align answers); the lead, 2026-11-30 (the rental-company limit); R-VEH-52 as the pattern for a sheet tab; D107.

R-ASR-32 · A refusal from add_policy or change_policy is shown in Indonesian beside the field it names

Section titled “R-ASR-32 · A refusal from add_policy or change_policy is shown in Indonesian beside the field it names”
  • Status: built
  • Example: given an asuransi user who saves a policy with a premium of 0, when the form is refused, then the message appears beside Premi and the form keeps what was typed; insurance.policy_number_taken appears beside No. polis, insurance.dates_invalid beside Berakhir, field_required, master_data.not_found and master_data.retired beside the field they name (Asuransi for insurer_id), and a refusal that names no field (insurance.not_allowed, insurance.policy_not_found, vehicle.not_found) at the top of the form.
  • Refusal: the keys of R-ASR-16 to R-ASR-23.
  • Who: insurance:write holders.
  • Source: #465; zuki, 2026-11-30 (the Align answers); R-VEH-53 as the pattern.

R-ASR-33 · /insurance has one search box that filters the expiry list to cars whose plate number, or whose current policy's insurer name, contains the text, ignoring case

Section titled “R-ASR-33 · /insurance has one search box that filters the expiry list to cars whose plate number, or whose current policy's insurer name, contains the text, ignoring case”
  • Status: built
  • Example: given cars B1234XYZ with a current policy from Sompo and D5678ABC with one from Garda Oto, when an asuransi user types "sompo" in the search box, then only B1234XYZ shows; "d5678" shows only D5678ABC; "xyz" shows B1234XYZ. With the pool filter PML and the state filter expiring also set, a car must pass all three (R-ASR-30). A car with no policy has no insurer name and matches only on its plate. Clearing the box brings back the list with its filters.
  • Refusal: none.
  • Who: insurance:read holders (R-ASR-28), within the member's rental companies (R-ACC-43, R-ACC-44).
  • Source: #465; zuki, 2026-11-30 (the mockup: the search box stays); R-ASR-29; R-ASR-30; R-VEH-44 as the pattern for a search box.