4Site
Support Request System
View Patch #60.101.015
Description
Patch ID:
Date Implemented:
Patch Title:
Patch Type:
Request IDs:
Bug
Enhancement
Other
03753 -
First Meter Reading may not calculate all values correctly
Symptoms:
When entering the very first meter reading for a meter, the associated values are not always calculated correctly. Example 1 Current Meter Value = 0 Enter LTD = 100 ==> Value = 101, Accumulated = 101 Should be: Value = 100, Accumulated = 100 Example 2 Current Meter Value = 1000 Enter Value = 1100 ==> Accumulated = 1100, LTD = 1100 Should be: Accumulated = 100, LTD = 100 Example 3 Current Meter Value = 1000 Enter Accumulated = 100 ==> Value = 100, LTD = 100 Should be: Value = 1100 Example 4 Current Meter Value = 1000 Enter LTD = 100 ==> Value = 101, Accumulated = 101 Should be: Value = 1100, Accumulated = 100 Example 5 Current Meter Value = 1000, Rollover at 999999 Enter Value = 100 ==> Accumulated = 100, LTD = 100, no Rollover warning Should be: Accumulated = 999100, LTD = 999100 after Rollover warning
Solution:
The problem was caused by the wrong value, -1, being returned for the value of the previous reading when there was no previous meter reading. The calculation would then be performed with this incorrect value, producing the wrong result. In the case where there is no previous meter reading, the meter value entered on the meter definition is now treated as the "first" reading which lets the calculations proceed properly.
Browse Patches
Find a Patch
Return to Request System Menu