Fix item prices need to have 4 decimal places instead of 2
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user