https://github.com/jagedn/asciidoctor-invoices
https://github.com/jagedn/asciidoctor-invoices
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jagedn/asciidoctor-invoices
- Owner: jagedn
- Created: 2023-06-27T16:22:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T16:26:04.000Z (about 3 years ago)
- Last Synced: 2025-03-02T16:48:43.502Z (over 1 year ago)
- Language: HTML
- Size: 1.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Invoice Asciidoctor extension
A PoC AsciidoctorJS extension to render invoices
== Requirements
* nodejs or docker
== Instructions
- clone this repo
- install `asciidoctor-web-pdf` (see https://github.com/ggrossetie/asciidoctor-web-pdf)
- execute:
```
asciidoctor-web-pdf --template-require ./template.js \
--require ./invoice.js \
invoice.adoc \
-o out/2023-01-01.pdf \
-a invoice-file=./invoices/example.csv -a invoice-date=2023/01/01
```
see link:out/2023.pdf[]
## Arguments
- invoice-file: csv with the invoice
- invoice-date: a string
## Invoices extensions
### invoices:detail
Render a table with the content of the `invoice-file`
`invoices::details[separator=;,symbol=€]`
### invoices:total
Render a table with the total of the `invoice-file`
If `iva` is specified the extension will calculate it and create 2 more rows
`invoices::total[separator=;,iva=21,symbol=€]`