@colijnit/transaction 12.1.55 → 12.1.56
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 +659 -388
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +221 -219
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +222 -220
- package/esm2015/lib/assets/dictionary/text.properties.js +3 -1
- package/esm2015/lib/component/confirmation-dialog/confirmation-dialog.component.js +2 -2
- package/esm2015/lib/component/core/base/components/characteristic-answer/characteristic-answer.component.js +2 -2
- package/esm2015/lib/component/core/base/components/warehouse/warehouse.component.js +2 -2
- package/esm2015/lib/component/core/base/transaction-base.component.js +2 -2
- package/esm2015/lib/component/core/base/transaction-line-base.component.js +5 -1
- package/esm2015/lib/component/dialog/dialog-header-search/dialog-header-search.component.js +2 -2
- package/esm2015/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.component.js +4 -4
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/dialog-transaction-line-commission-code.component.js +2 -2
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-discount/dialog-transaction-line-discount.component.js +2 -2
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.js +2 -2
- package/esm2015/lib/component/discount/discount.component.js +2 -2
- package/esm2015/lib/component/down-payment/down-payment.component.js +71 -0
- package/esm2015/lib/component/down-payment/down-payment.module.js +25 -0
- package/esm2015/lib/component/payment/payment.component.js +54 -35
- package/esm2015/lib/component/payment/payment.module.js +4 -2
- package/esm2015/lib/component/relation/relation-addresses/relation-addresses.component.js +2 -2
- package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.component.js +2 -2
- package/esm2015/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.component.js +2 -2
- package/esm2015/lib/component/transaction/transaction.component.js +14 -4
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +3 -3
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +27 -6
- package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.js +5 -5
- package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.js +5 -5
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service.js +34 -23
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +14 -14
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.module.js +4 -3
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +13 -13
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.js +10 -4
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-location-button.component.js +4 -2
- package/esm2015/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.js +2 -2
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +7 -4
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +23 -6
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.module.js +4 -3
- package/esm2015/lib/component/transaction-totals/transaction-totals.component.js +3 -3
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/model/down-payment-view-model.js +7 -0
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/service/dynamic-component.service.js +4 -1
- package/esm2015/lib/service/payment.service.js +39 -4
- package/esm2015/lib/service/transaction-connector-adapter.service.js +14 -1
- package/fesm2015/colijnit-transaction.js +410 -172
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/components/characteristic-answer/style/_layout.scss +1 -1
- package/lib/component/core/base/components/warehouse/style/_layout.scss +1 -1
- package/lib/component/core/base/transaction-line-base.component.d.ts +1 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-delivery-method/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-discount/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-price-list/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/style/_layout.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/style/_material-definition.scss +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_layout.scss +1 -1
- package/lib/component/down-payment/down-payment.component.d.ts +16 -0
- package/lib/component/down-payment/down-payment.module.d.ts +2 -0
- package/lib/component/down-payment/style/_layout.scss +62 -0
- package/lib/component/down-payment/style/_material-definition.scss +20 -0
- package/lib/component/down-payment/style/_theme.scss +4 -0
- package/lib/component/down-payment/style/material.scss +4 -0
- package/lib/component/payment/payment.component.d.ts +8 -1
- package/lib/component/payment/style/_layout.scss +26 -5
- package/lib/component/payment/style/_material-definition.scss +3 -0
- package/lib/component/payment/style/material.scss +1 -0
- package/lib/component/relation/relation-addresses/style/_layout.scss +1 -1
- package/lib/component/transaction/transaction.component.d.ts +6 -2
- package/lib/component/transaction-button-bar/style/_material-definition.scss +2 -1
- package/lib/component/transaction-button-bar/style/_theme.scss +21 -0
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +7 -1
- package/lib/component/transaction-line/transaction-base-line/style/_layout.scss +15 -3
- package/lib/component/transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service.d.ts +2 -1
- package/lib/component/transaction-line/transaction-receive-goods-line/style/_layout.scss +1 -2
- package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.d.ts +3 -3
- package/lib/component/transaction-line-action-buttons/style/_layout.scss +29 -18
- package/lib/component/transaction-line-action-buttons/style/_material-definition.scss +14 -8
- package/lib/component/transaction-line-action-buttons/style/_theme.scss +4 -4
- package/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.d.ts +2 -0
- package/lib/component/transaction-line-image-and-description/style/_layout.scss +1 -0
- package/lib/component/transaction-line-image-and-description/style/_material-definition.scss +1 -0
- package/lib/component/transaction-line-image-and-description/style/_theme.scss +3 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +6 -4
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +7 -2
- package/lib/component/transaction-receiving-goods-details/style/_layout.scss +10 -7
- package/lib/component/transaction-receiving-goods-details/style/_material-definition.scss +3 -3
- package/lib/component/transaction-receiving-goods-history/style/_layout.scss +1 -1
- package/lib/enum/icon.enum.d.ts +1 -0
- package/lib/model/down-payment-view-model.d.ts +7 -0
- package/lib/service/dynamic-component.service.d.ts +2 -1
- package/lib/service/payment.service.d.ts +7 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +2 -0
- package/lib/style/_variables.scss +18 -2
- package/lib/style/transaction-globals.scss +4 -3
- package/package.json +3 -6
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
.dialog-footer-button-wrapper {
|
|
9
9
|
display: flex;
|
|
10
|
-
justify-content:
|
|
10
|
+
justify-content: $tp-transaction-dialog-footer-justify-content;
|
|
11
11
|
}
|
|
12
12
|
.co-transaction-line-checkbox-list .virtual-scroll-container {
|
|
13
13
|
height: $tp-dialog-transaction-line-warehouse-cc-commission-code-height;
|
|
@@ -3,7 +3,7 @@ $tp-dialog-transaction-line-warehouse-cc-font-size: $tp-font-size !default;
|
|
|
3
3
|
$tp-dialog-transaction-line-warehouse-cc-font-color: $tp-color-font !default;
|
|
4
4
|
$tp-dialog-transaction-line-warehouse-cc-min-width: 500px !default;
|
|
5
5
|
$tp-dialog-transaction-line-warehouse-cc-commission-code-height: 100px !default;
|
|
6
|
-
$tp-dialog-transaction-line-warehouse-cc-quantity-width:
|
|
6
|
+
$tp-dialog-transaction-line-warehouse-cc-quantity-width: 100px !default;
|
|
7
7
|
$tp-dialog-transaction-line-warehouse-cc-section-margin: 20px 0 !default;
|
|
8
8
|
$tp-dialog-transaction-line-warehouse-cc-section-label-margin: 10px 0 !default;
|
|
9
9
|
$tp-dialog-transaction-line-warehouse-cc-section-label-font-size: $tp-font-size !default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { DownPaymentViewModel } from "../../model/down-payment-view-model";
|
|
3
|
+
import { PaymentViewmodel } from "../../model/payment.viewmodel";
|
|
4
|
+
import { PaymentService } from "../../service/payment.service";
|
|
5
|
+
export declare class DownPaymentComponent implements OnInit {
|
|
6
|
+
private _paymentService;
|
|
7
|
+
transactionUuid: string;
|
|
8
|
+
downPayments: DownPaymentViewModel[];
|
|
9
|
+
showLoader: boolean;
|
|
10
|
+
showClass(): boolean;
|
|
11
|
+
paymentMethods: PaymentViewmodel[];
|
|
12
|
+
constructor(_paymentService: PaymentService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
private _getDownpaymentInfo;
|
|
15
|
+
private _prepareData;
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@include export-module('cc-down-payment-layout') {
|
|
2
|
+
.co-down-payment {
|
|
3
|
+
position: relative;
|
|
4
|
+
font-family: $tp-down-payment-font-family;
|
|
5
|
+
font-size: $tp-down-payment-font-size;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
row-gap: $tp-down-payment-row-gap;
|
|
9
|
+
.co-tile {
|
|
10
|
+
.co-tile-wrapper {
|
|
11
|
+
border: none;
|
|
12
|
+
min-width: initial;
|
|
13
|
+
min-height: initial;
|
|
14
|
+
width: auto;
|
|
15
|
+
height: auto;
|
|
16
|
+
.co-tile-select-wrapper {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.loader {
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 50%;
|
|
24
|
+
left: 50%;
|
|
25
|
+
transform: translate(-50%, -50%);
|
|
26
|
+
}
|
|
27
|
+
.down-payment-payments-wrapper {
|
|
28
|
+
padding: $tp-down-payment-payments-padding;
|
|
29
|
+
background-color: $tp-down-payment-payments-background-color;
|
|
30
|
+
border-style: $tp-down-payment-payments-border-style;
|
|
31
|
+
border-color: $tp-down-payment-payments-border-color;
|
|
32
|
+
border-width: $tp-down-payment-payments-border-width;
|
|
33
|
+
border-radius: $tp-down-payment-payments-border-radius;
|
|
34
|
+
}
|
|
35
|
+
.down-payment-payments {
|
|
36
|
+
display: flex;
|
|
37
|
+
height: $tp-down-payment-payments-height;
|
|
38
|
+
padding: $tp-down-payment-payment-padding;
|
|
39
|
+
border-style: $tp-down-payment-payment-border-style;
|
|
40
|
+
border-color: $tp-down-payment-payment-border-color;
|
|
41
|
+
border-width: $tp-down-payment-payment-border-width;
|
|
42
|
+
border-radius: $tp-down-payment-payment-border-radius;
|
|
43
|
+
flex-direction: row;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
}
|
|
47
|
+
.down-payment-amount-wrapper {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
align-items: flex-end;
|
|
51
|
+
row-gap: $tp-down-payment-amount-row-gap;
|
|
52
|
+
.down-payment-amount {
|
|
53
|
+
font-size: $tp-down-payment-amount-font-size;
|
|
54
|
+
font-weight: $tp-down-payment-amount-font-weight;
|
|
55
|
+
}
|
|
56
|
+
.down-payment-date {
|
|
57
|
+
font-size: $tp-down-payment-date-font-size;
|
|
58
|
+
font-weight: $tp-down-payment-date-font-weight;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
$tp-down-payment-font-family: $tp-font-family !default;
|
|
2
|
+
$tp-down-payment-font-size: $tp-font-size !default;
|
|
3
|
+
$tp-down-payment-row-gap: 20px !default;
|
|
4
|
+
$tp-down-payment-payments-height: 50px !default;
|
|
5
|
+
$tp-down-payment-payments-padding: 0 !default;
|
|
6
|
+
$tp-down-payment-payments-background-color: white !default;
|
|
7
|
+
$tp-down-payment-payments-border-style: solid !default;
|
|
8
|
+
$tp-down-payment-payments-border-width: 1px !default;
|
|
9
|
+
$tp-down-payment-payments-border-color: $tp-color-border !default;
|
|
10
|
+
$tp-down-payment-payments-border-radius: 5px !default;
|
|
11
|
+
$tp-down-payment-amount-font-size: $tp-font-size !default;
|
|
12
|
+
$tp-down-payment-amount-font-weight: bold !default;
|
|
13
|
+
$tp-down-payment-amount-row-gap: 10px !default;
|
|
14
|
+
$tp-down-payment-date-font-size: $tp-font-size-small !default;
|
|
15
|
+
$tp-down-payment-date-font-weight: normal !default;
|
|
16
|
+
$tp-down-payment-payment-padding: 0 20px !default;
|
|
17
|
+
$tp-down-payment-payment-border-style: solid !default;
|
|
18
|
+
$tp-down-payment-payment-border-width: 0 0 1px 0 !default;
|
|
19
|
+
$tp-down-payment-payment-border-color: $tp-color-border !default;
|
|
20
|
+
$tp-down-payment-payment-border-radius: 0 !default;
|
|
@@ -6,19 +6,22 @@ import { PaymentService } from "../../service/payment.service";
|
|
|
6
6
|
import { SharedService } from "../../service/shared.service";
|
|
7
7
|
import { PaymentMethod } from "@colijnit/transactionapi/build/model/payment-method.bo";
|
|
8
8
|
import { PaymentViewmodel } from "../../model/payment.viewmodel";
|
|
9
|
+
import { DownPaymentViewModel } from "../../model/down-payment-view-model";
|
|
9
10
|
export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
10
11
|
private _transactionService;
|
|
11
12
|
private _sharedService;
|
|
12
13
|
private _paymentService;
|
|
13
14
|
readonly icons: typeof Icon;
|
|
14
15
|
transactionUuid: string;
|
|
15
|
-
amount: number;
|
|
16
|
+
set amount(value: number);
|
|
17
|
+
get amount(): number;
|
|
16
18
|
currencyId: number;
|
|
17
19
|
payed: EventEmitter<void>;
|
|
18
20
|
showClass(): boolean;
|
|
19
21
|
paymentMethodIdx: number;
|
|
20
22
|
cashRegisterIdx: number;
|
|
21
23
|
paymentMethods: PaymentViewmodel[];
|
|
24
|
+
downPayments: DownPaymentViewModel[];
|
|
22
25
|
cashRegisters: any[];
|
|
23
26
|
showCashRegisters: boolean;
|
|
24
27
|
showKeyPad: boolean;
|
|
@@ -26,6 +29,9 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
26
29
|
currentPaymentMethod: PaymentMethod;
|
|
27
30
|
qrCodeImage: string;
|
|
28
31
|
showLoader: boolean;
|
|
32
|
+
showLoaderDownPayments: boolean;
|
|
33
|
+
amountToPay: number;
|
|
34
|
+
private _amount;
|
|
29
35
|
private _paymentStatusInterval;
|
|
30
36
|
private _paymentStatusPollIntervalMs;
|
|
31
37
|
private _paymentStatusMaxPollInterval;
|
|
@@ -38,6 +44,7 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
38
44
|
cashRegisterSelected(cashRegister: CashRegister, index: number): void;
|
|
39
45
|
handlePayment(): void;
|
|
40
46
|
handleKeyPadModelChange(model: number): void;
|
|
47
|
+
private _getDownpaymentInfo;
|
|
41
48
|
private _dataUriToBase64;
|
|
42
49
|
private _waitForPaymentStatus;
|
|
43
50
|
private _clearInterval;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
width: $tp-payment-tile-width;
|
|
11
11
|
height: $tp-payment-tile-height;
|
|
12
12
|
}
|
|
13
|
-
.payment-wrapper {
|
|
13
|
+
.payment-wrapper, .payment-cash-register-wrapper {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
row-gap: $tp-payment-row-gap;
|
|
@@ -28,15 +28,24 @@
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
.payment-methods {
|
|
31
|
+
position: relative;
|
|
32
|
+
min-height: 50px;
|
|
31
33
|
display: flex;
|
|
32
34
|
flex-direction: row;
|
|
33
|
-
column-gap:
|
|
35
|
+
column-gap: $tp-payment-methods-column-gap;
|
|
36
|
+
row-gap: $tp-payment-methods-row-gap;
|
|
34
37
|
flex-wrap: wrap;
|
|
38
|
+
.loader {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 50%;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translate(-50%, -50%);
|
|
43
|
+
}
|
|
35
44
|
}
|
|
36
45
|
.payment-to-pay-wrapper {
|
|
37
46
|
display: grid;
|
|
38
47
|
grid-template-columns: auto auto;
|
|
39
|
-
grid-template-rows: auto auto;
|
|
48
|
+
grid-template-rows: auto auto auto;
|
|
40
49
|
row-gap: 10px;
|
|
41
50
|
column-gap: 10px;
|
|
42
51
|
}
|
|
@@ -52,21 +61,33 @@
|
|
|
52
61
|
display: flex;
|
|
53
62
|
align-items: center;
|
|
54
63
|
justify-content: center;
|
|
64
|
+
height: $tp-payment-amount-height;
|
|
55
65
|
border: $tp-payment-amount-border;
|
|
56
66
|
font-family: $tp-payment-amount-font-family;
|
|
57
67
|
font-size: $tp-payment-amount-font-size;
|
|
58
68
|
font-weight: $tp-payment-amount-font-weight;
|
|
59
69
|
border-radius: 5px;
|
|
60
|
-
height: 100%;
|
|
61
70
|
width: 100%;
|
|
62
71
|
}
|
|
63
|
-
|
|
72
|
+
|
|
73
|
+
.payment-downpayment {
|
|
64
74
|
grid-column: 1 / 1;
|
|
65
75
|
grid-row: 2 / 2;
|
|
76
|
+
&.no-display {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.payment-to-pay-button {
|
|
82
|
+
grid-column: 1 / 1;
|
|
83
|
+
grid-row: 3 / 3;
|
|
66
84
|
.co-button {
|
|
67
85
|
justify-content: center;
|
|
68
86
|
border-radius: 5px;
|
|
69
87
|
}
|
|
88
|
+
&.no-downpayments {
|
|
89
|
+
grid-row: 2 / 2;
|
|
90
|
+
}
|
|
70
91
|
}
|
|
71
92
|
.payment-to-pay-keypad {
|
|
72
93
|
grid-column: 2 / 2;
|
|
@@ -7,6 +7,9 @@ $tp-payment-header-font-size: $tp-font-size !default;
|
|
|
7
7
|
$tp-payment-header-font-weight: bold !default;
|
|
8
8
|
$tp-payment-header-extra-font-color: $tp-color-colijn-orange !default;
|
|
9
9
|
$tp-payment-row-gap: 20px !default;
|
|
10
|
+
$tp-payment-methods-column-gap: 5px !default;
|
|
11
|
+
$tp-payment-methods-row-gap: 5px !default;
|
|
12
|
+
$tp-payment-amount-height: 60px !default;
|
|
10
13
|
$tp-payment-amount-font-family: $tp-font-family !default;
|
|
11
14
|
$tp-payment-amount-font-size: 32px !default;
|
|
12
15
|
$tp-payment-amount-font-weight: bold !default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy } from "@angular/core";
|
|
1
|
+
import { ApplicationRef, OnDestroy, QueryList } from "@angular/core";
|
|
2
2
|
import { TransactionInfoResponse } from "@colijnit/transactionapi/build/model/transaction-info-response.bo";
|
|
3
3
|
import { TransactionService } from "../../service/transaction.service";
|
|
4
4
|
import { ContentViewMode } from "../../enum/content-view-mode.enum";
|
|
@@ -9,11 +9,13 @@ import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transa
|
|
|
9
9
|
import { TransactionBarButton } from "../../model/transaction-bar-button";
|
|
10
10
|
import { TransactionTypeCategory } from "../../enum/transaction-type-category.enum";
|
|
11
11
|
import { DynamicComponentService } from "../../service/dynamic-component.service";
|
|
12
|
+
import { TransactionLineSidePanelComponent } from "../transaction-line-side-panel/transaction-line-side-panel.component";
|
|
12
13
|
import { RelationAnyType } from "../../model/relation-any-type";
|
|
13
14
|
import { TransactionEventService } from "../../service/transaction-event.service";
|
|
14
15
|
export declare class TransactionComponent implements OnDestroy {
|
|
15
16
|
iconCacheService: IconCacheService;
|
|
16
17
|
private _service;
|
|
18
|
+
private _appRef;
|
|
17
19
|
private _dynamicComponentService;
|
|
18
20
|
private _transactionEventService;
|
|
19
21
|
readonly viewModes: typeof ContentViewMode;
|
|
@@ -27,13 +29,15 @@ export declare class TransactionComponent implements OnDestroy {
|
|
|
27
29
|
showQuickAccess: boolean;
|
|
28
30
|
showButtonBar: boolean;
|
|
29
31
|
showClass(): boolean;
|
|
32
|
+
sidePanelComponents: QueryList<TransactionLineSidePanelComponent>;
|
|
30
33
|
activeViewMode: ContentViewMode;
|
|
31
34
|
activeCategory: TransactionTypeCategory;
|
|
32
35
|
sidePanelTransactionLine: TransactionLineInfo;
|
|
36
|
+
sidePanelOpen: boolean;
|
|
33
37
|
private _subs;
|
|
34
38
|
private _transaction;
|
|
35
39
|
private _transactionId;
|
|
36
|
-
constructor(iconCacheService: IconCacheService, _service: TransactionService, _dynamicComponentService: DynamicComponentService, _transactionEventService: TransactionEventService);
|
|
40
|
+
constructor(iconCacheService: IconCacheService, _service: TransactionService, _appRef: ApplicationRef, _dynamicComponentService: DynamicComponentService, _transactionEventService: TransactionEventService);
|
|
37
41
|
ngOnDestroy(): void;
|
|
38
42
|
saveTransactionLine(transactionAddTextLineRequest: TransactionAddTextLineRequest): void;
|
|
39
43
|
handleButtonBarButtonClicked(button: TransactionBarButton): void;
|
|
@@ -5,7 +5,8 @@ $tp-co-transaction-button-bar-button-background-color: white !default;
|
|
|
5
5
|
$tp-co-transaction-button-bar-button-border-radius: 10px !default;
|
|
6
6
|
$tp-co-transaction-button-bar-button-padding: 5px !default;
|
|
7
7
|
$tp-co-transaction-button-bar-button-selected-box-shadow: 0 0 0 1px $tp-color-action inset !default;
|
|
8
|
-
$tp-co-transaction-button-bar-button-selected-box-border:
|
|
8
|
+
$tp-co-transaction-button-bar-button-selected-box-border: none !default;
|
|
9
|
+
$tp-co-transaction-button-bar-button-selected-icon-color: $tp-color-action !default;
|
|
9
10
|
$tp-co-transaction-button-bar-icon-color: $tp-color-font !default;
|
|
10
11
|
$tp-co-transaction-button-bar-icon-size: 20px !default;
|
|
11
12
|
$tp-co-transaction-button-bar-icon-margin: 0 0 5px 0 !default;
|
|
@@ -10,5 +10,26 @@
|
|
|
10
10
|
fill: $tp-co-transaction-button-bar-icon-color;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
+
.button-wrapper {
|
|
14
|
+
.co-transaction-button-bar-icon {
|
|
15
|
+
height: $tp-co-transaction-button-bar-icon-size;
|
|
16
|
+
width: $tp-co-transaction-button-bar-icon-size;
|
|
17
|
+
margin: $tp-co-transaction-button-bar-icon-margin;
|
|
18
|
+
svg {
|
|
19
|
+
height: 100%;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.selected {
|
|
25
|
+
.co-transaction-button-bar-icon {
|
|
26
|
+
svg { // for fontawesome icons
|
|
27
|
+
fill: $tp-co-transaction-button-bar-button-selected-icon-color;
|
|
28
|
+
}
|
|
29
|
+
& [fill] { // for own icons
|
|
30
|
+
fill: $tp-co-transaction-button-bar-button-selected-icon-color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
13
34
|
}
|
|
14
35
|
}
|
|
@@ -3,14 +3,20 @@ import { Icon } from "../../../enum/icon.enum";
|
|
|
3
3
|
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
4
4
|
import { TransactionService } from "../../../service/transaction.service";
|
|
5
5
|
import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
|
|
6
|
+
import { PaymentService } from "../../../service/payment.service";
|
|
6
7
|
export declare class TransactionHeaderPaymentComponent extends TransactionBaseComponent {
|
|
7
8
|
iconService: IconCacheService;
|
|
8
9
|
protected readonly service: TransactionService;
|
|
10
|
+
private _paymentService;
|
|
9
11
|
readonly icons: typeof Icon;
|
|
10
12
|
readonly transactionKind: typeof TransactionKind;
|
|
11
13
|
showClass(): boolean;
|
|
12
14
|
showDialog: boolean;
|
|
13
15
|
showPaymentDialog: boolean;
|
|
14
|
-
|
|
16
|
+
paid: number;
|
|
17
|
+
toPay: number;
|
|
18
|
+
constructor(iconService: IconCacheService, service: TransactionService, _paymentService: PaymentService);
|
|
15
19
|
openPayment(event: MouseEvent): void;
|
|
20
|
+
transactionSet(): void;
|
|
21
|
+
private _getDownpaymentInfo;
|
|
16
22
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
.transaction-line-buttons {
|
|
35
35
|
display: flex;
|
|
36
|
-
align-items:
|
|
36
|
+
align-items: baseline;
|
|
37
37
|
flex-shrink: 0;
|
|
38
38
|
height: $tp-transaction-line-amount-height;
|
|
39
39
|
}
|
|
@@ -68,12 +68,24 @@
|
|
|
68
68
|
.fully-delivered {
|
|
69
69
|
border-color: #e4f9f3;
|
|
70
70
|
background-color: #e5f9f3;
|
|
71
|
-
|
|
71
|
+
|
|
72
|
+
input {
|
|
73
|
+
color: #5fdcb3;
|
|
74
|
+
}
|
|
75
|
+
co-icon [fill] {
|
|
76
|
+
fill: #5fdcb3 !important;
|
|
77
|
+
}
|
|
72
78
|
}
|
|
73
79
|
.partially-delivered {
|
|
74
80
|
border-color: #fde6db;
|
|
75
81
|
background-color: #feece3;
|
|
76
|
-
|
|
82
|
+
|
|
83
|
+
input {
|
|
84
|
+
color: #f8854c;
|
|
85
|
+
}
|
|
86
|
+
co-icon [fill] {
|
|
87
|
+
fill: #f8854c !important;
|
|
88
|
+
}
|
|
77
89
|
}
|
|
78
90
|
&.preview {
|
|
79
91
|
.transaction-line-wrapper {
|
|
@@ -10,6 +10,7 @@ export declare class TransactionReceiveGoodsService {
|
|
|
10
10
|
handleReceiveSelectedPurchaseOrders(value: {
|
|
11
11
|
date: Date;
|
|
12
12
|
id: string;
|
|
13
|
-
}):
|
|
13
|
+
}): Promise<boolean>;
|
|
14
14
|
private _handleAfterCommitReceivedOrders;
|
|
15
|
+
private _handleTransactionLineChanged;
|
|
15
16
|
}
|
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
$tp-transaction-line-button-width
|
|
9
9
|
$tp-transaction-line-button-width
|
|
10
10
|
$tp-transaction-line-button-width
|
|
11
|
-
$tp-transaction-line-button-width
|
|
12
11
|
90px
|
|
13
12
|
30px
|
|
14
13
|
$tp-transaction-line-button-width;
|
|
15
14
|
grid-template-rows: $tp-transaction-line-button-height;
|
|
16
15
|
gap: 0 10px;
|
|
17
16
|
grid-template-areas:
|
|
18
|
-
". . . . . .
|
|
17
|
+
". . . . . .";
|
|
19
18
|
padding: 8px;
|
|
20
19
|
}
|
|
21
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
2
|
import { TransactionLinesLineBaseComponent } from "../../core/base/transaction-lines-line-base.component";
|
|
3
3
|
import { Icon } from "../../../enum/icon.enum";
|
|
4
4
|
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
@@ -6,7 +6,7 @@ import { TransactionService } from "../../../service/transaction.service";
|
|
|
6
6
|
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
7
7
|
import { TransactionReceiveGoodsService } from "./service/transaction-receive-goods.service";
|
|
8
8
|
import { ReceiveGoodViewModel } from "../../../model/receive-good-view-model";
|
|
9
|
-
export declare class TransactionReceiveGoodsLineComponent extends TransactionLinesLineBaseComponent implements OnInit
|
|
9
|
+
export declare class TransactionReceiveGoodsLineComponent extends TransactionLinesLineBaseComponent implements OnInit {
|
|
10
10
|
iconCacheService: IconCacheService;
|
|
11
11
|
service: TransactionService;
|
|
12
12
|
private _transactionService;
|
|
@@ -23,5 +23,5 @@ export declare class TransactionReceiveGoodsLineComponent extends TransactionLin
|
|
|
23
23
|
private _initViewModel;
|
|
24
24
|
handleRowVisible(): Promise<void>;
|
|
25
25
|
changeLineAmount(amount: number): void;
|
|
26
|
-
handleLineClicked(mouseClick:
|
|
26
|
+
handleLineClicked(mouseClick: PointerEvent): void;
|
|
27
27
|
}
|