CiiReader
in package
implements
FormatReader
FinalYes
Reads UN/CEFACT Cross Industry Invoices (Factur-X/ZUGFeRD, XRechnung CII) into the data model.
Declared totals are kept unchanged; differences to a recalculation are reported by the invoice reader, not silently corrected.
Table of Contents
Interfaces
- FormatReader
- Reads one XML invoice format into the data model.
Constants
- MAX_SUBLINE_DEPTH : int = 32
- Deepest accepted sub line hierarchy (ParentLineID chains).
Methods
- canRead() : bool
- read() : ReadResult
Constants
MAX_SUBLINE_DEPTH
Deepest accepted sub line hierarchy (ParentLineID chains).
public
int
MAX_SUBLINE_DEPTH
= 32
Methods
canRead()
public
canRead(DOMDocument $document) : bool
Parameters
- $document : DOMDocument
Return values
boolread()
public
read(DOMDocument $document, string $xml) : ReadResult
Parameters
- $document : DOMDocument
- $xml : string