@kreiseck/kasseneck-api 0.6.8 → 0.6.44

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 (70) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/client/index.d.ts +1 -1
  3. package/dist/cjs/client/receipts.d.ts +19 -0
  4. package/dist/cjs/client/receipts.js +51 -0
  5. package/dist/cjs/index.d.ts +2 -2
  6. package/dist/cjs/index.js +3 -2
  7. package/dist/cjs/kasse/settings.d.ts +39 -3
  8. package/dist/cjs/kasse/settings.js +28 -6
  9. package/dist/cjs/models/index.d.ts +1 -1
  10. package/dist/cjs/models/index.js +3 -1
  11. package/dist/cjs/models/receipt-item.d.ts +41 -0
  12. package/dist/cjs/models/receipt-item.js +41 -1
  13. package/dist/cjs/models/receipt.d.ts +7 -0
  14. package/dist/cjs/models/receipt.js +2 -0
  15. package/dist/cjs/printing/escpos.js +7 -0
  16. package/dist/cjs/react/index.js +11 -1
  17. package/dist/cjs/receipt/discount.js +1 -1
  18. package/dist/cjs/receipt/layout-escpos.js +9 -4
  19. package/dist/cjs/receipt/layout.d.ts +6 -3
  20. package/dist/cjs/receipt/layout.js +166 -14
  21. package/dist/cjs/register/pairing.d.ts +15 -0
  22. package/dist/cjs/register/pairing.js +22 -3
  23. package/dist/esm/client/index.d.ts +1 -1
  24. package/dist/esm/client/receipts.d.ts +19 -0
  25. package/dist/esm/client/receipts.js +51 -0
  26. package/dist/esm/index.d.ts +2 -2
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/kasse/settings.d.ts +39 -3
  29. package/dist/esm/kasse/settings.js +28 -6
  30. package/dist/esm/models/index.d.ts +1 -1
  31. package/dist/esm/models/index.js +1 -1
  32. package/dist/esm/models/receipt-item.d.ts +41 -0
  33. package/dist/esm/models/receipt-item.js +39 -1
  34. package/dist/esm/models/receipt.d.ts +7 -0
  35. package/dist/esm/models/receipt.js +2 -0
  36. package/dist/esm/printing/escpos.js +7 -0
  37. package/dist/esm/react/index.js +11 -1
  38. package/dist/esm/receipt/discount.js +1 -1
  39. package/dist/esm/receipt/layout-escpos.js +9 -4
  40. package/dist/esm/receipt/layout.d.ts +6 -3
  41. package/dist/esm/receipt/layout.js +167 -15
  42. package/dist/esm/register/pairing.d.ts +15 -0
  43. package/dist/esm/register/pairing.js +22 -3
  44. package/fixtures/belege/rabatt-chef-trinkgeld.json +89 -0
  45. package/fixtures/belege/rabatt-einfach.json +50 -0
  46. package/fixtures/belege/rabatt-trinkgeld.json +75 -0
  47. package/fixtures/belege/rabatt-wertgutschein.json +70 -0
  48. package/fixtures/belege/rabattzeilen.json +5 -3
  49. package/fixtures/belege/storno-rabatt.json +68 -0
  50. package/fixtures/erwartet/rabatt-chef-trinkgeld.grid32.txt +31 -0
  51. package/fixtures/erwartet/rabatt-chef-trinkgeld.grid48.txt +30 -0
  52. package/fixtures/erwartet/rabatt-chef-trinkgeld.lines.json +317 -0
  53. package/fixtures/erwartet/rabatt-einfach.grid32.txt +26 -0
  54. package/fixtures/erwartet/rabatt-einfach.grid48.txt +25 -0
  55. package/fixtures/erwartet/rabatt-einfach.lines.json +250 -0
  56. package/fixtures/erwartet/rabatt-trinkgeld.grid32.txt +31 -0
  57. package/fixtures/erwartet/rabatt-trinkgeld.grid48.txt +30 -0
  58. package/fixtures/erwartet/rabatt-trinkgeld.lines.json +336 -0
  59. package/fixtures/erwartet/rabatt-wertgutschein.grid32.txt +32 -0
  60. package/fixtures/erwartet/rabatt-wertgutschein.grid48.txt +31 -0
  61. package/fixtures/erwartet/rabatt-wertgutschein.lines.json +330 -0
  62. package/fixtures/erwartet/rabattzeilen.grid32.txt +4 -2
  63. package/fixtures/erwartet/rabattzeilen.grid48.txt +4 -2
  64. package/fixtures/erwartet/rabattzeilen.lines.json +18 -8
  65. package/fixtures/erwartet/storno-rabatt.grid32.txt +34 -0
  66. package/fixtures/erwartet/storno-rabatt.grid48.txt +32 -0
  67. package/fixtures/erwartet/storno-rabatt.lines.json +317 -0
  68. package/fixtures/kasse-settings-standard.json +145 -0
  69. package/fixtures/manifest.json +34 -4
  70. package/package.json +3 -2
@@ -0,0 +1,317 @@
1
+ {
2
+ "lines": [
3
+ {
4
+ "kind": "text",
5
+ "text": "Bäckerei Muster",
6
+ "align": "center",
7
+ "bold": true
8
+ },
9
+ {
10
+ "kind": "text",
11
+ "text": "Hauptplatz 1",
12
+ "align": "center",
13
+ "bold": false
14
+ },
15
+ {
16
+ "kind": "text",
17
+ "text": "4830 Hallstatt",
18
+ "align": "center",
19
+ "bold": false
20
+ },
21
+ {
22
+ "kind": "text",
23
+ "text": "ATU12345678",
24
+ "align": "center",
25
+ "bold": false
26
+ },
27
+ {
28
+ "kind": "text",
29
+ "text": "+43 6134 12345",
30
+ "align": "center",
31
+ "bold": false
32
+ },
33
+ {
34
+ "kind": "space",
35
+ "lines": 1
36
+ },
37
+ {
38
+ "kind": "columns",
39
+ "columns": [
40
+ {
41
+ "text": "Datum:",
42
+ "width": 4,
43
+ "align": "left"
44
+ },
45
+ {
46
+ "text": "13.08.2026 10:15:30",
47
+ "width": 8,
48
+ "align": "right"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "kind": "columns",
54
+ "columns": [
55
+ {
56
+ "text": "Kassen-ID:",
57
+ "width": 6,
58
+ "align": "left"
59
+ },
60
+ {
61
+ "text": "KASSE1",
62
+ "width": 6,
63
+ "align": "right"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "kind": "columns",
69
+ "columns": [
70
+ {
71
+ "text": "Beleg-ID:",
72
+ "width": 6,
73
+ "align": "left"
74
+ },
75
+ {
76
+ "text": "AT0-KASSE1-82",
77
+ "width": 6,
78
+ "align": "right"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "kind": "space",
84
+ "lines": 1
85
+ },
86
+ {
87
+ "kind": "columns",
88
+ "columns": [
89
+ {
90
+ "text": "4 x Semmel je 0,79",
91
+ "width": 7,
92
+ "align": "left"
93
+ },
94
+ {
95
+ "text": "3,16 B",
96
+ "width": 5,
97
+ "align": "right"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "kind": "columns",
103
+ "columns": [
104
+ {
105
+ "text": "1 x Kaffee klein",
106
+ "width": 7,
107
+ "align": "left"
108
+ },
109
+ {
110
+ "text": "2,80 A",
111
+ "width": 5,
112
+ "align": "right"
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "kind": "rule",
118
+ "char": "-"
119
+ },
120
+ {
121
+ "kind": "columns",
122
+ "columns": [
123
+ {
124
+ "text": "Zwischensumme",
125
+ "width": 8,
126
+ "align": "left"
127
+ },
128
+ {
129
+ "text": "5,96 ",
130
+ "width": 4,
131
+ "align": "right"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "kind": "columns",
137
+ "columns": [
138
+ {
139
+ "text": "Rabatt 10 %",
140
+ "width": 8,
141
+ "align": "left"
142
+ },
143
+ {
144
+ "text": "-0,60 *",
145
+ "width": 4,
146
+ "align": "right"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "kind": "text",
152
+ "text": "* davon -0,28 A, -0,32 B",
153
+ "align": "left",
154
+ "bold": false
155
+ },
156
+ {
157
+ "kind": "columns",
158
+ "columns": [
159
+ {
160
+ "text": "Trinkgeld",
161
+ "width": 8,
162
+ "align": "left"
163
+ },
164
+ {
165
+ "text": "2,00 *",
166
+ "width": 4,
167
+ "align": "right"
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "kind": "text",
173
+ "text": "* davon 0,94 A, 1,06 B",
174
+ "align": "left",
175
+ "bold": false
176
+ },
177
+ {
178
+ "kind": "space",
179
+ "lines": 1
180
+ },
181
+ {
182
+ "kind": "columns",
183
+ "columns": [
184
+ {
185
+ "text": "MwSt%",
186
+ "width": 3,
187
+ "align": "left"
188
+ },
189
+ {
190
+ "text": "MwSt",
191
+ "width": 4,
192
+ "align": "left"
193
+ },
194
+ {
195
+ "text": "Netto",
196
+ "width": 3,
197
+ "align": "left"
198
+ },
199
+ {
200
+ "text": "Brutto",
201
+ "width": 2,
202
+ "align": "right"
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "kind": "columns",
208
+ "columns": [
209
+ {
210
+ "text": "B 10%",
211
+ "width": 3,
212
+ "align": "left"
213
+ },
214
+ {
215
+ "text": "0,35",
216
+ "width": 4,
217
+ "align": "left"
218
+ },
219
+ {
220
+ "text": "3,55",
221
+ "width": 3,
222
+ "align": "left"
223
+ },
224
+ {
225
+ "text": "3,90",
226
+ "width": 2,
227
+ "align": "right"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "kind": "columns",
233
+ "columns": [
234
+ {
235
+ "text": "A 20%",
236
+ "width": 3,
237
+ "align": "left"
238
+ },
239
+ {
240
+ "text": "0,58",
241
+ "width": 4,
242
+ "align": "left"
243
+ },
244
+ {
245
+ "text": "2,88",
246
+ "width": 3,
247
+ "align": "left"
248
+ },
249
+ {
250
+ "text": "3,46",
251
+ "width": 2,
252
+ "align": "right"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "kind": "rule",
258
+ "char": "-"
259
+ },
260
+ {
261
+ "kind": "columns",
262
+ "columns": [
263
+ {
264
+ "text": "Gesamt:",
265
+ "width": 6,
266
+ "align": "left"
267
+ },
268
+ {
269
+ "text": "7,36 €",
270
+ "width": 6,
271
+ "align": "right"
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "kind": "columns",
277
+ "columns": [
278
+ {
279
+ "text": "Zahlungsart:",
280
+ "width": 6,
281
+ "align": "left"
282
+ },
283
+ {
284
+ "text": "Barzahlung",
285
+ "width": 6,
286
+ "align": "right"
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "kind": "space",
292
+ "lines": 1
293
+ },
294
+ {
295
+ "kind": "qr",
296
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-42_2026-08-13T10:15:30_5,00_2,70_0,00_0,00_0,00_UMSATZ_VORGAENGER_6F0404F0_SIGNATUR"
297
+ },
298
+ {
299
+ "kind": "space",
300
+ "lines": 1
301
+ },
302
+ {
303
+ "kind": "text",
304
+ "text": "Vielen Dank für Ihren Einkauf",
305
+ "align": "center",
306
+ "bold": false
307
+ },
308
+ {
309
+ "kind": "text",
310
+ "text": "www.baeckerei-muster.at",
311
+ "align": "center",
312
+ "bold": false
313
+ }
314
+ ],
315
+ "paperSize": "mm80",
316
+ "regelwerk": 2
317
+ }
@@ -0,0 +1,26 @@
1
+ Bäckerei Muster
2
+ Hauptplatz 1
3
+ 4830 Hallstatt
4
+ ATU12345678
5
+ +43 6134 12345
6
+
7
+ Datum: 13.08.2026 10:15:30
8
+ Kassen-ID: KASSE1
9
+ Beleg-ID: AT0-KASSE1-83
10
+
11
+ 1 x Maniküre 29,00 A
12
+ klassisch
13
+ --------------------------------
14
+ Zwischensumme 29,00
15
+ Rabatt 15 % -4,35 A
16
+
17
+ MwSt% MwSt Netto Brutto
18
+ A 20% 4,11 20,54 24,65
19
+ --------------------------------
20
+ Gesamt: 24,65 €
21
+ Zahlungsart: Barzahlung
22
+
23
+ [QR-Code]
24
+
25
+ Vielen Dank für Ihren Einkauf
26
+ www.baeckerei-muster.at
@@ -0,0 +1,25 @@
1
+ Bäckerei Muster
2
+ Hauptplatz 1
3
+ 4830 Hallstatt
4
+ ATU12345678
5
+ +43 6134 12345
6
+
7
+ Datum: 13.08.2026 10:15:30
8
+ Kassen-ID: KASSE1
9
+ Beleg-ID: AT0-KASSE1-83
10
+
11
+ 1 x Maniküre klassisch 29,00 A
12
+ ------------------------------------------------
13
+ Zwischensumme 29,00
14
+ Rabatt 15 % -4,35 A
15
+
16
+ MwSt% MwSt Netto Brutto
17
+ A 20% 4,11 20,54 24,65
18
+ ------------------------------------------------
19
+ Gesamt: 24,65 €
20
+ Zahlungsart: Barzahlung
21
+
22
+ [QR-Code]
23
+
24
+ Vielen Dank für Ihren Einkauf
25
+ www.baeckerei-muster.at
@@ -0,0 +1,250 @@
1
+ {
2
+ "lines": [
3
+ {
4
+ "kind": "text",
5
+ "text": "Bäckerei Muster",
6
+ "align": "center",
7
+ "bold": true
8
+ },
9
+ {
10
+ "kind": "text",
11
+ "text": "Hauptplatz 1",
12
+ "align": "center",
13
+ "bold": false
14
+ },
15
+ {
16
+ "kind": "text",
17
+ "text": "4830 Hallstatt",
18
+ "align": "center",
19
+ "bold": false
20
+ },
21
+ {
22
+ "kind": "text",
23
+ "text": "ATU12345678",
24
+ "align": "center",
25
+ "bold": false
26
+ },
27
+ {
28
+ "kind": "text",
29
+ "text": "+43 6134 12345",
30
+ "align": "center",
31
+ "bold": false
32
+ },
33
+ {
34
+ "kind": "space",
35
+ "lines": 1
36
+ },
37
+ {
38
+ "kind": "columns",
39
+ "columns": [
40
+ {
41
+ "text": "Datum:",
42
+ "width": 4,
43
+ "align": "left"
44
+ },
45
+ {
46
+ "text": "13.08.2026 10:15:30",
47
+ "width": 8,
48
+ "align": "right"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "kind": "columns",
54
+ "columns": [
55
+ {
56
+ "text": "Kassen-ID:",
57
+ "width": 6,
58
+ "align": "left"
59
+ },
60
+ {
61
+ "text": "KASSE1",
62
+ "width": 6,
63
+ "align": "right"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "kind": "columns",
69
+ "columns": [
70
+ {
71
+ "text": "Beleg-ID:",
72
+ "width": 6,
73
+ "align": "left"
74
+ },
75
+ {
76
+ "text": "AT0-KASSE1-83",
77
+ "width": 6,
78
+ "align": "right"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "kind": "space",
84
+ "lines": 1
85
+ },
86
+ {
87
+ "kind": "columns",
88
+ "columns": [
89
+ {
90
+ "text": "1 x Maniküre klassisch",
91
+ "width": 7,
92
+ "align": "left"
93
+ },
94
+ {
95
+ "text": "29,00 A",
96
+ "width": 5,
97
+ "align": "right"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "kind": "rule",
103
+ "char": "-"
104
+ },
105
+ {
106
+ "kind": "columns",
107
+ "columns": [
108
+ {
109
+ "text": "Zwischensumme",
110
+ "width": 8,
111
+ "align": "left"
112
+ },
113
+ {
114
+ "text": "29,00 ",
115
+ "width": 4,
116
+ "align": "right"
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "kind": "columns",
122
+ "columns": [
123
+ {
124
+ "text": "Rabatt 15 %",
125
+ "width": 8,
126
+ "align": "left"
127
+ },
128
+ {
129
+ "text": "-4,35 A",
130
+ "width": 4,
131
+ "align": "right"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "kind": "space",
137
+ "lines": 1
138
+ },
139
+ {
140
+ "kind": "columns",
141
+ "columns": [
142
+ {
143
+ "text": "MwSt%",
144
+ "width": 3,
145
+ "align": "left"
146
+ },
147
+ {
148
+ "text": "MwSt",
149
+ "width": 4,
150
+ "align": "left"
151
+ },
152
+ {
153
+ "text": "Netto",
154
+ "width": 3,
155
+ "align": "left"
156
+ },
157
+ {
158
+ "text": "Brutto",
159
+ "width": 2,
160
+ "align": "right"
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "kind": "columns",
166
+ "columns": [
167
+ {
168
+ "text": "A 20%",
169
+ "width": 3,
170
+ "align": "left"
171
+ },
172
+ {
173
+ "text": "4,11",
174
+ "width": 4,
175
+ "align": "left"
176
+ },
177
+ {
178
+ "text": "20,54",
179
+ "width": 3,
180
+ "align": "left"
181
+ },
182
+ {
183
+ "text": "24,65",
184
+ "width": 2,
185
+ "align": "right"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "kind": "rule",
191
+ "char": "-"
192
+ },
193
+ {
194
+ "kind": "columns",
195
+ "columns": [
196
+ {
197
+ "text": "Gesamt:",
198
+ "width": 6,
199
+ "align": "left"
200
+ },
201
+ {
202
+ "text": "24,65 €",
203
+ "width": 6,
204
+ "align": "right"
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "kind": "columns",
210
+ "columns": [
211
+ {
212
+ "text": "Zahlungsart:",
213
+ "width": 6,
214
+ "align": "left"
215
+ },
216
+ {
217
+ "text": "Barzahlung",
218
+ "width": 6,
219
+ "align": "right"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "kind": "space",
225
+ "lines": 1
226
+ },
227
+ {
228
+ "kind": "qr",
229
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-42_2026-08-13T10:15:30_5,00_2,70_0,00_0,00_0,00_UMSATZ_VORGAENGER_6F0404F0_SIGNATUR"
230
+ },
231
+ {
232
+ "kind": "space",
233
+ "lines": 1
234
+ },
235
+ {
236
+ "kind": "text",
237
+ "text": "Vielen Dank für Ihren Einkauf",
238
+ "align": "center",
239
+ "bold": false
240
+ },
241
+ {
242
+ "kind": "text",
243
+ "text": "www.baeckerei-muster.at",
244
+ "align": "center",
245
+ "bold": false
246
+ }
247
+ ],
248
+ "paperSize": "mm80",
249
+ "regelwerk": 2
250
+ }
@@ -0,0 +1,31 @@
1
+ Bäckerei Muster
2
+ Hauptplatz 1
3
+ 4830 Hallstatt
4
+ ATU12345678
5
+ +43 6134 12345
6
+
7
+ Datum: 13.08.2026 10:15:30
8
+ Kassen-ID: KASSE1
9
+ Beleg-ID: AT0-KASSE1-62
10
+
11
+ 4 x Semmel 3,16 B
12
+ je 0,79
13
+ 1 x Kaffee klein 2,80 A
14
+ --------------------------------
15
+ Zwischensumme 5,96
16
+ Rabatt 10 % -0,60 *
17
+ * davon -0,28 A, -0,32 B
18
+ Trinkgeld Personal 1,00 D
19
+
20
+ MwSt% MwSt Netto Brutto
21
+ B 10% 0,26 2,58 2,84
22
+ A 20% 0,42 2,10 2,52
23
+ D 0% 0,00 1,00 1,00
24
+ --------------------------------
25
+ Gesamt: 6,36 €
26
+ Zahlungsart: Barzahlung
27
+
28
+ [QR-Code]
29
+
30
+ Vielen Dank für Ihren Einkauf
31
+ www.baeckerei-muster.at
@@ -0,0 +1,30 @@
1
+ Bäckerei Muster
2
+ Hauptplatz 1
3
+ 4830 Hallstatt
4
+ ATU12345678
5
+ +43 6134 12345
6
+
7
+ Datum: 13.08.2026 10:15:30
8
+ Kassen-ID: KASSE1
9
+ Beleg-ID: AT0-KASSE1-62
10
+
11
+ 4 x Semmel je 0,79 3,16 B
12
+ 1 x Kaffee klein 2,80 A
13
+ ------------------------------------------------
14
+ Zwischensumme 5,96
15
+ Rabatt 10 % -0,60 *
16
+ * davon -0,28 A, -0,32 B
17
+ Trinkgeld Personal 1,00 D
18
+
19
+ MwSt% MwSt Netto Brutto
20
+ B 10% 0,26 2,58 2,84
21
+ A 20% 0,42 2,10 2,52
22
+ D 0% 0,00 1,00 1,00
23
+ ------------------------------------------------
24
+ Gesamt: 6,36 €
25
+ Zahlungsart: Barzahlung
26
+
27
+ [QR-Code]
28
+
29
+ Vielen Dank für Ihren Einkauf
30
+ www.baeckerei-muster.at