forked from Yara724/api
Fixed VIN placement for when the users use vin-based inquiry
This commit is contained in:
@@ -1842,8 +1842,8 @@ export class RequestManagementService {
|
||||
|
||||
if (!party.vehicle) party.vehicle = {} as any;
|
||||
party.vehicle.isNew = body.isNewCar;
|
||||
// Store VIN as the vehicle identifier instead of plate
|
||||
party.vehicle.plateId = body.vin;
|
||||
// Store VIN in vehicle.vin; leave plateId empty for VIN-based inquiries
|
||||
party.vehicle.vin = body.vin;
|
||||
party.vehicle.name = inquiryMapped?.MapTypNam;
|
||||
party.vehicle.type = `${inquiryMapped?.UsageField} / ${inquiryMapped?.MapUsageName || "-"}`;
|
||||
party.vehicle.inquiry = {
|
||||
@@ -9508,7 +9508,8 @@ export class RequestManagementService {
|
||||
(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
|
||||
// Store VIN in vehicle.vin; leave plateId empty for VIN-based inquiries
|
||||
party.vehicle.vin = partyData.vin;
|
||||
party.vehicle.name = inquiryMapped?.MapTypNam;
|
||||
party.vehicle.type = `${inquiryMapped?.UsageField ?? ""} / ${inquiryMapped?.UsageName ?? inquiryMapped?.MapUsageName ?? "-"}`;
|
||||
party.vehicle.inquiry = {
|
||||
|
||||
Reference in New Issue
Block a user