Soft Stop on inactive charging station
MODIFY
src/server/rest/v1/service/TransactionService.ts
src/server/rest/v1/service/TransactionService.ts
@@ -361,6 +361,9 @@ export default class TransactionService {
action: action,
});
} else {
+ // Charging Station must be active
+ if (!chargingStation.inactive) {
+ // Check connector
const connector = Utils.getConnectorFromID(chargingStation, transaction.connectorId);
if (connector.currentTransactionID === transaction.id) {
throw new AppError({
@@ -371,6 +374,7 @@ export default class TransactionService {
user: req.user, action: action
});
}
+ }
// Stop Transaction
const result = await new OCPPService(Configuration.getChargingStationConfig()).handleStopTransaction(
{ // OCPP Headers

Soft Stop on inactive charging station