@colijnit/transaction 12.1.62 → 12.1.64
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 +701 -549
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +250 -249
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +251 -250
- package/esm2015/lib/assets/dictionary/text.properties.js +9 -1
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +8 -4
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +5 -5
- package/esm2015/lib/component/relation/relation-general/relation-general.component.js +3 -1
- package/esm2015/lib/component/transaction-grid/transaction-available-stock-grid/transaction-available-stock-grid.component.js +94 -0
- package/esm2015/lib/component/transaction-grid/transaction-available-stock-grid/transaction-available-stock-grid.module.js +24 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.component.js +6 -5
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +3 -3
- package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +31 -30
- package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.module.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line.component.js +13 -7
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line.module.js +5 -4
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service.js +4 -1
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +4 -4
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price/transaction-line-price.component.js +90 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price/transaction-line-price.module.js +23 -0
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.module.js +4 -4
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +8 -2
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.module.js +4 -2
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +49 -13
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +9 -1
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +25 -18
- package/esm2015/lib/service/pending-reason.service.js +20 -12
- package/esm2015/lib/service/transaction-connector-adapter.service.js +14 -1
- package/esm2015/lib/service/transaction-connector.service.js +6 -1
- package/esm2015/lib/service/transaction.service.js +28 -56
- package/esm2015/public_api.js +2 -1
- package/fesm2015/colijnit-transaction.js +442 -249
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/style/_layout.scss +1 -4
- package/lib/component/checkout/style/_material-definition.scss +3 -3
- package/lib/component/quick-send-button/style/_layout.scss +13 -9
- package/lib/component/quick-send-button/style/_material-definition.scss +5 -4
- package/lib/component/transaction-confirmation-details/style/_layout.scss +8 -9
- package/lib/component/transaction-grid/transaction-available-stock-grid/style/_layout.scss +4 -0
- package/lib/component/transaction-grid/transaction-available-stock-grid/style/_material-definition.scss +0 -0
- package/lib/component/transaction-grid/transaction-available-stock-grid/style/_theme.scss +4 -0
- package/lib/component/transaction-grid/transaction-available-stock-grid/style/material.scss +4 -0
- package/lib/component/transaction-grid/transaction-available-stock-grid/transaction-available-stock-grid.component.d.ts +25 -0
- package/lib/component/transaction-grid/transaction-available-stock-grid/transaction-available-stock-grid.module.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +1 -1
- package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss +1 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +5 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +1 -0
- package/lib/component/transaction-header-fields/transaction-header-branch.component.d.ts +1 -0
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +32 -11
- package/lib/component/transaction-line/transaction-overview-line/style/_layout.scss +8 -0
- package/lib/component/transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service.d.ts +4 -0
- package/lib/component/transaction-line-fields/transaction-line-price/style/_layout.scss +14 -0
- package/lib/component/transaction-line-fields/transaction-line-price/style/_material-definition.scss +0 -0
- package/lib/component/transaction-line-fields/transaction-line-price/style/_theme.scss +4 -0
- package/lib/component/transaction-line-fields/transaction-line-price/style/material.scss +4 -0
- package/lib/component/transaction-line-fields/{transaction-line-price.component.d.ts → transaction-line-price/transaction-line-price.component.d.ts} +3 -2
- package/lib/component/transaction-line-fields/{transaction-line-price.module.d.ts → transaction-line-price/transaction-line-price.module.d.ts} +0 -0
- package/lib/component/transaction-lines/style/material.scss +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_layout.scss +3 -3
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_material-definition.scss +1 -1
- package/lib/component/transaction-receiving-goods-details/style/_layout.scss +0 -1
- package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts +11 -3
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +2 -0
- package/lib/component/transaction-search/style/_material-definition.scss +12 -5
- package/lib/component/transaction-search/transaction-filter-content/style/_layout.scss +1 -6
- package/lib/component/transaction-search/transaction-search-header/style/_layout.scss +37 -26
- package/lib/component/transaction-search/transaction-search-header/style/_theme.scss +4 -1
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.d.ts +1 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +2 -0
- package/lib/service/transaction-connector.service.d.ts +2 -0
- package/lib/service/transaction.service.d.ts +2 -0
- package/package.json +6 -3
- package/public_api.d.ts +1 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +0 -83
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.module.js +0 -23
|
@@ -59,11 +59,8 @@
|
|
|
59
59
|
align-self: baseline;
|
|
60
60
|
width: 170px;
|
|
61
61
|
.label-description {
|
|
62
|
-
margin-top: 10px;
|
|
63
62
|
font-size: $tp-checkout-label-description-fontsize;
|
|
64
|
-
|
|
65
|
-
.label {
|
|
66
|
-
font-weight: $tp-checkout-label-fontweight;
|
|
63
|
+
font-weight: $tp-checkout-label-description-fontweight;
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
.checkout-data-column {
|
|
@@ -7,6 +7,6 @@ $tp-checkout-right-panel-row-gap: 10px !default;
|
|
|
7
7
|
$tp-checkout-right-panel-width: 400px !default;
|
|
8
8
|
$tp-checkout-right-panel-width: 50% !default;
|
|
9
9
|
$tp-checkout-label-column-font-family: $tp-font-family;
|
|
10
|
-
$tp-checkout-label-fontsize:
|
|
11
|
-
$tp-checkout-label-description-fontsize:
|
|
12
|
-
$tp-checkout-label-fontweight: bold !default;
|
|
10
|
+
$tp-checkout-label-fontsize: 12px !default;
|
|
11
|
+
$tp-checkout-label-description-fontsize: 16px !default;
|
|
12
|
+
$tp-checkout-label-description-fontweight: bold !default;
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.icon-wrapper-flat-left {
|
|
16
|
-
background: $tp-co-
|
|
17
|
-
border-bottom-left-radius: $tp-co-
|
|
18
|
-
border-top-left-radius: $tp-co-
|
|
19
|
-
padding: $tp-co-
|
|
16
|
+
background: $tp-co-quick-send-button-background-color;
|
|
17
|
+
border-bottom-left-radius: $tp-co-quick-send-button-border-radius;
|
|
18
|
+
border-top-left-radius: $tp-co-quick-send-button-border-radius;
|
|
19
|
+
padding: $tp-co-quick-send-button-padding;
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
align-items: center;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
width: 75%;
|
|
26
26
|
.icon-text {
|
|
27
|
-
font-size: $tp-co-
|
|
27
|
+
font-size: $tp-co-quick-send-button-font-size;
|
|
28
28
|
user-select: none;
|
|
29
29
|
}
|
|
30
30
|
.icon-method {
|
|
@@ -43,16 +43,20 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.icon-wrapper-flat-right {
|
|
46
|
-
background: $tp-co-
|
|
47
|
-
border-bottom-right-radius: $tp-co-
|
|
48
|
-
border-top-right-radius: $tp-co-
|
|
49
|
-
padding: $tp-co-
|
|
46
|
+
background: $tp-co-quick-send-button-background-color;
|
|
47
|
+
border-bottom-right-radius: $tp-co-quick-send-button-border-radius;
|
|
48
|
+
border-top-right-radius: $tp-co-quick-send-button-border-radius;
|
|
49
|
+
padding: $tp-co-quick-send-button-padding;
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
align-items: center;
|
|
53
53
|
justify-content: center;
|
|
54
54
|
cursor: pointer;
|
|
55
55
|
width: 15%;
|
|
56
|
+
.co-icon {
|
|
57
|
+
width: $tp-co-quick-send-button-icon-size;
|
|
58
|
+
height: $tp-co-quick-send-button-icon-size;
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
$tp-co-
|
|
2
|
-
$tp-co-
|
|
3
|
-
$tp-co-
|
|
4
|
-
$tp-co-
|
|
1
|
+
$tp-co-quick-send-button-background-color: white !default;
|
|
2
|
+
$tp-co-quick-send-button-border-radius: 10px !default;
|
|
3
|
+
$tp-co-quick-send-button-padding: 10px !default;
|
|
4
|
+
$tp-co-quick-send-button-font-size: $tp-font-size-small !default;
|
|
5
|
+
$tp-co-quick-send-button-icon-size: 20px !default;
|
|
@@ -60,16 +60,15 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
height: 20px;
|
|
68
|
-
}
|
|
63
|
+
.co-icon {
|
|
64
|
+
width: 20px;
|
|
65
|
+
height: 20px;
|
|
66
|
+
}
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
.co-default-ok-cancel-buttons {
|
|
69
|
+
.ok {
|
|
70
|
+
float: left;
|
|
71
|
+
}
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
}
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../../enum/icon.enum";
|
|
3
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
4
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
5
|
+
import { TransactionReceiveGoodsService } from "../../transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service";
|
|
6
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
7
|
+
import { AvailableStock } from "@colijnit/transactionapi/build/model/available-stock.bo";
|
|
8
|
+
export declare class TransactionAvailableStockGridComponent implements OnInit, OnDestroy {
|
|
9
|
+
iconsService: IconCacheService;
|
|
10
|
+
private _transactionService;
|
|
11
|
+
private _transactionReceiveGoodsService;
|
|
12
|
+
readonly icons: typeof Icon;
|
|
13
|
+
transactionLine: TransactionLineInfo;
|
|
14
|
+
transactionId: number;
|
|
15
|
+
showClass(): boolean;
|
|
16
|
+
selectedStock: AvailableStock;
|
|
17
|
+
collection: AvailableStock[];
|
|
18
|
+
private _subscriptions;
|
|
19
|
+
constructor(iconsService: IconCacheService, _transactionService: TransactionService, _transactionReceiveGoodsService: TransactionReceiveGoodsService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
handleSelectRow(availableStock: AvailableStock): void;
|
|
23
|
+
handleDeleteClick(): void;
|
|
24
|
+
private _getAvailableStock;
|
|
25
|
+
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
display: flex;
|
|
18
18
|
column-gap: 10px;
|
|
19
19
|
align-items: center;
|
|
20
|
-
width:
|
|
20
|
+
width: $tp-transaction-header-order-discount-width;
|
|
21
21
|
height: $tp-transaction-header-order-discount-height;
|
|
22
22
|
font-size: $tp-transaction-header-order-discount-font-size;
|
|
23
23
|
border: $tp-transaction-header-order-discount-border;
|
package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss
CHANGED
|
@@ -3,6 +3,7 @@ $tp-transaction-header-order-discount-button-width: 17px !default;
|
|
|
3
3
|
$tp-transaction-header-order-discount-font-size: $tp-font-size !default;
|
|
4
4
|
$tp-transaction-header-order-discount-font-color: $tp-color-active-light !default;
|
|
5
5
|
$tp-transaction-header-order-discount-background-color: $tp-default-background-accent !default;
|
|
6
|
+
$tp-transaction-header-order-discount-width: 40% !default;
|
|
6
7
|
$tp-transaction-header-order-discount-height: $tp-default-button-height !default;
|
|
7
8
|
$tp-transaction-header-order-discount-border: 1px solid !default;
|
|
8
9
|
$tp-transaction-header-order-discount-border-color: $tp-color-border !default;
|
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
border-width: $tp-transaction-header-block-payment-balance-border-width;
|
|
32
32
|
border-radius: $tp-transaction-header-block-payment-balance-border-radius;
|
|
33
33
|
padding: $tp-transaction-header-block-payment-balance-padding;
|
|
34
|
+
co-icon {
|
|
35
|
+
position: relative;
|
|
36
|
+
height: $tp-transaction-header-block-payment-balance-icon-width;
|
|
37
|
+
width: $tp-transaction-header-block-payment-balance-icon-width;
|
|
38
|
+
}
|
|
34
39
|
.payment-payed-wrapper {
|
|
35
40
|
display: flex;
|
|
36
41
|
column-gap: 10px;
|
package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
$tp-transaction-header-block-payment-balance-background: $tp-default-background-accent !default;
|
|
2
|
+
$tp-transaction-header-block-payment-balance-icon-width: 17px !default;
|
|
2
3
|
$tp-transaction-header-block-payment-balance-padding: 5px 10px !default;
|
|
3
4
|
$tp-transaction-header-block-payment-balance-border-style: solid !default;
|
|
4
5
|
$tp-transaction-header-block-payment-balance-border-color: $tp-color-border !default;
|
|
@@ -9,6 +9,7 @@ export declare class TransactionHeaderBranchComponent extends TransactionHeaderB
|
|
|
9
9
|
private _relationService;
|
|
10
10
|
simple: boolean;
|
|
11
11
|
fields: Object;
|
|
12
|
+
branchModel: number;
|
|
12
13
|
constructor(_transactionService: TransactionService, _relationService: RelationService);
|
|
13
14
|
ngOnInit(): void;
|
|
14
15
|
commit(branch: number | RelationSmallObject): Promise<boolean>;
|
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
.transaction-base-line-section {
|
|
17
17
|
column-gap: $tp-transaction-line-column-gap;
|
|
18
18
|
}
|
|
19
|
+
.line-start {
|
|
20
|
+
max-width: 33%;
|
|
21
|
+
}
|
|
22
|
+
.preview-margin {
|
|
23
|
+
margin-left: $tp-transaction-line-column-gap;
|
|
24
|
+
}
|
|
19
25
|
.transaction-line {
|
|
20
26
|
display: flex;
|
|
21
27
|
flex-direction: column;
|
|
@@ -23,7 +29,6 @@
|
|
|
23
29
|
.transaction-line-wrapper {
|
|
24
30
|
display: flex;
|
|
25
31
|
flex-direction: row;
|
|
26
|
-
column-gap: $tp-transaction-line-column-gap;
|
|
27
32
|
}
|
|
28
33
|
.transaction-line-buttons {
|
|
29
34
|
display: flex;
|
|
@@ -32,15 +37,31 @@
|
|
|
32
37
|
height: $tp-transaction-line-amount-height;
|
|
33
38
|
}
|
|
34
39
|
.transaction-line-extended-wrapper {
|
|
35
|
-
display:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
align-content: flex-start;
|
|
43
|
+
.column1 {
|
|
44
|
+
max-width: calc((#{$tp-transaction-line-button-width} * 2) + #{$tp-transaction-line-column-gap});
|
|
45
|
+
margin-right: $tp-transaction-line-column-gap;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
align-content: flex-start;
|
|
49
|
+
co-transaction-line-commission-button {
|
|
50
|
+
margin-right: $tp-transaction-line-column-gap;
|
|
51
|
+
margin-bottom: $tp-transaction-line-row-gap;
|
|
52
|
+
}
|
|
53
|
+
co-transaction-line-delivery-date-button {
|
|
54
|
+
max-width: calc((#{$tp-transaction-line-button-width} * 2) + #{$tp-transaction-line-column-gap});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.column2 {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
margin-right: $tp-transaction-line-column-gap;
|
|
61
|
+
max-width: $tp-transaction-line-button-big-width;
|
|
62
|
+
}
|
|
63
|
+
.column3 {
|
|
64
|
+
margin-right: $tp-transaction-line-column-gap;
|
|
44
65
|
}
|
|
45
66
|
}
|
|
46
67
|
.transaction-line-totals-price, .transaction-line-totals-discount, .transaction-line-totals-amount, .transaction-line-totals-total {
|
|
@@ -53,7 +74,7 @@
|
|
|
53
74
|
width: 80%;
|
|
54
75
|
height: 95%;
|
|
55
76
|
input {
|
|
56
|
-
margin:
|
|
77
|
+
margin: 4px 0 0;
|
|
57
78
|
}
|
|
58
79
|
}
|
|
59
80
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { TransactionService } from "../../../../service/transaction.service";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
2
3
|
import { TransactionEventService } from "../../../../service/transaction-event.service";
|
|
3
4
|
import { ReceiveGoodViewModel } from "../../../../model/receive-good-view-model";
|
|
5
|
+
import { AvailableStock } from "@colijnit/transactionapi/build/model/available-stock.bo";
|
|
4
6
|
export declare class TransactionReceiveGoodsService {
|
|
5
7
|
private _transactionService;
|
|
6
8
|
private _transactionEventService;
|
|
7
9
|
lines: ReceiveGoodViewModel[];
|
|
10
|
+
returnArticleSelected: Subject<AvailableStock>;
|
|
11
|
+
reloadAvailableStockData: Subject<void>;
|
|
8
12
|
private _subscriptions;
|
|
9
13
|
constructor(_transactionService: TransactionService, _transactionEventService: TransactionEventService);
|
|
10
14
|
handleReceiveSelectedPurchaseOrders(value: {
|
package/lib/component/transaction-line-fields/transaction-line-price/style/_material-definition.scss
ADDED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputTextComponent } from "@colijnit/corecomponents_v12";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TransactionLineBaseComponent } from "../../core/base/transaction-line-base.component";
|
|
3
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
4
4
|
export declare class TransactionLinePriceComponent extends TransactionLineBaseComponent<number> {
|
|
5
5
|
private _transactionService;
|
|
6
6
|
set child(content: any);
|
|
@@ -8,6 +8,7 @@ export declare class TransactionLinePriceComponent extends TransactionLineBaseCo
|
|
|
8
8
|
defaultEditMode: boolean;
|
|
9
9
|
set editMode(value: boolean);
|
|
10
10
|
get editMode(): boolean;
|
|
11
|
+
showClass: boolean;
|
|
11
12
|
handleClick(event: MouseEvent): void;
|
|
12
13
|
input: InputTextComponent;
|
|
13
14
|
private _editMode;
|
|
File without changes
|
|
@@ -9,5 +9,6 @@
|
|
|
9
9
|
@import "../../../component/transaction-line/transaction-order-delivery-line/style/material";
|
|
10
10
|
@import "../../../component/transaction-line/transaction-receive-goods-line/style/material";
|
|
11
11
|
@import "../../../component/transaction-line/transaction-purchase-line/style/material";
|
|
12
|
+
@import "../../../component/transaction-line-fields/transaction-line-price/style/material";
|
|
12
13
|
@import "../../shared/transaction-article-text/style/material";
|
|
13
14
|
@import "../../shared/transaction-article-text-overview/style/material";
|
package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_layout.scss
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
height: $tp-transaction-quick-access-search-height;
|
|
11
11
|
.co-input-text {
|
|
12
12
|
height: $tp-transaction-quick-access-search-height;
|
|
13
|
-
label {
|
|
14
|
-
|
|
15
|
-
}
|
|
13
|
+
//label {
|
|
14
|
+
// top: math.div($tp-transaction-quick-access-search-height, 2);
|
|
15
|
+
//}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$tp-transaction-quick-access-search-width: 300px !default;
|
|
2
|
-
$tp-transaction-quick-access-search-height:
|
|
2
|
+
$tp-transaction-quick-access-search-height: 26px !default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
2
|
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
3
3
|
import { PurchaseOrderLineReceiptDetails } from "@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo";
|
|
4
4
|
import { FormMasterService } from "@colijnit/corecomponents_v12";
|
|
@@ -8,12 +8,14 @@ import { ArticleService } from "../../service/article.service";
|
|
|
8
8
|
import { DialogService } from "../../service/dialog.service";
|
|
9
9
|
import { Icon } from "../../enum/icon.enum";
|
|
10
10
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
11
|
-
|
|
11
|
+
import { TransactionReceiveGoodsService } from "../transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service";
|
|
12
|
+
export declare class TransactionReceivingGoodsDetailsComponent implements OnInit, OnDestroy {
|
|
12
13
|
iconCacheService: IconCacheService;
|
|
13
14
|
private _formMaster;
|
|
14
15
|
private _service;
|
|
15
16
|
private _articleService;
|
|
16
17
|
private _dialogService;
|
|
18
|
+
private _receiveGoodsService;
|
|
17
19
|
readonly icons: typeof Icon;
|
|
18
20
|
set amountLeftToReceive(value: number);
|
|
19
21
|
transactionId: number;
|
|
@@ -28,13 +30,19 @@ export declare class TransactionReceivingGoodsDetailsComponent {
|
|
|
28
30
|
locations: string[];
|
|
29
31
|
locationDropdownFields: {};
|
|
30
32
|
readonly: boolean;
|
|
33
|
+
returnMaxToReceive: number;
|
|
31
34
|
private _transactionLine;
|
|
32
35
|
private _amountLeftToReceive;
|
|
33
|
-
|
|
36
|
+
private _subscriptions;
|
|
37
|
+
constructor(iconCacheService: IconCacheService, _formMaster: FormMasterService, _service: TransactionService, _articleService: ArticleService, _dialogService: DialogService, _receiveGoodsService: TransactionReceiveGoodsService);
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
34
40
|
submit(): boolean;
|
|
35
41
|
locationRequired(): boolean;
|
|
36
42
|
handleSaveDetailsEdit(): void;
|
|
37
43
|
handleCancelDetailsEdit(): void;
|
|
38
44
|
handleDropDownSelected(warehouseNr: number): Promise<void>;
|
|
39
45
|
openWarehouseLocationDialog(): void;
|
|
46
|
+
returnStockMode(): boolean;
|
|
47
|
+
private _handleReturnStock;
|
|
40
48
|
}
|
|
@@ -14,6 +14,7 @@ export declare class TransactionSearchService {
|
|
|
14
14
|
set transactionType(value: string);
|
|
15
15
|
get transactionType(): string;
|
|
16
16
|
labelBasedOnTransactionType: Map<string, string>;
|
|
17
|
+
placeholderBasedOnTransactionType: Map<string, string>;
|
|
17
18
|
transactionsPerPage: number;
|
|
18
19
|
resultCount: number;
|
|
19
20
|
get currentPage(): number;
|
|
@@ -23,6 +24,7 @@ export declare class TransactionSearchService {
|
|
|
23
24
|
constructor(_transactionService: TransactionService);
|
|
24
25
|
searchTransactions(): void;
|
|
25
26
|
getLabelBasedOnTransactionType(): string;
|
|
27
|
+
getSearchPlaceholderBasedOnTransactionType(): string;
|
|
26
28
|
resetFilters(): void;
|
|
27
29
|
private _resetRequest;
|
|
28
30
|
setPreviousSearchRequest(): void;
|
|
@@ -27,7 +27,7 @@ $cc-co-transaction-filter-icon-width: 13px !default;
|
|
|
27
27
|
$cc-co-transaction-filter-header-wrapper-padding: 0 10px !default;
|
|
28
28
|
$cc-co-transaction-filter-header-font-weight: bold !default;
|
|
29
29
|
$cc-co-transaction-filter-header-font-size: 14px !default;
|
|
30
|
-
$cc-co-transaction-filter-header-color:
|
|
30
|
+
$cc-co-transaction-filter-header-color: $tp-color-font !default;
|
|
31
31
|
|
|
32
32
|
$cc-co-transaction-category-filter-wrapper-padding-top: 10px !default;
|
|
33
33
|
$cc-co-transaction-category-filter-content-width: 350px !default;
|
|
@@ -47,7 +47,7 @@ $tp-co-transaction-filter-categories-active-border-style: solid !default;
|
|
|
47
47
|
$tp-co-transaction-search-filter-width: 100% !default;
|
|
48
48
|
$tp-co-transaction-search-filter-button-padding: 20px 0 !default;
|
|
49
49
|
$tp-co-transaction-search-filter-button-width: 90% !default;
|
|
50
|
-
$tp-co-transaction-search-filter-button-size:
|
|
50
|
+
$tp-co-transaction-search-filter-button-size: 32px !default;
|
|
51
51
|
$tp-co-transaction-search-filter-button-border-radius: 5px !default;
|
|
52
52
|
$tp-co-transaction-search-filter-content-wrapper-row-gap: 30px !default;
|
|
53
53
|
|
|
@@ -55,14 +55,21 @@ $tp-co-transaction-search-result-width: 100% !default;
|
|
|
55
55
|
$tp-co-transaction-search-result-wrapper-padding: 0 10px !default;
|
|
56
56
|
$tp-co-transaction-search-result-upper-header-padding-left: 27px !default;
|
|
57
57
|
$tp-co-transaction-search-result-upper-header-height: 20px !default;
|
|
58
|
-
$tp-co-transaction-search-result-header-buttons-wrapper-padding: 0
|
|
58
|
+
$tp-co-transaction-search-result-header-buttons-wrapper-padding: 0 !default;
|
|
59
59
|
$tp-co-transaction-search-result-header-sidebar-button-size: 24px !default;
|
|
60
|
+
$tp-co-transaction-search-result-header-sidebar-icon-size: 20px !default;
|
|
61
|
+
|
|
60
62
|
$tp-co-transaction-search-result-header-sidebar-close-button-size: 46px !default;
|
|
61
63
|
|
|
62
|
-
$tp-co-transaction-search-
|
|
64
|
+
$tp-co-transaction-search-header-label-color: $tp-color-font !default;
|
|
65
|
+
$tp-co-transaction-search-header-label-font-size: 18px !default;
|
|
66
|
+
$tp-co-transaction-search-header-label-font-weight: bold !default;
|
|
67
|
+
$tp-co-transaction-search-header-column-gap: 10px !default;
|
|
68
|
+
$tp-co-transaction-search-header-button-wrapper-column-gap: 5px !default;
|
|
69
|
+
|
|
70
|
+
$tp-co-transaction-search-input-text-fullscreen-width: 440px !default;
|
|
63
71
|
$tp-co-transaction-search-input-text-sidebar-width: 250px !default;
|
|
64
72
|
$tp-co-transaction-search-input-text-sidebar-height: 40px !default;
|
|
65
|
-
$tp-co-transaction-search-input-text-sidebar-margin-top: 5px !default;
|
|
66
73
|
$tp-co-transaction-search-input-text-label-margin-left: 5% !default;
|
|
67
74
|
$tp-co-transaction-search-view-modes-wrapper-padding: 0 35px !default;
|
|
68
75
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@include export-module('
|
|
1
|
+
@include export-module('co-transaction-search-filter-content-layout') {
|
|
2
2
|
.co-transaction-search-filter-content {
|
|
3
3
|
width: $tp-co-transaction-search-filter-width;
|
|
4
4
|
|
|
@@ -7,10 +7,5 @@
|
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
row-gap: $tp-co-transaction-search-filter-content-wrapper-row-gap;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
.filter-button-container {
|
|
12
|
-
padding: $tp-co-transaction-search-filter-button-padding;
|
|
13
|
-
width: $tp-co-transaction-search-filter-button-width;
|
|
14
|
-
}
|
|
15
10
|
}
|
|
16
11
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
@include export-module('
|
|
1
|
+
@include export-module('co-transaction-search-header-layout') {
|
|
2
2
|
.co-transaction-search-header {
|
|
3
3
|
.transaction-search-header-wrapper {
|
|
4
4
|
display: flex;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
margin-top: 5px;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
.upper-header {
|
|
@@ -24,16 +23,34 @@
|
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
|
|
26
|
+
.transaction-search-filter-button, .toggle-sidebar-button {
|
|
27
|
+
height: $tp-co-transaction-search-result-header-sidebar-button-size;
|
|
28
|
+
width: $tp-co-transaction-search-result-header-sidebar-button-size;
|
|
29
|
+
padding: 0;
|
|
30
|
+
&:not(.circle).has-icon {
|
|
31
|
+
padding-left: 0;
|
|
32
|
+
}
|
|
33
|
+
.co-icon {
|
|
34
|
+
width: $tp-co-transaction-search-result-header-sidebar-icon-size;
|
|
35
|
+
height: $tp-co-transaction-search-result-header-sidebar-icon-size;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.transaction-search-filter-button {
|
|
39
|
+
height: $tp-co-transaction-search-filter-button-size;
|
|
40
|
+
width: $tp-co-transaction-search-filter-button-size;
|
|
41
|
+
border-radius: $tp-co-transaction-search-filter-button-border-radius;
|
|
42
|
+
//padding: $tp-co-transaction-search-filter-button-padding;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
27
45
|
.toggle-sidebar-button-wrapper {
|
|
28
46
|
&.sidebar {
|
|
29
|
-
margin-bottom: 5px;
|
|
30
47
|
.toggle-sidebar-button {
|
|
31
|
-
justify-content: center;
|
|
32
|
-
width: $tp-co-transaction-search-result-header-sidebar-button-size;
|
|
33
|
-
co-icon {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
48
|
+
//justify-content: center;
|
|
49
|
+
//width: $tp-co-transaction-search-result-header-sidebar-button-size;
|
|
50
|
+
//co-icon {
|
|
51
|
+
// width: $tp-co-transaction-search-result-header-sidebar-button-size;
|
|
52
|
+
// height: $tp-co-transaction-search-result-header-sidebar-button-size;
|
|
53
|
+
//}
|
|
37
54
|
}
|
|
38
55
|
}
|
|
39
56
|
|
|
@@ -60,13 +77,19 @@
|
|
|
60
77
|
display: flex;
|
|
61
78
|
justify-content: center;
|
|
62
79
|
flex-direction: row;
|
|
80
|
+
align-items: center;
|
|
81
|
+
column-gap: $tp-co-transaction-search-header-column-gap;
|
|
82
|
+
.header-searchbar-title {
|
|
83
|
+
font-size: $tp-co-transaction-search-header-label-font-size;
|
|
84
|
+
font-weight: $tp-co-transaction-search-header-label-font-weight;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.header-search-bar-button-wrapper {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
column-gap: $tp-co-transaction-search-header-button-wrapper-column-gap;
|
|
63
91
|
}
|
|
64
|
-
|
|
65
92
|
.transaction-search-general {
|
|
66
|
-
co-input-text label {
|
|
67
|
-
left: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
93
|
&.fullscreen {
|
|
71
94
|
co-input-text {
|
|
72
95
|
width: $tp-co-transaction-search-input-text-fullscreen-width;
|
|
@@ -77,22 +100,10 @@
|
|
|
77
100
|
&.sidebar {
|
|
78
101
|
co-input-text {
|
|
79
102
|
width: $tp-co-transaction-search-input-text-sidebar-width;
|
|
80
|
-
height: $tp-co-transaction-search-input-text-sidebar-height;
|
|
81
103
|
transition: width 0.2s ease-in-out;
|
|
82
|
-
margin-top: $tp-co-transaction-search-input-text-sidebar-margin-top;
|
|
83
104
|
}
|
|
84
105
|
}
|
|
85
106
|
}
|
|
86
|
-
|
|
87
|
-
.transaction-search-filter-button {
|
|
88
|
-
height: $tp-co-transaction-search-filter-button-size;
|
|
89
|
-
width: $tp-co-transaction-search-filter-button-size;
|
|
90
|
-
border-radius: $tp-co-transaction-search-filter-button-border-radius;
|
|
91
|
-
padding: $tp-co-transaction-search-filter-button-padding;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
107
|
.view-mode-buttons-wrapper {
|
|
97
108
|
padding: $tp-co-transaction-search-view-modes-wrapper-padding;
|
|
98
109
|
}
|
|
@@ -24,6 +24,7 @@ export declare class TransactionSearchHeaderComponent {
|
|
|
24
24
|
closeClick: EventEmitter<void>;
|
|
25
25
|
showClass(): boolean;
|
|
26
26
|
label: string;
|
|
27
|
+
searchPlaceholder: string;
|
|
27
28
|
constructor(searchService: TransactionSearchService, iconCacheService: IconCacheService, _dictionary: DictionaryService);
|
|
28
29
|
get fullscreen(): boolean;
|
|
29
30
|
onResizeClick(): void;
|