@kreiseck/kasseneck-api 1.26.0 → 1.28.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.
- package/CHANGELOG.md +27 -0
- package/dist/cjs/client/aufrufe.d.ts +3 -3
- package/dist/cjs/client/aufrufe.js +3 -0
- package/dist/cjs/models/receipt-errors.d.ts +1 -1
- package/dist/cjs/models/receipt-errors.js +2 -0
- package/dist/cjs/models/receipt-item.d.ts +10 -0
- package/dist/cjs/models/receipt-item.js +8 -0
- package/dist/cjs/pos/artikel.d.ts +17 -0
- package/dist/cjs/pos/artikel.js +7 -0
- package/dist/cjs/pos/aufrunden.d.ts +6 -0
- package/dist/cjs/pos/aufrunden.js +59 -0
- package/dist/cjs/pos/client.js +12 -1
- package/dist/cjs/pos/index.d.ts +5 -3
- package/dist/cjs/pos/index.js +27 -4
- package/dist/cjs/pos/schicht-lesen.d.ts +2 -1
- package/dist/cjs/pos/schicht-lesen.js +48 -1
- package/dist/cjs/pos/schicht-typen.d.ts +106 -3
- package/dist/cjs/pos/schicht-typen.js +14 -4
- package/dist/cjs/pos/schicht.d.ts +28 -2
- package/dist/cjs/pos/schicht.js +19 -0
- package/dist/cjs/pos/settings.d.ts +39 -0
- package/dist/cjs/pos/settings.js +65 -4
- package/dist/cjs/pos/texte.d.ts +305 -0
- package/dist/cjs/pos/texte.js +113 -0
- package/dist/cjs/pos/zusaetze.d.ts +70 -0
- package/dist/cjs/pos/zusaetze.js +159 -0
- package/dist/cjs/receipt/grid.js +16 -3
- package/dist/cjs/receipt/layout.js +16 -9
- package/dist/cjs/receipt/shift-sheet.js +29 -0
- package/dist/cjs/stored/einstellungen.js +31 -4
- package/dist/cjs/stored/vokabular.d.ts +1 -1
- package/dist/cjs/stored/vokabular.js +35 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/client/aufrufe.d.ts +3 -3
- package/dist/esm/client/aufrufe.js +3 -0
- package/dist/esm/models/receipt-errors.d.ts +1 -1
- package/dist/esm/models/receipt-errors.js +2 -0
- package/dist/esm/models/receipt-item.d.ts +10 -0
- package/dist/esm/models/receipt-item.js +8 -0
- package/dist/esm/pos/artikel.d.ts +17 -0
- package/dist/esm/pos/artikel.js +6 -0
- package/dist/esm/pos/aufrunden.d.ts +6 -0
- package/dist/esm/pos/aufrunden.js +56 -0
- package/dist/esm/pos/client.js +13 -2
- package/dist/esm/pos/index.d.ts +5 -3
- package/dist/esm/pos/index.js +6 -4
- package/dist/esm/pos/schicht-lesen.d.ts +2 -1
- package/dist/esm/pos/schicht-lesen.js +47 -1
- package/dist/esm/pos/schicht-typen.d.ts +106 -3
- package/dist/esm/pos/schicht-typen.js +13 -3
- package/dist/esm/pos/schicht.d.ts +28 -2
- package/dist/esm/pos/schicht.js +19 -1
- package/dist/esm/pos/settings.d.ts +39 -0
- package/dist/esm/pos/settings.js +60 -3
- package/dist/esm/pos/texte.d.ts +305 -0
- package/dist/esm/pos/texte.js +113 -0
- package/dist/esm/pos/zusaetze.d.ts +70 -0
- package/dist/esm/pos/zusaetze.js +148 -0
- package/dist/esm/receipt/grid.js +16 -3
- package/dist/esm/receipt/layout.js +16 -9
- package/dist/esm/receipt/shift-sheet.js +29 -0
- package/dist/esm/stored/einstellungen.js +32 -5
- package/dist/esm/stored/vokabular.d.ts +1 -1
- package/dist/esm/stored/vokabular.js +35 -5
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/fixtures/add-on-cases.json +103 -0
- package/fixtures/duplicate-cases.json +6 -0
- package/fixtures/expected/add-ons.grid32.txt +31 -0
- package/fixtures/expected/add-ons.grid48.txt +27 -0
- package/fixtures/expected/add-ons.lines.json +270 -0
- package/fixtures/expected/add-ons.sheet32.json +212 -0
- package/fixtures/expected/add-ons.sheet48.json +188 -0
- package/fixtures/expected/duplicate.shift-close.hex +28 -27
- package/fixtures/expected/shift-close-blind.grid32.txt +1 -0
- package/fixtures/expected/shift-close-blind.grid48.txt +1 -0
- package/fixtures/expected/shift-close-blind.lines.json +6 -0
- package/fixtures/expected/shift-close-put-in.grid32.txt +1 -0
- package/fixtures/expected/shift-close-put-in.grid48.txt +1 -0
- package/fixtures/expected/shift-close-put-in.lines.json +6 -0
- package/fixtures/expected/shift-close-take-out.grid32.txt +1 -0
- package/fixtures/expected/shift-close-take-out.grid48.txt +1 -0
- package/fixtures/expected/shift-close-take-out.lines.json +6 -0
- package/fixtures/expected/shift-close.grid32.txt +1 -0
- package/fixtures/expected/shift-close.grid48.txt +1 -0
- package/fixtures/expected/shift-close.lines.json +6 -0
- package/fixtures/expected/shift-interim.grid32.txt +1 -0
- package/fixtures/expected/shift-interim.grid48.txt +1 -0
- package/fixtures/expected/shift-interim.lines.json +6 -0
- package/fixtures/hobex-hps-codes.json +1 -1
- package/fixtures/invoice-api.schema.json +1 -1
- package/fixtures/invoice-texts.json +1 -1
- package/fixtures/manifest.json +8 -0
- package/fixtures/pos-texts.json +352 -1
- package/fixtures/receipts/add-ons.json +70 -0
- package/fixtures/renames-1.0.json +30 -0
- package/fixtures/shift-ablauf-cases.json +182 -0
- package/fixtures/shift-receipts.json +15 -15
- package/fixtures/surface.json +50 -2
- package/fixtures/tip-round-up-cases.json +27 -0
- package/fixtures/v3/antworten/belege.json +2 -2
- package/fixtures/v3/antworten/belegmail.json +2 -2
- package/fixtures/v3/antworten/berichte.json +2 -2
- package/fixtures/v3/antworten/kasse-belege.json +2 -2
- package/fixtures/v3/antworten/kasse.json +504 -4
- package/fixtures/v3/antworten/lager.json +1 -1
- package/fixtures/v3/antworten/rechnungen.json +2 -2
- package/fixtures/v3/antworten/storno.json +2 -2
- package/fixtures/v3/stored/belege.json +2 -2
- package/fixtures/v3/stored/kasse.json +520 -12
- package/fixtures/v3/stored/rechnungen.json +2 -2
- package/fixtures/v3/v3-vokabular.json +160 -19
- package/fixtures/v3/zahlbetrag-faelle.json +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Erzeugt von scripts/stored-vokabular.mjs aus fixtures/v3/v3-vokabular.json.
|
|
2
2
|
// Nicht von Hand aendern: test/stored.test.ts vergleicht mit dem Vertrag.
|
|
3
3
|
/** Fingerabdruck des Vertrags-Exports, aus dem diese Datei stammt (`_quelle.sha256`). */
|
|
4
|
-
export const VOKABULAR_QUELLE = "
|
|
4
|
+
export const VOKABULAR_QUELLE = "eefe98022cb8b6287b5c72ae919341a5fb5c3671fc5cf9afae3d29c35402398b";
|
|
5
5
|
/** Schema je Endpunkt (aussen -> innen) und Wertverweise auf die Kataloge. */
|
|
6
6
|
export const SCHEMAS = {
|
|
7
7
|
"getReceipt": {
|
|
@@ -19,7 +19,8 @@ export const SCHEMAS = {
|
|
|
19
19
|
{
|
|
20
20
|
"__": "items",
|
|
21
21
|
"receivedImmediately": "sofortErhalten",
|
|
22
|
-
"keptByEmployee": "direkt"
|
|
22
|
+
"keptByEmployee": "direkt",
|
|
23
|
+
"addOnOf": "zusatzZu"
|
|
23
24
|
}
|
|
24
25
|
],
|
|
25
26
|
"manualReceipt": {
|
|
@@ -149,6 +150,8 @@ export const SCHEMAS = {
|
|
|
149
150
|
"tipChips": "tgChips",
|
|
150
151
|
"exactCash": "schnellbar",
|
|
151
152
|
"tipKeptByDefault": "tgDirekt",
|
|
153
|
+
"tipKinds": "tgArten",
|
|
154
|
+
"tipStart": "tgStart",
|
|
152
155
|
"checkoutMode": "kassierenModus",
|
|
153
156
|
"receiptOutput": "belegAusgabe",
|
|
154
157
|
"doneScreenSeconds": "fertigSekunden",
|
|
@@ -213,7 +216,8 @@ export const SCHEMAS = {
|
|
|
213
216
|
"terminalTid": "terminalTid",
|
|
214
217
|
"terminalVia": "terminalVia",
|
|
215
218
|
"terminalType": "terminalArt",
|
|
216
|
-
"shortcutHints": "tastenMarken"
|
|
219
|
+
"shortcutHints": "tastenMarken",
|
|
220
|
+
"cartWidth": "korbBreite"
|
|
217
221
|
},
|
|
218
222
|
"vouchers": {
|
|
219
223
|
"__": "gutscheine",
|
|
@@ -318,6 +322,12 @@ export const SCHEMAS = {
|
|
|
318
322
|
"business.tipMode": {
|
|
319
323
|
"$catalog": "KASSE_BETRIEB_WERTE.tipMode"
|
|
320
324
|
},
|
|
325
|
+
"business.tipKinds[]": {
|
|
326
|
+
"$catalog": "KASSE_BETRIEB_WERTE.tipKinds[]"
|
|
327
|
+
},
|
|
328
|
+
"business.tipStart": {
|
|
329
|
+
"$catalog": "KASSE_BETRIEB_WERTE.tipStart"
|
|
330
|
+
},
|
|
321
331
|
"business.checkoutMode": {
|
|
322
332
|
"$catalog": "KASSE_BETRIEB_WERTE.checkoutMode"
|
|
323
333
|
},
|
|
@@ -345,6 +355,9 @@ export const SCHEMAS = {
|
|
|
345
355
|
"device.terminalType": {
|
|
346
356
|
"$catalog": "KASSE_GERAET_WERTE.terminalType"
|
|
347
357
|
},
|
|
358
|
+
"device.cartWidth": {
|
|
359
|
+
"$catalog": "KASSE_GERAET_WERTE.cartWidth"
|
|
360
|
+
},
|
|
348
361
|
"vouchers.valueVoucherType": {
|
|
349
362
|
"mehrzweck": "multi_purpose",
|
|
350
363
|
"einzweck": "single_purpose"
|
|
@@ -387,7 +400,8 @@ export const SCHEMAS = {
|
|
|
387
400
|
"hint": "hinweis",
|
|
388
401
|
"pattern": "muster",
|
|
389
402
|
"patternStrict": "musterStreng"
|
|
390
|
-
}
|
|
403
|
+
},
|
|
404
|
+
"addOns": "zusaetze"
|
|
391
405
|
}
|
|
392
406
|
]
|
|
393
407
|
},
|
|
@@ -432,7 +446,8 @@ export const ARTIKEL_FELDER = [
|
|
|
432
446
|
"stockLocationIds",
|
|
433
447
|
"minStockByLocation",
|
|
434
448
|
"askPrice",
|
|
435
|
-
"reference"
|
|
449
|
+
"reference",
|
|
450
|
+
"addOns"
|
|
436
451
|
];
|
|
437
452
|
/** Wertkataloge innen (deutsch) -> aussen (englisch). */
|
|
438
453
|
export const KATALOGE = {
|
|
@@ -651,11 +666,21 @@ export const KATALOGE = {
|
|
|
651
666
|
"streifen": "stripe",
|
|
652
667
|
"voll": "full"
|
|
653
668
|
},
|
|
669
|
+
"KASSE_BETRIEB_WERTE.tipKinds[]": {
|
|
670
|
+
"prozent": "percent",
|
|
671
|
+
"aufrunden": "round_up",
|
|
672
|
+
"gesamt": "total"
|
|
673
|
+
},
|
|
654
674
|
"KASSE_BETRIEB_WERTE.tipMode": {
|
|
655
675
|
"betrag": "amount",
|
|
656
676
|
"gesamt": "total",
|
|
657
677
|
"beides": "both"
|
|
658
678
|
},
|
|
679
|
+
"KASSE_BETRIEB_WERTE.tipStart": {
|
|
680
|
+
"prozent": "percent",
|
|
681
|
+
"aufrunden": "round_up",
|
|
682
|
+
"gesamt": "total"
|
|
683
|
+
},
|
|
659
684
|
"KASSE_BETRIEB_WERTE.watermark": {
|
|
660
685
|
"aus": "off",
|
|
661
686
|
"anmeldung": "login",
|
|
@@ -666,6 +691,11 @@ export const KATALOGE = {
|
|
|
666
691
|
"mitte": "center",
|
|
667
692
|
"rechts": "right"
|
|
668
693
|
},
|
|
694
|
+
"KASSE_GERAET_WERTE.cartWidth": {
|
|
695
|
+
"schmal": "narrow",
|
|
696
|
+
"mittel": "medium",
|
|
697
|
+
"breit": "wide"
|
|
698
|
+
},
|
|
669
699
|
"KASSE_GERAET_WERTE.categoryPosition": {
|
|
670
700
|
"oben": "top",
|
|
671
701
|
"links": "left"
|
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"notes": "Vertrag Zusatz-Kacheln: Backend (gemeinsam/zusatz-core.js), npm (@kreiseck/kasseneck-api/pos, add-on-cases.json) und Dart (kasseneck_api) rechnen diese Faelle gleich. Artikel und Gruppen in /v3-Form (addOns, askPrice, reference, askQuantity, serviceVoucher, active, unitPriceCents), Belegpositionen mit addOnOf. Die Codes unter save sind englische Namen; das Backend antwortet innen mit zusatz_ungueltig, zusatz_unbekannt und zusatz_nicht_waehlbar (die Speicher-Endpunkte haben keinen /v3-Rand). receiptOrder rechnen nur die Pakete (Warenkorb). Aenderung immer auf allen Seiten.",
|
|
4
|
+
"articles": {
|
|
5
|
+
"manikuere": { "id": "manikuere", "name": "Klassische Maniküre", "unitPriceCents": 3600, "active": true },
|
|
6
|
+
"pedikuere": { "id": "pedikuere", "name": "Pediküre", "unitPriceCents": 4200, "active": true, "addOns": ["massage", "nailart"] },
|
|
7
|
+
"nailart": { "id": "nailart", "name": "Nail Art Light", "unitPriceCents": 1500, "active": true },
|
|
8
|
+
"reparatur": { "id": "reparatur", "name": "Fingernagelreparatur", "unitPriceCents": 1100, "active": true },
|
|
9
|
+
"massage": { "id": "massage", "name": "Handmassage", "unitPriceCents": 900 },
|
|
10
|
+
"gratis": { "id": "gratis", "name": "Pflegeöl", "unitPriceCents": 0, "active": true },
|
|
11
|
+
"express": { "id": "express", "name": "Express-Maniküre", "unitPriceCents": 2500, "active": true, "addOns": [] },
|
|
12
|
+
"retired": { "id": "retired", "name": "Altes Extra", "unitPriceCents": 500, "active": false },
|
|
13
|
+
"custom": { "id": "custom", "name": "Extra nach Aufwand", "unitPriceCents": null, "active": true, "askPrice": true },
|
|
14
|
+
"colour": { "id": "colour", "name": "Farbe Nr.", "unitPriceCents": 300, "active": true, "reference": { "mode": "optional", "label": "Nr.", "hint": null, "pattern": null, "patternStrict": false } },
|
|
15
|
+
"gel": { "id": "gel", "name": "Gel nach Gramm", "unitPriceCents": 200, "active": true, "askQuantity": true },
|
|
16
|
+
"special": { "id": "special", "name": "Sonderwunsch", "unitPriceCents": null, "active": true },
|
|
17
|
+
"voucher": { "id": "voucher", "name": "Gutschein Massage", "unitPriceCents": 900, "active": true, "serviceVoucher": true }
|
|
18
|
+
},
|
|
19
|
+
"groups": {
|
|
20
|
+
"nagel": { "id": "nagel", "name": "Maniküre & Nägel", "addOns": ["nailart", "reparatur", "massage"] },
|
|
21
|
+
"footcare": { "id": "footcare", "name": "Fußpflege" },
|
|
22
|
+
"mixed": { "id": "mixed", "name": "Gemischt", "addOns": ["nailart", "manikuere", "missing", "retired", "pedikuere", "custom", "colour", "gel", "special", "voucher", "nailart", "gratis"] }
|
|
23
|
+
},
|
|
24
|
+
"selectable": [
|
|
25
|
+
{ "article": "nailart", "reason": null },
|
|
26
|
+
{ "article": "massage", "reason": null },
|
|
27
|
+
{ "article": "gratis", "reason": null },
|
|
28
|
+
{ "article": "express", "reason": null },
|
|
29
|
+
{ "article": "retired", "reason": "inactive" },
|
|
30
|
+
{ "article": "pedikuere", "reason": "own_list" },
|
|
31
|
+
{ "article": "custom", "reason": "asks_price" },
|
|
32
|
+
{ "article": "colour", "reason": "reference" },
|
|
33
|
+
{ "article": "gel", "reason": "asks_quantity" },
|
|
34
|
+
{ "article": "special", "reason": "no_price" },
|
|
35
|
+
{ "article": "voucher", "reason": "service_voucher" }
|
|
36
|
+
],
|
|
37
|
+
"effective": [
|
|
38
|
+
{ "name": "Artikel ohne eigene Liste nimmt die Gruppe", "article": "manikuere", "group": "nagel", "addOns": ["nailart", "reparatur", "massage"] },
|
|
39
|
+
{ "name": "leere Liste am Artikel: keine, auch wenn die Gruppe welche hat", "article": "express", "group": "nagel", "addOns": [] },
|
|
40
|
+
{ "name": "eigene Liste am Artikel gewinnt gegen die Gruppe", "article": "pedikuere", "group": "nagel", "addOns": ["massage", "nailart"] },
|
|
41
|
+
{ "name": "Gruppe ohne Liste: keine", "article": "manikuere", "group": "footcare", "addOns": [] },
|
|
42
|
+
{ "name": "ohne Gruppe: keine", "article": "manikuere", "group": null, "addOns": [] },
|
|
43
|
+
{ "name": "der Artikel selbst, Unbekanntes, Inaktives, Abfragen, ohne Preis, Gutschein und Dubletten fallen still heraus", "article": "manikuere", "group": "mixed", "addOns": ["nailart", "gratis"] },
|
|
44
|
+
{ "name": "Zusatz selbst hat keine eigene Liste und nimmt die Gruppe", "article": "nailart", "group": "nagel", "addOns": ["reparatur", "massage"] }
|
|
45
|
+
],
|
|
46
|
+
"save": [
|
|
47
|
+
{ "name": "null bleibt null", "self": "manikuere", "addOns": null, "ok": true, "value": null },
|
|
48
|
+
{ "name": "leere Liste bleibt leer", "self": "manikuere", "addOns": [], "ok": true, "value": [] },
|
|
49
|
+
{ "name": "gueltige Liste in Reihenfolge", "self": "manikuere", "addOns": ["reparatur", "nailart", "gratis"], "ok": true, "value": ["reparatur", "nailart", "gratis"] },
|
|
50
|
+
{ "name": "Gruppe ohne eigenen Artikel", "self": null, "addOns": ["nailart"], "ok": true, "value": ["nailart"] },
|
|
51
|
+
{ "name": "kein Array", "self": "manikuere", "addOns": "nailart", "ok": false, "code": "invalid_add_ons" },
|
|
52
|
+
{ "name": "Eintrag kein Text", "self": "manikuere", "addOns": ["nailart", 7], "ok": false, "code": "invalid_add_ons" },
|
|
53
|
+
{ "name": "leerer Text", "self": "manikuere", "addOns": [""], "ok": false, "code": "invalid_add_ons" },
|
|
54
|
+
{ "name": "Dublette", "self": "manikuere", "addOns": ["nailart", "nailart"], "ok": false, "code": "invalid_add_ons" },
|
|
55
|
+
{ "name": "unbekannter Artikel", "self": "manikuere", "addOns": ["nailart", "gone"], "ok": false, "code": "add_on_not_found", "articleId": "gone" },
|
|
56
|
+
{ "name": "inaktiver Artikel", "self": "manikuere", "addOns": ["retired"], "ok": false, "code": "add_on_not_found", "articleId": "retired" },
|
|
57
|
+
{ "name": "der Artikel selbst", "self": "manikuere", "addOns": ["manikuere"], "ok": false, "code": "add_on_not_selectable", "articleId": "manikuere" },
|
|
58
|
+
{ "name": "Artikel mit eigener Liste", "self": "manikuere", "addOns": ["pedikuere"], "ok": false, "code": "add_on_not_selectable", "articleId": "pedikuere" },
|
|
59
|
+
{ "name": "Betrag abfragen", "self": "manikuere", "addOns": ["custom"], "ok": false, "code": "add_on_not_selectable", "articleId": "custom" },
|
|
60
|
+
{ "name": "Referenz", "self": "manikuere", "addOns": ["colour"], "ok": false, "code": "add_on_not_selectable", "articleId": "colour" },
|
|
61
|
+
{ "name": "Menge abfragen", "self": "manikuere", "addOns": ["gel"], "ok": false, "code": "add_on_not_selectable", "articleId": "gel" },
|
|
62
|
+
{ "name": "ohne Preis", "self": "manikuere", "addOns": ["special"], "ok": false, "code": "add_on_not_selectable", "articleId": "special" },
|
|
63
|
+
{ "name": "Leistungsgutschein", "self": "manikuere", "addOns": ["voucher"], "ok": false, "code": "add_on_not_selectable", "articleId": "voucher" }
|
|
64
|
+
],
|
|
65
|
+
"saveTooMany": { "count": 31, "code": "invalid_add_ons", "max": 30 },
|
|
66
|
+
"references": [
|
|
67
|
+
{ "name": "ohne Verweis", "items": [{}, {}], "valid": true },
|
|
68
|
+
{ "name": "zwei Zusaetze unter einer Hauptposition", "items": [{}, { "addOnOf": 0 }, { "addOnOf": 0 }], "valid": true },
|
|
69
|
+
{ "name": "Zusatz unter der zweiten Hauptposition", "items": [{}, {}, { "addOnOf": 1 }], "valid": true },
|
|
70
|
+
{ "name": "Verweis auf sich selbst", "items": [{}, { "addOnOf": 1 }], "valid": false },
|
|
71
|
+
{ "name": "Verweis nach vorne", "items": [{ "addOnOf": 1 }, {}], "valid": false },
|
|
72
|
+
{ "name": "Verweis hinter das Ende", "items": [{}, { "addOnOf": 5 }], "valid": false },
|
|
73
|
+
{ "name": "verkettet: Zusatz eines Zusatzes", "items": [{}, { "addOnOf": 0 }, { "addOnOf": 1 }], "valid": false },
|
|
74
|
+
{ "name": "keine ganze Zahl", "items": [{}, { "addOnOf": 0.5 }], "valid": false },
|
|
75
|
+
{ "name": "Text statt Zahl", "items": [{}, { "addOnOf": "0" }], "valid": false },
|
|
76
|
+
{ "name": "negative Zahl", "items": [{}, { "addOnOf": -1 }], "valid": false },
|
|
77
|
+
{ "name": "null statt Zahl", "items": [{}, { "addOnOf": null }], "valid": false },
|
|
78
|
+
{ "name": "Trinkgeld traegt keinen Verweis", "items": [{}, { "kind": "tip", "addOnOf": 0 }], "valid": false },
|
|
79
|
+
{ "name": "Rabattzeile traegt keinen Verweis", "items": [{}, { "kind": "discount", "addOnOf": 0 }], "valid": false },
|
|
80
|
+
{ "name": "Gutscheinzeile traegt keinen Verweis", "items": [{}, { "kind": "voucher", "addOnOf": 0 }], "valid": false },
|
|
81
|
+
{ "name": "Ziel ist eine Rabattzeile", "items": [{ "kind": "discount" }, { "addOnOf": 0 }], "valid": false }
|
|
82
|
+
],
|
|
83
|
+
"cancellation": [
|
|
84
|
+
{ "name": "Zusaetze einer Hauptposition", "items": [{}, { "addOnOf": 0 }, {}, { "addOnOf": 0 }, { "addOnOf": 2 }], "index": 0, "addOns": [1, 3] },
|
|
85
|
+
{ "name": "Hauptposition ohne Zusaetze", "items": [{}, {}], "index": 1, "addOns": [] },
|
|
86
|
+
{ "name": "Zusatz hat selbst keine", "items": [{}, { "addOnOf": 0 }], "index": 1, "addOns": [] }
|
|
87
|
+
],
|
|
88
|
+
"remap": [
|
|
89
|
+
{ "name": "alles storniert: Verweise bleiben", "items": [{}, { "addOnOf": 0 }, { "addOnOf": 0 }, {}], "quantities": [1, 1, 1, 1], "addOnOf": [null, 0, 0, null] },
|
|
90
|
+
{ "name": "ein Zusatz abgewaehlt: der Rest rueckt nach", "items": [{}, { "addOnOf": 0 }, { "addOnOf": 0 }, {}, { "addOnOf": 3 }], "quantities": [1, 0, 1, 1, 1], "addOnOf": [null, 0, null, 2] },
|
|
91
|
+
{ "name": "Hauptposition nicht storniert: Zusatz ohne Verweis", "items": [{}, { "addOnOf": 0 }, {}], "quantities": [0, 1, 1], "addOnOf": [null, null] }
|
|
92
|
+
],
|
|
93
|
+
"displayOrder": [
|
|
94
|
+
{ "name": "schon geordnet", "items": [{}, { "addOnOf": 0 }, {}], "order": [0, 1, 2] },
|
|
95
|
+
{ "name": "Zusatz hinten wird hinter seine Hauptposition gezogen", "items": [{}, {}, { "addOnOf": 0 }, { "addOnOf": 1 }, { "addOnOf": 0 }], "order": [0, 2, 4, 1, 3] },
|
|
96
|
+
{ "name": "ungueltiger Verweis bleibt an seinem Platz", "items": [{}, { "addOnOf": 7 }, {}], "order": [0, 1, 2] }
|
|
97
|
+
],
|
|
98
|
+
"receiptOrder": [
|
|
99
|
+
{ "name": "Zusaetze hinter ihre Hauptzeile, Index nach dem Sortieren", "lines": [{ "id": "p1" }, { "id": "p2", "addOnOf": "p1" }, { "id": "p3" }, { "id": "p4", "addOnOf": "p1" }], "order": ["p1", "p2", "p4", "p3"], "addOnOf": [null, 0, 0, null] },
|
|
100
|
+
{ "name": "Hauptzeile fehlt (Gutschein-Verkauf herausgefiltert oder geloescht): Zeile ohne Verweis", "lines": [{ "id": "p2", "addOnOf": "p1" }, { "id": "p3" }], "order": ["p2", "p3"], "addOnOf": [null, null] },
|
|
101
|
+
{ "name": "Zusatz der zweiten Hauptzeile", "lines": [{ "id": "p1" }, { "id": "p3" }, { "id": "p5", "addOnOf": "p3" }, { "id": "p6", "addOnOf": "p1" }], "order": ["p1", "p6", "p3", "p5"], "addOnOf": [null, 0, null, 2] }
|
|
102
|
+
]
|
|
103
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Melisse Nails e.U.
|
|
2
|
+
Kirchengasse 4
|
|
3
|
+
4020 Linz
|
|
4
|
+
ATU12345675
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Datum: 13.08.2026 10:15:30
|
|
8
|
+
Kassen-ID: KASSE1
|
|
9
|
+
Beleg-ID: AT0-KASSE1-77
|
|
10
|
+
|
|
11
|
+
1 x Klassische 36,00 A
|
|
12
|
+
Maniküre
|
|
13
|
+
+ 1 x Nail Art 15,00 A
|
|
14
|
+
Light
|
|
15
|
+
+ 3 x 33,00 A
|
|
16
|
+
Fingernagelreparatur
|
|
17
|
+
je 11,00
|
|
18
|
+
1 x Pediküre 42,00 A
|
|
19
|
+
+ 1 x 9,00 A
|
|
20
|
+
Handmassage mit Arganöl und
|
|
21
|
+
warmen Kompressen
|
|
22
|
+
|
|
23
|
+
MwSt% MwSt Netto Brutto
|
|
24
|
+
A 20% 22,50 112,50 135,00
|
|
25
|
+
--------------------------------
|
|
26
|
+
Gesamt: 135,00 €
|
|
27
|
+
Zahlungsart: Barzahlung
|
|
28
|
+
|
|
29
|
+
[QR-Code]
|
|
30
|
+
|
|
31
|
+
Danke für Ihren Besuch
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Melisse Nails e.U.
|
|
2
|
+
Kirchengasse 4
|
|
3
|
+
4020 Linz
|
|
4
|
+
ATU12345675
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Datum: 13.08.2026 10:15:30
|
|
8
|
+
Kassen-ID: KASSE1
|
|
9
|
+
Beleg-ID: AT0-KASSE1-77
|
|
10
|
+
|
|
11
|
+
1 x Klassische Maniküre 36,00 A
|
|
12
|
+
+ 1 x Nail Art Light 15,00 A
|
|
13
|
+
+ 3 x 33,00 A
|
|
14
|
+
Fingernagelreparatur je 11,00
|
|
15
|
+
1 x Pediküre 42,00 A
|
|
16
|
+
+ 1 x Handmassage mit 9,00 A
|
|
17
|
+
Arganöl und warmen Kompressen
|
|
18
|
+
|
|
19
|
+
MwSt% MwSt Netto Brutto
|
|
20
|
+
A 20% 22,50 112,50 135,00
|
|
21
|
+
------------------------------------------------
|
|
22
|
+
Gesamt: 135,00 €
|
|
23
|
+
Zahlungsart: Barzahlung
|
|
24
|
+
|
|
25
|
+
[QR-Code]
|
|
26
|
+
|
|
27
|
+
Danke für Ihren Besuch
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lines": [
|
|
3
|
+
{
|
|
4
|
+
"kind": "text",
|
|
5
|
+
"text": "Melisse Nails e.U.",
|
|
6
|
+
"align": "center",
|
|
7
|
+
"bold": true
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"kind": "text",
|
|
11
|
+
"text": "Kirchengasse 4",
|
|
12
|
+
"align": "center",
|
|
13
|
+
"bold": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"kind": "text",
|
|
17
|
+
"text": "4020 Linz",
|
|
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": "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-77",
|
|
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 Klassische Maniküre",
|
|
91
|
+
"width": 7,
|
|
92
|
+
"align": "left"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"text": "36,00 A",
|
|
96
|
+
"width": 5,
|
|
97
|
+
"align": "right"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "columns",
|
|
103
|
+
"columns": [
|
|
104
|
+
{
|
|
105
|
+
"text": " + 1 x Nail Art Light",
|
|
106
|
+
"width": 7,
|
|
107
|
+
"align": "left"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"text": "15,00 A",
|
|
111
|
+
"width": 5,
|
|
112
|
+
"align": "right"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"kind": "columns",
|
|
118
|
+
"columns": [
|
|
119
|
+
{
|
|
120
|
+
"text": " + 3 x Fingernagelreparatur je 11,00",
|
|
121
|
+
"width": 7,
|
|
122
|
+
"align": "left"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"text": "33,00 A",
|
|
126
|
+
"width": 5,
|
|
127
|
+
"align": "right"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "columns",
|
|
133
|
+
"columns": [
|
|
134
|
+
{
|
|
135
|
+
"text": "1 x Pediküre",
|
|
136
|
+
"width": 7,
|
|
137
|
+
"align": "left"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"text": "42,00 A",
|
|
141
|
+
"width": 5,
|
|
142
|
+
"align": "right"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"kind": "columns",
|
|
148
|
+
"columns": [
|
|
149
|
+
{
|
|
150
|
+
"text": " + 1 x Handmassage mit Arganöl und warmen Kompressen",
|
|
151
|
+
"width": 7,
|
|
152
|
+
"align": "left"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"text": "9,00 A",
|
|
156
|
+
"width": 5,
|
|
157
|
+
"align": "right"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"kind": "space",
|
|
163
|
+
"lines": 1
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"kind": "columns",
|
|
167
|
+
"columns": [
|
|
168
|
+
{
|
|
169
|
+
"text": "MwSt%",
|
|
170
|
+
"width": 3,
|
|
171
|
+
"align": "left"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"text": "MwSt",
|
|
175
|
+
"width": 3,
|
|
176
|
+
"align": "left"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"text": "Netto",
|
|
180
|
+
"width": 3,
|
|
181
|
+
"align": "left"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"text": "Brutto",
|
|
185
|
+
"width": 3,
|
|
186
|
+
"align": "right"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"kind": "columns",
|
|
192
|
+
"columns": [
|
|
193
|
+
{
|
|
194
|
+
"text": "A 20%",
|
|
195
|
+
"width": 3,
|
|
196
|
+
"align": "left"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"text": "22,50",
|
|
200
|
+
"width": 3,
|
|
201
|
+
"align": "left"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"text": "112,50",
|
|
205
|
+
"width": 3,
|
|
206
|
+
"align": "left"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"text": "135,00",
|
|
210
|
+
"width": 3,
|
|
211
|
+
"align": "right"
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "rule",
|
|
217
|
+
"char": "-"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"kind": "columns",
|
|
221
|
+
"columns": [
|
|
222
|
+
{
|
|
223
|
+
"text": "Gesamt:",
|
|
224
|
+
"width": 6,
|
|
225
|
+
"align": "left"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"text": "135,00 €",
|
|
229
|
+
"width": 6,
|
|
230
|
+
"align": "right"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"kind": "columns",
|
|
236
|
+
"columns": [
|
|
237
|
+
{
|
|
238
|
+
"text": "Zahlungsart:",
|
|
239
|
+
"width": 6,
|
|
240
|
+
"align": "left"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"text": "Barzahlung",
|
|
244
|
+
"width": 6,
|
|
245
|
+
"align": "right"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"kind": "space",
|
|
251
|
+
"lines": 1
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "qr",
|
|
255
|
+
"data": "_R1-AT1_KASSE1_AT0-KASSE1-77_2026-08-13T10:15:30_135,00_0,00_0,00_0,00_0,00_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"kind": "space",
|
|
259
|
+
"lines": 1
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"kind": "text",
|
|
263
|
+
"text": "Danke für Ihren Besuch",
|
|
264
|
+
"align": "center",
|
|
265
|
+
"bold": false
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"paperSize": "mm58",
|
|
269
|
+
"ruleset": 2
|
|
270
|
+
}
|