tandemdrive / ocpi-tariffs

OCPI tariff calculations
Apache License 2.0
38 stars 9 forks source link

Should the tool be ignoring the tariff_id column in charging_periods? #63

Open mull opened 10 months ago

mull commented 10 months ago

Hello 👋

We are testing our own implementation against yours, and I noticed that the following text from the spec regarding cdr.charging_periods.tariff_id is ignored:

tariff_id Unique identifier of the Tariff that is relevant for this Charging Period. If not provided, no Tariff is relevant during this period.

The tool still uses the tariff on each charging period whether this column is set or not, which is confusing.