lohnausweis 0.4.1 → 0.4.3
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/lib/lohnausweis/pdf_generator.rb +6 -6
- data/lib/lohnausweis/version.rb +1 -1
- data/mit_weiss_nicht_was_alles.pdf +230 -639
- data/spec/lohnausweis/pdf_generator_spec.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9663e1dd0d189bb728541c3b404a6b4d21849374
|
4
|
+
data.tar.gz: 38fa816ebf30e3b087eccba152cdc2fa0e7495e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 112ba54ad5c0e13c16ae364027624a8eb9399290517daacda8150e4038591f35f18c314227d5eeb5757e14d3020e2d2ed4e43d03eb97449d33107c89efb28e38
|
7
|
+
data.tar.gz: 199843412cf687c703365fd0f0f635c48d833a0f81eb4dfbdfeac4890ce1a51c5bacd148c5a609586318a2cf415c8aa81cc203faa07eb0ddab1218f4ce979cca
|
data/Gemfile.lock
CHANGED
@@ -29,7 +29,7 @@ module Planik
|
|
29
29
|
next_y -= 50
|
30
30
|
next_y = zulagen_block(next_y)
|
31
31
|
next_y -= 50
|
32
|
-
next_y =
|
32
|
+
next_y = arbeitsliste_new(next_y)
|
33
33
|
|
34
34
|
footer()
|
35
35
|
@pdf
|
@@ -78,7 +78,7 @@ module Planik
|
|
78
78
|
@pdf.text "#{@daten.adresse.plz} <u>#{@daten.adresse.ort}</u>", inline_format: true
|
79
79
|
#@pdf.stroke_bounds
|
80
80
|
end
|
81
|
-
@pdf.move_down(
|
81
|
+
@pdf.move_down(40)
|
82
82
|
@pdf.text("Arbeitszeiten #{@daten.monat_arbeit} #{@daten.jahr_arbeit}", style: :bold)
|
83
83
|
end
|
84
84
|
#@pdf.stroke_bounds
|
@@ -153,12 +153,12 @@ module Planik
|
|
153
153
|
end
|
154
154
|
|
155
155
|
def footer
|
156
|
-
ypos =
|
156
|
+
ypos = 8
|
157
157
|
@pdf.bounding_box([XPOS, ypos], width: WIDTH) do
|
158
158
|
@pdf.font("Helvetica", size: 8) do
|
159
|
-
@pdf.text("Wir bitten Sie, die Lohnabrechnung sofort zu prüfen und Unstimmigkeiten unverzüglich mitzuteilen.")
|
160
159
|
# Neu
|
161
160
|
# Aenderung für MEDPHONE März 2015: Nur Arbeitsliste, Arbeitszeit und Zulagen
|
161
|
+
#@pdf.text("Wir bitten Sie, die Lohnabrechnung sofort zu prüfen und Unstimmigkeiten unverzüglich mitzuteilen.")
|
162
162
|
#@pdf.text("Anhang: Arbeitszeit von #{@daten.start_datum_for_arbeit} bis #{@daten.end_datum_for_arbeit}.")
|
163
163
|
@pdf.text("Generiert von Planik am #{Time.now.strftime("%d.%m.%Y um %H:%M Uhr")}")
|
164
164
|
end
|
@@ -183,9 +183,9 @@ module Planik
|
|
183
183
|
# Aenderung für MEDPHONE März 2015: Nur Arbeitsliste, Arbeitszeit und Zulagen
|
184
184
|
#
|
185
185
|
def arbeitsliste_new(ypos)
|
186
|
-
@pdf.move_down(
|
186
|
+
@pdf.move_down(20)
|
187
187
|
@pdf.text("Arbeitszeit von #{@daten.start_datum_for_arbeit} bis #{@daten.end_datum_for_arbeit}", style: :bold)
|
188
|
-
|
188
|
+
arbeitsliste = @daten.arbeitsliste
|
189
189
|
make_table_without_bounding_box(arbeitsliste, true)
|
190
190
|
end
|
191
191
|
|
data/lib/lohnausweis/version.rb
CHANGED