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

Skip to content
Snippets Groups Projects
Commit 67414618 authored by Harald MARTINI's avatar Harald MARTINI
Browse files

Revert "Replaced ToMinSignificantDigits with ToXmlFormat in XMLCustomerReports"

This reverts commit 4521e5b4.
parent 62956f79
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.CustomerInformation
XMLHelper.ValueAsUnit(result.TotalVehicleMass, XMLNames.Unit_kg)),
new XElement(tns + XMLNames.Report_ResultEntry_Payload, XMLHelper.ValueAsUnit(result.Payload, XMLNames.Unit_kg)),
result.PassengerCount.HasValue && result.PassengerCount.Value > 0
? new XElement(tns + "PassengerCount", result.PassengerCount.Value.ToXMLFormat(3))
? new XElement(tns + "PassengerCount", result.PassengerCount.Value.ToMinSignificantDigits(3, 1))
: null,
new XElement(tns + XMLNames.Report_Result_FuelMode,
result.FuelData.Count > 1 ? XMLNames.Report_Result_FuelMode_Val_Dual : XMLNames.Report_Result_FuelMode_Val_Single),
......@@ -259,7 +259,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.CustomerInformation
new XAttribute(XMLNames.Report_Results_Unit_Attr, XMLNames.Unit_t),
_weightedPayload.ConvertToTon().ToXMLFormat(3)
),
_passengerCount > 0 ? new XElement(tns + "AveragePassengerCount", _passengerCount.ToXMLFormat(2)) : null
_passengerCount > 0 ? new XElement(tns + "AveragePAssengerCount", _passengerCount.ToMinSignificantDigits(2)) : null
)
: null;
results.Add(summary);
......
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