From 02351564d6c584f3154ffe0bdbd4864ecf3da9e0 Mon Sep 17 00:00:00 2001 From: AlexanderSchmidt Date: Fri, 6 Nov 2015 16:20:03 +0100 Subject: [PATCH] Fix item prices need to have 4 decimal places instead of 2 --- .../main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java b/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java index c9323b34..8b400e88 100644 --- a/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java +++ b/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java @@ -630,7 +630,7 @@ public class ZUGFeRDExporter { AmountType grossChargeAmount = xmlFactory.createAmountType(); grossChargeAmount.setCurrencyID(trans.getInvoiceCurrency()); - grossChargeAmount.setValue(currencyFormat(currentItem.getPrice())); + grossChargeAmount.setValue(priceFormat(currentItem.getPrice())); grossTradePrice.getChargeAmount().add(grossChargeAmount); tradeAgreement.getGrossPriceProductTradePrice().add(grossTradePrice); @@ -642,7 +642,7 @@ public class ZUGFeRDExporter { AmountType netChargeAmount = xmlFactory.createAmountType(); netChargeAmount.setCurrencyID(trans.getInvoiceCurrency()); - netChargeAmount.setValue(currencyFormat(currentItem.getPrice())); + netChargeAmount.setValue(priceFormat(currentItem.getPrice())); netTradePrice.getChargeAmount().add(netChargeAmount); tradeAgreement.getNetPriceProductTradePrice().add(netTradePrice);