invoice-examples 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/PKG-INFO +5 -3
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/README.md +3 -2
- invoice_examples-0.2.0/examples/fr/annotated.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-CO-15.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-01-BT-25.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-01.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-02-BT-25.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-02.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-03-BT-26.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-03-BT-7.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-03-BT-72.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-03-BT-73.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-03-BT-74.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-03-BT-9.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-03.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-04.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-05-AAB.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-05-PMD.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-05-PMT.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-06-AAB.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-06-PMD.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-06-TXD.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-06.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-08.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-09-buyer.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-09-payee.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-09-ship-to.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-09.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-10.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-11.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-12.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-13.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-15-allowance.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-15.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-16-allowance.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-16.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-17.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-18.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-20.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-21.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-22.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-23-buyer.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-23.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-24-buyer.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-24.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-25-buyer.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-25.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-26-buyer.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-26.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-27.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-29-AFL.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-29-AVV.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-29.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-31.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-32-GLOBALID.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-32.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-03.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-04.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-05.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-07.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-08.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-09-BT-9.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-09.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10-BT-29-2.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10-BT-46-1.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10-BT-46-2.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10-BT-60-1.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10-BT-60-2.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10-BT-71-1.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10-BT-71-2.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-10.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-CO-12.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-106.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-107.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-108.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-109.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-110.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-113.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-114.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-116.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-117.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-131.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-136.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-137.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-92.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01-BT-93.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-01.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-02-BT-149.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-02.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-03-BT-147.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-03-BT-148.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-03.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-04-allowance.pdf +0 -0
- invoice_examples-0.2.0/examples/fr/invalid/BR-FR-DEC-04.pdf +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/manifest.json +5 -2
- invoice_examples-0.2.0/examples/fr/valid.pdf +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/pyproject.toml +2 -1
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/src/invoice_examples/__init__.py +1 -1
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/src/invoice_examples/cli.py +22 -4
- invoice_examples-0.2.0/src/invoice_examples/fonts/IBMPlexMono-Regular.ttf +0 -0
- invoice_examples-0.2.0/src/invoice_examples/fonts/IBMPlexSans-Regular.ttf +0 -0
- invoice_examples-0.2.0/src/invoice_examples/fonts/IBMPlexSans-SemiBold.ttf +0 -0
- invoice_examples-0.2.0/src/invoice_examples/fonts/OFL.txt +93 -0
- invoice_examples-0.2.0/src/invoice_examples/pdf.py +372 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/tests/test_cli.py +28 -0
- invoice_examples-0.2.0/uv.lock +772 -0
- invoice_examples-0.1.0/examples/fr/invalid/BR-CO-15.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-01-BT-25.pdf +0 -244
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-01.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-02-BT-25.pdf +0 -244
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-02.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-03-BT-26.pdf +0 -244
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-03-BT-7.pdf +0 -240
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-03-BT-72.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-03-BT-73.pdf +0 -246
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-03-BT-74.pdf +0 -246
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-03-BT-9.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-03.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-04.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-05-AAB.pdf +0 -234
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-05-PMD.pdf +0 -234
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-05-PMT.pdf +0 -234
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-06-AAB.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-06-PMD.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-06-TXD.pdf +0 -246
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-06.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-08.pdf +0 -235
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-09-buyer.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-09-payee.pdf +0 -245
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-09-ship-to.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-09.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-10.pdf +0 -234
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-11.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-12.pdf +0 -235
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-13.pdf +0 -235
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-15-allowance.pdf +0 -260
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-15.pdf +0 -212
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-16-allowance.pdf +0 -260
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-16.pdf +0 -212
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-17.pdf +0 -243
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-18.pdf +0 -248
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-20.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-21.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-22.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-23-buyer.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-23.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-24-buyer.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-24.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-25-buyer.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-25.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-26-buyer.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-26.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-27.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-29-AFL.pdf +0 -243
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-29-AVV.pdf +0 -243
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-29.pdf +0 -248
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-31.pdf +0 -246
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-32-GLOBALID.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-32.pdf +0 -237
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-03.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-04.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-05.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-07.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-08.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-09-BT-9.pdf +0 -236
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-09.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10-BT-29-2.pdf +0 -239
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10-BT-46-1.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10-BT-46-2.pdf +0 -239
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10-BT-60-1.pdf +0 -245
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10-BT-60-2.pdf +0 -246
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10-BT-71-1.pdf +0 -242
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10-BT-71-2.pdf +0 -243
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-10.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-CO-12.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-106.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-107.pdf +0 -252
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-108.pdf +0 -252
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-109.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-110.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-113.pdf +0 -239
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-114.pdf +0 -239
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-116.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-117.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-131.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-136.pdf +0 -246
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-137.pdf +0 -247
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-92.pdf +0 -252
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01-BT-93.pdf +0 -254
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-01.pdf +0 -238
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-02-BT-149.pdf +0 -239
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-02.pdf +0 -212
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-03-BT-147.pdf +0 -247
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-03-BT-148.pdf +0 -247
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-03.pdf +0 -212
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-04-allowance.pdf +0 -252
- invoice_examples-0.1.0/examples/fr/invalid/BR-FR-DEC-04.pdf +0 -212
- invoice_examples-0.1.0/examples/fr/valid.pdf +0 -238
- invoice_examples-0.1.0/src/invoice_examples/pdf.py +0 -23
- invoice_examples-0.1.0/uv.lock +0 -399
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.github/dependabot.yml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.github/workflows/ci.yml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.github/workflows/links.yml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.github/workflows/release.yml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.gitignore +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.python-version +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.vale/styles/Lintvoice/Claims.yml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.vale/styles/Lintvoice/Terms.yml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/.vale.ini +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/COVERAGE.md +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/LICENSE +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/LICENSE +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-CO-15.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-01-BT-25.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-01.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-02-BT-25.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-02.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-03-BT-26.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-03-BT-7.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-03-BT-72.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-03-BT-73.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-03-BT-74.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-03-BT-9.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-03.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-04.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-05-AAB.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-05-PMD.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-05-PMT.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-06-AAB.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-06-PMD.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-06-TXD.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-06.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-08.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-09-buyer.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-09-payee.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-09-ship-to.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-09.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-10.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-11.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-12.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-13.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-15-allowance.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-15.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-16-allowance.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-16.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-17.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-18.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-20.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-21.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-22.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-23-buyer.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-23.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-24-buyer.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-24.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-25-buyer.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-25.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-26-buyer.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-26.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-27.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-29-AFL.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-29-AVV.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-29.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-31.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-32-GLOBALID.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-32.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-03.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-04.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-05.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-07.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-08.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-09-BT-9.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-09.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10-BT-29-2.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10-BT-46-1.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10-BT-46-2.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10-BT-60-1.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10-BT-60-2.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10-BT-71-1.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10-BT-71-2.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-10.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-CO-12.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-106.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-107.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-108.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-109.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-110.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-113.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-114.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-116.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-117.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-131.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-136.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-137.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-92.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01-BT-93.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-01.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-02-BT-149.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-02.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-03-BT-147.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-03-BT-148.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-03.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-04-allowance.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/invalid/BR-FR-DEC-04.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/examples/fr/valid.xml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/lychee.toml +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/scripts/coverage.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/src/invoice_examples/__main__.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/src/invoice_examples/cii.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/src/invoice_examples/targets/__init__.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/src/invoice_examples/targets/fr.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/tests/conftest.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/tests/officialrules.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/tests/test_fr.py +0 -0
- {invoice_examples-0.1.0 → invoice_examples-0.2.0}/tests/test_wording.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: invoice-examples
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Valid and invalid e-invoice examples (Factur-X, CII), one invalid variant per rule, CC0
|
|
5
5
|
Project-URL: Homepage, https://lintvoice.com/examples
|
|
6
6
|
Project-URL: Source, https://github.com/lintvoice/invoice-examples
|
|
@@ -16,6 +16,7 @@ Classifier: Topic :: Software Development :: Testing
|
|
|
16
16
|
Requires-Python: >=3.10
|
|
17
17
|
Requires-Dist: lxml>=6.1
|
|
18
18
|
Requires-Dist: pypdf>=6.21.4
|
|
19
|
+
Requires-Dist: reportlab>=5.1
|
|
19
20
|
Description-Content-Type: text/markdown
|
|
20
21
|
|
|
21
22
|
# Free e-invoice examples: one valid invoice, and one invalid variant per official rule
|
|
@@ -23,7 +24,7 @@ Description-Content-Type: text/markdown
|
|
|
23
24
|
Valid and invalid e-invoice examples, **one invalid example per rule**, checked against the official rules.
|
|
24
25
|
Free to use for anything: the examples are in the public domain ([CC0](examples/LICENSE)).
|
|
25
26
|
|
|
26
|
-
> Status: 0.
|
|
27
|
+
> Status: 0.2.0, first target `fr` (Factur-X / CII, French reform rules).
|
|
27
28
|
|
|
28
29
|
## Download the examples
|
|
29
30
|
|
|
@@ -51,7 +52,7 @@ Free to use for anything: the examples are in the public domain ([CC0](examples/
|
|
|
51
52
|
|
|
52
53
|
**Coverage:** 91 invalid examples cover all 98 BR-FR rule ids that can fire on a Factur-X EN 16931 invoice. Three more apply but cannot fire, two because of the Factur-X schema and one because of how the rule file is written: [COVERAGE.md](COVERAGE.md) says why.
|
|
53
54
|
|
|
54
|
-
**About the PDFs:**
|
|
55
|
+
**About the PDFs:** each one has a readable page drawn from its own XML, marked SPECIMEN, and carries that XML as `factur-x.xml`. On an invalid example, the page names the rule it fails and shows in red every value that differs from the valid invoice. `annotated.pdf` is the valid invoice with each value's EN 16931 business term number (BT-…), for learning to read an e-invoice. The PDFs are not PDF/A-3: they are for testing XML extraction and the XML rules, not PDF/A-3 validation.
|
|
55
56
|
|
|
56
57
|
## Use them in a test suite
|
|
57
58
|
|
|
@@ -92,5 +93,6 @@ uv run python scripts/coverage.py # rewrites COVERAGE.md
|
|
|
92
93
|
|
|
93
94
|
- The examples (`examples/`): [CC0-1.0](examples/LICENSE).
|
|
94
95
|
- The code: [MIT](LICENSE).
|
|
96
|
+
- The fonts drawn in the PDFs (`src/invoice_examples/fonts/`): IBM Plex, [SIL Open Font License 1.1](src/invoice_examples/fonts/OFL.txt).
|
|
95
97
|
- The official rules used by the tests keep their own licences (EUPL-1.2 for EN 16931; Apache-2.0 for the France_RFE repository, whose Schematron file headers say EUPL)
|
|
96
98
|
and are not part of this repository.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Valid and invalid e-invoice examples, **one invalid example per rule**, checked against the official rules.
|
|
4
4
|
Free to use for anything: the examples are in the public domain ([CC0](examples/LICENSE)).
|
|
5
5
|
|
|
6
|
-
> Status: 0.
|
|
6
|
+
> Status: 0.2.0, first target `fr` (Factur-X / CII, French reform rules).
|
|
7
7
|
|
|
8
8
|
## Download the examples
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ Free to use for anything: the examples are in the public domain ([CC0](examples/
|
|
|
31
31
|
|
|
32
32
|
**Coverage:** 91 invalid examples cover all 98 BR-FR rule ids that can fire on a Factur-X EN 16931 invoice. Three more apply but cannot fire, two because of the Factur-X schema and one because of how the rule file is written: [COVERAGE.md](COVERAGE.md) says why.
|
|
33
33
|
|
|
34
|
-
**About the PDFs:**
|
|
34
|
+
**About the PDFs:** each one has a readable page drawn from its own XML, marked SPECIMEN, and carries that XML as `factur-x.xml`. On an invalid example, the page names the rule it fails and shows in red every value that differs from the valid invoice. `annotated.pdf` is the valid invoice with each value's EN 16931 business term number (BT-…), for learning to read an e-invoice. The PDFs are not PDF/A-3: they are for testing XML extraction and the XML rules, not PDF/A-3 validation.
|
|
35
35
|
|
|
36
36
|
## Use them in a test suite
|
|
37
37
|
|
|
@@ -72,5 +72,6 @@ uv run python scripts/coverage.py # rewrites COVERAGE.md
|
|
|
72
72
|
|
|
73
73
|
- The examples (`examples/`): [CC0-1.0](examples/LICENSE).
|
|
74
74
|
- The code: [MIT](LICENSE).
|
|
75
|
+
- The fonts drawn in the PDFs (`src/invoice_examples/fonts/`): IBM Plex, [SIL Open Font License 1.1](src/invoice_examples/fonts/OFL.txt).
|
|
75
76
|
- The official rules used by the tests keep their own licences (EUPL-1.2 for EN 16931; Apache-2.0 for the France_RFE repository, whose Schematron file headers say EUPL)
|
|
76
77
|
and are not part of this repository.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generator": "invoice-examples 0.
|
|
2
|
+
"generator": "invoice-examples 0.2.0",
|
|
3
3
|
"target": "fr",
|
|
4
4
|
"syntax": "CII",
|
|
5
5
|
"profile": "Factur-X EN 16931",
|
|
@@ -1517,5 +1517,8 @@
|
|
|
1517
1517
|
"fr": "Le prix brut d'un article (BT-148) a 7 décimales."
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
-
]
|
|
1520
|
+
],
|
|
1521
|
+
"annotated": {
|
|
1522
|
+
"pdf": "annotated.pdf"
|
|
1523
|
+
}
|
|
1521
1524
|
}
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "invoice-examples"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0"
|
|
4
4
|
description = "Valid and invalid e-invoice examples (Factur-X, CII), one invalid variant per rule, CC0"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -10,6 +10,7 @@ authors = [{ name = "AllGood Services SAS" }]
|
|
|
10
10
|
dependencies = [
|
|
11
11
|
"lxml>=6.1",
|
|
12
12
|
"pypdf>=6.21.4", # 7 CVEs (crafted PDFs: infinite loops, memory) fixed in 6.21.3 and 6.21.4
|
|
13
|
+
"reportlab>=5.1",
|
|
13
14
|
]
|
|
14
15
|
keywords = ["e-invoice", "invoice", "examples", "test", "factur-x", "zugferd", "cii", "en16931", "br-fr"]
|
|
15
16
|
classifiers = [
|
|
@@ -22,12 +22,14 @@ def _write(path, data):
|
|
|
22
22
|
return path
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
def _files(out, stem, xml, formats):
|
|
25
|
+
def _files(out, stem, xml, formats, **page):
|
|
26
|
+
"""Write the XML and its PDF. `page` goes to the PDF page: the valid invoice as reference, the rule and
|
|
27
|
+
what is wrong, so an invalid variant's page shows where the mistake is."""
|
|
26
28
|
written = {}
|
|
27
29
|
if "xml" in formats:
|
|
28
30
|
written["xml"] = _write(out / f"{stem}.xml", xml).relative_to(out).as_posix()
|
|
29
31
|
if "pdf" in formats:
|
|
30
|
-
written["pdf"] = _write(out / f"{stem}.pdf", pdf.facturx_pdf(xml)).relative_to(out).as_posix()
|
|
32
|
+
written["pdf"] = _write(out / f"{stem}.pdf", pdf.facturx_pdf(xml, **page)).relative_to(out).as_posix()
|
|
31
33
|
return written
|
|
32
34
|
|
|
33
35
|
|
|
@@ -56,12 +58,13 @@ def cmd_generate(args, out):
|
|
|
56
58
|
return 2
|
|
57
59
|
formats = [f.strip() for f in args.format.split(",")]
|
|
58
60
|
root = Path(args.out) / args.target
|
|
61
|
+
valid = cii.to_bytes(target.build())
|
|
59
62
|
entries = [
|
|
60
63
|
{
|
|
61
64
|
"id": "valid",
|
|
62
65
|
"status": "valid",
|
|
63
66
|
"fires": [],
|
|
64
|
-
"files": _files(root, "valid",
|
|
67
|
+
"files": _files(root, "valid", valid, formats),
|
|
65
68
|
"description": {"en": "Passes every rule listed.", "fr": "Passe toutes les règles listées."},
|
|
66
69
|
}
|
|
67
70
|
]
|
|
@@ -72,10 +75,24 @@ def cmd_generate(args, out):
|
|
|
72
75
|
"status": "invalid",
|
|
73
76
|
"rule": v.rule,
|
|
74
77
|
"fires": list(v.fires),
|
|
75
|
-
"files": _files(
|
|
78
|
+
"files": _files(
|
|
79
|
+
root,
|
|
80
|
+
f"invalid/{v.id}",
|
|
81
|
+
cii.to_bytes(target.build(v)),
|
|
82
|
+
formats,
|
|
83
|
+
reference=valid,
|
|
84
|
+
rule=v.rule,
|
|
85
|
+
description=v.fr,
|
|
86
|
+
),
|
|
76
87
|
"description": {"en": v.en, "fr": v.fr},
|
|
77
88
|
}
|
|
78
89
|
)
|
|
90
|
+
annotated = {}
|
|
91
|
+
if "pdf" in formats:
|
|
92
|
+
# the valid invoice again, each value with its EN 16931 business term number: for reading, not for tests
|
|
93
|
+
annotated = {
|
|
94
|
+
"pdf": _write(root / "annotated.pdf", pdf.facturx_pdf(valid, annotate=True)).relative_to(root).as_posix()
|
|
95
|
+
}
|
|
79
96
|
manifest = {
|
|
80
97
|
"generator": f"invoice-examples {__version__}",
|
|
81
98
|
"target": args.target,
|
|
@@ -84,6 +101,7 @@ def cmd_generate(args, out):
|
|
|
84
101
|
"rules": target.RULES,
|
|
85
102
|
"licence": "CC0-1.0",
|
|
86
103
|
"examples": entries,
|
|
104
|
+
"annotated": annotated,
|
|
87
105
|
}
|
|
88
106
|
_write(root / "manifest.json", (json.dumps(manifest, indent=2, ensure_ascii=False) + "\n").encode("utf-8"))
|
|
89
107
|
print(f"wrote {len(entries)} examples ({', '.join(formats)}) and manifest.json in {root}", file=out)
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
|
|
5
|
+
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|