This commit is contained in:
natib21
2026-07-17 11:59:00 +00:00
parent 838ea5efc8
commit 47780c614a
2 changed files with 10 additions and 14 deletions

View File

@@ -35,14 +35,14 @@ const EDR_TRUCK_FLEET: ReadonlyArray<readonly [string, string]> = [
const TWENTY_FT_SEQS = new Set<number>();
/**
* PLACEHOLDER haulage rate, ETB per km — NOT a real EDR tariff.
* Haulage rate for the EDR truck fleet, ETB per km.
*
* First/last-mile billing is `distance × pricePerKm`, and a truck with no rate
* is refused at assignment, which would leave the whole demo flow unusable. This
* exists so the flow is clickable end to end; every amount it produces is
* fiction. Replace per truck in the fleet UI before anything bills for real.
* First/last-mile billing is `distance × pricePerKm` (see FirstMileService /
* LastMileService `setDistances`), and a truck with no rate is refused at
* assignment. Applies to the whole fleet — override per truck in the fleet UI
* where a specific truck differs.
*/
const PLACEHOLDER_PRICE_PER_KM = 50;
const TRUCK_PRICE_PER_KM_ETB = 20000;
@Injectable()
export class EdrTruckFleetSeeder {
@@ -81,9 +81,8 @@ export class EdrTruckFleetSeeder {
'ACTIVE',
'EDR',
'ETB',
PLACEHOLDER_PRICE_PER_KM,
`EDR-owned container truck configured for ${ft} containers. ` +
`Rate ${PLACEHOLDER_PRICE_PER_KM} ETB/km is DEMO DATA — replace with the real tariff.`,
TRUCK_PRICE_PER_KM_ETB,
`EDR-owned container truck configured for ${ft} containers.`,
];
});