External functions for setting vehicle ownership to a VOI BP and resetting the Ownership
Change Vehicle Status to Customer and change Owner
Code | ODP_VehicleStatusCustomer |
---|
Description | Change the vehicle owner to the VOI's current BP and change the vehicle status to Customer |
---|
Dependencies |
|
---|
Technical Notes | - Changes the Vehicle Status(XIS_CARS.U_Status) to OneCore.Core.Models.Models.Inventory.CarStatus.CustomerVehicle
- If no ownership record for the VOI BP exists in vehicle history collection (XIS_CARS.XIS_VHCLOWCollection) create a new one and update the ownership record.
- If an ownership record exists, update the history with that.
|
---|
Reset Vehicle Status and Owner
Code | ODP_VehicleStatusReset |
---|
Description | Remove the owner and reset the vehicle status |
---|
Dependencies |
|
---|
Technical Notes | - If the VOI Make dimension(IDMS_VoiItemView.U_IDMS_DIM_Make) equals the VehicleUsedMakeCode Setup Key (Default value: 98), then the vehicle status (XIS_CARS.U_Status) is reset to OneCore.Core.Models.Models.Inventory.CarStatus.UsedVehicle
- If the VOI Make dimension equals the vehicle make code(XIS_CARS.U_Mnfctr), then the vehicle status is reset to OneCore.Core.Models.Models.Inventory.CarStatus.NewVehicle
- The method nullifies the vehicle's owner and removes from the ownership history (XIS_CARS.XIS_VHCLOWCollection) any record of the VOI's current BP
|
---|
0 Comments