Transportation - Tariff Configuration Error for Volume Tests
🤔 Problem
The client has indicated that tariffs were not being accurately valued for both sides of a volume test on tariffs. The 'Volume Tests' associated with a tariff enable the system to apply varying rates based on volume throughput. In this instance, the client requested that both fees be charged once the commitment was fulfilled, rather than applying a uniform rate to all volumes. We can see from the below screenshot, the below logic was in place to determine which rate to charge.
🌱 Solution
The issue at hand was ultimately a setup error regarding the tariff details. The incorrect configuration included two volume test numbers (1 and 2) when there should have been only one setup to account for both under and over rates. For each tariff detail, there should only be two Volume Test records when there are more than two tiers within a tariff.

To accurately value the rates, the initial setup change required was to adjust all instances of ‘Volume Test Number’ to a value of 1.
Additionally, it was necessary to remove ‘Volume Tests’ number 2 from the user interface, as this setup was not applicable for the current use case.

In the tariff details, there is a checkbox labeled ‘Apply to All.’ When this box is checked, the commitment rate will be applied to all volumes within that specific tariff detail. However, in the scenario mentioned above, the intention was to charge multiple rates, so the 'Apply to All’ checkbox was left unchecked.