setting IssuerAssignedID
This commit is contained in:
@@ -128,17 +128,9 @@ public class Item implements IZUGFeRDExportableItem {
|
|||||||
.flatMap(bordNodes -> bordNodes.getAsString("LineID"))
|
.flatMap(bordNodes -> bordNodes.getAsString("LineID"))
|
||||||
.ifPresent(this::addReferencedLineID);
|
.ifPresent(this::addReferencedLineID);
|
||||||
|
|
||||||
if ((tradeLineChilds.item(tradeLineChildIndex).getLocalName() != null) && tradeLineChilds.item(tradeLineChildIndex).getLocalName().equals("BuyerOrderReferencedDocument")) {
|
icnm.getAsNodeMap("BuyerOrderReferencedDocument")
|
||||||
NodeList docChilds = tradeLineChilds.item(tradeLineChildIndex).getChildNodes();
|
.flatMap(bordNodes -> bordNodes.getAsString("IssuerAssignedID"))
|
||||||
for (int docIndex = 0; docIndex < docChilds.getLength(); docIndex++) {
|
.ifPresent(this::addBuyerOrderReferencedDocumentID);
|
||||||
String localName = docChilds.item(docIndex).getLocalName();
|
|
||||||
if ((localName != null) && (localName.equals("LineID"))) {
|
|
||||||
buyerOrderReferencedDocumentLineID = docChilds.item(docIndex).getTextContent();
|
|
||||||
} else if ((localName != null) && (localName.equals("IssuerAssignedID"))) {
|
|
||||||
buyerOrderReferencedDocumentID = docChilds.item(docIndex).getTextContent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
icnm.getAsNodeMap("NetPriceProductTradePrice").ifPresent(npptpNodes -> {
|
icnm.getAsNodeMap("NetPriceProductTradePrice").ifPresent(npptpNodes -> {
|
||||||
npptpNodes.getAsBigDecimal("ChargeAmount").ifPresent(this::setPrice);
|
npptpNodes.getAsBigDecimal("ChargeAmount").ifPresent(this::setPrice);
|
||||||
|
|||||||
Reference in New Issue
Block a user