diff --git a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDImporter.java b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDImporter.java index e1cd03f8..c9a4ff15 100644 --- a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDImporter.java +++ b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDImporter.java @@ -232,7 +232,7 @@ public class ZUGFeRDImporter extends ZUGFeRDInvoiceImporter { String id = null; if ((importedInvoice.getRecipient()!=null) && (importedInvoice.getRecipient().getLegalOrganisation()!=null)) { // this *should* be the official result - id = importedInvoice.getRecipient().getLegalOrganisation().getID(); + id = importedInvoice.getRecipient().getLegalOrganisation().getSchemedID().getID(); } // but also provide some fallback if (id == null) {