Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit bf218b5f authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

don't read ng tank system or ovc vor exempted vehicles

parent 634021b4
No related branches found
No related tags found
No related merge requests found
......@@ -194,9 +194,9 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.HeavyLorryRunDa
protected Segment GetSegment(IVehicleDeclarationInputData vehicle, bool batteryElectric = false)
{
_allowVocational = true;
var ng = vehicle.Components.EngineInputData?.EngineModes.Any(e =>
var ng = vehicle.ExemptedVehicle ? false : vehicle.Components.EngineInputData?.EngineModes.Any(e =>
e.Fuels.Any(f => f.FuelType.IsOneOf(FuelType.LPGPI, FuelType.NGCI, FuelType.NGPI))) ?? false;
var ovcHev = vehicle.OvcHev;
var ovcHev = vehicle.ExemptedVehicle ? false : vehicle.OvcHev;
Segment segment;
try
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment