Bläddra i källkod

add isbilling stop transaction report time

shayne_lo 7 månader sedan
förälder
incheckning
97e50d1802
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

+ 5 - 0
EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

@@ -1235,6 +1235,11 @@ internal partial class ProfileHandler
                                     {
                                         couponPoint = response.CouponPoint == null ? couponPoint : response.CouponPoint.Value;
                                         farewellMessage = response.FarewellMessage == null ? farewellMessage : response.FarewellMessage;
+
+										if (response.Success)
+										{
+                                            await mainDbService.ReportStopTx(feedto.Id, response);
+                                        }
                                     }
 
                                     await mainDbService.SetTransactionBillingDone(txEnergy.TxId, cost: chargingCost + parkingCost, receipt);