diff --git a/imixs-archive-documents/README.md b/imixs-archive-documents/README.md index 859d594..3a93048 100644 --- a/imixs-archive-documents/README.md +++ b/imixs-archive-documents/README.md @@ -253,7 +253,7 @@ The Adapter class `org.imixs.workflow.documents.EInvoiceAutoAdapter` is an ext | cdtr.name | text | Creditor name | //ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:Name/text() - +You can use the [Online eInvoice Validator](https://www.itb.ec.europa.eu/invoice/upload) to test a e-invoice document. ## The PDF XML Plugin diff --git a/imixs-archive-documents/src/main/java/org/imixs/archive/documents/einvoice/EInvoiceModelCII.java b/imixs-archive-documents/src/main/java/org/imixs/archive/documents/einvoice/EInvoiceModelCII.java index 5996ae5..847484e 100644 --- a/imixs-archive-documents/src/main/java/org/imixs/archive/documents/einvoice/EInvoiceModelCII.java +++ b/imixs-archive-documents/src/main/java/org/imixs/archive/documents/einvoice/EInvoiceModelCII.java @@ -502,10 +502,17 @@ public void setTradeParty(TradeParty newParty) { } // Update address details + + // + // 12345 + // Musterstraße 123 + // Muster + // DE + // updateElementValue(postalAddress, EInvoiceNS.RAM, "PostcodeCode", newParty.getPostcodeCode()); + updateElementValue(postalAddress, EInvoiceNS.RAM, "LineOne", newParty.getStreetAddress()); updateElementValue(postalAddress, EInvoiceNS.RAM, "CityName", newParty.getCityName()); updateElementValue(postalAddress, EInvoiceNS.RAM, "CountryID", newParty.getCountryId()); - updateElementValue(postalAddress, EInvoiceNS.RAM, "LineOne", newParty.getStreetAddress()); // Update VAT registration if available if (newParty.getVatNumber() != null && !newParty.getVatNumber().isEmpty()) {