Fix item prices need to have 4 decimal places instead of 2

This commit is contained in:
AlexanderSchmidt
2015-11-06 16:20:03 +01:00
parent d22754a4b0
commit 02351564d6

View File

@@ -630,7 +630,7 @@ public class ZUGFeRDExporter {
AmountType grossChargeAmount = xmlFactory.createAmountType(); AmountType grossChargeAmount = xmlFactory.createAmountType();
grossChargeAmount.setCurrencyID(trans.getInvoiceCurrency()); grossChargeAmount.setCurrencyID(trans.getInvoiceCurrency());
grossChargeAmount.setValue(currencyFormat(currentItem.getPrice())); grossChargeAmount.setValue(priceFormat(currentItem.getPrice()));
grossTradePrice.getChargeAmount().add(grossChargeAmount); grossTradePrice.getChargeAmount().add(grossChargeAmount);
tradeAgreement.getGrossPriceProductTradePrice().add(grossTradePrice); tradeAgreement.getGrossPriceProductTradePrice().add(grossTradePrice);
@@ -642,7 +642,7 @@ public class ZUGFeRDExporter {
AmountType netChargeAmount = xmlFactory.createAmountType(); AmountType netChargeAmount = xmlFactory.createAmountType();
netChargeAmount.setCurrencyID(trans.getInvoiceCurrency()); netChargeAmount.setCurrencyID(trans.getInvoiceCurrency());
netChargeAmount.setValue(currencyFormat(currentItem.getPrice())); netChargeAmount.setValue(priceFormat(currentItem.getPrice()));
netTradePrice.getChargeAmount().add(netChargeAmount); netTradePrice.getChargeAmount().add(netChargeAmount);
tradeAgreement.getNetPriceProductTradePrice().add(netTradePrice); tradeAgreement.getNetPriceProductTradePrice().add(netTradePrice);