archival commit

This commit is contained in:
Christoffer Müller Madsen 2021-04-25 20:37:27 +02:00
parent c81ac0c2cf
commit 3223de00bc
30 changed files with 64 additions and 4 deletions

21
config.rb Normal file
View File

@ -0,0 +1,21 @@
# coding: utf-8
DB_HOST="127.0.0.1"
DB_PASS=""
DB_USER="matkant"
DB_DB="matkant"
OUTPUT_PATH="./pdf/"
YAML_BASE = { "author": "Christoffer Müller Madsen",
"city": "Aarhus",
"from": ["Falstersgade 18, 4. th", "8000 Aarhus C"],
'currency': 'DKK',
'commasep': true,
'lang': 'danish',
'seriffont': 'Linux Libertine',
'sansfont': 'Linux Biolinum',
'fontsize': '12pt',
'geometry': 'a4paper, left=25mm, right=25mm, top=30mm, bottom=17mm',
'closingnote': %Q[Overfør venligst det anførte beløb via MobilePay til +45 81 73 02 02 i løbet af de næste 14 dage. Alternativt kan QR-koden i bunden af siden benyttes.
Med venlig hilsen
] }
MOBILEPAY_PHONE_NUMBER = "004581730202"

View File

@ -21,10 +21,13 @@ OptionParser.new do |opts|
end
opts.on("-m", "--mobilepay", "Generate QR codes for MobilePay") do |m|
require 'rqrcode'
Options[:mobilepay] = true
Options[:mobilepay] = m
end
end.parse!
if Options[:draft]
Options[:mobilepay] = false
end
Transaction = Struct.new(:time, :person, :product, :amount)

BIN
output/201706-1.pdf Normal file

Binary file not shown.

36
pandoc/details.yml Normal file
View File

@ -0,0 +1,36 @@
---
author: Christoffer Müller Madsen
city: Aarhus
from:
- Falstersgade 18, 4. th
- 8000 Aarhus C
currency: DKK
commasep: true
lang: danish
seriffont: Linux Libertine
sansfont: Linux Biolinum
fontsize: 12pt
geometry: a4paper, left=25mm, right=25mm, top=30mm, bottom=17mm
closingnote: |
Overfør venligst det anførte beløb via MobilePay til +45 81 73 02 02 i løbet af de næste 14 dage. Alternativt kan QR-koden i bunden af siden benyttes.
Med venlig hilsen
to:
- Christoffer Müller Madsen
- Ada-218
invoice-nr: 201710-3
service:
- description: Frikadelle med rugbrød og rødkål
pieceprice: 13
price: 13.0
amount: 1.0
- description: Høj snegl med creme
pieceprice: 12
price: 12.0
amount: 1.0
- description: Kaffe i krus (0.25 L)
pieceprice: 5
price: 10.0
amount: 2.0
qrcode: true
---

BIN
pandoc/output.pdf Normal file

Binary file not shown.

View File

@ -21,9 +21,9 @@ $if(letterhead)$
$endif$
$if(draft)$
\usepackage{draftwatermark}
\SetWatermarkText{$drafttext$}
\SetWatermarkScale{1}
\usepackage[printwatermark]{xwatermark}
\usepackage{xcolor}
\newwatermark*[allpages,angle=45,scale=5,xpos=-1cm,ypos=2cm]{$drafttext$}
$endif$
% TYPOGRAPHY

BIN
pdf/201705-1.pdf Normal file

Binary file not shown.

BIN
pdf/201705-2.pdf Normal file

Binary file not shown.

BIN
pdf/201705-3.pdf Normal file

Binary file not shown.

BIN
pdf/201705-4.pdf Normal file

Binary file not shown.

BIN
pdf/201705-5.pdf Normal file

Binary file not shown.

BIN
pdf/201706-1.pdf Normal file

Binary file not shown.

BIN
pdf/201706-2.pdf Normal file

Binary file not shown.

BIN
pdf/201706-3.pdf Normal file

Binary file not shown.

BIN
pdf/201706-4.pdf Normal file

Binary file not shown.

BIN
pdf/201707-1.pdf Normal file

Binary file not shown.

BIN
pdf/201707-2.pdf Normal file

Binary file not shown.

BIN
pdf/201707-3.pdf Normal file

Binary file not shown.

BIN
pdf/201707-4.pdf Normal file

Binary file not shown.

BIN
pdf/201708-1.pdf Normal file

Binary file not shown.

BIN
pdf/201708-2.pdf Normal file

Binary file not shown.

BIN
pdf/201708-3.pdf Normal file

Binary file not shown.

BIN
pdf/201708-4.pdf Normal file

Binary file not shown.

BIN
pdf/201709-1.pdf Normal file

Binary file not shown.

BIN
pdf/201709-2.pdf Normal file

Binary file not shown.

BIN
pdf/201709-3.pdf Normal file

Binary file not shown.

BIN
pdf/201709-4.pdf Normal file

Binary file not shown.

BIN
pdf/201710-1.pdf Normal file

Binary file not shown.

BIN
pdf/201710-2.pdf Normal file

Binary file not shown.

BIN
pdf/201710-3.pdf Normal file

Binary file not shown.