Hallo,
ich nutze die XRechnungs-Lib von Landrix. Ich möchte an eine XRechnung UBL einen Anhang anhängen:
Delphi-Quellcode:
with inv.Attachments.AddAttachment(AttType) do
begin
DocumentDescription := 'Beschreibung';
FileName := 'test.xlsx';
ID := '1234';
TypeCode := iatc_916; //BT-122
EmbedDataFromStream(AttachmentStream);
end;
Das gibt dann beim Validieren diese Fehlermeldung:
Zitat:
val-sch.1.1 UBL-SR-43 error [UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)
Pfad: /ubl:Invoice/cac:AdditionalDocumentReference[1]
Was mache ich falsch?