lohnausweis 0.2.5 → 0.2.6
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/daten.rb +4 -5
- data/lib/lohnausweis/daten_eintrag.rb +2 -4
- data/lib/lohnausweis/pdf_generator.rb +10 -8
- data/lib/lohnausweis/version.rb +1 -1
- data/mit_korrektur_januar.pdf +216 -27
- data/mit_weiss_nicht_was_alles.pdf +1204 -0
- data/spec/lohnausweis/pdf_generator_spec.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3fe95c5dd380b1eb37a8e0221b1f9ffaa3a13dc
|
4
|
+
data.tar.gz: 28a15ef387fbb1482641483d7db4c8bb8b1f2342
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b58b4dcf303b78547502d31006f5f6e9e1beebc24a3edca47daa2cb9776707b3640c642b80f6a31b05517be1c074a06e5e703e07e5b70456508007a0e0bea0c
|
7
|
+
data.tar.gz: 76ba12215d5565c18f5143479ccd2221862d41acc2861a80bbad39f4583ece3d000a1db3dee29fa4502441e216364daf5a9dc9ad819925d5e66ef21336c21884
|
data/Gemfile.lock
CHANGED
data/lib/lohnausweis/daten.rb
CHANGED
@@ -60,10 +60,10 @@ module Planik
|
|
60
60
|
|
61
61
|
def create_abzuege_block(bruttolohn_eintrag)
|
62
62
|
lohn_abzuege = []
|
63
|
-
lohn_abzuege << Abzug.new("AHV, IV, EO",
|
64
|
-
lohn_abzuege << Abzug.new("ALV",
|
65
|
-
lohn_abzuege << Abzug.new("NBU",
|
66
|
-
lohn_abzuege << Abzug.new("Krankentaggeld",
|
63
|
+
lohn_abzuege << Abzug.new("AHV, IV, EO", bruttolohn_eintrag.betrag, @rohdaten.ahv)
|
64
|
+
lohn_abzuege << Abzug.new("ALV", bruttolohn_eintrag.betrag, @rohdaten.alv)
|
65
|
+
lohn_abzuege << Abzug.new("NBU", bruttolohn_eintrag.betrag, @rohdaten.nbu)
|
66
|
+
lohn_abzuege << Abzug.new("Krankentaggeld", bruttolohn_eintrag.betrag, @rohdaten.krankentaggeld)
|
67
67
|
# lohn_abzuege << Fakt.new("Pensionskasse BVG", nil, nil, @rohdaten.pensionskasse)
|
68
68
|
@rohdaten.abzug_freifelder.each do |ff|
|
69
69
|
lohn_abzuege << Fakt.new(ff.name, ff.menge, ff.ansatz, ff.betrag)
|
@@ -140,7 +140,6 @@ module Planik
|
|
140
140
|
|
141
141
|
def abzug_daten
|
142
142
|
@abzuege_block.daten
|
143
|
-
|
144
143
|
end
|
145
144
|
|
146
145
|
def ferien_daten
|
@@ -22,9 +22,14 @@ module Planik
|
|
22
22
|
@pdf.default_leading = 0
|
23
23
|
next_y = 750
|
24
24
|
next_y = header(next_y)
|
25
|
+
next_y -= 50
|
26
|
+
|
25
27
|
next_y = lohn_block(next_y)
|
28
|
+
next_y -= 50
|
26
29
|
next_y = ferien_block(next_y)
|
30
|
+
next_y -= 50
|
27
31
|
arbeitszeit_block(next_y)
|
32
|
+
|
28
33
|
footer()
|
29
34
|
arbeitsliste()
|
30
35
|
@pdf
|
@@ -45,9 +50,10 @@ module Planik
|
|
45
50
|
@pdf.bounding_box([350, ypos], width: width, height: 70) do
|
46
51
|
@pdf.text "#{@daten.adresse.voller_name}"
|
47
52
|
@pdf.text @daten.adresse.strasse_nr
|
48
|
-
@pdf.text "#{@daten.adresse.plz} <u
|
53
|
+
@pdf.text "#{@daten.adresse.plz} <u>#{@daten.adresse.ort}</u>", inline_format: true
|
49
54
|
#@pdf.stroke_bounds
|
50
55
|
end
|
56
|
+
@pdf.move_down(50)
|
51
57
|
@pdf.text("Lohnabrechnung #{@daten.monat} #{@daten.jahr}", style: :bold)
|
52
58
|
end
|
53
59
|
#@pdf.stroke_bounds
|
@@ -56,20 +62,17 @@ module Planik
|
|
56
62
|
end
|
57
63
|
|
58
64
|
def lohn_block(ypos)
|
59
|
-
ypos = ypos - 50
|
60
65
|
bb = @pdf.bounding_box([XPOS, ypos], width: WIDTH) do
|
61
|
-
|
62
|
-
make_table(XPOS,
|
66
|
+
inner_ypos = 0
|
67
|
+
make_table(XPOS, inner_ypos, @daten.lohn_daten, true)
|
63
68
|
@pdf.move_down 10 # Abstand
|
64
|
-
make_table(XPOS,
|
69
|
+
make_table(XPOS, inner_ypos, @daten.abzug_daten, false)
|
65
70
|
@pdf.stroke_bounds
|
66
71
|
end
|
67
72
|
bb.absolute_bottom
|
68
73
|
end
|
69
74
|
|
70
75
|
def ferien_block(ypos)
|
71
|
-
ypos = ypos - 50
|
72
|
-
#ypos = @pdf.bounds.absolute_bottom
|
73
76
|
bb = @pdf.bounding_box([XPOS, ypos], width: WIDTH) do
|
74
77
|
ypos = 0
|
75
78
|
make_table(XPOS, ypos, @daten.ferien_daten, true)
|
@@ -79,7 +82,6 @@ module Planik
|
|
79
82
|
end
|
80
83
|
|
81
84
|
def arbeitszeit_block(ypos)
|
82
|
-
ypos = ypos - 50
|
83
85
|
@pdf.bounding_box([XPOS, ypos], width: WIDTH) do
|
84
86
|
ypos = 0
|
85
87
|
make_table(XPOS, ypos, @daten.arbeitszeit_daten, true)
|
data/lib/lohnausweis/version.rb
CHANGED
data/mit_korrektur_januar.pdf
CHANGED
@@ -17,10 +17,199 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 14573
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
24
|
+
q
|
25
|
+
/DeviceRGB cs
|
26
|
+
0.000 0.000 0.000 scn
|
27
|
+
/DeviceRGB CS
|
28
|
+
0.000 0.000 0.000 SCN
|
29
|
+
[1 4] 0 d
|
30
|
+
16.000 36.000 m
|
31
|
+
559.000 36.000 l
|
32
|
+
S
|
33
|
+
36.000 16.000 m
|
34
|
+
36.000 805.000 l
|
35
|
+
S
|
36
|
+
[ ] 0 d
|
37
|
+
37.000 36.000 m
|
38
|
+
37.000 36.552 36.552 37.000 36.000 37.000 c
|
39
|
+
35.448 37.000 35.000 36.552 35.000 36.000 c
|
40
|
+
35.000 35.448 35.448 35.000 36.000 35.000 c
|
41
|
+
36.552 35.000 37.000 35.448 37.000 36.000 c
|
42
|
+
36.000 36.000 m
|
43
|
+
f
|
44
|
+
137.000 36.000 m
|
45
|
+
137.000 36.552 136.552 37.000 136.000 37.000 c
|
46
|
+
135.448 37.000 135.000 36.552 135.000 36.000 c
|
47
|
+
135.000 35.448 135.448 35.000 136.000 35.000 c
|
48
|
+
136.552 35.000 137.000 35.448 137.000 36.000 c
|
49
|
+
136.000 36.000 m
|
50
|
+
f
|
51
|
+
|
52
|
+
BT
|
53
|
+
131 26.0 Td
|
54
|
+
/F1.0 7 Tf
|
55
|
+
[<313030>] TJ
|
56
|
+
ET
|
57
|
+
|
58
|
+
237.000 36.000 m
|
59
|
+
237.000 36.552 236.552 37.000 236.000 37.000 c
|
60
|
+
235.448 37.000 235.000 36.552 235.000 36.000 c
|
61
|
+
235.000 35.448 235.448 35.000 236.000 35.000 c
|
62
|
+
236.552 35.000 237.000 35.448 237.000 36.000 c
|
63
|
+
236.000 36.000 m
|
64
|
+
f
|
65
|
+
|
66
|
+
BT
|
67
|
+
231 26.0 Td
|
68
|
+
/F1.0 7 Tf
|
69
|
+
[<323030>] TJ
|
70
|
+
ET
|
71
|
+
|
72
|
+
337.000 36.000 m
|
73
|
+
337.000 36.552 336.552 37.000 336.000 37.000 c
|
74
|
+
335.448 37.000 335.000 36.552 335.000 36.000 c
|
75
|
+
335.000 35.448 335.448 35.000 336.000 35.000 c
|
76
|
+
336.552 35.000 337.000 35.448 337.000 36.000 c
|
77
|
+
336.000 36.000 m
|
78
|
+
f
|
79
|
+
|
80
|
+
BT
|
81
|
+
331 26.0 Td
|
82
|
+
/F1.0 7 Tf
|
83
|
+
[<333030>] TJ
|
84
|
+
ET
|
85
|
+
|
86
|
+
437.000 36.000 m
|
87
|
+
437.000 36.552 436.552 37.000 436.000 37.000 c
|
88
|
+
435.448 37.000 435.000 36.552 435.000 36.000 c
|
89
|
+
435.000 35.448 435.448 35.000 436.000 35.000 c
|
90
|
+
436.552 35.000 437.000 35.448 437.000 36.000 c
|
91
|
+
436.000 36.000 m
|
92
|
+
f
|
93
|
+
|
94
|
+
BT
|
95
|
+
431 26.0 Td
|
96
|
+
/F1.0 7 Tf
|
97
|
+
[<343030>] TJ
|
98
|
+
ET
|
99
|
+
|
100
|
+
537.000 36.000 m
|
101
|
+
537.000 36.552 536.552 37.000 536.000 37.000 c
|
102
|
+
535.448 37.000 535.000 36.552 535.000 36.000 c
|
103
|
+
535.000 35.448 535.448 35.000 536.000 35.000 c
|
104
|
+
536.552 35.000 537.000 35.448 537.000 36.000 c
|
105
|
+
536.000 36.000 m
|
106
|
+
f
|
107
|
+
|
108
|
+
BT
|
109
|
+
531 26.0 Td
|
110
|
+
/F1.0 7 Tf
|
111
|
+
[<353030>] TJ
|
112
|
+
ET
|
113
|
+
|
114
|
+
37.000 136.000 m
|
115
|
+
37.000 136.552 36.552 137.000 36.000 137.000 c
|
116
|
+
35.448 137.000 35.000 136.552 35.000 136.000 c
|
117
|
+
35.000 135.448 35.448 135.000 36.000 135.000 c
|
118
|
+
36.552 135.000 37.000 135.448 37.000 136.000 c
|
119
|
+
36.000 136.000 m
|
120
|
+
f
|
121
|
+
|
122
|
+
BT
|
123
|
+
19 134.0 Td
|
124
|
+
/F1.0 7 Tf
|
125
|
+
[<313030>] TJ
|
126
|
+
ET
|
127
|
+
|
128
|
+
37.000 236.000 m
|
129
|
+
37.000 236.552 36.552 237.000 36.000 237.000 c
|
130
|
+
35.448 237.000 35.000 236.552 35.000 236.000 c
|
131
|
+
35.000 235.448 35.448 235.000 36.000 235.000 c
|
132
|
+
36.552 235.000 37.000 235.448 37.000 236.000 c
|
133
|
+
36.000 236.000 m
|
134
|
+
f
|
135
|
+
|
136
|
+
BT
|
137
|
+
19 234.0 Td
|
138
|
+
/F1.0 7 Tf
|
139
|
+
[<323030>] TJ
|
140
|
+
ET
|
141
|
+
|
142
|
+
37.000 336.000 m
|
143
|
+
37.000 336.552 36.552 337.000 36.000 337.000 c
|
144
|
+
35.448 337.000 35.000 336.552 35.000 336.000 c
|
145
|
+
35.000 335.448 35.448 335.000 36.000 335.000 c
|
146
|
+
36.552 335.000 37.000 335.448 37.000 336.000 c
|
147
|
+
36.000 336.000 m
|
148
|
+
f
|
149
|
+
|
150
|
+
BT
|
151
|
+
19 334.0 Td
|
152
|
+
/F1.0 7 Tf
|
153
|
+
[<333030>] TJ
|
154
|
+
ET
|
155
|
+
|
156
|
+
37.000 436.000 m
|
157
|
+
37.000 436.552 36.552 437.000 36.000 437.000 c
|
158
|
+
35.448 437.000 35.000 436.552 35.000 436.000 c
|
159
|
+
35.000 435.448 35.448 435.000 36.000 435.000 c
|
160
|
+
36.552 435.000 37.000 435.448 37.000 436.000 c
|
161
|
+
36.000 436.000 m
|
162
|
+
f
|
163
|
+
|
164
|
+
BT
|
165
|
+
19 434.0 Td
|
166
|
+
/F1.0 7 Tf
|
167
|
+
[<343030>] TJ
|
168
|
+
ET
|
169
|
+
|
170
|
+
37.000 536.000 m
|
171
|
+
37.000 536.552 36.552 537.000 36.000 537.000 c
|
172
|
+
35.448 537.000 35.000 536.552 35.000 536.000 c
|
173
|
+
35.000 535.448 35.448 535.000 36.000 535.000 c
|
174
|
+
36.552 535.000 37.000 535.448 37.000 536.000 c
|
175
|
+
36.000 536.000 m
|
176
|
+
f
|
177
|
+
|
178
|
+
BT
|
179
|
+
19 534.0 Td
|
180
|
+
/F1.0 7 Tf
|
181
|
+
[<353030>] TJ
|
182
|
+
ET
|
183
|
+
|
184
|
+
37.000 636.000 m
|
185
|
+
37.000 636.552 36.552 637.000 36.000 637.000 c
|
186
|
+
35.448 637.000 35.000 636.552 35.000 636.000 c
|
187
|
+
35.000 635.448 35.448 635.000 36.000 635.000 c
|
188
|
+
36.552 635.000 37.000 635.448 37.000 636.000 c
|
189
|
+
36.000 636.000 m
|
190
|
+
f
|
191
|
+
|
192
|
+
BT
|
193
|
+
19 634.0 Td
|
194
|
+
/F1.0 7 Tf
|
195
|
+
[<363030>] TJ
|
196
|
+
ET
|
197
|
+
|
198
|
+
37.000 736.000 m
|
199
|
+
37.000 736.552 36.552 737.000 36.000 737.000 c
|
200
|
+
35.448 737.000 35.000 736.552 35.000 736.000 c
|
201
|
+
35.000 735.448 35.448 735.000 36.000 735.000 c
|
202
|
+
36.552 735.000 37.000 735.448 37.000 736.000 c
|
203
|
+
36.000 736.000 m
|
204
|
+
f
|
205
|
+
|
206
|
+
BT
|
207
|
+
19 734.0 Td
|
208
|
+
/F1.0 7 Tf
|
209
|
+
[<373030>] TJ
|
210
|
+
ET
|
211
|
+
|
212
|
+
Q
|
24
213
|
|
25
214
|
BT
|
26
215
|
386 707.384 Td
|
@@ -46,11 +235,11 @@ ET
|
|
46
235
|
BT
|
47
236
|
416.024 679.6399999999999 Td
|
48
237
|
/F1.0 12 Tf
|
49
|
-
[<
|
238
|
+
[<4f626572> -15 <75747a77696c>] TJ
|
50
239
|
ET
|
51
240
|
|
52
241
|
416.024 678.390 m
|
53
|
-
|
242
|
+
472.880 678.390 l
|
54
243
|
S
|
55
244
|
|
56
245
|
BT
|
@@ -130,9 +319,9 @@ ET
|
|
130
319
|
0.000 0.000 0.000 SCN
|
131
320
|
|
132
321
|
BT
|
133
|
-
|
322
|
+
492.14399999999995 591.7040000000001 Td
|
134
323
|
/F1.0 8 Tf
|
135
|
-
[<46> 45 <
|
324
|
+
[<46> 45 <722034273530302e3030>] TJ
|
136
325
|
ET
|
137
326
|
|
138
327
|
1 w
|
@@ -318,9 +507,9 @@ ET
|
|
318
507
|
0.000 0.000 0.000 SCN
|
319
508
|
|
320
509
|
BT
|
321
|
-
|
510
|
+
492.14399999999995 500.216 Td
|
322
511
|
/F1.0 8 Tf
|
323
|
-
[<46> 45 <
|
512
|
+
[<46> 45 <722032273235302e3030>] TJ
|
324
513
|
ET
|
325
514
|
|
326
515
|
1 w
|
@@ -375,9 +564,9 @@ S
|
|
375
564
|
0.000 0.000 0.000 SCN
|
376
565
|
|
377
566
|
BT
|
378
|
-
|
567
|
+
490.96 469.58400000000006 Td
|
379
568
|
/F2.0 8 Tf
|
380
|
-
[<
|
569
|
+
[<46722037273631392e3535>] TJ
|
381
570
|
ET
|
382
571
|
|
383
572
|
1 w
|
@@ -393,9 +582,9 @@ ET
|
|
393
582
|
0.000 0.000 0.000 SCN
|
394
583
|
|
395
584
|
BT
|
396
|
-
|
585
|
+
325.4773333333333 444.20000000000005 Td
|
397
586
|
/F1.0 8 Tf
|
398
|
-
[<46> 45 <
|
587
|
+
[<46> 45 <722034273530302e3030>] TJ
|
399
588
|
ET
|
400
589
|
|
401
590
|
1 w
|
@@ -429,9 +618,9 @@ ET
|
|
429
618
|
0.000 0.000 0.000 SCN
|
430
619
|
|
431
620
|
BT
|
432
|
-
|
621
|
+
325.4773333333333 428.952 Td
|
433
622
|
/F1.0 8 Tf
|
434
|
-
[<46> 45 <
|
623
|
+
[<46> 45 <722034273530302e3030>] TJ
|
435
624
|
ET
|
436
625
|
|
437
626
|
1 w
|
@@ -465,9 +654,9 @@ ET
|
|
465
654
|
0.000 0.000 0.000 SCN
|
466
655
|
|
467
656
|
BT
|
468
|
-
|
657
|
+
325.4773333333333 413.70400000000006 Td
|
469
658
|
/F1.0 8 Tf
|
470
|
-
[<46> 45 <
|
659
|
+
[<46> 45 <722034273530302e3030>] TJ
|
471
660
|
ET
|
472
661
|
|
473
662
|
1 w
|
@@ -501,9 +690,9 @@ ET
|
|
501
690
|
0.000 0.000 0.000 SCN
|
502
691
|
|
503
692
|
BT
|
504
|
-
|
693
|
+
325.4773333333333 398.456 Td
|
505
694
|
/F1.0 8 Tf
|
506
|
-
[<46> 45 <
|
695
|
+
[<46> 45 <722034273530302e3030>] TJ
|
507
696
|
ET
|
508
697
|
|
509
698
|
1 w
|
@@ -583,9 +772,9 @@ S
|
|
583
772
|
0.000 0.000 0.000 SCN
|
584
773
|
|
585
774
|
BT
|
586
|
-
|
775
|
+
490.96 367.82400000000007 Td
|
587
776
|
/F2.0 8 Tf
|
588
|
-
[<
|
777
|
+
[<46722037273134342e3035>] TJ
|
589
778
|
ET
|
590
779
|
|
591
780
|
36.000 362.936 500.000 254.784 re
|
@@ -854,7 +1043,7 @@ ET
|
|
854
1043
|
BT
|
855
1044
|
357.00800000000004 37.760000000000005 Td
|
856
1045
|
/F1.0 8 Tf
|
857
|
-
[<47656e6572> -15 <696572> -40 <742076> 25 <
|
1046
|
+
[<47656e6572> -15 <696572> -40 <742076> 25 <6f6e20506c616e696b20616d2031342e30352e3230313420756d2031363a303320556872>] TJ
|
858
1047
|
ET
|
859
1048
|
|
860
1049
|
Q
|
@@ -1163,7 +1352,7 @@ ET
|
|
1163
1352
|
BT
|
1164
1353
|
357.00800000000004 48.256 Td
|
1165
1354
|
/F1.0 8 Tf
|
1166
|
-
[<47656e6572> -15 <696572> -40 <742076> 25 <
|
1355
|
+
[<47656e6572> -15 <696572> -40 <742076> 25 <6f6e20506c616e696b20616d2031342e30352e3230313420756d2031363a303320556872>] TJ
|
1167
1356
|
ET
|
1168
1357
|
|
1169
1358
|
Q
|
@@ -1189,16 +1378,16 @@ xref
|
|
1189
1378
|
0000000109 00000 n
|
1190
1379
|
0000000158 00000 n
|
1191
1380
|
0000000221 00000 n
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1381
|
+
0000014847 00000 n
|
1382
|
+
0000015039 00000 n
|
1383
|
+
0000015136 00000 n
|
1384
|
+
0000015238 00000 n
|
1385
|
+
0000018630 00000 n
|
1197
1386
|
trailer
|
1198
1387
|
<< /Size 10
|
1199
1388
|
/Root 2 0 R
|
1200
1389
|
/Info 1 0 R
|
1201
1390
|
>>
|
1202
1391
|
startxref
|
1203
|
-
|
1392
|
+
18822
|
1204
1393
|
%%EOF
|