stephanstapel/ZUGFeRD-csharp

Wrong value for CalculatedAmount Version 14.1.0

rimmel-ai opened this issue · 0 comments

For Austria I tested an invoice with 0,20,10,13 VAT.
The value for "CalculatedAmount" 11.51 is wrong it should be 11.50

                desc.AddApplicableTradeTax(basisAmount: 88.50m,
                                   percent: 13.00m,
                                   typeCode: TaxTypes.VAT,
                                   categoryCode: TaxCategoryCodes.S,
                                   allowanceChargeBasisAmount: 0.00m
                                  );

Result:

 <ram:ApplicableTradeTax>
    <ram:CalculatedAmount>11.51</ram:CalculatedAmount>
    <ram:TypeCode>VAT</ram:TypeCode>
    <ram:BasisAmount>88.50</ram:BasisAmount>
    <ram:CategoryCode>S</ram:CategoryCode>
    <ram:RateApplicablePercent>13.00</ram:RateApplicablePercent>
  </ram:ApplicableTradeTax>

Any idea?