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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d37935a5d0d9e53ff37f04a7caaaf5a984aa0d0681411f2a05a7c7bda0b10954
4
- data.tar.gz: 2efdf6d854e47d3e62b68057816de120661ec07d95f38a370d717384f510c0fe
3
+ metadata.gz: 1207490a69f5bb356b6c89c6fae729518c0952c13a87731bb3c0c998a4c5202c
4
+ data.tar.gz: 7142d7578d4898d143cbe4c0d8ed417703a376bbd590cdf29646b69aef77357f
5
5
  SHA512:
6
- metadata.gz: a47f39ee141e67ff4356825681e4d7ce80f377e9e5d12458bb1c47e300f2dcb03ca9a58017f833754c4dcb2ad2b79b40fcbadbd7590b61da4d80262a35045fb9
7
- data.tar.gz: 4c9b3404a80fc28a9e118892bd5d4e8ef40fa4751721d64d31dc32ab407e1e8e84b6c11966472f47d6763674586a2ac9811c674e3dfaca4b4c7fd37aa1ef643b
6
+ metadata.gz: 4ff5a10a53d50e7418629cab49f718825a09cf4547d2a3ebf153914b184051fece73bf5622ccdc45c702b06ebd4a30b8ce5e63733a96986f11b57ae6c97496fb
7
+ data.tar.gz: 767da0467c922908b8b182d46f68cce977cb78f0c55dac69544bc346be6d58ebd4f9cea8e47d9ae0bfe98f21a1d83dc75e84d3924bdcc126b8eeb80096f76945
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ubill (0.1.2)
4
+ ubill (0.1.4)
5
5
  matrix (~> 0.4)
6
6
  prawn (~> 2.4)
7
7
  prawn-table (~> 0.2)
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
- context: "SpVgg Demoburg -- Platz #{idx+1}",
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:, context:, description:, price_per_unit:, units:, price:)
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#{context}\n#{description}</font>",
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ubill
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
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.2
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-14 00:00:00.000000000 Z
11
+ date: 2023-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn