@@ -57,7 +57,7 @@ const SupplierCostDisplay: FunctionComponent<{
5757 < DataList . Label >
5858 < DivWithInfo data = { titles [ "feedInCompensation_eurpkWh" ] } />
5959 </ DataList . Label >
60- < DataList . Value > { supplierCost . feedInCompensation_eurpkWh . toString ( ) } </ DataList . Value >
60+ < DataList . Value > { ( supplierCost . feedInCompensation_eurpkWh * 100 ) . toFixed ( 2 ) } </ DataList . Value >
6161 </ DataList . Item >
6262 </ DataList . Root >
6363 </ Card >
@@ -84,7 +84,7 @@ const SupplierCostForm: FunctionComponent<{
8484 const supplierCost = new SupplierCostModel (
8585 ( parseFloat ( formData . get ( "bufferPrice_eurpkWh" ) as string ) || 0 ) / 100 ,
8686 parseFloat ( formData . get ( "onbalansMarkup_r" ) as string ) * 0.01 || 0 ,
87- parseFloat ( formData . get ( "feedInCompensation_eurpkWh" ) as string ) || 0 ,
87+ ( parseFloat ( formData . get ( "feedInCompensation_eurpkWh" ) as string ) || 0 ) / 100 ,
8888 )
8989 save ( supplierCost )
9090 hide ( )
@@ -119,16 +119,16 @@ const SupplierCostForm: FunctionComponent<{
119119 step = { 0.1 } />
120120 </ div >
121121 < div className = "radix-grid" >
122- < label className = "form-label" htmlFor = "feedInCompensation_eurpkWh" > Terugleververgoeding [€ /kWh]</ label >
122+ < label className = "form-label" htmlFor = "feedInCompensation_eurpkWh" > Terugleververgoeding [ct /kWh]</ label >
123123 < input className = "form-input"
124124 type = "number"
125125 id = "feedInCompensation_eurpkWh"
126126 name = "feedInCompensation_eurpkWh"
127- placeholder = "€ /kWh"
127+ placeholder = "ct /kWh"
128128 required
129- defaultValue = { initialData . feedInCompensation_eurpkWh }
129+ defaultValue = { initialData . feedInCompensation_eurpkWh * 100 }
130130 min = { 0 }
131- step = { 0.001 } />
131+ step = { 0.01 } />
132132 </ div >
133133 < Button type = "button" onClick = { hide } style = { { marginRight : '10px' } } highContrast variant = "soft" > Annuleren</ Button >
134134 < Button type = "submit" > Opslaan</ Button >
0 commit comments