mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 04:50:54 +00:00
feat(etrade): take the selected licence's trade name as the company name
A TIN routinely trades under a name that is not its registered one, and holds several licences with different trade names — of 58 TINs checked against eTrade, 8 had at least one licence whose trade name differs from the registered `BusinessName`, one of them across three licences. `extractRegistrationData` now resolves `companyName` from the selected licence's `TradeName`, falling back to `BusinessName` (16 of 309 licences carry a blank trade name, so the fallback is load-bearing). EIMS is pinned back to `BusinessName` for the seller's `LegalName`: an invoice is a MoR tax filing and must carry the legal entity, not the trade name. It is the only other caller.
This commit is contained in:
@@ -118,7 +118,11 @@ export class EimsSellerCacheService implements OnModuleInit {
|
||||
woreda: data.woreda,
|
||||
});
|
||||
this.cached = {
|
||||
LegalName: data.companyName || undefined,
|
||||
// The *legal* entity name, not the licence's trade name that
|
||||
// `data.companyName` now carries — an EIMS seller is filed under its
|
||||
// registered name.
|
||||
LegalName:
|
||||
companyInfo?.BusinessName?.trim() || data.companyName || undefined,
|
||||
Phone: data.mobilePhone || data.regularPhone || undefined,
|
||||
Region: geo?.Region,
|
||||
Wereda: geo?.Wereda,
|
||||
|
||||
Reference in New Issue
Block a user