Check OCPI to save the tariffID
MODIFY
src/server/rest/v1/service/SiteAreaService.ts
src/server/rest/v1/service/SiteAreaService.ts
@@ -342,7 +342,11 @@ export default class SiteAreaService {
}
}
siteArea.numberOfPhases = filteredRequest.numberOfPhases;
+ if (Utils.isComponentActiveFromToken(req.user, TenantComponents.OCPI)) {
+ if (Utils.objectHasProperty(filteredRequest, 'tariffID')) {
siteArea.tariffID = filteredRequest.tariffID;
+ }
+ }
let actionsResponse: ActionsResponse;
if (siteArea.smartCharging && !filteredRequest.smartCharging) {
actionsResponse = await OCPPUtils.clearAndDeleteChargingProfilesForSiteArea(

Check OCPI to save the tariffID