@open-tender/store 0.3.85 → 0.3.86
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.
|
@@ -79,7 +79,7 @@ export declare const selectPosCustomer: (state: AppState) => CustomerCheckout |
|
|
|
79
79
|
export declare const selectPosCustomerName: (state: AppState) => string | null;
|
|
80
80
|
export declare const selectPosCustomerNameShort: (state: AppState) => string | null;
|
|
81
81
|
export declare const selectPosPendingDiscounts: (state: AppState) => boolean;
|
|
82
|
-
export declare const selectPosAmountDue: (state: AppState) => `${number}.${number}` | null
|
|
82
|
+
export declare const selectPosAmountDue: (state: AppState) => `${number}.${number}` | null;
|
|
83
83
|
export declare const selectPosCheckTotal: (state: AppState) => `${number}.${number}`;
|
|
84
84
|
export declare const selectPosCheckTenders: (state: AppState) => import("../types").OrderTenders;
|
|
85
85
|
export declare const selectPosCheckGiftCardCodes: (state: AppState) => (string | null)[];
|
|
@@ -664,7 +664,8 @@ var selectPosPendingDiscounts = function (state) {
|
|
|
664
664
|
exports.selectPosPendingDiscounts = selectPosPendingDiscounts;
|
|
665
665
|
var selectPosAmountDue = function (state) {
|
|
666
666
|
var check = state.checkout.check;
|
|
667
|
-
|
|
667
|
+
var amountDue = check ? check.totals.amount_due : null;
|
|
668
|
+
return amountDue || null;
|
|
668
669
|
};
|
|
669
670
|
exports.selectPosAmountDue = selectPosAmountDue;
|
|
670
671
|
var selectPosCheckTotal = function (state) {
|
|
@@ -79,7 +79,7 @@ export declare const selectPosCustomer: (state: AppState) => CustomerCheckout |
|
|
|
79
79
|
export declare const selectPosCustomerName: (state: AppState) => string | null;
|
|
80
80
|
export declare const selectPosCustomerNameShort: (state: AppState) => string | null;
|
|
81
81
|
export declare const selectPosPendingDiscounts: (state: AppState) => boolean;
|
|
82
|
-
export declare const selectPosAmountDue: (state: AppState) => `${number}.${number}` | null
|
|
82
|
+
export declare const selectPosAmountDue: (state: AppState) => `${number}.${number}` | null;
|
|
83
83
|
export declare const selectPosCheckTotal: (state: AppState) => `${number}.${number}`;
|
|
84
84
|
export declare const selectPosCheckTenders: (state: AppState) => import("../types").OrderTenders;
|
|
85
85
|
export declare const selectPosCheckGiftCardCodes: (state: AppState) => (string | null)[];
|
|
@@ -655,7 +655,8 @@ export var selectPosPendingDiscounts = function (state) {
|
|
|
655
655
|
};
|
|
656
656
|
export var selectPosAmountDue = function (state) {
|
|
657
657
|
var check = state.checkout.check;
|
|
658
|
-
|
|
658
|
+
var amountDue = check ? check.totals.amount_due : null;
|
|
659
|
+
return amountDue || null;
|
|
659
660
|
};
|
|
660
661
|
export var selectPosCheckTotal = function (state) {
|
|
661
662
|
var check = state.checkout.check;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.86",
|
|
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",
|