@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
package/dist/cjs/pos/texte.d.ts
CHANGED
|
@@ -892,6 +892,29 @@ declare const MELDUNGEN_ROH: {
|
|
|
892
892
|
readonly placeholders: readonly ["target"];
|
|
893
893
|
readonly only: readonly ["app"];
|
|
894
894
|
};
|
|
895
|
+
readonly 'shift.started_taken_over': {
|
|
896
|
+
readonly text: "Schicht {number} hat begonnen – mit {amount} in der Lade, übernommen von Schicht {from} ({time}).";
|
|
897
|
+
readonly placeholders: readonly ["number", "amount", "from", "time"];
|
|
898
|
+
};
|
|
899
|
+
readonly 'tip.summary': {
|
|
900
|
+
readonly text: "Trinkgeld {tip} · der Gast zahlt {total}";
|
|
901
|
+
readonly placeholders: readonly ["tip", "total"];
|
|
902
|
+
};
|
|
903
|
+
readonly 'tip.total_below_sum': {
|
|
904
|
+
readonly text: "Der Betrag liegt unter der Summe.";
|
|
905
|
+
};
|
|
906
|
+
readonly 'shift.interim_saved': {
|
|
907
|
+
readonly text: "Zählung festgehalten.";
|
|
908
|
+
};
|
|
909
|
+
readonly 'shift.finish_step_first': {
|
|
910
|
+
readonly text: "Erst den Schritt rechts abschließen oder abbrechen.";
|
|
911
|
+
};
|
|
912
|
+
readonly 'tip.revenue_hint': {
|
|
913
|
+
readonly text: "Steuerpflichtiges Trinkgeld zählt als Umsatz des Betriebs und wird nicht ausgezahlt.";
|
|
914
|
+
};
|
|
915
|
+
readonly 'tip.unassigned_hint': {
|
|
916
|
+
readonly text: "Trinkgeld ohne angemeldeten Benutzer.";
|
|
917
|
+
};
|
|
895
918
|
};
|
|
896
919
|
export type MessageKey = keyof typeof MELDUNGEN_ROH;
|
|
897
920
|
export declare const MESSAGES: Record<MessageKey, TextEntry>;
|
|
@@ -1683,6 +1706,9 @@ declare const BESCHRIFTUNGEN_ROH: {
|
|
|
1683
1706
|
readonly 'cash_movement.type_handover_difference': {
|
|
1684
1707
|
readonly text: "Übergabedifferenz";
|
|
1685
1708
|
};
|
|
1709
|
+
readonly 'cash_movement.type_interim_difference': {
|
|
1710
|
+
readonly text: "Zwischenzählung";
|
|
1711
|
+
};
|
|
1686
1712
|
readonly 'shift_receipt.title_close': {
|
|
1687
1713
|
readonly text: "Schichtabschluss";
|
|
1688
1714
|
};
|
|
@@ -2084,6 +2110,19 @@ declare const BESCHRIFTUNGEN_ROH: {
|
|
|
2084
2110
|
readonly 'tile_prompt.apply_anyway': {
|
|
2085
2111
|
readonly text: "Trotzdem übernehmen";
|
|
2086
2112
|
};
|
|
2113
|
+
readonly 'addons.title': {
|
|
2114
|
+
readonly text: "Zusätze zu {name}";
|
|
2115
|
+
readonly placeholders: readonly ["name"];
|
|
2116
|
+
};
|
|
2117
|
+
readonly 'addons.none': {
|
|
2118
|
+
readonly text: "Ohne Zusatz";
|
|
2119
|
+
};
|
|
2120
|
+
readonly 'addons.done': {
|
|
2121
|
+
readonly text: "Fertig";
|
|
2122
|
+
};
|
|
2123
|
+
readonly 'addons.open': {
|
|
2124
|
+
readonly text: "Zusätze";
|
|
2125
|
+
};
|
|
2087
2126
|
readonly 'voucher.tab': {
|
|
2088
2127
|
readonly text: "Gutscheine";
|
|
2089
2128
|
};
|
|
@@ -2496,6 +2535,272 @@ declare const BESCHRIFTUNGEN_ROH: {
|
|
|
2496
2535
|
readonly text: "Nullbeleg {number} erstellt, {time}";
|
|
2497
2536
|
readonly placeholders: readonly ["number", "time"];
|
|
2498
2537
|
};
|
|
2538
|
+
readonly 'zero_receipt.done_title': {
|
|
2539
|
+
readonly text: "Nullbeleg erstellt";
|
|
2540
|
+
};
|
|
2541
|
+
readonly 'zero_receipt.back': {
|
|
2542
|
+
readonly text: "Zurück zur Prüfung";
|
|
2543
|
+
};
|
|
2544
|
+
readonly 'dep.export': {
|
|
2545
|
+
readonly text: "DEP exportieren";
|
|
2546
|
+
};
|
|
2547
|
+
readonly 'dep.period_question': {
|
|
2548
|
+
readonly text: "Welcher Zeitraum?";
|
|
2549
|
+
};
|
|
2550
|
+
readonly 'common.close': {
|
|
2551
|
+
readonly text: "Schließen";
|
|
2552
|
+
};
|
|
2553
|
+
readonly 'shift.state_closed': {
|
|
2554
|
+
readonly text: "Schicht geschlossen";
|
|
2555
|
+
};
|
|
2556
|
+
readonly 'shift.start_title': {
|
|
2557
|
+
readonly text: "Schicht beginnen";
|
|
2558
|
+
};
|
|
2559
|
+
readonly 'shift.band_closed': {
|
|
2560
|
+
readonly text: "Zum Verkaufen rechts die Schicht beginnen.";
|
|
2561
|
+
};
|
|
2562
|
+
readonly 'shift.band_closing': {
|
|
2563
|
+
readonly text: "Verkaufen ist pausiert, bis du fertig bist oder abbrichst.";
|
|
2564
|
+
};
|
|
2565
|
+
readonly 'shift.band_interim': {
|
|
2566
|
+
readonly text: "Verkaufen ist kurz pausiert.";
|
|
2567
|
+
};
|
|
2568
|
+
readonly 'shift.band_cash': {
|
|
2569
|
+
readonly text: "Zum Verkaufen auf die Kacheln tippen.";
|
|
2570
|
+
};
|
|
2571
|
+
readonly 'tip.revenue_title': {
|
|
2572
|
+
readonly text: "Als Umsatz erfasst";
|
|
2573
|
+
};
|
|
2574
|
+
readonly 'tip.revenue_badge': {
|
|
2575
|
+
readonly text: "Umsatz";
|
|
2576
|
+
};
|
|
2577
|
+
readonly 'tip.unassigned': {
|
|
2578
|
+
readonly text: "Nicht zugeordnet";
|
|
2579
|
+
};
|
|
2580
|
+
readonly 'shift.last_shift': {
|
|
2581
|
+
readonly text: "Letzte Schicht";
|
|
2582
|
+
};
|
|
2583
|
+
readonly 'shift.in_drawer_by_system': {
|
|
2584
|
+
readonly text: "Laut Kasse in der Lade";
|
|
2585
|
+
};
|
|
2586
|
+
readonly 'shift.take_over_amount': {
|
|
2587
|
+
readonly text: "{amount} übernehmen";
|
|
2588
|
+
readonly placeholders: readonly ["amount"];
|
|
2589
|
+
};
|
|
2590
|
+
readonly 'shift.top_up': {
|
|
2591
|
+
readonly text: "Auffüllen";
|
|
2592
|
+
};
|
|
2593
|
+
readonly 'shift.missing': {
|
|
2594
|
+
readonly text: "fehlen {amount}";
|
|
2595
|
+
readonly placeholders: readonly ["amount"];
|
|
2596
|
+
};
|
|
2597
|
+
readonly 'shift.count_coins': {
|
|
2598
|
+
readonly text: "Scheine und Münzen zählen";
|
|
2599
|
+
};
|
|
2600
|
+
readonly 'shift.count_please': {
|
|
2601
|
+
readonly text: "Zähl bitte, was in der Lade liegt.";
|
|
2602
|
+
};
|
|
2603
|
+
readonly 'drawer.open_for_count': {
|
|
2604
|
+
readonly text: "Lade öffnen zum Zählen";
|
|
2605
|
+
};
|
|
2606
|
+
readonly 'drawer.open_for_tips': {
|
|
2607
|
+
readonly text: "Lade öffnen für Trinkgeld";
|
|
2608
|
+
};
|
|
2609
|
+
readonly 'drawer.open_for_take': {
|
|
2610
|
+
readonly text: "Lade öffnen zum Entnehmen";
|
|
2611
|
+
};
|
|
2612
|
+
readonly 'shift.close_title_numbered': {
|
|
2613
|
+
readonly text: "Schicht {number} schließen";
|
|
2614
|
+
readonly placeholders: readonly ["number"];
|
|
2615
|
+
};
|
|
2616
|
+
readonly 'shift.closed_title': {
|
|
2617
|
+
readonly text: "Schicht {number} geschlossen";
|
|
2618
|
+
readonly placeholders: readonly ["number"];
|
|
2619
|
+
};
|
|
2620
|
+
readonly 'shift.running_since_drawer': {
|
|
2621
|
+
readonly text: "{drawer} · läuft seit {time} ({duration})";
|
|
2622
|
+
readonly placeholders: readonly ["drawer", "time", "duration"];
|
|
2623
|
+
};
|
|
2624
|
+
readonly 'shift.step_count': {
|
|
2625
|
+
readonly text: "Zählen";
|
|
2626
|
+
};
|
|
2627
|
+
readonly 'shift.step_tips': {
|
|
2628
|
+
readonly text: "Trinkgeld";
|
|
2629
|
+
};
|
|
2630
|
+
readonly 'shift.step_take': {
|
|
2631
|
+
readonly text: "Entnehmen";
|
|
2632
|
+
};
|
|
2633
|
+
readonly 'shift.step_done': {
|
|
2634
|
+
readonly text: "Fertig";
|
|
2635
|
+
};
|
|
2636
|
+
readonly 'shift.expected': {
|
|
2637
|
+
readonly text: "In der Lade sollten sein";
|
|
2638
|
+
};
|
|
2639
|
+
readonly 'shift.of_which_cash_tips': {
|
|
2640
|
+
readonly text: "davon Trinkgeld bar";
|
|
2641
|
+
};
|
|
2642
|
+
readonly 'shift.breakdown': {
|
|
2643
|
+
readonly text: "So setzt sich das zusammen";
|
|
2644
|
+
};
|
|
2645
|
+
readonly 'shift.part_opening': {
|
|
2646
|
+
readonly text: "Anfang";
|
|
2647
|
+
};
|
|
2648
|
+
readonly 'shift.part_cash_sales': {
|
|
2649
|
+
readonly text: "Barverkäufe";
|
|
2650
|
+
};
|
|
2651
|
+
readonly 'shift.part_cash_tips': {
|
|
2652
|
+
readonly text: "Trinkgeld bar";
|
|
2653
|
+
};
|
|
2654
|
+
readonly 'shift.part_cancellations': {
|
|
2655
|
+
readonly text: "Storno bar";
|
|
2656
|
+
};
|
|
2657
|
+
readonly 'shift.part_cash_in': {
|
|
2658
|
+
readonly text: "Einzahlungen";
|
|
2659
|
+
};
|
|
2660
|
+
readonly 'shift.part_cash_out': {
|
|
2661
|
+
readonly text: "Ausgaben aus der Lade";
|
|
2662
|
+
};
|
|
2663
|
+
readonly 'shift.part_interim': {
|
|
2664
|
+
readonly text: "Zwischenzählung";
|
|
2665
|
+
};
|
|
2666
|
+
readonly 'tip.who_takes_now': {
|
|
2667
|
+
readonly text: "Wer nimmt sein Trinkgeld jetzt bar mit?";
|
|
2668
|
+
};
|
|
2669
|
+
readonly 'tip.later_hint': {
|
|
2670
|
+
readonly text: "Was du nicht auszahlst, bleibt offen und wird in einer späteren Schicht ausgezahlt.";
|
|
2671
|
+
};
|
|
2672
|
+
readonly 'tip.later': {
|
|
2673
|
+
readonly text: "Später";
|
|
2674
|
+
};
|
|
2675
|
+
readonly 'tip.pay_out': {
|
|
2676
|
+
readonly text: "Auszahlen";
|
|
2677
|
+
};
|
|
2678
|
+
readonly 'tip.pay_out_amount': {
|
|
2679
|
+
readonly text: "{amount} auszahlen";
|
|
2680
|
+
readonly placeholders: readonly ["amount"];
|
|
2681
|
+
};
|
|
2682
|
+
readonly 'shift.now_in_drawer': {
|
|
2683
|
+
readonly text: "Jetzt in der Lade";
|
|
2684
|
+
};
|
|
2685
|
+
readonly 'shift.interim_title': {
|
|
2686
|
+
readonly text: "Schicht {number} zählen";
|
|
2687
|
+
readonly placeholders: readonly ["number"];
|
|
2688
|
+
};
|
|
2689
|
+
readonly 'shift.interim_save': {
|
|
2690
|
+
readonly text: "Zählung festhalten";
|
|
2691
|
+
};
|
|
2692
|
+
readonly 'shift.opening_not_counted': {
|
|
2693
|
+
readonly text: "Anfang nicht gezählt";
|
|
2694
|
+
};
|
|
2695
|
+
readonly 'shift.taken_over_unchecked_by': {
|
|
2696
|
+
readonly text: "{name}, {time}";
|
|
2697
|
+
readonly placeholders: readonly ["name", "time"];
|
|
2698
|
+
};
|
|
2699
|
+
readonly 'shift.taken_over_unchecked': {
|
|
2700
|
+
readonly text: "Schicht {number} wurde ohne Zählen übernommen";
|
|
2701
|
+
readonly placeholders: readonly ["number"];
|
|
2702
|
+
};
|
|
2703
|
+
readonly 'tip.kind_percent': {
|
|
2704
|
+
readonly text: "Prozent";
|
|
2705
|
+
};
|
|
2706
|
+
readonly 'tip.kind_round_up': {
|
|
2707
|
+
readonly text: "Aufrunden";
|
|
2708
|
+
};
|
|
2709
|
+
readonly 'tip.kind_total': {
|
|
2710
|
+
readonly text: "Gesamt";
|
|
2711
|
+
};
|
|
2712
|
+
readonly 'tip.round_to': {
|
|
2713
|
+
readonly text: "auf {amount}";
|
|
2714
|
+
readonly placeholders: readonly ["amount"];
|
|
2715
|
+
};
|
|
2716
|
+
readonly 'tip.guest_pays_total': {
|
|
2717
|
+
readonly text: "Der Gast zahlt insgesamt";
|
|
2718
|
+
};
|
|
2719
|
+
readonly 'tip.remainder_is_tip': {
|
|
2720
|
+
readonly text: "Rest ist Trinkgeld";
|
|
2721
|
+
};
|
|
2722
|
+
readonly 'voucher.section': {
|
|
2723
|
+
readonly text: "Gutschein";
|
|
2724
|
+
};
|
|
2725
|
+
readonly 'voucher.code_placeholder': {
|
|
2726
|
+
readonly text: "Code eingeben oder scannen";
|
|
2727
|
+
};
|
|
2728
|
+
readonly 'settings.cart_width': {
|
|
2729
|
+
readonly text: "Breite der rechten Spalte";
|
|
2730
|
+
};
|
|
2731
|
+
readonly 'settings.cart_width_narrow': {
|
|
2732
|
+
readonly text: "Schmal";
|
|
2733
|
+
};
|
|
2734
|
+
readonly 'settings.cart_width_medium': {
|
|
2735
|
+
readonly text: "Mittel";
|
|
2736
|
+
};
|
|
2737
|
+
readonly 'settings.cart_width_wide': {
|
|
2738
|
+
readonly text: "Breit";
|
|
2739
|
+
};
|
|
2740
|
+
readonly 'shift_receipt.opening_not_counted': {
|
|
2741
|
+
readonly text: "Anfang übernommen, nicht gezählt";
|
|
2742
|
+
};
|
|
2743
|
+
readonly 'shift_receipt.interim_count': {
|
|
2744
|
+
readonly text: "Zwischenzählung";
|
|
2745
|
+
};
|
|
2746
|
+
readonly 'shift_receipt.counted_before_payout': {
|
|
2747
|
+
readonly text: "Gezählt";
|
|
2748
|
+
};
|
|
2749
|
+
readonly 'shift_receipt.difference_part_interim': {
|
|
2750
|
+
readonly text: "davon Zwischenzählung";
|
|
2751
|
+
};
|
|
2752
|
+
readonly 'shift_receipt.difference_part_closing': {
|
|
2753
|
+
readonly text: "davon Abschluss";
|
|
2754
|
+
};
|
|
2755
|
+
readonly 'shift.state_closing': {
|
|
2756
|
+
readonly text: "Schicht wird geschlossen";
|
|
2757
|
+
};
|
|
2758
|
+
readonly 'shift.state_interim': {
|
|
2759
|
+
readonly text: "Zwischenzählung";
|
|
2760
|
+
};
|
|
2761
|
+
readonly 'shift.tips_paid_out': {
|
|
2762
|
+
readonly text: "Trinkgeld ausgezahlt";
|
|
2763
|
+
};
|
|
2764
|
+
readonly 'shift.difference_none': {
|
|
2765
|
+
readonly text: "stimmt";
|
|
2766
|
+
};
|
|
2767
|
+
readonly 'shift.start_new': {
|
|
2768
|
+
readonly text: "Neue Schicht beginnen";
|
|
2769
|
+
};
|
|
2770
|
+
readonly 'shift.drawer_from_to': {
|
|
2771
|
+
readonly text: "{drawer} · {from} bis {to}";
|
|
2772
|
+
readonly placeholders: readonly ["drawer", "from", "to"];
|
|
2773
|
+
};
|
|
2774
|
+
readonly 'shift.running_since_by': {
|
|
2775
|
+
readonly text: "{drawer} · läuft seit {time} ({name})";
|
|
2776
|
+
readonly placeholders: readonly ["drawer", "time", "name"];
|
|
2777
|
+
};
|
|
2778
|
+
readonly 'shift.z_receipt_printed': {
|
|
2779
|
+
readonly text: "Z-Bon gedruckt";
|
|
2780
|
+
};
|
|
2781
|
+
readonly 'shift.count_now': {
|
|
2782
|
+
readonly text: "Jetzt zählen";
|
|
2783
|
+
};
|
|
2784
|
+
readonly 'shift.interim_entry': {
|
|
2785
|
+
readonly text: "Zwischenzählung";
|
|
2786
|
+
};
|
|
2787
|
+
readonly 'drawer.open': {
|
|
2788
|
+
readonly text: "Lade öffnen";
|
|
2789
|
+
};
|
|
2790
|
+
readonly 'time.today_at': {
|
|
2791
|
+
readonly text: "heute {time}";
|
|
2792
|
+
readonly placeholders: readonly ["time"];
|
|
2793
|
+
};
|
|
2794
|
+
readonly 'tip.summary_percent': {
|
|
2795
|
+
readonly text: "Trinkgeld {tip} ({percent} %)";
|
|
2796
|
+
readonly placeholders: readonly ["tip", "percent"];
|
|
2797
|
+
};
|
|
2798
|
+
readonly 'settings.tip_kinds': {
|
|
2799
|
+
readonly text: "Trinkgeld-Arten";
|
|
2800
|
+
};
|
|
2801
|
+
readonly 'settings.tip_start': {
|
|
2802
|
+
readonly text: "Zuerst offen";
|
|
2803
|
+
};
|
|
2499
2804
|
};
|
|
2500
2805
|
export type LabelKey = keyof typeof BESCHRIFTUNGEN_ROH;
|
|
2501
2806
|
export declare const LABELS: Record<LabelKey, TextEntry>;
|
package/dist/cjs/pos/texte.js
CHANGED
|
@@ -440,6 +440,15 @@ const MELDUNGEN_ROH = {
|
|
|
440
440
|
// --- Nur App -------------------------------------------------------------
|
|
441
441
|
'app.not_in_browser': { text: 'Die Kassen-App läuft nicht im Browser – dafür gibt es kasse.kasseneck.at.', only: ['app'] },
|
|
442
442
|
'app.open_in_browser': { text: 'Bitte im Browser öffnen: {target}', placeholders: ['target'], only: ['app'] },
|
|
443
|
+
// --- Schicht-Ablauf der Kasse (1.28.0) -----------------------------------
|
|
444
|
+
'shift.started_taken_over': { text: 'Schicht {number} hat begonnen – mit {amount} in der Lade, übernommen von Schicht {from} ({time}).', placeholders: ['number', 'amount', 'from', 'time'] },
|
|
445
|
+
'tip.summary': { text: 'Trinkgeld {tip} · der Gast zahlt {total}', placeholders: ['tip', 'total'] },
|
|
446
|
+
'tip.total_below_sum': { text: 'Der Betrag liegt unter der Summe.' },
|
|
447
|
+
'shift.interim_saved': { text: 'Zählung festgehalten.' },
|
|
448
|
+
// Waehrend Zwischenzaehlung oder Abschluss rechts: getippte Wege der Kopfzeile sagen, warum sie gesperrt sind.
|
|
449
|
+
'shift.finish_step_first': { text: 'Erst den Schritt rechts abschließen oder abbrechen.' },
|
|
450
|
+
'tip.revenue_hint': { text: 'Steuerpflichtiges Trinkgeld zählt als Umsatz des Betriebs und wird nicht ausgezahlt.' },
|
|
451
|
+
'tip.unassigned_hint': { text: 'Trinkgeld ohne angemeldeten Benutzer.' },
|
|
443
452
|
};
|
|
444
453
|
// Auf den gemeinsamen Typ gebracht: `Object.entries(MESSAGES)` liefert sonst
|
|
445
454
|
// pro Schluessel den engsten Literaltyp, und `placeholders`/`only` waeren nur
|
|
@@ -921,6 +930,7 @@ const BESCHRIFTUNGEN_ROH = {
|
|
|
921
930
|
'cash_movement.type_expense': { text: 'Barausgabe' },
|
|
922
931
|
'cash_movement.type_count_difference': { text: 'Zähldifferenz' },
|
|
923
932
|
'cash_movement.type_handover_difference': { text: 'Übergabedifferenz' },
|
|
933
|
+
'cash_movement.type_interim_difference': { text: 'Zwischenzählung' },
|
|
924
934
|
// Bon der Schicht (Z-Bon, X-Bon, Kassenbewegung): Titel und Zeilennamen.
|
|
925
935
|
'shift_receipt.title_close': { text: 'Schichtabschluss' },
|
|
926
936
|
'shift_receipt.title_interim': { text: 'Zwischenbericht' },
|
|
@@ -1060,6 +1070,11 @@ const BESCHRIFTUNGEN_ROH = {
|
|
|
1060
1070
|
'tile_prompt.quantity': { text: 'Menge' },
|
|
1061
1071
|
'tile_prompt.apply': { text: 'Übernehmen' },
|
|
1062
1072
|
'tile_prompt.apply_anyway': { text: 'Trotzdem übernehmen' },
|
|
1073
|
+
// Zusatz-Kacheln (1.27.0): Fenster nach dem Antippen einer Hauptleistung, Knopf an der Korbzeile.
|
|
1074
|
+
'addons.title': { text: 'Zusätze zu {name}', placeholders: ['name'] },
|
|
1075
|
+
'addons.none': { text: 'Ohne Zusatz' },
|
|
1076
|
+
'addons.done': { text: 'Fertig' },
|
|
1077
|
+
'addons.open': { text: 'Zusätze' },
|
|
1063
1078
|
// Gutschein-Sorten als Kacheln im Reiter „Gutscheine“ (Stufe 4b, 1.17.0): Kachel je Sorte mit Betrag
|
|
1064
1079
|
// oder „Betrag eingeben“, darunter klein die Art; dazu die feste Kachel „Leistungsgutschein“.
|
|
1065
1080
|
'voucher.tab': { text: 'Gutscheine' },
|
|
@@ -1208,6 +1223,104 @@ const BESCHRIFTUNGEN_ROH = {
|
|
|
1208
1223
|
// mit Belegnummer und Uhrzeit. Scheitert er, gilt `completion.zero_receipt_failed`.
|
|
1209
1224
|
'zero_receipt.create': { text: 'Nullbeleg erstellen' },
|
|
1210
1225
|
'zero_receipt.created': { text: 'Nullbeleg {number} erstellt, {time}', placeholders: ['number', 'time'] },
|
|
1226
|
+
// Prüfung kompakt (1.28.0): der Nullbeleg steht danach wie ein Verkaufsbeleg da (Titel, Rückweg);
|
|
1227
|
+
// das DEP fragt den Zeitraum erst nach „DEP exportieren“ in einem Fenster.
|
|
1228
|
+
'zero_receipt.done_title': { text: 'Nullbeleg erstellt' },
|
|
1229
|
+
'zero_receipt.back': { text: 'Zurück zur Prüfung' },
|
|
1230
|
+
'dep.export': { text: 'DEP exportieren' },
|
|
1231
|
+
'dep.period_question': { text: 'Welcher Zeitraum?' },
|
|
1232
|
+
'common.close': { text: 'Schließen' },
|
|
1233
|
+
// --- Schicht-Ablauf der Kasse (1.28.0) -----------------------------------
|
|
1234
|
+
// Schicht beginnen, laufen lassen, zaehlen, schliessen. `shift.close_title` und
|
|
1235
|
+
// `shift.running_since` gibt es seit 1.11.0 mit anderem Wortlaut und bleiben; die
|
|
1236
|
+
// Fassungen mit Nummer bzw. Lade heissen darum `shift.close_title_numbered` und
|
|
1237
|
+
// `shift.running_since_drawer`.
|
|
1238
|
+
'shift.state_closed': { text: 'Schicht geschlossen' },
|
|
1239
|
+
'shift.start_title': { text: 'Schicht beginnen' },
|
|
1240
|
+
'shift.band_closed': { text: 'Zum Verkaufen rechts die Schicht beginnen.' },
|
|
1241
|
+
'shift.band_closing': { text: 'Verkaufen ist pausiert, bis du fertig bist oder abbrichst.' },
|
|
1242
|
+
'shift.band_interim': { text: 'Verkaufen ist kurz pausiert.' },
|
|
1243
|
+
'shift.band_cash': { text: 'Zum Verkaufen auf die Kacheln tippen.' },
|
|
1244
|
+
// Trinkgeld, das als Umsatz zählt (steuerpflichtig, Inhaber) bzw. ohne Empfänger -- nur Anzeige im Kassenstand,
|
|
1245
|
+
// wortgleich mit dem Kundenbereich.
|
|
1246
|
+
'tip.revenue_title': { text: 'Als Umsatz erfasst' },
|
|
1247
|
+
'tip.revenue_badge': { text: 'Umsatz' },
|
|
1248
|
+
'tip.unassigned': { text: 'Nicht zugeordnet' },
|
|
1249
|
+
'shift.last_shift': { text: 'Letzte Schicht' },
|
|
1250
|
+
'shift.in_drawer_by_system': { text: 'Laut Kasse in der Lade' },
|
|
1251
|
+
'shift.take_over_amount': { text: '{amount} übernehmen', placeholders: ['amount'] },
|
|
1252
|
+
'shift.top_up': { text: 'Auffüllen' },
|
|
1253
|
+
'shift.missing': { text: 'fehlen {amount}', placeholders: ['amount'] },
|
|
1254
|
+
'shift.count_coins': { text: 'Scheine und Münzen zählen' },
|
|
1255
|
+
'shift.count_please': { text: 'Zähl bitte, was in der Lade liegt.' },
|
|
1256
|
+
'drawer.open_for_count': { text: 'Lade öffnen zum Zählen' },
|
|
1257
|
+
'drawer.open_for_tips': { text: 'Lade öffnen für Trinkgeld' },
|
|
1258
|
+
'drawer.open_for_take': { text: 'Lade öffnen zum Entnehmen' },
|
|
1259
|
+
'shift.close_title_numbered': { text: 'Schicht {number} schließen', placeholders: ['number'] },
|
|
1260
|
+
'shift.closed_title': { text: 'Schicht {number} geschlossen', placeholders: ['number'] },
|
|
1261
|
+
'shift.running_since_drawer': { text: '{drawer} · läuft seit {time} ({duration})', placeholders: ['drawer', 'time', 'duration'] },
|
|
1262
|
+
'shift.step_count': { text: 'Zählen' },
|
|
1263
|
+
'shift.step_tips': { text: 'Trinkgeld' },
|
|
1264
|
+
'shift.step_take': { text: 'Entnehmen' },
|
|
1265
|
+
'shift.step_done': { text: 'Fertig' },
|
|
1266
|
+
'shift.expected': { text: 'In der Lade sollten sein' },
|
|
1267
|
+
'shift.of_which_cash_tips': { text: 'davon Trinkgeld bar' },
|
|
1268
|
+
'shift.breakdown': { text: 'So setzt sich das zusammen' },
|
|
1269
|
+
'shift.part_opening': { text: 'Anfang' },
|
|
1270
|
+
'shift.part_cash_sales': { text: 'Barverkäufe' },
|
|
1271
|
+
'shift.part_cash_tips': { text: 'Trinkgeld bar' },
|
|
1272
|
+
'shift.part_cancellations': { text: 'Storno bar' },
|
|
1273
|
+
'shift.part_cash_in': { text: 'Einzahlungen' },
|
|
1274
|
+
'shift.part_cash_out': { text: 'Ausgaben aus der Lade' },
|
|
1275
|
+
'shift.part_interim': { text: 'Zwischenzählung' },
|
|
1276
|
+
'tip.who_takes_now': { text: 'Wer nimmt sein Trinkgeld jetzt bar mit?' },
|
|
1277
|
+
'tip.later_hint': { text: 'Was du nicht auszahlst, bleibt offen und wird in einer späteren Schicht ausgezahlt.' },
|
|
1278
|
+
'tip.later': { text: 'Später' },
|
|
1279
|
+
'tip.pay_out': { text: 'Auszahlen' },
|
|
1280
|
+
'tip.pay_out_amount': { text: '{amount} auszahlen', placeholders: ['amount'] },
|
|
1281
|
+
'shift.now_in_drawer': { text: 'Jetzt in der Lade' },
|
|
1282
|
+
'shift.interim_title': { text: 'Schicht {number} zählen', placeholders: ['number'] },
|
|
1283
|
+
'shift.interim_save': { text: 'Zählung festhalten' },
|
|
1284
|
+
'shift.opening_not_counted': { text: 'Anfang nicht gezählt' },
|
|
1285
|
+
// Titel der Hinweiskarte, wenn eine Schicht ohne Zaehlen uebernommen wurde (Unterzeile: `shift.taken_over_unchecked_by`).
|
|
1286
|
+
'shift.taken_over_unchecked_by': { text: '{name}, {time}', placeholders: ['name', 'time'] },
|
|
1287
|
+
'shift.taken_over_unchecked': { text: 'Schicht {number} wurde ohne Zählen übernommen', placeholders: ['number'] },
|
|
1288
|
+
// Trinkgeld-Arten beim Kassieren (Reiter) und ihre Hilfstexte.
|
|
1289
|
+
'tip.kind_percent': { text: 'Prozent' },
|
|
1290
|
+
'tip.kind_round_up': { text: 'Aufrunden' },
|
|
1291
|
+
'tip.kind_total': { text: 'Gesamt' },
|
|
1292
|
+
'tip.round_to': { text: 'auf {amount}', placeholders: ['amount'] },
|
|
1293
|
+
'tip.guest_pays_total': { text: 'Der Gast zahlt insgesamt' },
|
|
1294
|
+
'tip.remainder_is_tip': { text: 'Rest ist Trinkgeld' },
|
|
1295
|
+
'voucher.section': { text: 'Gutschein' },
|
|
1296
|
+
'voucher.code_placeholder': { text: 'Code eingeben oder scannen' },
|
|
1297
|
+
// Breite der rechten Spalte (Geraete-Einstellung `cartWidth`) und ihre Werte.
|
|
1298
|
+
'settings.cart_width': { text: 'Breite der rechten Spalte' },
|
|
1299
|
+
'settings.cart_width_narrow': { text: 'Schmal' },
|
|
1300
|
+
'settings.cart_width_medium': { text: 'Mittel' },
|
|
1301
|
+
'settings.cart_width_wide': { text: 'Breit' },
|
|
1302
|
+
// Z-Bon der Schicht: Zwischenzaehlung, Zaehlung vor der Auszahlung, Teile der Differenz.
|
|
1303
|
+
'shift_receipt.opening_not_counted': { text: 'Anfang übernommen, nicht gezählt' },
|
|
1304
|
+
'shift_receipt.interim_count': { text: 'Zwischenzählung' },
|
|
1305
|
+
'shift_receipt.counted_before_payout': { text: 'Gezählt' },
|
|
1306
|
+
'shift_receipt.difference_part_interim': { text: 'davon Zwischenzählung' },
|
|
1307
|
+
'shift_receipt.difference_part_closing': { text: 'davon Abschluss' },
|
|
1308
|
+
// Nachtrag Schicht-Ablauf (1.28.0): Band-Titel ohne Punkt wie `shift.state_closed`.
|
|
1309
|
+
'shift.state_closing': { text: 'Schicht wird geschlossen' },
|
|
1310
|
+
'shift.state_interim': { text: 'Zwischenzählung' },
|
|
1311
|
+
'shift.tips_paid_out': { text: 'Trinkgeld ausgezahlt' },
|
|
1312
|
+
'shift.difference_none': { text: 'stimmt' },
|
|
1313
|
+
'shift.start_new': { text: 'Neue Schicht beginnen' },
|
|
1314
|
+
'shift.drawer_from_to': { text: '{drawer} · {from} bis {to}', placeholders: ['drawer', 'from', 'to'] },
|
|
1315
|
+
'shift.running_since_by': { text: '{drawer} · läuft seit {time} ({name})', placeholders: ['drawer', 'time', 'name'] },
|
|
1316
|
+
'shift.z_receipt_printed': { text: 'Z-Bon gedruckt' },
|
|
1317
|
+
'shift.count_now': { text: 'Jetzt zählen' },
|
|
1318
|
+
'shift.interim_entry': { text: 'Zwischenzählung' },
|
|
1319
|
+
'drawer.open': { text: 'Lade öffnen' },
|
|
1320
|
+
'time.today_at': { text: 'heute {time}', placeholders: ['time'] },
|
|
1321
|
+
'tip.summary_percent': { text: 'Trinkgeld {tip} ({percent} %)', placeholders: ['tip', 'percent'] },
|
|
1322
|
+
'settings.tip_kinds': { text: 'Trinkgeld-Arten' },
|
|
1323
|
+
'settings.tip_start': { text: 'Zuerst offen' },
|
|
1211
1324
|
};
|
|
1212
1325
|
exports.LABELS = BESCHRIFTUNGEN_ROH;
|
|
1213
1326
|
/**
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ArticleGroup, PosArticle } from './artikel.js';
|
|
2
|
+
/**
|
|
3
|
+
* Zusatz-Kacheln (1.27.0): Tippt man eine Hauptleistung an, oeffnet die Kasse
|
|
4
|
+
* ein Fenster mit ihren Zusaetzen. Die Liste steht an der Gruppe, je Artikel
|
|
5
|
+
* abweichend (`addOns`: null = wie die Gruppe, [] = keine, sonst eigene Liste).
|
|
6
|
+
* Jeder Zusatz wird eine eigene Belegposition mit `addOnOf` = Index der
|
|
7
|
+
* Hauptposition. Die Regeln rechnen Backend (`gemeinsam/zusatz-core.js`), npm
|
|
8
|
+
* und Dart gleich; der Vertrag sind die Pruefaelle `fixtures/add-on-cases.json`.
|
|
9
|
+
*/
|
|
10
|
+
/** Hoechstens so viele Zusaetze je Liste (der Server weist mehr ab). */
|
|
11
|
+
export declare const ADD_ONS_MAX = 30;
|
|
12
|
+
/** Warum ein Artikel kein Zusatz sein kann (Panel zeigt den Grund an). */
|
|
13
|
+
export declare const ADD_ON_BLOCK_REASONS: readonly ["inactive", "own_list", "asks_price", "reference", "asks_quantity", "no_price", "service_voucher"];
|
|
14
|
+
export type AddOnBlockReason = typeof ADD_ON_BLOCK_REASONS[number];
|
|
15
|
+
type ZusatzArtikel = Pick<PosArticle, 'id' | 'active' | 'unitPriceCents'> & Partial<Pick<PosArticle, 'addOns' | 'askPrice' | 'reference' | 'askQuantity' | 'serviceVoucher'>>;
|
|
16
|
+
type ArtikelNachId<T> = ReadonlyMap<string, T> | Readonly<Record<string, T>>;
|
|
17
|
+
/**
|
|
18
|
+
* Taugt der Artikel als Zusatz? `null` = ja. Im Fenster wird ohne Abfrage
|
|
19
|
+
* gebucht: Betrag, Referenz oder Menge fragen geht nicht, ein Preis muss
|
|
20
|
+
* feststehen (0 erlaubt), ein Leistungsgutschein liefe am Gutschein-Weg vorbei,
|
|
21
|
+
* und ein Artikel mit eigener Liste oeffnete selbst ein Fenster (eine Ebene).
|
|
22
|
+
*/
|
|
23
|
+
export declare function isSelectableAddOn(a: ZusatzArtikel): AddOnBlockReason | null;
|
|
24
|
+
/**
|
|
25
|
+
* Wirksame Zusatzliste eines Artikels: eigene Liste (auch leer) vor der der
|
|
26
|
+
* Gruppe; still heraus fallen der Artikel selbst, Unbekanntes, Dubletten und
|
|
27
|
+
* alles, was nicht als Zusatz taugt. Leer = kein Fenster.
|
|
28
|
+
*/
|
|
29
|
+
export declare function addOnsFor<T extends ZusatzArtikel>(article: ZusatzArtikel, group: Pick<ArticleGroup, 'addOns'> | null | undefined, articleById: ArtikelNachId<T>): string[];
|
|
30
|
+
type MitVerweis = {
|
|
31
|
+
addOnOf?: number | null;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Halten die Verweise den Server-Regeln stand? Ganze Zahl, zeigt nach vorne
|
|
35
|
+
* auf eine Warenposition, die selbst kein Zusatz ist (sonst antwortet
|
|
36
|
+
* createReceipt mit `invalid_add_on_reference`).
|
|
37
|
+
*/
|
|
38
|
+
export declare function addOnReferencesValid(items: readonly (MitVerweis & {
|
|
39
|
+
kind?: string | null;
|
|
40
|
+
})[]): boolean;
|
|
41
|
+
/** Indizes der Zusaetze einer Hauptposition (Storno: mit vormerken, abwaehlbar). */
|
|
42
|
+
export declare function addOnsOfItem(items: readonly MitVerweis[], index: number): number[];
|
|
43
|
+
/**
|
|
44
|
+
* Storno: Verweis je Storno-Position (in der Reihenfolge der stornierten
|
|
45
|
+
* Positionen, Menge > 0). Ein Zusatz behaelt ihn nur, wenn seine Hauptposition
|
|
46
|
+
* mit storniert wird, umgerechnet auf den neuen Index; sonst `null`.
|
|
47
|
+
*/
|
|
48
|
+
export declare function addOnRemap(items: readonly MitVerweis[], quantities: readonly number[]): (number | null)[];
|
|
49
|
+
/** Ist Position `i` ein gueltiger Zusatz (Verweis nach vorne auf eine Hauptposition)? Paketintern (Layout). */
|
|
50
|
+
export declare function istGueltigerZusatz(items: readonly MitVerweis[], i: number): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Bon-Reihenfolge: jede Hauptposition, direkt gefolgt von ihren Zusaetzen
|
|
53
|
+
* (stabil). Positionen mit ungueltigem Verweis bleiben an ihrem Platz.
|
|
54
|
+
*/
|
|
55
|
+
export declare function addOnDisplayOrder(items: readonly MitVerweis[]): number[];
|
|
56
|
+
/**
|
|
57
|
+
* Warenkorb -> Belegpositionen: Zeilen tragen die Zeilen-Id ihrer Hauptzeile
|
|
58
|
+
* (`addOnOf`). Sortiert jeden Zusatz hinter seine Hauptzeile (stabil) und
|
|
59
|
+
* rechnet den Verweis in den Index um. Fehlt die Hauptzeile (geloescht oder
|
|
60
|
+
* vorher herausgefiltert, etwa ein Gutschein-Verkauf), bleibt die Zeile ohne
|
|
61
|
+
* Verweis an ihrem Platz.
|
|
62
|
+
*/
|
|
63
|
+
export declare function orderAddOnLines<T extends {
|
|
64
|
+
id: string;
|
|
65
|
+
addOnOf?: string | null;
|
|
66
|
+
}>(lines: readonly T[]): {
|
|
67
|
+
line: T;
|
|
68
|
+
addOnOf: number | null;
|
|
69
|
+
}[];
|
|
70
|
+
export {};
|