Update calculatedTotalEmissions
to handle multiple units, in cases where tCO2e
, tCO2
and other units need to be combined
#534
Labels
enhancement
New feature or request
As a consequence of #533, we should likely make the API return the unit(s) clearly for the calculated total. This would be most correct.
How we handle units of the partial emission numbers also affects
calculatedTotalEmissions
which needs to make sure all numbers use the same unit, e.g.tCO2e
. If garbo finds another unit, we either have to converttCO2
intotCO2e
, or disclose the total as an array ofcalculatedTotalEmissions
, one number per unit found inscope1
,scope2
,scope3
,statedTotalEmissions
,scope1And2
and all their nested emission numbers.For example, we could update
calculatedTotalEmissions
to return something like this:The text was updated successfully, but these errors were encountered: