star ubl testing 128

This commit is contained in:
jstaerk
2025-10-28 10:57:58 +01:00
parent e7927c8b13
commit 7b7a0f54f2
6 changed files with 401 additions and 419 deletions

View File

@@ -88,6 +88,9 @@ public class Item implements IZUGFeRDExportableItem {
icnm.getAsNodeMap("ClassifiedTaxCategory")
.flatMap(m -> m.getAsBigDecimal("Percent"))
.ifPresent(product::setVATPercent);
});
itemMap.getAsNodeMap("AssociatedDocumentLineDocument")
.flatMap(icnm -> icnm.getAsString("LineID"))
@@ -129,6 +132,15 @@ public class Item implements IZUGFeRDExportableItem {
product = new Product();
}
}
itemMap.getAsNodeMap("DocumentReference").ifPresent(drnm -> {
// BT-128
ReferencedDocument rd=getTenderReferencedDocument();
if (rd==null) {
rd=new ReferencedDocument();
}
drnm.getAsString("ID").ifPresent(rd::setIssuerAssignedID);
drnm.getAsString("DocumentTypeCode").ifPresent(rd::setTypeCode);
});
itemMap.getAsNodeMap("SpecifiedLineTradeAgreement", "SpecifiedSupplyChainTradeAgreement").ifPresent(icnm -> {
icnm.getAsNodeMap("BuyerOrderReferencedDocument")