feat: enhance service profile handling for customer companies

This commit is contained in:
Marshal
2026-06-22 12:11:10 +00:00
parent 3e45d694da
commit ad0043b580
2 changed files with 92 additions and 32 deletions

View File

@@ -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":