diff --git a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRD2PullProvider.java b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRD2PullProvider.java
index bd133558..fc5182e5 100644
--- a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRD2PullProvider.java
+++ b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRD2PullProvider.java
@@ -404,19 +404,23 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
+ "" + XMLTools.encodeXML(currentItem.getBuyerOrderReferencedDocumentLineID()) + ""
+ "";
}
- xml += ""
- + "" + priceFormat(lc.getPriceGross())
- + "" //currencyID=\"EUR\"
- + "" + quantityFormat(currentItem.getBasisQuantity()) + ""
- + allowanceChargeStr
- // + " "
- // + " false"
- // + " 0.6667"
- // + " Rabatt"
- // + " "
- + ""
- + ""
+
+ if (!allowanceChargeStr.isBlank()) {
+ xml += ""
+ + "" + priceFormat(lc.getPriceGross())
+ + "" //currencyID=\"EUR\"
+ + "" + quantityFormat(currentItem.getBasisQuantity()) + ""
+ + allowanceChargeStr
+ // + " "
+ // + " false"
+ // + " 0.6667"
+ // + " Rabatt"
+ // + " "
+ + "";
+ }
+
+ xml += ""
+ "" + priceFormat(lc.getPrice())
+ "" // currencyID=\"EUR\"
+ "