YARA-1218

This commit is contained in:
SepehrYahyaee
2026-08-09 14:08:11 +03:30
parent d4cd8c9343
commit 8e4c794d61
3 changed files with 29 additions and 0 deletions

View File

@@ -8690,6 +8690,8 @@ export class RequestManagementService {
party.person.insurerLicense = partyData.insurerLicense;
if (partyData.driverLicense)
party.person.driverLicense = partyData.driverLicense;
if ((partyData as any).licenseType)
(party.person as any).licenseType = (partyData as any).licenseType;
if (!party.vehicle) party.vehicle = {} as any;
party.vehicle.plateId = this.plateToPlateIdString(partyData.plate);
@@ -9502,6 +9504,8 @@ export class RequestManagementService {
party.person.insurerLicense = partyData.insurerLicense;
if (partyData.driverLicense)
party.person.driverLicense = partyData.driverLicense;
if ((partyData as any).licenseType)
(party.person as any).licenseType = (partyData as any).licenseType;
if (!party.vehicle) party.vehicle = {} as any;
party.vehicle.plateId = partyData.vin; // store VIN as vehicle identifier
@@ -11117,6 +11121,7 @@ export class RequestManagementService {
clientId: p.person?.clientId
? String(p.person.clientId)
: undefined,
licenseType: p.person?.licenseType ?? undefined,
},
insurance: p.insurance
? {
@@ -11211,6 +11216,7 @@ export class RequestManagementService {
driverIsInsurer: p.person?.driverIsInsurer,
userId: p.person?.userId ? String(p.person.userId) : undefined,
clientId: p.person?.clientId ? String(p.person.clientId) : undefined,
licenseType: p.person?.licenseType ?? undefined,
},
insurance: p.insurance ? {
company: p.insurance.company,
@@ -11317,6 +11323,7 @@ export class RequestManagementService {
driverIsInsurer: p.person?.driverIsInsurer,
userId: p.person?.userId ? String(p.person.userId) : undefined,
clientId: p.person?.clientId ? String(p.person.clientId) : undefined,
licenseType: p.person?.licenseType ?? undefined,
},
insurance: p.insurance ? {
company: p.insurance.company,