BigDecimal specific refactoring

Use BigDecimal.stripTrailingZeros() as key for getVATPercentMap and in consequence use compareTo... == 0 instead of equals
Use BigDecimal.ZERO instead of new BigDecimal(0)
These changes result in improvements in enumeration of the <ram:SpecifiedTradeAllowanceCharge> tags and the calculation of tag <ram:SpecifiedTradeSettlementHeaderMonetarySummation>.
This commit is contained in:
Sebastian Sieber
2020-11-16 13:16:35 +01:00
parent 71379627c6
commit 1387d09044
8 changed files with 26 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ public class Charge implements IZUGFeRDAllowanceCharge {
protected String categoryCode;
public Charge() {
taxPercent=new BigDecimal(0);
taxPercent=BigDecimal.ZERO;
}
/***