ev-server icon indicating copy to clipboard operation
ev-server copied to clipboard

Smart Charging does not use BigDecimal class!!!

Open LucasBrazi06 opened this issue 1 year ago • 1 comments

Error 400 in calling the Smart Charging java web service: image

3 x 67.124 = 201.372 so the Smart Charging service should not throw an exception!

In JS you can reproduce the error that may occur in Java:

image

Actions: -> Smart Charging Java has to be fixed -> All operation in Smart Charging integration in NodeJs has to use Decimal.Js or round to integer all the values -> Unit tests have to be adjusted accordingly

LucasBrazi06 avatar Mar 26 '23 14:03 LucasBrazi06