Files
edr-platform/apps/edr-freight-api/src/modules
Hagernesh c937290019 feat(eims): resolve buyer geography from the MoR location master
BuyerDetails Country/Region/City/Wereda now resolve from the Ministry's own
EIMS_COUNTRY_REGION_VW master instead of the EIMS_BUYER_*_CODES env maps and
the ethiopia-geo-codes table. Both invented their codes and looked names up
globally, so KERSA/GORO/BABILE/BURE — each present in several zones with
different LOCALITY_NOs — could be filed against the wrong jurisdiction.

Resolution is hierarchical and refuses to guess: an unknown or ambiguous
address raises a local validation error naming the level that failed, and
never selects the first matching row. Spelling differences between EDR and
MoR live in a reviewed, parent-scoped alias layer; the dataset itself stays
verbatim so it remains traceable to the Ministry sheet.

Resolution now runs before the counter reservation in both the single and
bulk paths, so a bad company address no longer burns an EIMS sequence number.

Adds eims:import-locations to regenerate the dataset from a future workbook,
reporting duplicate rows and same-hierarchy code conflicts.
2026-08-24 06:59:50 +00:00
..
2026-08-23 19:02:33 +00:00
2026-08-21 09:25:21 +00:00
2026-08-23 19:02:33 +00:00
2026-08-21 09:25:21 +00:00
2026-08-12 07:12:04 +00:00
2026-08-20 10:29:58 +00:00
fix
2026-07-03 15:21:23 +00:00
2026-07-16 00:33:31 +00:00
2026-08-13 18:56:52 +00:00
2026-08-15 08:10:47 +00:00
2026-08-15 08:10:47 +00:00
2026-08-21 08:58:27 +00:00
2026-07-16 00:33:31 +00:00
2026-08-02 20:29:09 +00:00
2026-08-09 13:27:05 +00:00
2026-07-16 00:33:31 +00:00
2026-07-25 06:05:20 +00:00
2026-08-15 08:10:47 +00:00