Add Field for "Invoiced Object Identifier" (BT-18) in Invoice.java to Align with XRechnung Requirements

This commit is contained in:
pgjacobs
2026-01-26 12:40:43 +01:00
parent 5a787c31f2
commit 11cb5a7a94
4 changed files with 76 additions and 7 deletions

View File

@@ -176,6 +176,38 @@ public class ZF2EdgeTest extends MustangReaderTestCase {
};
}
@Override
public IReferencedDocument getObjectIdentifierReferencedDocument() {
return new IReferencedDocument() {
@Override
public String getIssuerAssignedID() {
return "gPogKLtac0";
}
@Override
public String getTypeCode() {
return "130";
}
@Override
public String getReferenceTypeCode() {
return "";
}
@Override
public Date getFormattedIssueDateTime() {
SimpleDateFormat sdf=new SimpleDateFormat("YYYY-mm-dd");
try {
return sdf.parse("2026-01-26");
} catch (ParseException e) {
throw new RuntimeException(e);
}
}
};
}
@Override
public String getOwnLocation() {
return "Stadthausen";