@kreiseck/kasseneck-api 1.30.0 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/cjs/client/aufrufe.d.ts +3 -3
  3. package/dist/cjs/client/aufrufe.js +8 -0
  4. package/dist/cjs/client/receipts.d.ts +11 -0
  5. package/dist/cjs/client/receipts.js +14 -0
  6. package/dist/cjs/index.d.ts +2 -2
  7. package/dist/cjs/index.js +10 -5
  8. package/dist/cjs/models/index.d.ts +2 -2
  9. package/dist/cjs/models/index.js +7 -2
  10. package/dist/cjs/models/receipt-errors.d.ts +1 -1
  11. package/dist/cjs/models/receipt-errors.js +9 -0
  12. package/dist/cjs/models/receipt-item.d.ts +44 -2
  13. package/dist/cjs/models/receipt-item.js +56 -1
  14. package/dist/cjs/models/receipt.d.ts +17 -0
  15. package/dist/cjs/models/receipt.js +9 -0
  16. package/dist/cjs/models/voucher.d.ts +18 -0
  17. package/dist/cjs/models/voucher.js +32 -1
  18. package/dist/cjs/pos/artikel.d.ts +26 -0
  19. package/dist/cjs/pos/artikel.js +5 -0
  20. package/dist/cjs/pos/client.d.ts +1 -0
  21. package/dist/cjs/pos/client.js +14 -0
  22. package/dist/cjs/pos/errors.d.ts +1 -1
  23. package/dist/cjs/pos/errors.js +13 -0
  24. package/dist/cjs/pos/fremdgutschein-artikel.d.ts +66 -0
  25. package/dist/cjs/pos/fremdgutschein-artikel.js +74 -0
  26. package/dist/cjs/pos/index.d.ts +9 -4
  27. package/dist/cjs/pos/index.js +62 -4
  28. package/dist/cjs/pos/leergut.d.ts +60 -0
  29. package/dist/cjs/pos/leergut.js +82 -0
  30. package/dist/cjs/pos/pfand.d.ts +144 -0
  31. package/dist/cjs/pos/pfand.js +382 -0
  32. package/dist/cjs/pos/rabatt-vorlagen.d.ts +79 -0
  33. package/dist/cjs/pos/rabatt-vorlagen.js +156 -0
  34. package/dist/cjs/pos/schicht-lesen.js +8 -0
  35. package/dist/cjs/pos/schicht-typen.d.ts +15 -0
  36. package/dist/cjs/pos/settings.d.ts +72 -10
  37. package/dist/cjs/pos/settings.js +79 -5
  38. package/dist/cjs/pos/texte.d.ts +283 -0
  39. package/dist/cjs/pos/texte.js +163 -1
  40. package/dist/cjs/pos/zusaetze.d.ts +3 -3
  41. package/dist/cjs/pos/zusaetze.js +4 -2
  42. package/dist/cjs/receipt/discount.js +3 -0
  43. package/dist/cjs/receipt/due.d.ts +6 -0
  44. package/dist/cjs/receipt/due.js +16 -5
  45. package/dist/cjs/receipt/gutschein-plan.d.ts +7 -1
  46. package/dist/cjs/receipt/gutschein-plan.js +16 -2
  47. package/dist/cjs/receipt/layout.js +108 -2
  48. package/dist/cjs/receipt/shift-sheet.js +8 -0
  49. package/dist/cjs/register/pairing.d.ts +15 -1
  50. package/dist/cjs/register/pairing.js +14 -1
  51. package/dist/cjs/stored/draht.js +1 -0
  52. package/dist/cjs/stored/einstellungen.js +50 -2
  53. package/dist/cjs/stored/vokabular.d.ts +1 -1
  54. package/dist/cjs/stored/vokabular.js +107 -5
  55. package/dist/cjs/version.d.ts +1 -1
  56. package/dist/cjs/version.js +1 -1
  57. package/dist/esm/client/aufrufe.d.ts +3 -3
  58. package/dist/esm/client/aufrufe.js +8 -0
  59. package/dist/esm/client/receipts.d.ts +11 -0
  60. package/dist/esm/client/receipts.js +14 -0
  61. package/dist/esm/index.d.ts +2 -2
  62. package/dist/esm/index.js +2 -2
  63. package/dist/esm/models/index.d.ts +2 -2
  64. package/dist/esm/models/index.js +2 -2
  65. package/dist/esm/models/receipt-errors.d.ts +1 -1
  66. package/dist/esm/models/receipt-errors.js +9 -0
  67. package/dist/esm/models/receipt-item.d.ts +44 -2
  68. package/dist/esm/models/receipt-item.js +54 -1
  69. package/dist/esm/models/receipt.d.ts +17 -0
  70. package/dist/esm/models/receipt.js +9 -0
  71. package/dist/esm/models/voucher.d.ts +18 -0
  72. package/dist/esm/models/voucher.js +30 -0
  73. package/dist/esm/pos/artikel.d.ts +26 -0
  74. package/dist/esm/pos/artikel.js +5 -0
  75. package/dist/esm/pos/client.d.ts +1 -0
  76. package/dist/esm/pos/client.js +15 -1
  77. package/dist/esm/pos/errors.d.ts +1 -1
  78. package/dist/esm/pos/errors.js +13 -0
  79. package/dist/esm/pos/fremdgutschein-artikel.d.ts +66 -0
  80. package/dist/esm/pos/fremdgutschein-artikel.js +67 -0
  81. package/dist/esm/pos/index.d.ts +9 -4
  82. package/dist/esm/pos/index.js +10 -4
  83. package/dist/esm/pos/leergut.d.ts +60 -0
  84. package/dist/esm/pos/leergut.js +77 -0
  85. package/dist/esm/pos/pfand.d.ts +144 -0
  86. package/dist/esm/pos/pfand.js +371 -0
  87. package/dist/esm/pos/rabatt-vorlagen.d.ts +79 -0
  88. package/dist/esm/pos/rabatt-vorlagen.js +148 -0
  89. package/dist/esm/pos/schicht-lesen.js +8 -0
  90. package/dist/esm/pos/schicht-typen.d.ts +15 -0
  91. package/dist/esm/pos/settings.d.ts +72 -10
  92. package/dist/esm/pos/settings.js +74 -4
  93. package/dist/esm/pos/texte.d.ts +283 -0
  94. package/dist/esm/pos/texte.js +160 -0
  95. package/dist/esm/pos/zusaetze.d.ts +3 -3
  96. package/dist/esm/pos/zusaetze.js +4 -2
  97. package/dist/esm/receipt/discount.js +4 -1
  98. package/dist/esm/receipt/due.d.ts +6 -0
  99. package/dist/esm/receipt/due.js +17 -6
  100. package/dist/esm/receipt/gutschein-plan.d.ts +7 -1
  101. package/dist/esm/receipt/gutschein-plan.js +14 -2
  102. package/dist/esm/receipt/layout.js +109 -3
  103. package/dist/esm/receipt/shift-sheet.js +8 -0
  104. package/dist/esm/register/pairing.d.ts +15 -1
  105. package/dist/esm/register/pairing.js +13 -1
  106. package/dist/esm/stored/draht.js +1 -0
  107. package/dist/esm/stored/einstellungen.js +52 -4
  108. package/dist/esm/stored/vokabular.d.ts +1 -1
  109. package/dist/esm/stored/vokabular.js +107 -5
  110. package/dist/esm/version.d.ts +1 -1
  111. package/dist/esm/version.js +1 -1
  112. package/fixtures/add-on-cases.json +6 -4
  113. package/fixtures/deposit-cases.json +4758 -0
  114. package/fixtures/discount-preset-cases.json +1074 -0
  115. package/fixtures/expected/deposit-return.grid32.txt +28 -0
  116. package/fixtures/expected/deposit-return.grid48.txt +28 -0
  117. package/fixtures/expected/deposit-return.lines.json +275 -0
  118. package/fixtures/expected/deposit-return.sheet32.json +194 -0
  119. package/fixtures/expected/deposit-return.sheet48.json +194 -0
  120. package/fixtures/expected/deposit.grid32.txt +34 -0
  121. package/fixtures/expected/deposit.grid48.txt +32 -0
  122. package/fixtures/expected/deposit.lines.json +316 -0
  123. package/fixtures/expected/deposit.sheet32.json +230 -0
  124. package/fixtures/expected/deposit.sheet48.json +218 -0
  125. package/fixtures/external-voucher-article-cases.json +311 -0
  126. package/fixtures/hobex-hps-codes.json +1 -1
  127. package/fixtures/invoice-api.schema.json +1 -1
  128. package/fixtures/invoice-texts.json +1 -1
  129. package/fixtures/manifest.json +16 -0
  130. package/fixtures/pos-texts.json +266 -1
  131. package/fixtures/receipt-due-voucher-generated.json +1 -1
  132. package/fixtures/receipts/deposit-return.json +63 -0
  133. package/fixtures/receipts/deposit.json +83 -0
  134. package/fixtures/renames-1.0.json +18 -0
  135. package/fixtures/return-code-cases.json +1338 -0
  136. package/fixtures/surface.json +92 -7
  137. package/fixtures/v3/antworten/belege.json +2 -2
  138. package/fixtures/v3/antworten/belegmail.json +2 -2
  139. package/fixtures/v3/antworten/berichte.json +2 -2
  140. package/fixtures/v3/antworten/kasse-belege.json +2 -2
  141. package/fixtures/v3/antworten/kasse.json +428 -13
  142. package/fixtures/v3/antworten/lager.json +1 -1
  143. package/fixtures/v3/antworten/rechnungen.json +2 -2
  144. package/fixtures/v3/antworten/storno.json +2 -2
  145. package/fixtures/v3/stored/belege.json +2 -2
  146. package/fixtures/v3/stored/kasse.json +42 -4
  147. package/fixtures/v3/stored/rechnungen.json +2 -2
  148. package/fixtures/v3/v3-vokabular.json +898 -31
  149. package/fixtures/v3/zahlbetrag-faelle.json +187 -3
  150. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ Bäckerei Kornblum
2
+ Mühlweg 7
3
+ 4600 Wels
4
+ ATU12345675
5
+
6
+
7
+ Leergut-Rückgabe
8
+
9
+ Datum: 13.08.2026 10:15:30
10
+ Kassen-ID: KASSE1
11
+ Beleg-ID: AT0-KASSE1-92
12
+
13
+ 10 x Leergut -2,50 D
14
+ Einweg je -0,25
15
+ 4 x Leergut -0,80 A
16
+ Flasche je -0,20
17
+
18
+ MwSt% MwSt Netto Brutto
19
+ D 0% 0,00 -2,50 -2,50
20
+ A 20% -0,13 -0,67 -0,80
21
+ Pfand, nicht steuerbar -2,50
22
+ --------------------------------
23
+ Gesamt: -3,30 €
24
+ Bar ausgezahlt -3,30 €
25
+
26
+ [QR-Code]
27
+
28
+ Danke für Ihren Einkauf
@@ -0,0 +1,28 @@
1
+ Bäckerei Kornblum
2
+ Mühlweg 7
3
+ 4600 Wels
4
+ ATU12345675
5
+
6
+
7
+ Leergut-Rückgabe
8
+
9
+ Datum: 13.08.2026 10:15:30
10
+ Kassen-ID: KASSE1
11
+ Beleg-ID: AT0-KASSE1-92
12
+
13
+ 10 x Leergut Einweg -2,50 D
14
+ je -0,25
15
+ 4 x Leergut Flasche -0,80 A
16
+ je -0,20
17
+
18
+ MwSt% MwSt Netto Brutto
19
+ D 0% 0,00 -2,50 -2,50
20
+ A 20% -0,13 -0,67 -0,80
21
+ Pfand, nicht steuerbar -2,50
22
+ ------------------------------------------------
23
+ Gesamt: -3,30 €
24
+ Bar ausgezahlt -3,30 €
25
+
26
+ [QR-Code]
27
+
28
+ Danke für Ihren Einkauf
@@ -0,0 +1,275 @@
1
+ {
2
+ "lines": [
3
+ {
4
+ "kind": "text",
5
+ "text": "Bäckerei Kornblum",
6
+ "align": "center",
7
+ "bold": true
8
+ },
9
+ {
10
+ "kind": "text",
11
+ "text": "Mühlweg 7",
12
+ "align": "center",
13
+ "bold": false
14
+ },
15
+ {
16
+ "kind": "text",
17
+ "text": "4600 Wels",
18
+ "align": "center",
19
+ "bold": false
20
+ },
21
+ {
22
+ "kind": "text",
23
+ "text": "ATU12345675",
24
+ "align": "center",
25
+ "bold": false
26
+ },
27
+ {
28
+ "kind": "text",
29
+ "text": "",
30
+ "align": "center",
31
+ "bold": false
32
+ },
33
+ {
34
+ "kind": "space",
35
+ "lines": 1
36
+ },
37
+ {
38
+ "kind": "text",
39
+ "text": "Leergut-Rückgabe",
40
+ "align": "center",
41
+ "bold": true
42
+ },
43
+ {
44
+ "kind": "space",
45
+ "lines": 1
46
+ },
47
+ {
48
+ "kind": "columns",
49
+ "columns": [
50
+ {
51
+ "text": "Datum:",
52
+ "width": 4,
53
+ "align": "left"
54
+ },
55
+ {
56
+ "text": "13.08.2026 10:15:30",
57
+ "width": 8,
58
+ "align": "right"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "kind": "columns",
64
+ "columns": [
65
+ {
66
+ "text": "Kassen-ID:",
67
+ "width": 6,
68
+ "align": "left"
69
+ },
70
+ {
71
+ "text": "KASSE1",
72
+ "width": 6,
73
+ "align": "right"
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "kind": "columns",
79
+ "columns": [
80
+ {
81
+ "text": "Beleg-ID:",
82
+ "width": 6,
83
+ "align": "left"
84
+ },
85
+ {
86
+ "text": "AT0-KASSE1-92",
87
+ "width": 6,
88
+ "align": "right"
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "kind": "space",
94
+ "lines": 1
95
+ },
96
+ {
97
+ "kind": "columns",
98
+ "columns": [
99
+ {
100
+ "text": "10 x Leergut Einweg je -0,25",
101
+ "width": 7,
102
+ "align": "left"
103
+ },
104
+ {
105
+ "text": "-2,50 D",
106
+ "width": 5,
107
+ "align": "right"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "kind": "columns",
113
+ "columns": [
114
+ {
115
+ "text": "4 x Leergut Flasche je -0,20",
116
+ "width": 7,
117
+ "align": "left"
118
+ },
119
+ {
120
+ "text": "-0,80 A",
121
+ "width": 5,
122
+ "align": "right"
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "kind": "space",
128
+ "lines": 1
129
+ },
130
+ {
131
+ "kind": "columns",
132
+ "columns": [
133
+ {
134
+ "text": "MwSt%",
135
+ "width": 3,
136
+ "align": "left"
137
+ },
138
+ {
139
+ "text": "MwSt",
140
+ "width": 3,
141
+ "align": "left"
142
+ },
143
+ {
144
+ "text": "Netto",
145
+ "width": 3,
146
+ "align": "left"
147
+ },
148
+ {
149
+ "text": "Brutto",
150
+ "width": 3,
151
+ "align": "right"
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "kind": "columns",
157
+ "columns": [
158
+ {
159
+ "text": "D 0%",
160
+ "width": 3,
161
+ "align": "left"
162
+ },
163
+ {
164
+ "text": "0,00",
165
+ "width": 3,
166
+ "align": "left"
167
+ },
168
+ {
169
+ "text": "-2,50",
170
+ "width": 3,
171
+ "align": "left"
172
+ },
173
+ {
174
+ "text": "-2,50",
175
+ "width": 3,
176
+ "align": "right"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "kind": "columns",
182
+ "columns": [
183
+ {
184
+ "text": "A 20%",
185
+ "width": 3,
186
+ "align": "left"
187
+ },
188
+ {
189
+ "text": "-0,13",
190
+ "width": 3,
191
+ "align": "left"
192
+ },
193
+ {
194
+ "text": "-0,67",
195
+ "width": 3,
196
+ "align": "left"
197
+ },
198
+ {
199
+ "text": "-0,80",
200
+ "width": 3,
201
+ "align": "right"
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "kind": "columns",
207
+ "columns": [
208
+ {
209
+ "text": "Pfand, nicht steuerbar",
210
+ "width": 9,
211
+ "align": "left"
212
+ },
213
+ {
214
+ "text": "-2,50",
215
+ "width": 3,
216
+ "align": "right"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "kind": "rule",
222
+ "char": "-"
223
+ },
224
+ {
225
+ "kind": "columns",
226
+ "columns": [
227
+ {
228
+ "text": "Gesamt:",
229
+ "width": 6,
230
+ "align": "left"
231
+ },
232
+ {
233
+ "text": "-3,30 €",
234
+ "width": 6,
235
+ "align": "right"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "kind": "columns",
241
+ "columns": [
242
+ {
243
+ "text": "Bar ausgezahlt",
244
+ "width": 8,
245
+ "align": "left"
246
+ },
247
+ {
248
+ "text": "-3,30 €",
249
+ "width": 4,
250
+ "align": "right"
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "kind": "space",
256
+ "lines": 1
257
+ },
258
+ {
259
+ "kind": "qr",
260
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-92_2026-08-13T10:15:30_-0,80_0,00_0,00_0,00_-2,50_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR"
261
+ },
262
+ {
263
+ "kind": "space",
264
+ "lines": 1
265
+ },
266
+ {
267
+ "kind": "text",
268
+ "text": "Danke für Ihren Einkauf",
269
+ "align": "center",
270
+ "bold": false
271
+ }
272
+ ],
273
+ "paperSize": "mm58",
274
+ "ruleset": 2
275
+ }
@@ -0,0 +1,194 @@
1
+ {
2
+ "charsPerLine": 32,
3
+ "blocks": [
4
+ {
5
+ "kind": "logo",
6
+ "widthFraction": 0.62,
7
+ "heightLines": 3.968
8
+ },
9
+ {
10
+ "kind": "line",
11
+ "text": " ",
12
+ "bold": false,
13
+ "blank": true
14
+ },
15
+ {
16
+ "kind": "line",
17
+ "text": " Bäckerei Kornblum ",
18
+ "bold": true,
19
+ "blank": false
20
+ },
21
+ {
22
+ "kind": "line",
23
+ "text": " Mühlweg 7 ",
24
+ "bold": false,
25
+ "blank": false
26
+ },
27
+ {
28
+ "kind": "line",
29
+ "text": " 4600 Wels ",
30
+ "bold": false,
31
+ "blank": false
32
+ },
33
+ {
34
+ "kind": "line",
35
+ "text": " ATU12345675 ",
36
+ "bold": false,
37
+ "blank": false
38
+ },
39
+ {
40
+ "kind": "line",
41
+ "text": " ",
42
+ "bold": false,
43
+ "blank": false
44
+ },
45
+ {
46
+ "kind": "line",
47
+ "text": " ",
48
+ "bold": false,
49
+ "blank": true
50
+ },
51
+ {
52
+ "kind": "line",
53
+ "text": " Leergut-Rückgabe ",
54
+ "bold": true,
55
+ "blank": false
56
+ },
57
+ {
58
+ "kind": "line",
59
+ "text": " ",
60
+ "bold": false,
61
+ "blank": true
62
+ },
63
+ {
64
+ "kind": "line",
65
+ "text": "Datum: 13.08.2026 10:15:30",
66
+ "bold": false,
67
+ "blank": false
68
+ },
69
+ {
70
+ "kind": "line",
71
+ "text": "Kassen-ID: KASSE1",
72
+ "bold": false,
73
+ "blank": false
74
+ },
75
+ {
76
+ "kind": "line",
77
+ "text": "Beleg-ID: AT0-KASSE1-92",
78
+ "bold": false,
79
+ "blank": false
80
+ },
81
+ {
82
+ "kind": "line",
83
+ "text": " ",
84
+ "bold": false,
85
+ "blank": true
86
+ },
87
+ {
88
+ "kind": "line",
89
+ "text": "10 x Leergut -2,50 D",
90
+ "bold": false,
91
+ "blank": false
92
+ },
93
+ {
94
+ "kind": "line",
95
+ "text": "Einweg je -0,25 ",
96
+ "bold": false,
97
+ "blank": false
98
+ },
99
+ {
100
+ "kind": "line",
101
+ "text": "4 x Leergut -0,80 A",
102
+ "bold": false,
103
+ "blank": false
104
+ },
105
+ {
106
+ "kind": "line",
107
+ "text": "Flasche je -0,20 ",
108
+ "bold": false,
109
+ "blank": false
110
+ },
111
+ {
112
+ "kind": "line",
113
+ "text": " ",
114
+ "bold": false,
115
+ "blank": true
116
+ },
117
+ {
118
+ "kind": "line",
119
+ "text": "MwSt% MwSt Netto Brutto",
120
+ "bold": false,
121
+ "blank": false
122
+ },
123
+ {
124
+ "kind": "line",
125
+ "text": "D 0% 0,00 -2,50 -2,50",
126
+ "bold": false,
127
+ "blank": false
128
+ },
129
+ {
130
+ "kind": "line",
131
+ "text": "A 20% -0,13 -0,67 -0,80",
132
+ "bold": false,
133
+ "blank": false
134
+ },
135
+ {
136
+ "kind": "line",
137
+ "text": "Pfand, nicht steuerbar -2,50",
138
+ "bold": false,
139
+ "blank": false
140
+ },
141
+ {
142
+ "kind": "line",
143
+ "text": "--------------------------------",
144
+ "bold": false,
145
+ "blank": false
146
+ },
147
+ {
148
+ "kind": "line",
149
+ "text": "Gesamt: -3,30 €",
150
+ "bold": false,
151
+ "blank": false
152
+ },
153
+ {
154
+ "kind": "line",
155
+ "text": "Bar ausgezahlt -3,30 €",
156
+ "bold": false,
157
+ "blank": false
158
+ },
159
+ {
160
+ "kind": "line",
161
+ "text": " ",
162
+ "bold": false,
163
+ "blank": true
164
+ },
165
+ {
166
+ "kind": "qr",
167
+ "payload": "_R1-AT1_KASSE1_AT0-KASSE1-92_2026-08-13T10:15:30_-0,80_0,00_0,00_0,00_-2,50_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR",
168
+ "widthFraction": 0.828125
169
+ },
170
+ {
171
+ "kind": "line",
172
+ "text": " ",
173
+ "bold": false,
174
+ "blank": true
175
+ },
176
+ {
177
+ "kind": "line",
178
+ "text": " Danke für Ihren Einkauf ",
179
+ "bold": false,
180
+ "blank": false
181
+ },
182
+ {
183
+ "kind": "line",
184
+ "text": " ",
185
+ "bold": false,
186
+ "blank": true
187
+ },
188
+ {
189
+ "kind": "brandMark",
190
+ "width": 234,
191
+ "height": 34
192
+ }
193
+ ]
194
+ }