Browse Source

add isbilling stop transaction report time

shayne_lo 6 tháng trước cách đây
mục cha
commit
97e50d1802
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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);