ubill 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -2
- data/lib/ubill/invoice.rb +15 -2
- data/lib/ubill/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1207490a69f5bb356b6c89c6fae729518c0952c13a87731bb3c0c998a4c5202c
|
4
|
+
data.tar.gz: 7142d7578d4898d143cbe4c0d8ed417703a376bbd590cdf29646b69aef77357f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ff5a10a53d50e7418629cab49f718825a09cf4547d2a3ebf153914b184051fece73bf5622ccdc45c702b06ebd4a30b8ce5e63733a96986f11b57ae6c97496fb
|
7
|
+
data.tar.gz: 767da0467c922908b8b182d46f68cce977cb78f0c55dac69544bc346be6d58ebd4f9cea8e47d9ae0bfe98f21a1d83dc75e84d3924bdcc126b8eeb80096f76945
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -99,8 +99,7 @@ doc = Ubill::Invoice.new do
|
|
99
99
|
# name, context and description are rendered into
|
100
100
|
# one cell in the table as consecutive lines
|
101
101
|
name: "Standard Abonnement",
|
102
|
-
|
103
|
-
description: "Standard Abonnement für ein Jahr",
|
102
|
+
description: "SpVgg Demoburg -- Platz #{idx+1}\nStandard Abonnement für ein Jahr",
|
104
103
|
price_per_unit: "7,50 € / Monat",
|
105
104
|
units: "12",
|
106
105
|
price: "90,00 €"
|
data/lib/ubill/invoice.rb
CHANGED
@@ -20,6 +20,7 @@ module Ubill
|
|
20
20
|
@positions = [["#", "Beschreibung", "Einzelpreis", "Menge", "Gesamt"]]
|
21
21
|
@total = ""
|
22
22
|
@due = ""
|
23
|
+
@addendum = ""
|
23
24
|
|
24
25
|
load_external_font_families
|
25
26
|
|
@@ -35,10 +36,10 @@ module Ubill
|
|
35
36
|
@subject_info = subtitle
|
36
37
|
end
|
37
38
|
|
38
|
-
def position(name:,
|
39
|
+
def position(name:, description:, price_per_unit:, units:, price:)
|
39
40
|
@positions << [
|
40
41
|
@positions.size,
|
41
|
-
"<b>#{name}</b><font size=\"9\">\n#{
|
42
|
+
"<b>#{name}</b><font size=\"9\">\n#{description}</font>",
|
42
43
|
price_per_unit,
|
43
44
|
units,
|
44
45
|
price
|
@@ -53,6 +54,10 @@ module Ubill
|
|
53
54
|
@due = value
|
54
55
|
end
|
55
56
|
|
57
|
+
def addendum(value)
|
58
|
+
@addendum = value
|
59
|
+
end
|
60
|
+
|
56
61
|
|
57
62
|
def config
|
58
63
|
Ubill.config
|
@@ -126,6 +131,9 @@ module Ubill
|
|
126
131
|
pad 9.mm do
|
127
132
|
describe_positions
|
128
133
|
end
|
134
|
+
pad 2.mm do
|
135
|
+
describe_addendum
|
136
|
+
end
|
129
137
|
pad 2.mm do
|
130
138
|
describe_terms
|
131
139
|
end
|
@@ -198,6 +206,11 @@ module Ubill
|
|
198
206
|
end
|
199
207
|
end
|
200
208
|
|
209
|
+
def describe_addendum
|
210
|
+
font_size 10
|
211
|
+
text @addendum
|
212
|
+
end
|
213
|
+
|
201
214
|
def describe_terms
|
202
215
|
font_size 10
|
203
216
|
text "Es wird gemäß §19 Abs. 1 Umsatzsteuergesetz keine Umsatzsteuer erhoben. Der Gesamtbetrag der Rechnung ist zahlbar bis zum #{@due} ohne Abzug. Wenn nicht anders angegeben, entspricht das Leistungsdatum dem Rechnungsdatum."
|
data/lib/ubill/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- couchbelag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|