Calculate co2_kwh, pp_kwh and use_pct for all tariffs
- Source:
- Since:
- 1.2.21
Methods
(inner) calculateSingleTariffUsage(tariff) → {struct}
- Source:
calculate co2_kwh and pp_kwh for a single tariff
Parameters:
Name | Type | Description |
---|---|---|
tariff |
struct | tariff with co2_kwh, pp_kwh, vat_pct and use_pct minimum |
Returns:
- Type
- struct
(inner) calculateTariff(tariff, skv_return) → {struct}
- Source:
calculate co2_kwh and pp_kwh for a single tariff
Parameters:
Name | Type | Description |
---|---|---|
tariff |
struct | tariff with co2_kwh, pp_kwh, vat_pct and use_pct minimum |
skv_return |
struct | result object for consecutive calculations |
Returns:
- Type
- struct
(inner) calculateUsages(arr_tariffs) → {struct}
- Source:
calculate co2_kwh and pp_kwh for all tariffs
Parameters:
Name | Type | Description |
---|---|---|
arr_tariffs |
array | array of user selected tariffs with usage percentages |
Returns:
- Type
- struct