Repository navigation
Releases
v0.9.0
Examples for the VAT category rules (BR-S, BR-Z, BR-E, BR-AE, BR-IC, BR-G, BR-O, BR-B): 74 new invalid examples in en16931, 50 in fr. en16931 now holds 177 invalid examples, fr 231.
Each category has its own realistic invoice, and each example breaks one thing in it: zero-rated solar modules sold to their operator in Germany (Z), the transport of goods being exported (E), subcontracted electrical work under reverse charge (AE), a pump shipped to a business in another EU country (K), a machine exported to Switzerland (G), and a German service to a Swiss company, outside the scope of VAT, whose seller gives its tax number (BT-32) since BR-O-02 forbids a VAT number (O). Split payment (B) is Italian: its two examples also fail the Factur-X profile rules that refuse category B (FX-SCH-A-000587, FX-SCH-A-000619), and BR-FR-15 in fr.
fr has no examples for BR-Z and BR-O (24 rules): France has no domestic zero rate, and a French company registered for VAT gives its VAT number on its invoices (CGI, annex II, art. 242 nonies A), which BR-O-02 forbids. Their examples are in en16931.
Some rules cannot fail alone in CII; the manifest names every rule each example fails. A category's rules on allowances and charges (-03, -04) fail with its rule on lines (-02), as the three run the same test on the seller's identifiers. BR-O-11 fails with BR-O-12, and BR-O-13 with BR-O-14 (shared tests). BR-AE-01, BR-IC-01, BR-G-01 and BR-O-01 fail with the -08 rule of their category: their example gives the category one breakdown per line, since the XML schema refuses an invoice without one. BR-S-01 fails with BR-CO-14.
183 of the 223 EN 16931 business rule ids have an example in en16931, 159 in fr. The 20 BR-IG and BR-IP rules (the Canary Islands' IGIC, the IPSI of Ceuta and Melilla) have none yet. Every example file of 0.8.0 is unchanged, byte for byte.
The same files as https://pypi.org/project/invoice-examples/0.9.0/ (wheel and sdist).
v0.8.0
Examples for the core EN 16931 rules and the code list rules (BR-CL): 58 new invalid examples in each target, 36 for core rules and 22 for code list rules. en16931 now holds 103 invalid examples, fr 181.
A missing value is an empty element, so the example fails the presence rule alone, or with the code list rule of the same field (BR-CL-14 for an empty country). A value outside a code list is one a real export can write: a word or a name where the list has a code (INV, EURO, SEPA, Deutschland, GLN as a scheme), a code of the other syntax (35, a UBL code, as the VAT point date code of a CII invoice), or a code EN 16931 does not use (AA). The Factur-X EN 16931 profile checks the same lists, so its own rule (FX-SCH-A-…) fails next to each BR-CL rule; the manifest names both.
In fr, 11 of the new examples also fail a French rule that reads the same data; the manifest names it.
Twelve core rules have no example: BR-12 to BR-15, BR-24, BR-31, BR-36, BR-41, BR-43, BR-47, BR-49 and BR-54 ask for an element the Factur-X EN 16931 XML schema already requires. COVERAGE.md gives the reason for each, and for BR-CO-05 to BR-CO-08, whose official test is always true. 111 of the 223 EN 16931 business rule ids have an example in each target.
The same files as https://pypi.org/project/invoice-examples/0.8.0/ (wheel and sdist).
v0.7.0
Every EN 16931 decimals rule (BR-DEC) has an example: BR-DEC-05, 06, 13, 15, 27 and 28 join the 15 others, in both targets. In en16931, 20 of the 21 fail their rule alone; BR-DEC-13 (the VAT total) also fails BR-CO-14, as a VAT total not rounded to the cent is no longer the sum of the VAT breakdown. BR-DEC-15 is an invoice in US dollars whose VAT total in euros, the VAT accounting currency, is not rounded to the cent.
In fr, every French rule a Factur-X invoice can fail now has an example: BR-FR-CO-14 and BR-FR-CO-15 (a seller that belongs to a VAT group), and BR-FR-28 on an EXTENDED-CTC-FR invoice, as the EN 16931 profile cannot carry an item attribute's value as a measure.
The PDF page's box tells the VAT total in the VAT accounting currency (BT-111) from the VAT total (BT-110), and names the seller tax representative's fields and an item attribute's measured value.
The same files as https://pypi.org/project/invoice-examples/0.7.0/ (wheel and sdist).
v0.6.0
Every invalid example's PDF page shows its mistake in red. When the mistake sits in data the page does not draw (a supporting document, a period, the payee…), a box under the totals says it is in the electronic data only, the XML attached to the PDF, names the file it compares with, and lists each element that differs: its EN 16931 business term, its place in the XML, and its value in both files. The document type title turns red when it differs. 45 PDF pages change (7 in en16931, 38 in fr); the XML files do not.
The same files as https://pypi.org/project/invoice-examples/0.6.0/ (wheel and sdist).
v0.5.2
The version shown is the package's own: 0.5.1 showed 0.5.0 in --version and in the manifests' generator. Only the two manifest.json files change; every other file is the same as in 0.5.1.
The same files as https://pypi.org/project/invoice-examples/0.5.2/ (wheel and sdist).
v0.5.1
The PDF page prints the invoice's own currency (BT-5): the example for BR-FR-CO-12, an invoice in USD, showed its amounts in €. Euro amounts keep the € sign; any other currency shows its ISO 4217 code where the € would go. Only that page changes (fr/invalid/BR-FR-CO-12.pdf); every other file is the same as in 0.5.0.
Shows itself as 0.5.0 (--version, the manifests' generator); 0.5.2 corrects this.
The same files as https://pypi.org/project/invoice-examples/0.5.1/ (wheel and sdist).
v0.5.0
A European target, en16931: a domestic invoice in Germany, with invalid examples for 44 EN 16931 rules and PDF pages in English. It is now the default: invoice-examples generate without --target writes the European examples. --target fr writes the French ones, the same files as in 0.4.0 except annotated.pdf (one sentence's layout).
The same files as https://pypi.org/project/invoice-examples/0.5.0/ (wheel and sdist).
v0.4.0
The same files as https://pypi.org/project/invoice-examples/0.4.0/ (wheel and sdist).
v0.3.0
The same files as https://pypi.org/project/invoice-examples/0.3.0/ (wheel and sdist).
v0.2.0
The same files as https://pypi.org/project/invoice-examples/0.2.0/ (wheel and sdist).