mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 22:30:55 +00:00
feat: enhance service profile handling for customer companies
This commit is contained in:
@@ -585,7 +585,13 @@ export class CompaniesService {
|
||||
private getProfileTypeForCompanyType(companyType: string): ProfileType[] {
|
||||
switch (companyType) {
|
||||
case "customer":
|
||||
return [ProfileType.importer, ProfileType.exporter];
|
||||
// A customer can operate as an importer and/or exporter, and may also
|
||||
// add a freight-forwarder service profile under the same company.
|
||||
return [
|
||||
ProfileType.importer,
|
||||
ProfileType.exporter,
|
||||
ProfileType.freightForwarder,
|
||||
];
|
||||
case "freight_forwarder":
|
||||
return [ProfileType.freightForwarder];
|
||||
case "dj_freight_forwarder":
|
||||
|
||||
Reference in New Issue
Block a user