On-Premise Cost Calculation Process
Cost Calculation Process
The on-premise cost calculation process ensures accurate cost tracking and reporting based on selected Meter Cards and their associated data. This process is run as a scheduled job every day. Each job run involves:
Fetching the list of active Cost Meter Cards.
Picking up relevant fields from each Cost Meter Card for matching with the entities, like - region, vendor, and charge period.
Fetching the entities matching these fields and their respective usage values.
Calculating cost by multiplying usage values with unit prices and storing results for the day.