@aptos-scp/scp-component-store-selling-features-domain-model 1.41.0 → 1.41.2
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.
|
@@ -237,7 +237,8 @@ export declare enum UiInputKey {
|
|
|
237
237
|
RECEIPT_CATEGORY = "input_receiptCategory",
|
|
238
238
|
RECEIPT_CATEGORIES = "input_receiptCategories",
|
|
239
239
|
REPRINT_RECEIPT_COUNT = "input_reprintReceiptCount",
|
|
240
|
-
|
|
240
|
+
REPRINT_GIFT_RECEIPT_LINE_NUMBERS = "input_reprintGiftReceiptLineNumbers",
|
|
241
|
+
REPRINT_GIFT_RECEIPT_MODE = "input_reprintGiftReceiptMode",
|
|
241
242
|
RECEIPT_TYPE = "input_receiptType",
|
|
242
243
|
TENDER_REFERENCE_DATA = "input_tenderReferenceData",
|
|
243
244
|
RESUME_TRANSACTION = "input_resumeTransaction",
|
|
@@ -671,7 +672,8 @@ export declare enum CollectedDataKey {
|
|
|
671
672
|
ReprintTransaction = "reprintTransaction",
|
|
672
673
|
ReprintTransactionType = "reprintTransactionType",
|
|
673
674
|
ReprintReceiptCount = "reprintReceiptCount",
|
|
674
|
-
|
|
675
|
+
ReprintGiftReceiptLineNumbers = "reprintGiftReceiptLineNumbers",
|
|
676
|
+
ReprintGiftReceiptMode = "reprintGiftReceiptMode",
|
|
675
677
|
GiftItems = "giftItems",
|
|
676
678
|
GiftItemForReprint = "giftItemForReprint",
|
|
677
679
|
ResultCashDrawerStatusCode = "ResultCashDrawerStatusCode",
|
|
@@ -929,7 +931,9 @@ export declare enum CollectedDataKey {
|
|
|
929
931
|
MembershipTypeDescription = "membershipTypeDescription",
|
|
930
932
|
IsPermanentMembershipDiscount = "isPermanentMembershipDiscount",
|
|
931
933
|
TerminalForceClosed = "TerminalForceClosed",
|
|
932
|
-
TotalLineTax = "totalLineTax"
|
|
934
|
+
TotalLineTax = "totalLineTax",
|
|
935
|
+
EmployeeFlag = "employeeFlag",
|
|
936
|
+
TriggeredByLoyaltyAwards = "triggeredByLoyaltyAwards"
|
|
933
937
|
}
|
|
934
938
|
export declare enum ItemLookupType {
|
|
935
939
|
ProductInquiryDetail = "ProductInquiryDetail",
|
|
@@ -240,7 +240,8 @@ var UiInputKey;
|
|
|
240
240
|
UiInputKey["RECEIPT_CATEGORY"] = "input_receiptCategory";
|
|
241
241
|
UiInputKey["RECEIPT_CATEGORIES"] = "input_receiptCategories";
|
|
242
242
|
UiInputKey["REPRINT_RECEIPT_COUNT"] = "input_reprintReceiptCount";
|
|
243
|
-
UiInputKey["
|
|
243
|
+
UiInputKey["REPRINT_GIFT_RECEIPT_LINE_NUMBERS"] = "input_reprintGiftReceiptLineNumbers";
|
|
244
|
+
UiInputKey["REPRINT_GIFT_RECEIPT_MODE"] = "input_reprintGiftReceiptMode";
|
|
244
245
|
UiInputKey["RECEIPT_TYPE"] = "input_receiptType";
|
|
245
246
|
UiInputKey["TENDER_REFERENCE_DATA"] = "input_tenderReferenceData";
|
|
246
247
|
UiInputKey["RESUME_TRANSACTION"] = "input_resumeTransaction";
|
|
@@ -680,7 +681,8 @@ var CollectedDataKey;
|
|
|
680
681
|
CollectedDataKey["ReprintTransaction"] = "reprintTransaction";
|
|
681
682
|
CollectedDataKey["ReprintTransactionType"] = "reprintTransactionType";
|
|
682
683
|
CollectedDataKey["ReprintReceiptCount"] = "reprintReceiptCount";
|
|
683
|
-
CollectedDataKey["
|
|
684
|
+
CollectedDataKey["ReprintGiftReceiptLineNumbers"] = "reprintGiftReceiptLineNumbers";
|
|
685
|
+
CollectedDataKey["ReprintGiftReceiptMode"] = "reprintGiftReceiptMode";
|
|
684
686
|
CollectedDataKey["GiftItems"] = "giftItems";
|
|
685
687
|
CollectedDataKey["GiftItemForReprint"] = "giftItemForReprint";
|
|
686
688
|
CollectedDataKey["ResultCashDrawerStatusCode"] = "ResultCashDrawerStatusCode";
|
|
@@ -939,6 +941,8 @@ var CollectedDataKey;
|
|
|
939
941
|
CollectedDataKey["IsPermanentMembershipDiscount"] = "isPermanentMembershipDiscount";
|
|
940
942
|
CollectedDataKey["TerminalForceClosed"] = "TerminalForceClosed";
|
|
941
943
|
CollectedDataKey["TotalLineTax"] = "totalLineTax";
|
|
944
|
+
CollectedDataKey["EmployeeFlag"] = "employeeFlag";
|
|
945
|
+
CollectedDataKey["TriggeredByLoyaltyAwards"] = "triggeredByLoyaltyAwards";
|
|
942
946
|
})(CollectedDataKey = exports.CollectedDataKey || (exports.CollectedDataKey = {}));
|
|
943
947
|
var ItemLookupType;
|
|
944
948
|
(function (ItemLookupType) {
|
|
@@ -284,6 +284,9 @@ class BaseManualDiscountLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
284
284
|
if (collectedData.has(Constants_1.CollectedDataKey.EmployeeId)) {
|
|
285
285
|
this._isEmployeeDiscount = !!collectedData.get(Constants_1.CollectedDataKey.EmployeeId);
|
|
286
286
|
}
|
|
287
|
+
else {
|
|
288
|
+
this._isEmployeeDiscount = !!collectedData.get(Constants_1.CollectedDataKey.EmployeeFlag);
|
|
289
|
+
}
|
|
287
290
|
}
|
|
288
291
|
loadAutoAppliedFromCollectedData(collectedData) {
|
|
289
292
|
if (collectedData.has(Constants_1.CollectedDataKey.AutoApplied)) {
|
|
@@ -313,10 +316,12 @@ class BaseManualDiscountLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
313
316
|
}
|
|
314
317
|
loadLoyaltyDiscountFromCollectedData(collectedData) {
|
|
315
318
|
if (collectedData.has(Constants_1.CollectedDataKey.LoyaltyPlanKey) ||
|
|
316
|
-
collectedData.has(Constants_1.CollectedDataKey.MembershipTypeKey)
|
|
319
|
+
collectedData.has(Constants_1.CollectedDataKey.MembershipTypeKey) ||
|
|
320
|
+
collectedData.has(Constants_1.CollectedDataKey.TriggeredByLoyaltyAwards)) {
|
|
317
321
|
this._isLoyaltyDiscount =
|
|
318
322
|
!!collectedData.get(Constants_1.CollectedDataKey.LoyaltyPlanKey) ||
|
|
319
|
-
!!collectedData.get(Constants_1.CollectedDataKey.MembershipTypeKey)
|
|
323
|
+
!!collectedData.get(Constants_1.CollectedDataKey.MembershipTypeKey) ||
|
|
324
|
+
!!collectedData.get(Constants_1.CollectedDataKey.TriggeredByLoyaltyAwards);
|
|
320
325
|
}
|
|
321
326
|
}
|
|
322
327
|
loadAmountFromJsonObject(transactionLineJsonObj) {
|
|
@@ -283,6 +283,7 @@ export interface IOriginalLoyaltyInformation {
|
|
|
283
283
|
readonly originalDiscountlineNumber?: number;
|
|
284
284
|
readonly discountProratedByService?: boolean;
|
|
285
285
|
readonly itemLineReferences?: IProratedItemLineReference[];
|
|
286
|
+
readonly triggeredByLoyaltyAwards?: boolean;
|
|
286
287
|
}
|
|
287
288
|
export interface IOriginalCompetitivePriceInformation {
|
|
288
289
|
readonly pricingRuleId?: string;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { Quantity } from "@aptos-scp/scp-component-business-core";
|
|
2
|
-
import {
|
|
3
|
-
export interface IReprintGiftReceiptOption {
|
|
4
|
-
lineNumbers: number[];
|
|
5
|
-
giftReceiptMode: GiftReceiptMode;
|
|
6
|
-
}
|
|
2
|
+
import { ItemLookupKey } from "..";
|
|
7
3
|
export interface IGiftItem {
|
|
8
4
|
name: string;
|
|
9
5
|
itemLookupKey: ItemLookupKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-scp/scp-component-store-selling-features-domain-model",
|
|
3
|
-
"version": "1.41.
|
|
3
|
+
"version": "1.41.2",
|
|
4
4
|
"description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@aptos-scp/scp-component-business-core": "^1.12.7",
|
|
56
56
|
"@aptos-scp/scp-component-logging": "^2.1.16",
|
|
57
|
-
"@aptos-scp/scp-component-pricing": "^7.
|
|
57
|
+
"@aptos-scp/scp-component-pricing": "^7.61.0",
|
|
58
58
|
"@aptos-scp/scp-component-store-items": "^1.19.0",
|
|
59
59
|
"@aptos-scp/scp-component-store-selling-core": "^18.9.3",
|
|
60
60
|
"@aptos-scp/scp-component-taxation": "^5.27.3",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
63
63
|
"@aptos-scp/scp-types-core-config": "^2.2.1",
|
|
64
64
|
"@aptos-scp/scp-types-commerce-devices": "^3.9.0",
|
|
65
|
-
"@aptos-scp/scp-types-commerce-transaction": "^1.
|
|
65
|
+
"@aptos-scp/scp-types-commerce-transaction": "^1.69.1",
|
|
66
66
|
"@aptos-scp/scp-types-customer": "^3.7.0",
|
|
67
67
|
"@aptos-scp/scp-types-einvoice": "^1.17.0",
|
|
68
68
|
"@aptos-scp/scp-types-inventory": "^2.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@aptos-scp/scp-component-business-core": "^1.12.7",
|
|
77
77
|
"@aptos-scp/scp-component-commit-configs": "^4.1.3",
|
|
78
78
|
"@aptos-scp/scp-component-logging": "^2.1.16",
|
|
79
|
-
"@aptos-scp/scp-component-pricing": "^7.
|
|
79
|
+
"@aptos-scp/scp-component-pricing": "^7.61.0",
|
|
80
80
|
"@aptos-scp/scp-component-rn-circuit-breaker": "^1.0.15",
|
|
81
81
|
"@aptos-scp/scp-component-store-items": "^1.19.0",
|
|
82
82
|
"@aptos-scp/scp-component-store-selling-core": "^18.9.3",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@aptos-scp/scp-component-user": "^1.4.0",
|
|
85
85
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
86
86
|
"@aptos-scp/scp-types-commerce-devices": "^3.9.0",
|
|
87
|
-
"@aptos-scp/scp-types-commerce-transaction": "^1.
|
|
87
|
+
"@aptos-scp/scp-types-commerce-transaction": "^1.69.1",
|
|
88
88
|
"@aptos-scp/scp-types-core": "^1.0.5",
|
|
89
89
|
"@aptos-scp/scp-types-core-config": "^2.2.1",
|
|
90
90
|
"@aptos-scp/scp-types-currency-conversion": "^1.2.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@aptos-scp/scp-types-inventory": "^2.0.0",
|
|
95
95
|
"@aptos-scp/scp-types-loyalty-memberships": "^2.3.0",
|
|
96
96
|
"@aptos-scp/scp-types-orders": "^4.11.0",
|
|
97
|
-
"@aptos-scp/scp-types-pricing": "^4.
|
|
97
|
+
"@aptos-scp/scp-types-pricing": "^4.26.0",
|
|
98
98
|
"@aptos-scp/scp-types-ss-transaction-history": "^1.6.0",
|
|
99
99
|
"@aptos-scp/scp-types-store-items": "^1.23.0",
|
|
100
100
|
"@aptos-scp/scp-types-terminal-settings": "^1.3.0",
|