Skip to content

ETLE · ETLE fines

ETLE is Indonesia's electronic traffic enforcement. A weekly job checks every ready or rented car's plate; a fine it finds is linked to the rental active at the time and can become a charge on the driver. Code ETLE.

  • v1's etle column that no step reads (1 on the earlier copy). Claimed by a rule or signed as ignored by zuki (R-MIG-10); BE names it on #304.

R-ETLE-01 · An ETLE ticket number is unique within the organization

Section titled “R-ETLE-01 · An ETLE ticket number is unique within the organization”
  • Status: built
  • Example: given a violation with ticket number T-123, when the next scan finds T-123 again, then a second row is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer, the ETLE job included.
  • Source: [Ref] Data model V13: etle_violations.

R-ETLE-02 · A violation is linked to the rental that was active when it happened

Section titled “R-ETLE-02 · A violation is linked to the rental that was active when it happened”
  • Status: planned
  • Example: given a car rented to driver A until 2026-10-03 and to driver B from 2026-10-04, when a violation of 2026-10-02 is found on 2026-10-06, then it is linked to driver A's rental.
  • Refusal: none.
  • Who: the ETLE job (M5).
  • Source: [Ref] Database rules and conventions, Scheduled jobs; [Ref] Data model V13: etle_violations.rental_id.

R-ETLE-03 · The weekly ETLE check records one scan for each car that isn't inactive

Section titled “R-ETLE-03 · The weekly ETLE check records one scan for each car that isn't inactive”
  • Status: planned
  • Example: given 46 cars, 4 of them inactive, when the weekly check runs, then 42 etle_scans rows are written, one per car, cars in maintenance included, since staff drive them too.
  • Refusal: none.
  • Who: the ETLE job (M5).
  • Source: D39; #144 (etle 03; zuki's answer 16).

R-ETLE-04 · Reading ETLE scans and violations needs vehicle:read at the car's pool

Section titled “R-ETLE-04 · Reading ETLE scans and violations needs vehicle:read at the car's pool”
  • Status: built
  • Example: given a finance user, who doesn't hold vehicle:read, when they read etle_violations, then nothing comes back; an admin_fleet at the car's pool sees them.
  • Refusal: none: hidden.
  • Who: super_admin, admin, admin_driver, admin_fleet, maintenance, asuransi, checker and viewer hold vehicle:read.
  • Source: [Ref] Roles, policy matrix.

R-ETLE-05 · Recording ETLE scans and violations needs vehicle:write at the car's pool

Section titled “R-ETLE-05 · Recording ETLE scans and violations needs vehicle:write at the car's pool”
  • Status: built
  • Example: given a checker at PML, when they record a violation for a PML car, then it is refused; an admin_fleet at PML may.
  • Refusal: none: insufficient_privilege (42501) on insert; no effect on update.
  • Who: super_admin, admin and admin_fleet hold vehicle:write. The ETLE job runs as service_role and isn't limited by this.
  • Source: [Ref] Roles, policy matrix.

R-ETLE-06 · The operations step loads each v1 ETLE row as one violation, with its ticket number, its car by plate and its status through value_map: Terdeteksi to detected, Konfirmasi to confirmed, Lunas to paid

Section titled “R-ETLE-06 · The operations step loads each v1 ETLE row as one violation, with its ticket number, its car by plate and its status through value_map: Terdeteksi to detected, Konfirmasi to confirmed, Lunas to paid”
  • Status: built
  • Example: given v1's 226 ETLE rows on the v1 copy of 2026-11-02 (v1copy), when the step has run twice, then v2 holds 226 violations with the same ids both times (R-MIG-03), each with the status its v1 status gives through value_map (on the earlier copy of 2026-10-29, 183 rows: Terdeteksi 121 to detected, Lunas 59 to paid, Konfirmasi 3 to confirmed). A row whose car can't be found, or whose ticket number is refused by R-ETLE-01, is listed in migration.unmatched (R-MIG-04). A status, billing status or violation type with no value_map row stops the step (R-MIG-02); a violation type's row keeps it as v1 wrote it, so the violation holds v1's text (six types on the copy of 2026-11-03; zuki on #439 (2026-11-03)). No charge is made here: this step leaves charge_id empty, v1's billing is the money step's (#295), and that step sets the link (R-ETLE-09).
  • 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. R-ETLE-01.

R-ETLE-07 · A loaded violation is linked to the rental of its car at the time it happened, found from the car and the time, and not from v1's driver

Section titled “R-ETLE-07 · A loaded violation is linked to the rental of its car at the time it happened, found from the car and the time, and not from v1's driver”
  • Status: built
  • Example: given a v1 ETLE row violated on 2026-09-02 for a car rented from 2026-08-15, when the step runs, then rental_id is that rental, by R-ETLE-02; given a row whose car had no rental then, then rental_id is empty. On the earlier copy, 3 rows had the driver status 'Tidak Diketahui' and no lead found; v1's status_driver is Aktif, Tidak Diketahui or Return, and none of the three sets the payer. Such rows they load, linked or not by the same rule, and the reconcile prints them as loose ends.
  • 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. R-ETLE-02.

R-ETLE-08 · A loaded violation's payer is the driver or the company by v1's status_tagihan first, and by the car's rental at the time where it doesn't say

Section titled “R-ETLE-08 · A loaded violation's payer is the driver or the company by v1's status_tagihan first, and by the car's rental at the time where it doesn't say”
  • Status: built
  • Example: given v1's 226 rows on the v1 copy of 2026-11-02 (v1copy) by status_tagihan (Belum Tagih 142, Lunas Driver 78, Sudah Tagih 4, Ditanggung Fleet 2), when the step runs, then Lunas Driver gives payer driver and Ditanggung Fleet gives company, through value_map rows (R-MIG-02); Belum Tagih and Sudah Tagih don't say, so the deduction applies: a car with a rental live at violated_at (R-ETLE-07) is the driver's, a fine at rental time always falling on the driver, and a car with none (a pool car in operational, repossession or business use) is the company's. Where status_tagihan and the deduction disagree, status_tagihan wins: 28 of the 78 Lunas Driver rows have no live rental on the car at that time, and they stay the driver's. The reconcile counts these disagreements per status_tagihan and lists none of them as a difference to explain.
  • Refusal: none.
  • Who: the data phase's operations step (#304).
  • Source: zuki on #415 (2026-11-02: deduce it from the car and the time) and then, after the run of operations-values.sql, his agreement that status_tagihan comes first (2026-11-02); R-ETLE-07; etle_payer.

R-ETLE-09 · The money step sets a migrated violation's charge_id only from the one v1 ETLE bill whose source is exactly etle: followed by the row's no_tilang

Section titled “R-ETLE-09 · The money step sets a migrated violation's charge_id only from the one v1 ETLE bill whose source is exactly etle: followed by the row's no_tilang”
  • Status: built
  • Example: given a v1 ETLE row with no_tilang T-1001 and one ETLE bill whose source is etle:T-1001, when the money step has run, then the violation's charge_id is the charge loaded from that bill (R-MON-84). Given a row no bill holds that key for, then charge_id stays empty and the violation is counted as unlinked; the same for a bill that holds the key and loaded no charge (R-MON-84). Given a row whose key several bills hold, then charge_id stays empty, none of them is chosen, the violation is counted under several, and the reconcile lists its v1 id, never its ticket (D15). The step's own check prints the three counts: linked, unlinked and several. Nothing else is a key: not etle.id, whose few matches are coincidences with short ids, and never a plate, a lead, an amount or a date. A migrated ETLE bill with no such row, such as a manual one with no source, stays a charge with no violation. The link moves no money and changes no status: the charge and the violation keep the amounts, status and payer they loaded with (R-ETLE-08). There is no link table.
  • Refusal: none.
  • Who: the data phase's money step, its check, and its reconcile.
  • Source: zuki on #538 (2026-11-05); BE-DP-41 (the key, read on the copy; v1 moves, so the rule holds no count, D75); R-ETLE-06; R-MON-84.