@kreiseck/kasseneck-api 1.25.0 → 1.25.1

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 CHANGED
@@ -4,6 +4,13 @@ Was vor 0.7.0 geschah, steht in der Commit-Historie (`git log`); ab hier wird
4
4
  es hier geführt. Ein Eintrag nennt die Änderung **und ihren Grund** —
5
5
  nur der Grund überlebt den nächsten Umbau.
6
6
 
7
+ ## 1.25.1 - 2026-11-04
8
+
9
+ Texts for the cancellation sheet; no API change.
10
+
11
+ - **Refund line under „wie bezahlt“:** `cancellation.refund_cash` „{amount} bar“, `cancellation.refund_card` „{amount} auf die Karte“ (every method with a card), `cancellation.refund_other` „{amount} per {method}“, joined with „ · “ into `cancellation.refund_line` „{refunds} zurückgeben“ or, when only the server knows the exact amount, `cancellation.refund_line_estimated` „voraussichtlich {refunds} zurückgeben“. Reason: the cashier sees before confirming where the money goes, in one line; web register and app build it the same way.
12
+ - **`cancellation.voucher_tip_cash`** „{amount} Trinkgeld bar zurückgeben“: with „Als Gutschein“ the employee tip goes back in cash, never onto the voucher; the register now says so below the voucher line.
13
+
7
14
  ## 1.25.0 - 2026-11-03
8
15
 
9
16
  Return as voucher on cancellation (backend November 2026): instead of money, the customer gets a new multi-purpose voucher of the account's return type; the cancellation receipt stays the same as a cash cancellation. Additive; without `refundAs` requests and answers stay byte for byte as before.
@@ -1439,6 +1439,30 @@ declare const BESCHRIFTUNGEN_ROH: {
1439
1439
  readonly text: "Rest {amount}";
1440
1440
  readonly placeholders: readonly ["amount"];
1441
1441
  };
1442
+ readonly 'cancellation.refund_cash': {
1443
+ readonly text: "{amount} bar";
1444
+ readonly placeholders: readonly ["amount"];
1445
+ };
1446
+ readonly 'cancellation.refund_card': {
1447
+ readonly text: "{amount} auf die Karte";
1448
+ readonly placeholders: readonly ["amount"];
1449
+ };
1450
+ readonly 'cancellation.refund_other': {
1451
+ readonly text: "{amount} per {method}";
1452
+ readonly placeholders: readonly ["amount", "method"];
1453
+ };
1454
+ readonly 'cancellation.refund_line': {
1455
+ readonly text: "{refunds} zurückgeben";
1456
+ readonly placeholders: readonly ["refunds"];
1457
+ };
1458
+ readonly 'cancellation.refund_line_estimated': {
1459
+ readonly text: "voraussichtlich {refunds} zurückgeben";
1460
+ readonly placeholders: readonly ["refunds"];
1461
+ };
1462
+ readonly 'cancellation.voucher_tip_cash': {
1463
+ readonly text: "{amount} Trinkgeld bar zurückgeben";
1464
+ readonly placeholders: readonly ["amount"];
1465
+ };
1442
1466
  readonly 'cancellation.difference': {
1443
1467
  readonly text: "Differenz";
1444
1468
  };
@@ -817,6 +817,15 @@ const BESCHRIFTUNGEN_ROH = {
817
817
  'cancellation.as_voucher': { text: 'Als Gutschein' },
818
818
  'cancellation.voucher_confirm': { text: '{amount} als Gutschein zurückgeben', placeholders: ['amount'] },
819
819
  'cancellation.payment_remainder': { text: 'Rest {amount}', placeholders: ['amount'] },
820
+ // Die Zeile unter „wie bezahlt“: wohin das Geld zurückgeht, Teile mit „ · “ verbunden
821
+ // („20,00 € auf die Karte · 4,90 € bar zurückgeben“). Karte = jede Zahlart mit Karte.
822
+ 'cancellation.refund_cash': { text: '{amount} bar', placeholders: ['amount'] },
823
+ 'cancellation.refund_card': { text: '{amount} auf die Karte', placeholders: ['amount'] },
824
+ 'cancellation.refund_other': { text: '{amount} per {method}', placeholders: ['amount', 'method'] },
825
+ 'cancellation.refund_line': { text: '{refunds} zurückgeben', placeholders: ['refunds'] },
826
+ 'cancellation.refund_line_estimated': { text: 'voraussichtlich {refunds} zurückgeben', placeholders: ['refunds'] },
827
+ // Als Gutschein: das Mitarbeiter-Trinkgeld geht bar zurück, nie auf den Gutschein.
828
+ 'cancellation.voucher_tip_cash': { text: '{amount} Trinkgeld bar zurückgeben', placeholders: ['amount'] },
820
829
  'cancellation.difference': { text: 'Differenz' },
821
830
  // --- Storno mit oder ohne Trinkgeld (Schichten-Spec, Nachtrag 5) -----------
822
831
  // Erste Frage bei offenem Mitarbeiter-Trinkgeld, zweite nur bei Ja und Barrueckgabe.
@@ -4,4 +4,4 @@
4
4
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
5
5
  * beim Anheben der Version beide Stellen aendern.
6
6
  */
7
- export declare const PACKAGE_VERSION = "1.25.0";
7
+ export declare const PACKAGE_VERSION = "1.25.1";
@@ -7,4 +7,4 @@ exports.PACKAGE_VERSION = void 0;
7
7
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
8
8
  * beim Anheben der Version beide Stellen aendern.
9
9
  */
10
- exports.PACKAGE_VERSION = '1.25.0';
10
+ exports.PACKAGE_VERSION = '1.25.1';
@@ -1439,6 +1439,30 @@ declare const BESCHRIFTUNGEN_ROH: {
1439
1439
  readonly text: "Rest {amount}";
1440
1440
  readonly placeholders: readonly ["amount"];
1441
1441
  };
1442
+ readonly 'cancellation.refund_cash': {
1443
+ readonly text: "{amount} bar";
1444
+ readonly placeholders: readonly ["amount"];
1445
+ };
1446
+ readonly 'cancellation.refund_card': {
1447
+ readonly text: "{amount} auf die Karte";
1448
+ readonly placeholders: readonly ["amount"];
1449
+ };
1450
+ readonly 'cancellation.refund_other': {
1451
+ readonly text: "{amount} per {method}";
1452
+ readonly placeholders: readonly ["amount", "method"];
1453
+ };
1454
+ readonly 'cancellation.refund_line': {
1455
+ readonly text: "{refunds} zurückgeben";
1456
+ readonly placeholders: readonly ["refunds"];
1457
+ };
1458
+ readonly 'cancellation.refund_line_estimated': {
1459
+ readonly text: "voraussichtlich {refunds} zurückgeben";
1460
+ readonly placeholders: readonly ["refunds"];
1461
+ };
1462
+ readonly 'cancellation.voucher_tip_cash': {
1463
+ readonly text: "{amount} Trinkgeld bar zurückgeben";
1464
+ readonly placeholders: readonly ["amount"];
1465
+ };
1442
1466
  readonly 'cancellation.difference': {
1443
1467
  readonly text: "Differenz";
1444
1468
  };
@@ -804,6 +804,15 @@ const BESCHRIFTUNGEN_ROH = {
804
804
  'cancellation.as_voucher': { text: 'Als Gutschein' },
805
805
  'cancellation.voucher_confirm': { text: '{amount} als Gutschein zurückgeben', placeholders: ['amount'] },
806
806
  'cancellation.payment_remainder': { text: 'Rest {amount}', placeholders: ['amount'] },
807
+ // Die Zeile unter „wie bezahlt“: wohin das Geld zurückgeht, Teile mit „ · “ verbunden
808
+ // („20,00 € auf die Karte · 4,90 € bar zurückgeben“). Karte = jede Zahlart mit Karte.
809
+ 'cancellation.refund_cash': { text: '{amount} bar', placeholders: ['amount'] },
810
+ 'cancellation.refund_card': { text: '{amount} auf die Karte', placeholders: ['amount'] },
811
+ 'cancellation.refund_other': { text: '{amount} per {method}', placeholders: ['amount', 'method'] },
812
+ 'cancellation.refund_line': { text: '{refunds} zurückgeben', placeholders: ['refunds'] },
813
+ 'cancellation.refund_line_estimated': { text: 'voraussichtlich {refunds} zurückgeben', placeholders: ['refunds'] },
814
+ // Als Gutschein: das Mitarbeiter-Trinkgeld geht bar zurück, nie auf den Gutschein.
815
+ 'cancellation.voucher_tip_cash': { text: '{amount} Trinkgeld bar zurückgeben', placeholders: ['amount'] },
807
816
  'cancellation.difference': { text: 'Differenz' },
808
817
  // --- Storno mit oder ohne Trinkgeld (Schichten-Spec, Nachtrag 5) -----------
809
818
  // Erste Frage bei offenem Mitarbeiter-Trinkgeld, zweite nur bei Ja und Barrueckgabe.
@@ -4,4 +4,4 @@
4
4
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
5
5
  * beim Anheben der Version beide Stellen aendern.
6
6
  */
7
- export declare const PACKAGE_VERSION = "1.25.0";
7
+ export declare const PACKAGE_VERSION = "1.25.1";
@@ -4,4 +4,4 @@
4
4
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
5
5
  * beim Anheben der Version beide Stellen aendern.
6
6
  */
7
- export const PACKAGE_VERSION = '1.25.0';
7
+ export const PACKAGE_VERSION = '1.25.1';
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.25.0",
2
+ "version": "1.25.1",
3
3
  "measuredOn": {
4
4
  "tid": "3600335",
5
5
  "hpsVersion": "1.10.0",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "title": "Kasseneck Rechnungs-API",
4
4
  "version": 2,
5
- "package": "1.25.0",
5
+ "package": "1.25.1",
6
6
  "endpoints": {
7
7
  "createCustomer": {
8
8
  "request": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.25.0",
2
+ "version": "1.25.1",
3
3
  "languages": [
4
4
  "de",
5
5
  "en"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.25.0",
2
+ "version": "1.25.1",
3
3
  "messages": {
4
4
  "network.no_connection": {
5
5
  "text": "Keine Verbindung zum Server. Bitte die Internetverbindung prüfen und erneut versuchen."
@@ -1561,6 +1561,43 @@
1561
1561
  "amount"
1562
1562
  ]
1563
1563
  },
1564
+ "cancellation.refund_cash": {
1565
+ "text": "{amount} bar",
1566
+ "placeholders": [
1567
+ "amount"
1568
+ ]
1569
+ },
1570
+ "cancellation.refund_card": {
1571
+ "text": "{amount} auf die Karte",
1572
+ "placeholders": [
1573
+ "amount"
1574
+ ]
1575
+ },
1576
+ "cancellation.refund_other": {
1577
+ "text": "{amount} per {method}",
1578
+ "placeholders": [
1579
+ "amount",
1580
+ "method"
1581
+ ]
1582
+ },
1583
+ "cancellation.refund_line": {
1584
+ "text": "{refunds} zurückgeben",
1585
+ "placeholders": [
1586
+ "refunds"
1587
+ ]
1588
+ },
1589
+ "cancellation.refund_line_estimated": {
1590
+ "text": "voraussichtlich {refunds} zurückgeben",
1591
+ "placeholders": [
1592
+ "refunds"
1593
+ ]
1594
+ },
1595
+ "cancellation.voucher_tip_cash": {
1596
+ "text": "{amount} Trinkgeld bar zurückgeben",
1597
+ "placeholders": [
1598
+ "amount"
1599
+ ]
1600
+ },
1564
1601
  "cancellation.difference": {
1565
1602
  "text": "Differenz"
1566
1603
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.25.0",
2
+ "version": "1.25.1",
3
3
  "baseUrls": {
4
4
  "public": "https://api.kasseneck.at/v3",
5
5
  "pos": "https://kasse.kasseneck.at/api/v3"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreiseck/kasseneck-api",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "Austrian fiscal cash register (RKSV) client for JavaScript and TypeScript: signed receipts, cancellations, card payments, receipt printing (ESC/POS), invoices, inventory. RKSV-Registrierkasse für JavaScript und TypeScript.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Kreiseck",