@colijnit/transaction 12.1.140 → 12.1.142
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/bundles/colijnit-transaction.umd.js +1169 -266
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +14 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +15 -1
- package/esm2015/lib/component/checkout/checkout.module.js +2 -2
- package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +3 -2
- package/esm2015/lib/component/payment/payment.component.js +15 -133
- package/esm2015/lib/component/payment-tile/payment-tile.component.js +4 -2
- package/esm2015/lib/component/tile/tile.component.js +4 -2
- package/esm2015/lib/component/tile/tile.module.js +4 -2
- package/esm2015/lib/component/transaction/transaction.component.js +15 -6
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.component.js +56 -20
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/transaction-cash-register-link-relation.component.js +97 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/transaction-cash-register-link-relation.module.js +24 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order.component.js +63 -41
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order.module.js +6 -2
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-buttons.component.js +24 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-buttons.module.js +21 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-cash.component.js +82 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-cash.module.js +29 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-done.component.js +98 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-done.module.js +23 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-method.component.js +56 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-method.module.js +23 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-pin.component.js +33 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-pin.module.js +23 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/transaction-cash-register-payment-dialog.component.js +142 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/transaction-cash-register-payment-dialog.module.js +37 -0
- package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/transaction-cash-register-payment-state.enum.js +9 -0
- package/esm2015/lib/component/transaction-copy-order/transaction-copy-order.component.js +5 -4
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +2 -1
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +3 -2
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +9 -4
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup.component.js +4 -1
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +3 -5
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.js +12 -1
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +9 -6
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +89 -12
- package/esm2015/lib/component/transaction-line-fields/transaction-purchase-portal-line-confirmed-price.component.js +2 -1
- package/esm2015/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.js +25 -3
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.js +2 -7
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +9 -9
- package/esm2015/lib/component/transaction-tags/transaction-tags.component.js +3 -3
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
- package/esm2015/lib/service/payment.service.js +172 -4
- package/esm2015/lib/service/pending-reason.service.js +4 -2
- package/esm2015/lib/service/transaction-connector-adapter.service.js +6 -2
- package/esm2015/lib/service/transaction-connector.service.js +6 -1
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/service/transaction.service.js +8 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +1168 -260
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/components/transaction-header-block/style/_material-definition.scss +1 -1
- package/lib/component/deposit-payment/deposit-payment.component.d.ts +1 -0
- package/lib/component/payment/payment.component.d.ts +3 -20
- package/lib/component/payment/style/_layout.scss +0 -5
- package/lib/component/payment-tile/payment-tile.component.d.ts +1 -0
- package/lib/component/tile/style/_layout.scss +1 -1
- package/lib/component/tile/tile.component.d.ts +1 -0
- package/lib/component/transaction/transaction.component.d.ts +3 -0
- package/lib/component/transaction-button/style/_layout.scss +1 -0
- package/lib/component/transaction-button/style/_material-definition.scss +1 -1
- package/lib/component/transaction-cash-register-order/style/_layout.scss +18 -3
- package/lib/component/transaction-cash-register-order/style/material.scss +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-dialog/transaction-cash-register-dialog.component.d.ts +3 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/style/_layout.scss +8 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/style/_material-definition.scss +0 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/style/_theme.scss +4 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/style/material.scss +5 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/transaction-cash-register-link-relation.component.d.ts +18 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/transaction-cash-register-link-relation.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-order.component.d.ts +6 -5
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-buttons.component.d.ts +5 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-buttons.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-cash.component.d.ts +20 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-cash.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-done.component.d.ts +20 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-done.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-method.component.d.ts +16 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-method.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-pin.component.d.ts +6 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/components/transaction-cash-register-payment-pin.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/style/_layout.scss +177 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/style/_material-definition.scss +0 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/style/_theme.scss +4 -0
- package/lib/component/{transaction-document-button → transaction-cash-register-order/transaction-cash-register-payment-dialog}/style/material.scss +1 -1
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/transaction-cash-register-payment-dialog.component.d.ts +28 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/transaction-cash-register-payment-dialog.module.d.ts +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/transaction-cash-register-payment-state.enum.d.ts +7 -0
- package/lib/component/transaction-copy-order/transaction-copy-order.component.d.ts +2 -2
- package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +6 -1
- package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss +2 -1
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +7 -1
- package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +6 -6
- package/lib/component/transaction-header/transaction-header-popup/style/_layout.scss +1 -1
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +15 -1
- package/lib/component/transaction-line/transaction-overview-line/style/_layout.scss +2 -1
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.d.ts +2 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +3 -3
- package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +25 -1
- package/lib/component/transaction-line-image-and-description/style/_layout.scss +16 -1
- package/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.d.ts +4 -0
- package/lib/component/transaction-tags/style/_layout.scss +13 -0
- package/lib/component/transaction-tags/style/_material-definition.scss +7 -4
- package/lib/enum/icon.enum.d.ts +3 -0
- package/lib/res/dictionary/dictionaries.d.ts +3 -0
- package/lib/service/payment.service.d.ts +30 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -1
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/service/transaction-event.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/lib/style/_variables.scss +6 -3
- package/lib/style/transaction-globals.scss +1 -0
- package/package.json +7 -7
- package/lib/component/transaction-document-button/style/_layout.scss +0 -59
- package/lib/component/transaction-document-button/style/_material-definition.scss +0 -9
- package/lib/component/transaction-document-button/style/_theme.scss +0 -5
package/lib/component/core/base/components/transaction-header-block/style/_material-definition.scss
CHANGED
|
@@ -27,5 +27,5 @@ $tp-transaction-header-block-icon-height: 20px !default;
|
|
|
27
27
|
$tp-transaction-header-block-icon-background-radius: 100% !default;
|
|
28
28
|
$tp-transaction-header-block-icon-background-width: 38px !default;
|
|
29
29
|
$tp-transaction-header-block-icon-background-height: 38px !default;
|
|
30
|
-
$tp-transaction-header-block-icon-padding:
|
|
30
|
+
$tp-transaction-header-block-icon-padding: 7px 0 0 0 !default;
|
|
31
31
|
$tp-transaction-header-order-section-line-height: 16px !default;
|
|
@@ -9,6 +9,7 @@ export declare class DepositPaymentComponent implements OnInit, OnDestroy {
|
|
|
9
9
|
private _transactionEventService;
|
|
10
10
|
readonly transKind: typeof TransactionKind;
|
|
11
11
|
branch: string;
|
|
12
|
+
transactionKind: TransactionKind;
|
|
12
13
|
showTitle: boolean;
|
|
13
14
|
transactionUuid: string;
|
|
14
15
|
showClass(): boolean;
|
|
@@ -8,12 +8,11 @@ import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-meth
|
|
|
8
8
|
import { PaymentViewmodel } from '../../model/payment.viewmodel';
|
|
9
9
|
import { DepositPaymentViewModel } from '../../model/deposit-payment-view-model';
|
|
10
10
|
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
11
|
-
import { PaymentTransactionViewModel } from "../../model/payment-transaction-view-model";
|
|
12
11
|
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
13
12
|
export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
13
|
+
paymentService: PaymentService;
|
|
14
14
|
private _transactionService;
|
|
15
15
|
private _sharedService;
|
|
16
|
-
private _paymentService;
|
|
17
16
|
private _transactionEventService;
|
|
18
17
|
readonly icons: typeof Icon;
|
|
19
18
|
readonly transKind: typeof TransactionKind;
|
|
@@ -25,7 +24,6 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
25
24
|
get amount(): number;
|
|
26
25
|
currencyId: number;
|
|
27
26
|
transactionKind: TransactionKind;
|
|
28
|
-
paymentDetails: PaymentTransactionViewModel;
|
|
29
27
|
payed: EventEmitter<void>;
|
|
30
28
|
showClass(): boolean;
|
|
31
29
|
selectedPaymentMethod: PaymentMethod;
|
|
@@ -34,40 +32,25 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
34
32
|
depositPayments: DepositPaymentViewModel[];
|
|
35
33
|
cashRegisters: any[];
|
|
36
34
|
showCashRegisters: boolean;
|
|
37
|
-
showKeyPad: boolean;
|
|
38
35
|
showPspQrCode: boolean;
|
|
39
36
|
qrCodeImage: string;
|
|
40
37
|
showLoader: boolean;
|
|
41
38
|
amountToPay: number;
|
|
42
|
-
statusMessage: string;
|
|
43
39
|
private _amount;
|
|
44
40
|
private _paymentStatusInterval;
|
|
45
|
-
private _paymentStatusPollIntervalMs;
|
|
46
|
-
private _paymentStatusMaxPollInterval;
|
|
47
|
-
private _paymentStatusPollIntervalCount;
|
|
48
|
-
private _paymentResult;
|
|
49
41
|
private _subs;
|
|
50
|
-
constructor(_transactionService: TransactionService, _sharedService: SharedService,
|
|
42
|
+
constructor(paymentService: PaymentService, _transactionService: TransactionService, _sharedService: SharedService, _transactionEventService: TransactionEventService);
|
|
51
43
|
ngOnInit(): Promise<void>;
|
|
52
44
|
ngOnDestroy(): void;
|
|
53
45
|
paymentMethodSelected(method: PaymentMethod): void;
|
|
54
46
|
cashRegisterSelected(cashRegister: CashRegister): void;
|
|
55
|
-
handlePayment(): void;
|
|
56
47
|
handleKeyPadModelChange(model: number): void;
|
|
57
48
|
private _getDepositPaymentInfo;
|
|
58
49
|
private _calculateAmountToPay;
|
|
59
|
-
private _dataUriToBase64;
|
|
60
|
-
private _waitForPaymentStatus;
|
|
61
|
-
private _waitForPinPaymentStatus;
|
|
62
50
|
private _clearInterval;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @private
|
|
66
|
-
*/
|
|
67
51
|
private _prepareCashRegisters;
|
|
68
52
|
private _getCashRegisters;
|
|
69
53
|
private _getPaymentMethods;
|
|
70
|
-
private _handlePayment;
|
|
71
|
-
private _doPayment;
|
|
72
54
|
private _getToPayDetails;
|
|
55
|
+
handlePayment(): void;
|
|
73
56
|
}
|
|
@@ -26,6 +26,7 @@ export declare class TransactionComponent implements OnDestroy {
|
|
|
26
26
|
readonly categories: typeof TransactionTypeCategory;
|
|
27
27
|
readonly viewModes: typeof ContentViewMode;
|
|
28
28
|
readonly icons: typeof Icon;
|
|
29
|
+
screenWidth: number;
|
|
29
30
|
sidePanelComponents: QueryList<TransactionLineSidePanelComponent>;
|
|
30
31
|
relation: RelationAnyType;
|
|
31
32
|
set transaction(value: TransactionInfoResponse);
|
|
@@ -38,6 +39,7 @@ export declare class TransactionComponent implements OnDestroy {
|
|
|
38
39
|
showQuickAccess: boolean;
|
|
39
40
|
showButtonBar: boolean;
|
|
40
41
|
showClass(): boolean;
|
|
42
|
+
onResize(event: any): void;
|
|
41
43
|
activeViewMode: ContentViewMode;
|
|
42
44
|
activeCategory: TransactionTypeCategory;
|
|
43
45
|
sidePanelTransactionLine: TransactionLineInfo;
|
|
@@ -77,6 +79,7 @@ export declare class TransactionComponent implements OnDestroy {
|
|
|
77
79
|
showTransactionTextDialog(): void;
|
|
78
80
|
showArticleTextDialog(): void;
|
|
79
81
|
showArticleTextOverviewDialog(): void;
|
|
82
|
+
shouldShowTiles(): boolean;
|
|
80
83
|
private _getTransaction;
|
|
81
84
|
private _hideArticleTextDialog;
|
|
82
85
|
private _hideTransactionTextDialog;
|
|
@@ -6,7 +6,7 @@ $tp-transaction-button-font-weight: 600 !default;
|
|
|
6
6
|
$tp-transaction-button-icon-size: 50% !default;
|
|
7
7
|
$tp-transaction-button-icon-spacer-width: 1px !default;
|
|
8
8
|
$tp-transaction-button-height: $tp-transaction-default-button-height !default;
|
|
9
|
-
$tp-transaction-button-background-color: $tp-default-background
|
|
9
|
+
$tp-transaction-button-background-color: $tp-default-background !default;
|
|
10
10
|
$tp-transaction-button-border-color: $tp-color-border !default;
|
|
11
11
|
$tp-transaction-button-column-gap: 15px !default;
|
|
12
12
|
$tp-transaction-button-padding: 0 10px !default;
|
|
@@ -28,6 +28,21 @@
|
|
|
28
28
|
display: flex;
|
|
29
29
|
column-gap: 10px;
|
|
30
30
|
|
|
31
|
+
.cash-register-relation-details {
|
|
32
|
+
display: flex;
|
|
33
|
+
column-gap: 50px;
|
|
34
|
+
|
|
35
|
+
.relation-details-block {
|
|
36
|
+
display: flex;
|
|
37
|
+
row-gap: 5px;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
|
|
40
|
+
.title {
|
|
41
|
+
color: #b4b6c9
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
31
46
|
.cash-register-header-button {
|
|
32
47
|
width: 136px;
|
|
33
48
|
height: 30px;
|
|
@@ -107,18 +122,18 @@
|
|
|
107
122
|
.cash-register-payment-wrapper {
|
|
108
123
|
display: flex;
|
|
109
124
|
flex-direction: column;
|
|
110
|
-
row-gap:
|
|
125
|
+
row-gap: 50px;
|
|
111
126
|
|
|
112
127
|
.cash-register-payment-methods-wrapper {
|
|
113
128
|
display: grid;
|
|
114
|
-
grid-template-columns:
|
|
129
|
+
grid-template-columns: 1fr 1fr;
|
|
115
130
|
grid-gap: 5px;
|
|
116
|
-
padding: 8px;
|
|
117
131
|
border-radius: 8px;
|
|
118
132
|
background: $tp-payment-amount-background-color;
|
|
119
133
|
|
|
120
134
|
.co-tile-wrapper {
|
|
121
135
|
min-height: 70px;
|
|
136
|
+
cursor: pointer;
|
|
122
137
|
}
|
|
123
138
|
}
|
|
124
139
|
|
|
@@ -5,3 +5,5 @@
|
|
|
5
5
|
@import "../../payment-to-pay/style/material";
|
|
6
6
|
@import "../transaction-cash-register-dialog/style/material";
|
|
7
7
|
@import "../transaction-cash-register-order-receipt-dialog/style/material";
|
|
8
|
+
@import "../transaction-cash-register-link-relation/style/material";
|
|
9
|
+
@import "../transaction-cash-register-payment-dialog/style/material";
|
|
@@ -20,6 +20,7 @@ export declare class TransactionCashRegisterDialogComponent extends TransactionB
|
|
|
20
20
|
emailLayouts: ReportLayoutSelectionEmail[];
|
|
21
21
|
selectedPrinterLayout: ReportLayoutSelectionPrint;
|
|
22
22
|
selectedEmailLayout: ReportLayoutSelectionEmail;
|
|
23
|
+
dialogVisible: boolean;
|
|
23
24
|
showClass(): boolean;
|
|
24
25
|
ngOnInit(): void;
|
|
25
26
|
cashRegisterSelected(cashRegister: CashRegister): void;
|
|
@@ -33,4 +34,6 @@ export declare class TransactionCashRegisterDialogComponent extends TransactionB
|
|
|
33
34
|
handlePrinterChanged(printer: Printer): void;
|
|
34
35
|
private _getPrinterLayouts;
|
|
35
36
|
private _getEmailLayouts;
|
|
37
|
+
private _checkDefaultParameters;
|
|
38
|
+
private _prepareDialogData;
|
|
36
39
|
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
+
import { Relation } from "@colijnit/relationapi/build/model/relation.bo";
|
|
4
|
+
import { CheckoutOverviewRelationEditComponent } from "../../checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component";
|
|
5
|
+
export declare class TransactionCashRegisterLinkRelationComponent extends TransactionBaseComponent {
|
|
6
|
+
checkoutRelation: CheckoutOverviewRelationEditComponent;
|
|
7
|
+
cancelClick: EventEmitter<void>;
|
|
8
|
+
deliveryAddressNawNr: number;
|
|
9
|
+
invoiceAddressNawNr: number;
|
|
10
|
+
showClass(): boolean;
|
|
11
|
+
transactionServiceRelation(): Relation;
|
|
12
|
+
handleDeliveryAddressChange(nawNr: number): void;
|
|
13
|
+
handleInvoiceAddressChange(nawNr: number): void;
|
|
14
|
+
handleRelationChange(relation: Relation): void;
|
|
15
|
+
saveRelation(): Promise<boolean>;
|
|
16
|
+
handleSaveRelation(): void;
|
|
17
|
+
handleCancelClick(): void;
|
|
18
|
+
}
|
package/lib/component/transaction-cash-register-order/transaction-cash-register-order.component.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { CreateCashRegisterOrderRequest } from "@colijnit/transactionapi/build/m
|
|
|
12
12
|
import { TransactionScreenConfigurationService } from "../../service/transaction-screen-configuration.service";
|
|
13
13
|
import { PaymentTransactionViewModel } from "../../model/payment-transaction-view-model";
|
|
14
14
|
import { AddProductComponent } from "../add-product/add-product.component";
|
|
15
|
+
import { Relation } from "@colijnit/relationapi/build/model/relation.bo";
|
|
15
16
|
export declare class TransactionCashRegisterOrderComponent extends TransactionBaseComponent implements OnInit {
|
|
16
17
|
transactionEventService: TransactionEventService;
|
|
17
18
|
iconCacheService: IconCacheService;
|
|
@@ -26,21 +27,21 @@ export declare class TransactionCashRegisterOrderComponent extends TransactionBa
|
|
|
26
27
|
paymentMethods: PaymentViewmodel[];
|
|
27
28
|
paymentMethodIdx: number;
|
|
28
29
|
showCashRegisterDialog: boolean;
|
|
29
|
-
showReceiptDialog: boolean;
|
|
30
30
|
showDiscountDialog: boolean;
|
|
31
|
+
showLinkRelationDialog: boolean;
|
|
32
|
+
showCashRegisterPaymentDialog: boolean;
|
|
31
33
|
cashRegisterPaymentDetails: PaymentTransactionViewModel;
|
|
32
34
|
private _subs;
|
|
33
35
|
showClass(): boolean;
|
|
34
36
|
constructor(transactionEventService: TransactionEventService, iconCacheService: IconCacheService, transactionScreenConfigurationService: TransactionScreenConfigurationService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _transactionService: TransactionService, _paymentService: PaymentService);
|
|
35
37
|
ngOnInit(): void;
|
|
36
38
|
handleAddArticle(articleNr: string, quantity?: number): Promise<void>;
|
|
37
|
-
handleKeyPadModelChange(model: number): void;
|
|
38
|
-
handlePayment(): void;
|
|
39
39
|
paymentMethodSelected(method: PaymentMethod, index: number): void;
|
|
40
40
|
openDiscountDialog(event: MouseEvent): void;
|
|
41
41
|
private _getPaymentMethods;
|
|
42
|
-
handleFinishedPayment(): void;
|
|
43
42
|
handlePaymentDetailsSelected(paymentDetailsSelected: PaymentTransactionViewModel): void;
|
|
44
|
-
handleReceiptOptionSelected(): void;
|
|
45
43
|
handleCreatedCashRegisterOrderRequest(request: CreateCashRegisterOrderRequest): void;
|
|
44
|
+
openLinkRelationDialog(): void;
|
|
45
|
+
handlePaymentDone(): Promise<void>;
|
|
46
|
+
transactionRelation(): Relation;
|
|
46
47
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
3
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
4
|
+
import { PaymentService } from "../../../../service/payment.service";
|
|
5
|
+
import { TransactionService } from "../../../../service/transaction.service";
|
|
6
|
+
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
7
|
+
export declare class TransactionCashRegisterPaymentCashComponent {
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
transactionService: TransactionService;
|
|
10
|
+
private _paymentService;
|
|
11
|
+
readonly icons: typeof Icon;
|
|
12
|
+
readonly transKind: typeof TransactionKind;
|
|
13
|
+
constructor(iconCacheService: IconCacheService, transactionService: TransactionService, _paymentService: PaymentService);
|
|
14
|
+
orderTotal: number;
|
|
15
|
+
amountToPay: number;
|
|
16
|
+
toCashRegisterOrderClicked: EventEmitter<void>;
|
|
17
|
+
changePaymentMethodClicked: EventEmitter<void>;
|
|
18
|
+
confirmPaymentClicked: EventEmitter<void>;
|
|
19
|
+
handleModelChange(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { TransactionBaseComponent } from "../../../core/base/transaction-base.component";
|
|
3
|
+
import { PaymentTransactionViewModel } from "../../../../model/payment-transaction-view-model";
|
|
4
|
+
import { SafeHtml } from "@angular/platform-browser";
|
|
5
|
+
export declare class TransactionCashRegisterPaymentDoneComponent extends TransactionBaseComponent implements OnInit {
|
|
6
|
+
cashRegisterPaymentDetails: PaymentTransactionViewModel;
|
|
7
|
+
handleReceiptOptionSelected: EventEmitter<void>;
|
|
8
|
+
receiptOptions: {
|
|
9
|
+
title: string;
|
|
10
|
+
iconData: SafeHtml;
|
|
11
|
+
}[];
|
|
12
|
+
disableInput: boolean;
|
|
13
|
+
emailAddressList: string[];
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
emailReceipt(): void;
|
|
16
|
+
printReceipt(): void;
|
|
17
|
+
noPrintReceipt(): void;
|
|
18
|
+
handleClickReceipt(title: string): void;
|
|
19
|
+
private _getDefaultEmailAddressListForPosReceipt;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { PaymentViewmodel } from "../../../../model/payment.viewmodel";
|
|
3
|
+
import { TransactionService } from "../../../../service/transaction.service";
|
|
4
|
+
import { PaymentService } from "../../../../service/payment.service";
|
|
5
|
+
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
6
|
+
export declare class TransactionCashRegisterPaymentMethodComponent implements OnInit {
|
|
7
|
+
protected transactionService: TransactionService;
|
|
8
|
+
private _paymentService;
|
|
9
|
+
readonly transKind: typeof TransactionKind;
|
|
10
|
+
orderTotal: number;
|
|
11
|
+
paymentMethodChanged: EventEmitter<PaymentViewmodel>;
|
|
12
|
+
paymentMethods: PaymentViewmodel[];
|
|
13
|
+
constructor(transactionService: TransactionService, _paymentService: PaymentService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
private _getPaymentMethods;
|
|
16
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
@include export-module('cc-transaction-cash-register-payment-dialog-layout') {
|
|
2
|
+
.co-transaction-cash-register-payment-dialog {
|
|
3
|
+
|
|
4
|
+
.title-wrapper {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dialog-content {
|
|
9
|
+
width: 90vw;
|
|
10
|
+
height: 90vh;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.receipt-content-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
column-gap: 15px;
|
|
16
|
+
margin-top: 25px;
|
|
17
|
+
|
|
18
|
+
.receipt-option {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
grid-column-gap: 10px;
|
|
22
|
+
column-gap: 10px;
|
|
23
|
+
border: 1px solid #1a73e8;
|
|
24
|
+
color: #1a73e8;
|
|
25
|
+
padding: 10px;
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
min-width: 140px;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
background-color: rgba(26, 115, 232, 0.21);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.disabled {
|
|
36
|
+
cursor: default;
|
|
37
|
+
filter: grayscale(1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.co-icon {
|
|
41
|
+
width: 20px;
|
|
42
|
+
height: 20px;
|
|
43
|
+
svg { // for fontawesome icons
|
|
44
|
+
fill: #1a73e8;
|
|
45
|
+
}
|
|
46
|
+
& [fill] { // for own icons
|
|
47
|
+
fill: #1a73e8;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
.dialog-content-wrapper {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
height: 100%;
|
|
58
|
+
align-items: center;
|
|
59
|
+
|
|
60
|
+
.image-wrapper {
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.payment-wrapper {
|
|
65
|
+
display: flex;
|
|
66
|
+
column-gap: 40px;
|
|
67
|
+
height: inherit;
|
|
68
|
+
|
|
69
|
+
.payment-content {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
row-gap: 20px;
|
|
73
|
+
height: inherit;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
|
|
76
|
+
.payment-text {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
|
|
80
|
+
.total-amount-text {
|
|
81
|
+
font-size: 18px;
|
|
82
|
+
font-weight: bold;
|
|
83
|
+
margin-bottom: 10px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.to-pay-wrapper {
|
|
88
|
+
display: flex;
|
|
89
|
+
column-gap: 4%;
|
|
90
|
+
|
|
91
|
+
.price-display {
|
|
92
|
+
position: relative;
|
|
93
|
+
border: 1px solid #1A73E8;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
height: 50px;
|
|
98
|
+
width: 78%;
|
|
99
|
+
|
|
100
|
+
.payed-text {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 5px;
|
|
103
|
+
left: 5px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.to-pay-amount {
|
|
107
|
+
font-size: 18px;
|
|
108
|
+
font-weight: bold;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.confirm-action-button {
|
|
113
|
+
border: 1px solid #1A73E8;
|
|
114
|
+
width: 18%;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
.co-icon {
|
|
120
|
+
svg { // for fontawesome icons
|
|
121
|
+
fill: #1A73E8;
|
|
122
|
+
}
|
|
123
|
+
& [fill] { // for own icons
|
|
124
|
+
fill: #1A73E8;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.default-buttons {
|
|
131
|
+
display: flex;
|
|
132
|
+
column-gap: 10px;
|
|
133
|
+
|
|
134
|
+
.co-button {
|
|
135
|
+
color: #1A73E8;
|
|
136
|
+
background: white;
|
|
137
|
+
border-radius: 0;
|
|
138
|
+
border: 1px solid #1A73E8;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.numpad-wrapper {
|
|
144
|
+
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.payment-deposit {
|
|
148
|
+
grid-column: 1 / 1;
|
|
149
|
+
grid-row: 2 / 2;
|
|
150
|
+
&.no-display {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.change-method-wrapper {
|
|
156
|
+
height: 80%;
|
|
157
|
+
row-gap: 20px;
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cash-register-payment-methods-wrapper {
|
|
163
|
+
display: grid;
|
|
164
|
+
grid-template-columns: 1fr 1fr;
|
|
165
|
+
grid-gap: 5px;
|
|
166
|
+
border-radius: 8px;
|
|
167
|
+
background: $tp-payment-amount-background-color;
|
|
168
|
+
|
|
169
|
+
.co-tile-wrapper {
|
|
170
|
+
min-height: 70px;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { PaymentViewmodel } from "../../../model/payment.viewmodel";
|
|
3
|
+
import { TransactionCashRegisterPaymentState } from "./transaction-cash-register-payment-state.enum";
|
|
4
|
+
import { PaymentService } from "../../../service/payment.service";
|
|
5
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
6
|
+
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
7
|
+
export declare class TransactionCashRegisterPaymentDialogComponent implements OnInit {
|
|
8
|
+
paymentService: PaymentService;
|
|
9
|
+
private _transactionService;
|
|
10
|
+
private _transactionEventService;
|
|
11
|
+
readonly paymentStates: typeof TransactionCashRegisterPaymentState;
|
|
12
|
+
set paymentViewModel(paymentViewModel: PaymentViewmodel);
|
|
13
|
+
closeDialog: EventEmitter<void>;
|
|
14
|
+
paymentState: TransactionCashRegisterPaymentState;
|
|
15
|
+
orderTotal: number;
|
|
16
|
+
private _paymentViewModel;
|
|
17
|
+
private _subs;
|
|
18
|
+
showClass(): boolean;
|
|
19
|
+
constructor(paymentService: PaymentService, _transactionService: TransactionService, _transactionEventService: TransactionEventService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
currentDate(): Date;
|
|
22
|
+
handleChangePaymentMethod(paymentViewModel: PaymentViewmodel): void;
|
|
23
|
+
handleCloseDialog(): void;
|
|
24
|
+
changePaymentMethodClicked(): void;
|
|
25
|
+
private _setState;
|
|
26
|
+
handlePayment(): void;
|
|
27
|
+
handleReceiptOptionSelected(): void;
|
|
28
|
+
}
|