Quittio\Core\Reading
quittio/core#
Quittio\Core\Reading
DeclaredExemptionReasonsEN 16931 carries the VAT exemption reason (BT-120, BT-121) only on the VAT breakdown, the data model takes it from the lines (LineVat) and document allowances and charges. Readers copy the declared reasons back, so that a recalculation keeps them.DiagnosingXmlExtractorinterfaceAn extractor that also reports where the XML came from and what it noticed on the way.EmbeddedXmlExtractorinterfaceExtracts the embedded invoice XML from a hybrid PDF (ZUGFeRD/Factur-X, XRechnung in PDF).ExtractedXmlThe invoice XML found in a hybrid PDF, with the file specification it came from.FormatReaderinterfaceReads one XML invoice format into the data model.InvoiceReaderReads e-invoices from XML or PDF.ReadResultResult of reading an e-invoice: the parsed data, the totals declared in the document (kept unchanged for comparison), findings and the raw input.UnreadableInvoiceExceptionThe input is not a supported e-invoice.