diff --git a/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs b/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs index bb4d5773519219e469bc41171916f76faa63ba39..42cacdedc81047c50d6155833c68cc3cdd87fa21 100644 --- a/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs +++ b/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs @@ -32,10 +32,6 @@ namespace TUGraz.VectoMockup.Reports { var inputData = modelData.InputData as IXMLMultistageInputDataProvider; - var arch = inputData.JobInputData.PrimaryVehicle.Vehicle.ArchitectureID; - - inputData.JobInputData.PrimaryVehicle.Vehicle.VehicleCategory.GetVehicleType();// HEV/PEV - Sx/Px - var ihpc = (inputData.JobInputData.PrimaryVehicle.Vehicle.Components.ElectricMachines?.Entries)?.Count(electric => electric.ElectricMachine.IHPCType != "None") > 0; var iepc = (inputData.JobInputData.PrimaryVehicle.Vehicle.Components.IEPC != null); @@ -46,7 +42,13 @@ namespace TUGraz.VectoMockup.Reports inputData.JobInputData.PrimaryVehicle.Vehicle.ExemptedVehicle, iepc, ihpc); - + CustomerRpt = _cifFactory.GetCustomerReport( + inputData.JobInputData.ConsolidateManufacturingStage.Vehicle.VehicleCategory, + inputData.JobInputData.JobType, + inputData.JobInputData.PrimaryVehicle.Vehicle.ArchitectureID, + inputData.JobInputData.PrimaryVehicle.Vehicle.ExemptedVehicle, + iepc, + ihpc); //base.InstantiateReports(modelData); }