make ubl reading possible

This commit is contained in:
jstaerk
2025-10-28 13:46:10 +01:00
parent 7b7a0f54f2
commit 1cedd281b9
2 changed files with 15 additions and 2 deletions

View File

@@ -138,8 +138,21 @@ public class Item implements IZUGFeRDExportableItem {
if (rd==null) {
rd=new ReferencedDocument();
}
drnm.getAsString("ID").ifPresent(rd::setIssuerAssignedID);
Node idNode=drnm.getNode("ID").get();
if (idNode!=null) {
rd.setIssuerAssignedID(idNode.getTextContent());
Node schemeIDAttr;
schemeIDAttr=idNode.getAttributes().getNamedItem("schemeID");
if (schemeIDAttr!=null) {
rd.setReferenceTypeCode(schemeIDAttr.getNodeValue());
}
}
drnm.getAsString("DocumentTypeCode").ifPresent(rd::setTypeCode);
if (rd!=null) {
setTenderReferencedDocument(rd);
}
});
itemMap.getAsNodeMap("SpecifiedLineTradeAgreement", "SpecifiedSupplyChainTradeAgreement").ifPresent(icnm -> {

View File

@@ -281,7 +281,7 @@
<cbc:LineID>12345</cbc:LineID>
</cac:OrderLineReference>
<cac:DocumentReference>
<cbc:ID schemeID="AAG">Line object identifier</cbc:ID>
<cbc:ID schemeID="AAG">90-kl-98798-C1</cbc:ID>
<cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>
</cac:DocumentReference>
<cac:AllowanceCharge>