@open-tender/store 1.1.195 → 1.1.197

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.
@@ -38,7 +38,7 @@ var getAmountDue = function (check) {
38
38
  return check && check.totals ? check.totals.amount_due : null;
39
39
  };
40
40
  var prepareOrder = function (order, checkout) {
41
- var order_uuid = order.orderId, requested_at = order.requestedAt, service_type = order.serviceType, order_type = order.orderType, revenue_center_id = order.revenueCenterId, prep_type = order.prepType;
41
+ var order_uuid = order.orderId, requested_at = order.requestedAt, service_type = order.serviceType, order_type = order.orderType, revenue_center_id = order.revenueCenterId, prep_type = order.prepType, table = order.table;
42
42
  if (!order_uuid)
43
43
  return null;
44
44
  var simpleCart = (0, utils_1.makeSimpleCart)(order.cart);
@@ -61,7 +61,8 @@ var prepareOrder = function (order, checkout) {
61
61
  points: points,
62
62
  made_for: made_for,
63
63
  phone: phone,
64
- prep_type: prep_type
64
+ prep_type: prep_type,
65
+ notes_internal: table !== null && table.length > 0 ? "DINE IN -- TABLE ".concat(table) : null
65
66
  };
66
67
  };
67
68
  exports.prepareOrder = prepareOrder;
@@ -35,7 +35,7 @@ var getAmountDue = function (check) {
35
35
  return check && check.totals ? check.totals.amount_due : null;
36
36
  };
37
37
  export var prepareOrder = function (order, checkout) {
38
- var order_uuid = order.orderId, requested_at = order.requestedAt, service_type = order.serviceType, order_type = order.orderType, revenue_center_id = order.revenueCenterId, prep_type = order.prepType;
38
+ var order_uuid = order.orderId, requested_at = order.requestedAt, service_type = order.serviceType, order_type = order.orderType, revenue_center_id = order.revenueCenterId, prep_type = order.prepType, table = order.table;
39
39
  if (!order_uuid)
40
40
  return null;
41
41
  var simpleCart = makeSimpleCart(order.cart);
@@ -58,7 +58,8 @@ export var prepareOrder = function (order, checkout) {
58
58
  points: points,
59
59
  made_for: made_for,
60
60
  phone: phone,
61
- prep_type: prep_type
61
+ prep_type: prep_type,
62
+ notes_internal: table !== null && table.length > 0 ? "DINE IN -- TABLE ".concat(table) : null
62
63
  };
63
64
  };
64
65
  export var CheckoutActionType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.1.195",
3
+ "version": "1.1.197",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -61,9 +61,9 @@
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@emotion/react": "^11.11.1",
64
- "@open-tender/types": "^0.4.80",
64
+ "@open-tender/types": "^0.4.81",
65
65
  "@open-tender/ui": "^0.4.13",
66
- "@open-tender/utils": "^0.4.45",
66
+ "@open-tender/utils": "^0.4.61",
67
67
  "@reduxjs/toolkit": "^2.0.1",
68
68
  "date-fns": "2.30.0",
69
69
  "date-fns-tz": "^2.0.0",
@@ -71,10 +71,5 @@
71
71
  "react-device-detect": "^2.2.3",
72
72
  "react-dom": "^18.2.0",
73
73
  "uuid": "^9.0.1"
74
- },
75
- "dependencies": {
76
- "@open-tender/types": "^0.4.80",
77
- "@open-tender/ui": "^0.4.13",
78
- "@open-tender/utils": "^0.4.61"
79
74
  }
80
75
  }