You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after the Update to 2.15. we use the new ZugferdInvoiceImporter instead of ZugferdImporter (old). The handling is very difficult. Its important for us to export all information from the Document. The old one was very easy at this point and had lots of getter - and also a method to export own strings. This is now protected :( -> protected String extractString(String xpathStr): ZUGFeRDInvoiceImporter.java:756
Can you help as to convert it to the new importer:
For example we cant find this: importer.getIssuerAssignedID()
in Item.java:86 is the sibling lineID but not IssuerAssignedID.
importedInvoice.getDueDate() returns null, because there is no entry in the XML. But for the SimpleDateFormat its nessary to have it -> Objects.requireNonNull(date, "date must not be null");
I only can fix it with try/catch. This is can't be right ?
The new one returns null - this is fine.
getIBAN():
publicStringgetIBAN() {
for (IZUGFeRDTradeSettlementsettlement : importedInvoice.getTradeSettlement()) {
if (settlementinstanceofIZUGFeRDTradeSettlementDebit) {
return ((IZUGFeRDTradeSettlementDebit) settlement).getIBAN();
}
if (settlementinstanceofIZUGFeRDTradeSettlementPayment) {
return ((IZUGFeRDTradeSettlementPayment) settlement).getOwnIBAN();
}
}
returnnull;
}
importedInvoice.getTradeSettlement() returns null in several places.
The text was updated successfully, but these errors were encountered:
Hey
after the Update to 2.15. we use the new ZugferdInvoiceImporter instead of ZugferdImporter (old). The handling is very difficult. Its important for us to export all information from the Document. The old one was very easy at this point and had lots of getter - and also a method to export own strings. This is now protected :( ->
protected String extractString(String xpathStr)
: ZUGFeRDInvoiceImporter.java:756Can you help as to convert it to the new importer:
For example we cant find this:
importer.getIssuerAssignedID()
in Item.java:86 is the sibling lineID but not IssuerAssignedID.
Thats our list:
The old importer get a two NullpointerException:
getDueDate()
:importedInvoice.getDueDate()
returns null, because there is no entry in the XML. But for the SimpleDateFormat its nessary to have it ->Objects.requireNonNull(date, "date must not be null");
I only can fix it with try/catch. This is can't be right ?
The new one returns null - this is fine.
getIBAN()
:importedInvoice.getTradeSettlement()
returns null in several places.The text was updated successfully, but these errors were encountered: