mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
A foreign company licensed by the Ethiopian Investment Commission is not on the trade registry, so eTrade holds no record for its TIN and the lookup the company step is built around returns nothing. Those customers could not get past onboarding at all. They now take the same route a co-operative does: an `investorLicence` flag in `attributes`, and `applyEtradeSourcedFields` skips the eTrade re-check for any company `usesManualRegistration` covers, so the registration they type is persisted as sent instead of 400'ing "no registration found for this TIN". Unlike a co-operative they still hold a business licence per operational role, so that requirement is untouched, and the foreign document set already asks for the investment licence itself — no new set. Only a foreign company may carry the flag, and never alongside the co-operative one: the two resolve to different document sets. `POST /companies/onboarding/revert-to-etrade` gives it back. It clears the typed registration rather than keeping it — the wizard treats a populated registration block as a passed lookup, so leaving it would walk the customer straight past the eTrade step the switch exists to reach — and returns the company to pending, since an approval granted against typed data must not carry over to a record that now claims to be eTrade's.