@managesome/eposmatic-toolkit 0.2.637 → 0.2.639

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.
@@ -6,9 +6,10 @@
6
6
  * agree on the exact wire shape for these operations. Field semantics:
7
7
  * - `staff_id` / `staff_name` are the operator performing the action.
8
8
  * - `cash_amount` is in integer cents (POS converts decimal balances via
9
- * `convertDecimalToInt`). It exists ONLY on the cash-drawer open (opening
10
- * float) and close (counted cash) requests — every other lifecycle amount is
11
- * backend-owned and derived server-side from the cash-drawer ledger.
9
+ * `convertDecimalToInt`). It exists on the cash-drawer open (opening float),
10
+ * reopen (registered count — becomes the drawer's running balance) and close
11
+ * (counted cash) requests — every other lifecycle amount is backend-owned and
12
+ * derived server-side from the cash-drawer ledger.
12
13
  * - `operational_time_zone_offset_gmt` is NOT part of any request — local-time
13
14
  * fields are always stamped server-side from the tenant's stored offset.
14
15
  */
@@ -99,4 +100,12 @@ export interface IReopenCashDrawerSessionRequestBody {
99
100
  staff_id: string;
100
101
  staff_name: string;
101
102
  note?: string;
103
+ /**
104
+ * The registered count at reopen — the balance the drawer resumes with.
105
+ * The backend adds it to the cash in/out ledger as a CASH_IN (like a drawer
106
+ * open) and sets it as the session's `running_balance`; the original opening
107
+ * float is preserved and is NOT added to the day/shift opening totals.
108
+ * Optional: if omitted, the backend falls back to the close's expected cash.
109
+ */
110
+ cash_amount?: number;
102
111
  }
@@ -7,9 +7,10 @@
7
7
  * agree on the exact wire shape for these operations. Field semantics:
8
8
  * - `staff_id` / `staff_name` are the operator performing the action.
9
9
  * - `cash_amount` is in integer cents (POS converts decimal balances via
10
- * `convertDecimalToInt`). It exists ONLY on the cash-drawer open (opening
11
- * float) and close (counted cash) requests — every other lifecycle amount is
12
- * backend-owned and derived server-side from the cash-drawer ledger.
10
+ * `convertDecimalToInt`). It exists on the cash-drawer open (opening float),
11
+ * reopen (registered count — becomes the drawer's running balance) and close
12
+ * (counted cash) requests — every other lifecycle amount is backend-owned and
13
+ * derived server-side from the cash-drawer ledger.
13
14
  * - `operational_time_zone_offset_gmt` is NOT part of any request — local-time
14
15
  * fields are always stamped server-side from the tenant's stored offset.
15
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.637",
3
+ "version": "0.2.639",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",