archival commit
This commit is contained in:
parent
c81ac0c2cf
commit
3223de00bc
|
@ -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"
|
|
@ -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)
|
||||
|
||||
|
|
Binary file not shown.
|
@ -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
|
||||
---
|
Binary file not shown.
|
@ -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
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue