vb.netdecimalinvoicezugferd

Konik Zugferd decimal number


I try to create a ZUGFeRD invoice using the Koink.io SDK in VB.net. My code is:

myTax.setCalculated(New Amount(New java.math.BigDecimal("833.70"), CurrencyCode.EUR))

And in the .xml invoice it is

833.7

But because of the specification it has to be "833.70" (WITH the zero) Is it a problem? Can I solve it?

Thanks


Solution

  • You can set the stripping of tailing zeros via property files.

    io.konik.stripTrailingZeros=false
    

    See the manual: https://konik.io/docs/index.html#konik_configuration

    The new lib version does this automatically, you should upgrade to latest version