From 4521e5b46134c361edaab80e2cb5fe080be10189 Mon Sep 17 00:00:00 2001 From: "harald.martini@student.tugraz.at" <harald.martini@student.tugraz.at> Date: Mon, 28 Jun 2021 09:14:09 +0200 Subject: [PATCH] Replaced ToMinSignificantDigits with ToXmlFormat in XMLCustomerReports --- .../CustomerInformationFile/XMLCustomerReport.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/XMLCustomerReport.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/XMLCustomerReport.cs index fe28253da5..8d71e2d53f 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/XMLCustomerReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/XMLCustomerReport.cs @@ -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.ToMinSignificantDigits(3, 1)) + ? new XElement(tns + "PassengerCount", result.PassengerCount.Value.ToXMLFormat(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.ToMinSignificantDigits(2)) : null + _passengerCount > 0 ? new XElement(tns + "AveragePassengerCount", _passengerCount.ToXMLFormat(2)) : null ) : null; results.Add(summary); -- GitLab