Skip to main content

Invoice estimation

Description

The <clevergy-invoice-estimation> microfrontend shows users how much they have spent (in euros) so far in the current billing period and estimates what their next electricity bill will be. It replaces the older Consumption cumulative module, which will be progressively deprecated as clients migrate to this new module.

Requirements

For this microfrontend to display correctly, users must have:

  • An active electricity contract: The module is only available to users with an active electricity supply contract.

  • Configured contract prices: The module needs power and consumption prices to calculate costs. If the tariff has surplus (energy export) data but no prices configured, or if a dynamic tariff has no prices covering the dates of the current period, prices will be considered unavailable for that period.

Without these requirements, the microfrontend will show a "not yet available" message instead of its content.

note

If you are still seeing the Consumption cumulative module and would like to switch to this new module, contact your Customer Success Manager.

How it works

  • Current billing period: The module shows the accumulated cost from the end date of the user's last invoice up to today. For new users without any previous invoices, the period starts on the electricity contract's start date instead.

  • Estimated bill amount: During the first 30 days of the billing period, the module projects what the final bill will look like based on spending so far. Once the period runs longer than 30 days without a new invoice being issued, it shows the actual accumulated cost instead of a projection.

Use cases with examples

1. Default

The module renders normally, showing the accumulated cost and estimated bill amount.

2. Data not available

If consumption data has not been updated, or the contract prices have not been configured correctly, the module shows a "not yet available" message.

Technical documentation

Check out the full documentation for clevergy-invoice-estimation.