Explorar o código

add main branch commit
Commit 36f148a7: 依照 CDFA 認證規則調整Reciept 顯示格式

Robert hai 1 ano
pai
achega
aac105b222
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

+ 4 - 4
EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

@@ -1012,14 +1012,14 @@ internal partial class ProfileHandler
                                             if (bill.Count == 1)
                                             {
                                                 confirmbill = bill;
-                                                receipt += string.Format("| {0} - {1}:| {2} kWh @ ${3}/kWh=${4}", tx.StartTime.ToString("hh:mm tt", new CultureInfo("en-us")), tx.StopTime.ToString("hh:mm tt", new CultureInfo("en-us")),
+                                                receipt += string.Format("| {0} - {1}:| {2} kWh @ ${3}/kWh= ${4}", tx.StartTime.ToString("hh:mm tt", new CultureInfo("en-us")), tx.StopTime.ToString("hh:mm tt", new CultureInfo("en-us")),
                                                     confirmbill[0].PeriodEnergy.ToString("0.0000"), bill[0].Fee, bill[0].Total);
 
                                                 break;
                                             }
                                             if (bill.Count == 0)
                                             {
-                                                receipt += string.Format("| {0} - {1} @ ${2}/hr=${3}", feedto.StartTime.ToString("hh:mm tt", new CultureInfo("en-us")),
+                                                receipt += string.Format("| {0} - {1} @ ${2}/hr= ${3}", feedto.StartTime.ToString("hh:mm tt", new CultureInfo("en-us")),
                                                    feedto.StopTime.ToString("hh:mm tt", new CultureInfo("en-us")), feedto.Fee.Split('|')[0], chargingCost);
 
                                                 break;
@@ -1046,7 +1046,7 @@ internal partial class ProfileHandler
                                                     }
 
                                                 }
-                                                receipt += string.Format("| {0} - {1}:| {2} kWh @ ${3}/kWh=${4}", confirmbill[confirmbill.Count - 1].StartTime, confirmbill[confirmbill.Count - 1].EndTime,
+                                                receipt += string.Format("| {0} - {1}:| {2} kWh @ ${3}/kWh= ${4}", confirmbill[confirmbill.Count - 1].StartTime, confirmbill[confirmbill.Count - 1].EndTime,
                                                     confirmbill[confirmbill.Count - 1].PeriodEnergy.ToString("0.0000"), confirmbill[confirmbill.Count - 1].Fee, confirmbill[confirmbill.Count - 1].Total);
 
                                                 if (confirmbill.Count == 24) break;
@@ -1059,7 +1059,7 @@ internal partial class ProfileHandler
                                         chargingCost = confirmbill.Count > 0 ? confirmbill.Sum(x => x.Total) : chargingCost;
                                         receipt += string.Format("|Total Energy Fee : ${0}", chargingCost);
 
-                                        receipt += string.Format("|Parking Fee: | {0} - {1} @ ${2}/hr=${3}", feedto.StartTime.ToString("hh:mm tt", new CultureInfo("en-us")),
+                                        receipt += string.Format("|Parking Fee: | {0} - {1} @ ${2}/hr= ${3}", feedto.StartTime.ToString("hh:mm tt", new CultureInfo("en-us")),
                                         feedto.StopTime.ToString("hh:mm tt", new CultureInfo("en-us")), parkingFee, parkingCost);
                                         receipt += string.Format("|Stop Reason: | {0}", tx.StopReason);