D90 · A migrated charge takes its company from the platform, because v1's one contract template says MOP for everyone
Proposed · 2026-11-05 · zuki, on #544's item 3c, after Syamsul's review; it binds when this page's pull request is merged · Applies to the money step (#306); R-MON-19 stands for v2's own charges
Decision: The company follows the platform: Gojek is TOP, Grab is MOP. A charge the money step loads takes its legal entity from the first of these that answers:
- The platform of the bill's car.
- The driver's
pref_akun. - The accounts of the charge's own loaded payments: ...8883 is TOP and ...7878 is MOP. A v1 row that loads no payment doesn't count, and payments into both accounts give no answer.
- Keduanya isn't an answer: the order goes on to the next source.
- Nothing answers: the charge loads with no legal entity, and the reconcile lists it for ops to settle in v1. No company is guessed.
- It covers every migrated charge, with or without a rental. A contract's entity from v1 isn't read for a charge.
- v2's own charges keep R-MON-19: the rental's contract.
- v1's car platform is today's value. v1 keeps no history of it, so a car that changed platform takes its current one for all its charges.
Why: v1's single contract template says MOP for everyone, and only 317 of 2,552 rentals have a contract, so 531 of 5,806 charges with a rental got an entity. 420 allocations, Rp 170,843,252, were flagged cross-entity because of that template, not because of the money. Of drivers with a contract, 309 pay into TOP's account and 13 into MOP's. Wawan gave the business rule on 2026-11-05: company follows platform, and a driver can pay into the other company's account and still belong to their platform's company. On live v1 the platform matches the account about 97% of the time.
The car comes before pref_akun because it belongs to the charge, not the driver: 107 drivers paid into both accounts, and a driver-level answer can only be right for one of their cars. On live v1, pref_akun answers 3,873 of 3,981 leads, the car 52 more, the account 43 more, and 13 have no answer; that order was pref_akun first, so these counts change with this one.
Consequences:
- R-MON-17's cross-entity flag can now fire on most charges, where before R-MON-38 kept it to 531. Flags remain, and those are real: payments into the other company's account. The next night measures them.
- The reconcile gains a list of charges with no company.
- Contracts keep the entity v1 printed. This decision changes charges only.
- Open with ops: which company a driver on both platforms belongs to, and whether
pref_akunis updated when a driver switches.