aboutsummaryrefslogtreecommitdiff
path: root/overlays/kookie/invoice/README.md
blob: 500fb5929fedcc38da6a145641b702b4fd24011d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# invoice

A tool that generates invoices with `pandoc`, `xelatex` and `yaml`.
A descriptor file is required in order to make all of this work.
These are independent of the tooling and template and should be
client specific. Following is a small example of what it should
look like:

```yaml
---
invoice-nr: 2019-1234
date: 2019-06-09
author: Alice Anonymous
city: Metropolis
from:
- Cyberstreet 69
- XX51F5 Metropolis
- alice.anonymous@mail.cyber
- + 69 (0) 13 37 13 12
ustid: Your Tax ID here
bank: Evil Bank (i.e. a bank)
bank_iban: Your IBAN
bank_bic: Your Bank BIC
to:
- Client Name
- Client Address
- ...
VAT: 19 # Depends on the country you live in
service:
- description: Looking cool
  price: 255
  details:
    - Making all your other employees look silly
    - Telling really bad jokes
- description: Being awesome
  price: 615
  details: Its in the title!

currency: EUR
lang: english

# Typography and layout
fontsize: 10pt
geometry: a4paper, left=43mm, right=43mm, top=51mm, bottom=17mm
---
```

Then point the script at this descriptor:

```
$ invoice clients/client_name.yml
```

This will then generate `clients/client_name.pdf` as an invoice