-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importer returns standard ubl for CreditNote: Why not EStandard ubl_creditnote? #632
Comments
i guess I just overlooked that instance, do the tests still run when corrected? |
TL;DR: I believe they do. In an attempt to provide a quick answer to the question I pulled the latest master to run the test. So in conclusion I think it is safe to correct the returned EStandard for CreditNotes. |
This allows to distinguish between UBL's Invoice and UBL's CreditNote. I think this is usefule, since further processing with UBL libraries requires knowledge about the document type.
Since UBL has entirely different types for Invoice and CreditNote it would facilitate further processing (e.g. with https://github.com/phax/ph-ubl) a lot if
ZUGFeRDInvoiceImporter
's method for returning the standard would returnubl
for UBL Invoices andubl_creditnote
for UBL CreditNote.The enum
EStandard
already contains the entryubl_creditnote
, which is why I was expecting to get this as return fromgetStandard()
for CreditNote documents and notubl
.mustangproject/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java
Lines 991 to 992 in 9b846ff
The text was updated successfully, but these errors were encountered: