Replies: 2 comments 2 replies
-
"DAY" is a correct unit code, for the other ones (like H87=piece) have a look at
hope that helps |
Beta Was this translation helpful? Give feedback.
-
Yes, thats an issue, Factur/X/ZUGFeRD are specified for PDF/A-3 and -4 only and mustang does not provide a way to convert plain pdf to pdf/a, only pdf/a-1 to PDF/A-3.
Not all at once, it checks which ones are applicable and applies them subsequently. And we're not only talking about the Schema but in particular also about Schematron files. And the error type will let you know if the error is from the CEN schematrons or different, feel free to refer to the homepage for the list of possible error codes. And yes, the intention is that both checks are applied and I'm pretty confident that this works at least in CII but please confirm. kind regards |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm new to this topic and would like to know more about the general approach of converting normal PDFs to ZUGFeRD PDFs.
Since my application already has invoice PDF generation, I wanted to expand the generation by converting the existing PDFs to ZUGFeRD PDFs. Therefore, I use the
ZUGFeRDExporterFromA3
to load the PDF-bytes and set and generate the xml separately by using thegenerateXML()
function from theZUGFeRD2PullProvider
with the "EN16931" Profile and a correspondingInvoice
object.As I export the result, I get a valid pdf according to the validation of the
ZUGFeRDValidator
.But I wonder if everything is correct with this approach, since I want to create invoices for leasing which is not a typical purchase maybe.
I ask this because I noticed a difference in a sample of the official ZUGFeRD examples and my generated Invoice by mustang:
In the example of the ferd-net.de site:
In my generated xml:
The difference is that my version has an additional
<ram:BasisQuantity unitCode="DAY">1.0000</ram:BasisQuantity>
which seems odd to me. ThegenerateXML()
function always applies the same unitCode on BasisQuantity and BilledQuantity. Is that correct?There is little documentation about how to go about things, so how should I proceed? Is this the right approach of converting already existing PDFs to ZUGFeRD invoices?
Also, how do I validate ZUGFeRD invoices with the "EN16931" profile? It seems that the ZUGFeRDValidator only validates for the profile "XRechnung"?
And how are other invoice types handled such as cancellations?
Beta Was this translation helpful? Give feedback.
All reactions