Merge pull request #369 from asdf00000/patch-1
Update ZUGFeRD2PullProvider.java
This commit is contained in:
@@ -404,19 +404,23 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
|||||||
+ "<ram:LineID>" + XMLTools.encodeXML(currentItem.getBuyerOrderReferencedDocumentLineID()) + "</ram:LineID>"
|
+ "<ram:LineID>" + XMLTools.encodeXML(currentItem.getBuyerOrderReferencedDocumentLineID()) + "</ram:LineID>"
|
||||||
+ "</ram:BuyerOrderReferencedDocument>";
|
+ "</ram:BuyerOrderReferencedDocument>";
|
||||||
}
|
}
|
||||||
xml += "<ram:GrossPriceProductTradePrice>"
|
|
||||||
+ "<ram:ChargeAmount>" + priceFormat(lc.getPriceGross())
|
if (!allowanceChargeStr.isBlank()) {
|
||||||
+ "</ram:ChargeAmount>" //currencyID=\"EUR\"
|
xml += "<ram:GrossPriceProductTradePrice>"
|
||||||
+ "<ram:BasisQuantity unitCode=\"" + XMLTools.encodeXML(currentItem.getProduct().getUnit())
|
+ "<ram:ChargeAmount>" + priceFormat(lc.getPriceGross())
|
||||||
+ "\">" + quantityFormat(currentItem.getBasisQuantity()) + "</ram:BasisQuantity>"
|
+ "</ram:ChargeAmount>" //currencyID=\"EUR\"
|
||||||
+ allowanceChargeStr
|
+ "<ram:BasisQuantity unitCode=\"" + XMLTools.encodeXML(currentItem.getProduct().getUnit())
|
||||||
// + " <AppliedTradeAllowanceCharge>"
|
+ "\">" + quantityFormat(currentItem.getBasisQuantity()) + "</ram:BasisQuantity>"
|
||||||
// + " <ChargeIndicator>false</ChargeIndicator>"
|
+ allowanceChargeStr
|
||||||
// + " <ActualAmount currencyID=\"EUR\">0.6667</ActualAmount>"
|
// + " <AppliedTradeAllowanceCharge>"
|
||||||
// + " <Reason>Rabatt</Reason>"
|
// + " <ChargeIndicator>false</ChargeIndicator>"
|
||||||
// + " </AppliedTradeAllowanceCharge>"
|
// + " <ActualAmount currencyID=\"EUR\">0.6667</ActualAmount>"
|
||||||
+ "</ram:GrossPriceProductTradePrice>"
|
// + " <Reason>Rabatt</Reason>"
|
||||||
+ "<ram:NetPriceProductTradePrice>"
|
// + " </AppliedTradeAllowanceCharge>"
|
||||||
|
+ "</ram:GrossPriceProductTradePrice>";
|
||||||
|
}
|
||||||
|
|
||||||
|
xml += "<ram:NetPriceProductTradePrice>"
|
||||||
+ "<ram:ChargeAmount>" + priceFormat(lc.getPrice())
|
+ "<ram:ChargeAmount>" + priceFormat(lc.getPrice())
|
||||||
+ "</ram:ChargeAmount>" // currencyID=\"EUR\"
|
+ "</ram:ChargeAmount>" // currencyID=\"EUR\"
|
||||||
+ "<ram:BasisQuantity unitCode=\"" + XMLTools.encodeXML(currentItem.getProduct().getUnit())
|
+ "<ram:BasisQuantity unitCode=\"" + XMLTools.encodeXML(currentItem.getProduct().getUnit())
|
||||||
|
|||||||
Reference in New Issue
Block a user