@colijnit/transaction 12.1.154 → 12.1.156
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 +9919 -9894
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +390 -391
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +391 -392
- package/esm2015/lib/component/core/base/transaction-base.component.js +14 -1
- package/esm2015/lib/component/shopping-cart/shopping-cart.component.js +40 -26
- package/esm2015/lib/component/shopping-cart/shopping-cart.module.js +16 -10
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +4 -4
- package/esm2015/lib/component/transaction/transaction.component.js +19 -301
- package/esm2015/lib/component/transaction/transaction.module.js +10 -76
- package/esm2015/lib/component/transaction-grid/transaction-grid/transaction-grid.module.js +9 -5
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +1 -2
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +330 -0
- package/esm2015/lib/component/transaction-internal/transaction-internal.module.js +47 -0
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +2 -1
- package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.module.js +28 -2
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.js +14 -1
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +26 -2
- package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +6 -6
- package/esm2015/lib/component/transaction-line-sales-allocation/transaction-line-sales-allocation.component.js +15 -13
- package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
- package/esm2015/lib/service/cart-screen-configuration.service.js +51 -0
- package/esm2015/lib/service/transaction-base.service.js +3 -11
- package/esm2015/lib/service/transaction-connector-adapter.service.js +1 -13
- package/esm2015/lib/service/transaction-connector.service.js +1 -4
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/service/transaction.service.js +17 -17
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +10657 -10684
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-base.component.d.ts +5 -0
- package/lib/component/shopping-cart/shopping-cart.component.d.ts +7 -3
- package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +2 -2
- package/lib/component/transaction/style/_layout.scss +0 -72
- package/lib/component/transaction/style/_material-definition.scss +0 -9
- package/lib/component/transaction/style/_theme.scss +0 -2
- package/lib/component/transaction/style/material.scss +1 -14
- package/lib/component/transaction/transaction.component.d.ts +6 -74
- package/lib/component/transaction-cash-register-order/transaction-cash-register-link-relation/style/_layout.scss +1 -1
- package/lib/component/transaction-internal/style/_layout.scss +74 -0
- package/lib/component/transaction-internal/style/_material-definition.scss +9 -0
- package/lib/component/transaction-internal/style/_theme.scss +4 -0
- package/lib/component/transaction-internal/style/material.scss +18 -0
- package/lib/component/transaction-internal/transaction-internal.component.d.ts +87 -0
- package/lib/component/transaction-internal/transaction-internal.module.d.ts +2 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons-popup.component.d.ts +3 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +7 -0
- package/lib/component/transaction-line-sales-allocation/transaction-line-sales-allocation.component.d.ts +10 -9
- package/lib/res/dictionary/dictionaries.d.ts +1 -0
- package/lib/service/cart-screen-configuration.service.d.ts +13 -0
- package/lib/service/transaction-base.service.d.ts +0 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +0 -1
- package/lib/service/transaction-connector.service.d.ts +0 -1
- package/lib/service/transaction-event.service.d.ts +2 -0
- package/package.json +5 -5
- package/esm2015/lib/component/transaction-batch-order-picking/transaction-batch-order-picking.component.js +0 -25
- package/esm2015/lib/component/transaction-batch-order-picking/transaction-batch-order-picking.module.js +0 -21
- package/esm2015/lib/component/transaction-tile/transaction-tile.component.js +0 -109
- package/esm2015/lib/component/transaction-tile/transaction-tile.module.js +0 -30
- package/lib/component/transaction-batch-order-picking/transaction-batch-order-picking.component.d.ts +0 -5
- package/lib/component/transaction-batch-order-picking/transaction-batch-order-picking.module.d.ts +0 -2
- package/lib/component/transaction-tile/transaction-tile.component.d.ts +0 -13
- package/lib/component/transaction-tile/transaction-tile.module.d.ts +0 -2
|
@@ -17,6 +17,7 @@ import { TransactionImageService } from '../../../service/transaction-image.serv
|
|
|
17
17
|
import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
18
18
|
import { TransactionScreenConfigurationService } from '../../../service/transaction-screen-configuration.service';
|
|
19
19
|
import { TransactionDeliveryCostLineInfo } from '@colijnit/transactionapi/build/model/transaction-delivery-cost-line-info.bo';
|
|
20
|
+
import { OrderLineSetInfo } from "@colijnit/transactionapi/build/model/order-line-set-info.bo";
|
|
20
21
|
import { ScreenConfigAdapterComponent } from '@colijnit/corecomponents_v12';
|
|
21
22
|
import { TransactionCfgName } from '../../../enum/transaction-cfg-name.enum';
|
|
22
23
|
export declare abstract class TransactionBaseComponent implements OnInit, OnDestroy, ScreenConfigAdapterComponent {
|
|
@@ -40,6 +41,8 @@ export declare abstract class TransactionBaseComponent implements OnInit, OnDest
|
|
|
40
41
|
get transactionLine(): TransactionLineInfo;
|
|
41
42
|
set transactionInfo(value: TransactionInfo);
|
|
42
43
|
get transactionInfo(): TransactionInfo;
|
|
44
|
+
set orderLineSets(value: OrderLineSetInfo[]);
|
|
45
|
+
get orderLineSets(): OrderLineSetInfo[];
|
|
43
46
|
set transactionTotal(value: TransactionTotal);
|
|
44
47
|
get transactionTotal(): TransactionTotal;
|
|
45
48
|
set relation(value: RelationAnyType);
|
|
@@ -109,6 +112,7 @@ export declare abstract class TransactionBaseComponent implements OnInit, OnDest
|
|
|
109
112
|
private _transaction;
|
|
110
113
|
private _transactionLine;
|
|
111
114
|
private _transactionInfo;
|
|
115
|
+
private _orderLineSets;
|
|
112
116
|
private _transactionTotal;
|
|
113
117
|
private _selected;
|
|
114
118
|
private _baseSubs;
|
|
@@ -126,6 +130,7 @@ export declare abstract class TransactionBaseComponent implements OnInit, OnDest
|
|
|
126
130
|
protected relationSet(): void;
|
|
127
131
|
protected transactionLineSet(): void;
|
|
128
132
|
protected transactionInfoSet(): void;
|
|
133
|
+
protected orderLineSetsSet(): void;
|
|
129
134
|
protected addLineTooltipMessage(message: string): void;
|
|
130
135
|
protected addHeaderTooltipMessage(message: string): void;
|
|
131
136
|
protected prepareTooltipMessage(): void;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DictionaryService } from '../../service/dictionary.service';
|
|
3
3
|
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
4
4
|
import { TransactionService } from '../../service/transaction.service';
|
|
5
5
|
import { RelationAnyType } from '../../model/relation-any-type';
|
|
6
|
-
|
|
6
|
+
import { CartScreenConfigurationService } from '../../service/cart-screen-configuration.service';
|
|
7
|
+
export declare class ShoppingCartComponent implements OnInit, OnDestroy {
|
|
7
8
|
service: TransactionService;
|
|
8
9
|
private _dictionary;
|
|
10
|
+
private _screenConfigurationService;
|
|
9
11
|
closeCart: EventEmitter<void>;
|
|
10
12
|
checkout: EventEmitter<void>;
|
|
11
13
|
showClass(): boolean;
|
|
12
14
|
transaction: TransactionInfoResponse;
|
|
13
15
|
relation: RelationAnyType;
|
|
16
|
+
screenConfigLoaded: boolean;
|
|
14
17
|
private _subs;
|
|
15
|
-
constructor(service: TransactionService, _dictionary: DictionaryService);
|
|
18
|
+
constructor(service: TransactionService, _dictionary: DictionaryService, _screenConfigurationService: CartScreenConfigurationService);
|
|
19
|
+
ngOnInit(): void;
|
|
16
20
|
ngOnDestroy(): void;
|
|
17
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { TransactionService } from '../../service/transaction.service';
|
|
3
3
|
import { Icon } from '../../enum/icon.enum';
|
|
4
|
-
import {
|
|
4
|
+
import { CartScreenConfigurationService } from '../../service/cart-screen-configuration.service';
|
|
5
5
|
export declare class ShoppingCartPreviewComponent implements OnInit {
|
|
6
6
|
service: TransactionService;
|
|
7
7
|
private _screenConfigurationService;
|
|
@@ -12,6 +12,6 @@ export declare class ShoppingCartPreviewComponent implements OnInit {
|
|
|
12
12
|
editCartClick: EventEmitter<void>;
|
|
13
13
|
showClass(): boolean;
|
|
14
14
|
screenConfigLoaded: boolean;
|
|
15
|
-
constructor(service: TransactionService, _screenConfigurationService:
|
|
15
|
+
constructor(service: TransactionService, _screenConfigurationService: CartScreenConfigurationService);
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
}
|
|
@@ -1,76 +1,4 @@
|
|
|
1
|
-
@import "../../../style/mixin";
|
|
2
|
-
|
|
3
1
|
@include export-module('co-transaction-layout') {
|
|
4
2
|
.co-transaction {
|
|
5
|
-
font-family: $tp-co-transaction-font-family;
|
|
6
|
-
display: block;
|
|
7
|
-
padding: $tp-transaction-padding;
|
|
8
|
-
.transaction-footer-wrapper {
|
|
9
|
-
display: grid;
|
|
10
|
-
grid-template-columns: repeat(2, minmax(50%, 1fr));
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
//grid-template-areas: 'column1 column2';
|
|
13
|
-
margin: $tp-transaction-totals-margin;
|
|
14
|
-
.co-add-product {
|
|
15
|
-
grid-column: 1/1;
|
|
16
|
-
justify-self: flex-start;
|
|
17
|
-
}
|
|
18
|
-
.co-transaction-totals {
|
|
19
|
-
grid-column: 2/2;
|
|
20
|
-
justify-self: flex-end;
|
|
21
|
-
width: 300px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.transaction-lines-header {
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
align-items: center;
|
|
28
|
-
padding: $tp-transaction-transaction-lines-header-padding;
|
|
29
|
-
flex-wrap: nowrap;
|
|
30
|
-
.transaction-lines-header-item {
|
|
31
|
-
flex-basis: 33%;
|
|
32
|
-
&.right {
|
|
33
|
-
display: flex;
|
|
34
|
-
column-gap: $tp-transaction-transaction-lines-header-column-gap;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: flex-end;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
.transaction-sales-avatar {
|
|
40
|
-
height: 30px;
|
|
41
|
-
width: 30px;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
&.show-quick-access, &.show-button-bar {
|
|
45
|
-
.transaction-lines-header {
|
|
46
|
-
justify-content: space-between;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
.transaction-tiles-wrapper {
|
|
50
|
-
display: grid;
|
|
51
|
-
grid-template-columns: 25% 25% 25% 25%;
|
|
52
|
-
grid-column-gap: 5px;
|
|
53
|
-
grid-row-gap: 5px;
|
|
54
|
-
|
|
55
|
-
@media(max-width: 1500px) {
|
|
56
|
-
grid-template-columns: 33% 33% 33%;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@media(max-width: 1200px) {
|
|
60
|
-
grid-template-columns: 50% 50%;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media(max-width: 900px) {
|
|
64
|
-
grid-template-columns: 100%;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
.transaction-lines-wrapper {
|
|
68
|
-
padding: $tp-transaction-transaction-lines-wrapper-padding;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.quick-send-button {
|
|
72
|
-
height: 32px;
|
|
73
|
-
width: 70px;
|
|
74
|
-
}
|
|
75
3
|
}
|
|
76
4
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
$tp-co-transaction-font-family: $tp-font-family !default;
|
|
2
|
-
$tp-transaction-totals-margin: 15px 0 !default;
|
|
3
|
-
$tp-transaction-padding: 25px !default;
|
|
4
|
-
$tp-transaction-transaction-lines-header-padding: 20px 0 !default;
|
|
5
|
-
|
|
6
|
-
$tp-transaction-padding: 20px !default;
|
|
7
|
-
$tp-transaction-transaction-lines-header-padding: 20px !default;
|
|
8
|
-
$tp-transaction-transaction-lines-header-column-gap: 20px !default;
|
|
9
|
-
$tp-transaction-transaction-lines-wrapper-padding: 0 !default;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
1
2
|
@import "./material-definition";
|
|
2
3
|
@import "./layout";
|
|
3
4
|
@import "./theme";
|
|
4
|
-
@import "../../transaction-header/transaction-header/style/material";
|
|
5
|
-
@import "../../transaction-lines/style/material";
|
|
6
|
-
@import "../../transaction-grid/transaction-lines-grid/style/material";
|
|
7
|
-
@import "../../transaction-totals/style/material";
|
|
8
|
-
@import "../../transaction-quick-access/transaction-quick-access/style/material";
|
|
9
|
-
@import "../../transaction-button-bar/style/material";
|
|
10
|
-
@import "../../transaction-line-side-panel/style/material";
|
|
11
|
-
@import "../../dialog/transaction-header/dialog-transaction-header-delivery-method/style/material";
|
|
12
|
-
@import "../../dialog/transaction-header/dialog-transaction-header-branch/style/material";
|
|
13
|
-
@import "../../transaction-labeled-warehouse-location-button/style/material";
|
|
14
|
-
@import "../../transaction-line-checkbox-list/style/material";
|
|
15
|
-
@import "../../transaction-card/transaction-card/style/material";
|
|
16
|
-
//@import "../../transaction-document-button/style/material";
|
|
17
|
-
@import "../../transaction-document-text-dialog/style/material";
|
|
@@ -1,41 +1,16 @@
|
|
|
1
|
-
import { ApplicationRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
-
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
3
|
-
import { TransactionService } from '../../service/transaction.service';
|
|
4
|
-
import { ContentViewMode } from '@colijnit/corecomponents_v12';
|
|
5
|
-
import { Icon } from '../../enum/icon.enum';
|
|
6
|
-
import { IconCacheService } from '../../service/icon-cache.service';
|
|
7
|
-
import { TransactionAddTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo';
|
|
8
|
-
import { TransactionLineInfo } from '@colijnit/transactionapi/build/model/transaction-line-info.bo';
|
|
9
|
-
import { TransactionBarButton } from '../../model/transaction-bar-button';
|
|
10
|
-
import { TransactionTypeCategory } from '../../enum/transaction-type-category.enum';
|
|
11
|
-
import { DynamicComponentService } from '../../service/dynamic-component.service';
|
|
12
|
-
import { TransactionLineSidePanelComponent } from '../transaction-line-side-panel/transaction-line-side-panel.component';
|
|
13
1
|
import { RelationAnyType } from '../../model/relation-any-type';
|
|
14
|
-
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
15
2
|
import { TransactionKind } from '@colijnit/transactionapi/build/enum/transaction-kind.enum';
|
|
16
3
|
import { TransactionScreenConfigurationService } from '../../service/transaction-screen-configuration.service';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
4
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
5
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
19
6
|
import { TransactionCfgName } from '../../enum/transaction-cfg-name.enum';
|
|
20
|
-
import {
|
|
21
|
-
export declare class TransactionComponent
|
|
22
|
-
iconCacheService: IconCacheService;
|
|
7
|
+
import { ExternalCatalogAddArticleRequest } from '@colijnit/transactionapi/build/model/external-catalog-add-article-request';
|
|
8
|
+
export declare class TransactionComponent {
|
|
23
9
|
service: TransactionService;
|
|
24
|
-
private _appRef;
|
|
25
|
-
private _dynamicComponentService;
|
|
26
10
|
private _transactionEventService;
|
|
27
11
|
private _screenConfigurationService;
|
|
28
|
-
private _dialogService;
|
|
29
|
-
private _lineSelectionService;
|
|
30
|
-
readonly categories: typeof TransactionTypeCategory;
|
|
31
|
-
readonly viewModes: typeof ContentViewMode;
|
|
32
|
-
readonly icons: typeof Icon;
|
|
33
12
|
readonly cfgNames: typeof TransactionCfgName;
|
|
34
|
-
screenWidth: number;
|
|
35
|
-
sidePanelComponents: QueryList<TransactionLineSidePanelComponent>;
|
|
36
13
|
relation: RelationAnyType;
|
|
37
|
-
set transaction(value: TransactionInfoResponse);
|
|
38
|
-
get transaction(): TransactionInfoResponse;
|
|
39
14
|
set transactionKind(value: TransactionKind);
|
|
40
15
|
get transactionKind(): TransactionKind;
|
|
41
16
|
set transactionNr(value: number);
|
|
@@ -44,54 +19,11 @@ export declare class TransactionComponent implements OnDestroy {
|
|
|
44
19
|
showQuickAccess: boolean;
|
|
45
20
|
showButtonBar: boolean;
|
|
46
21
|
showClass(): boolean;
|
|
47
|
-
onResize(event: any): void;
|
|
48
|
-
activeViewMode: ContentViewMode;
|
|
49
|
-
activeCategory: TransactionTypeCategory;
|
|
50
|
-
sidePanelTransactionLine: TransactionLineInfo;
|
|
51
|
-
transactionLine: TransactionLineInfo;
|
|
52
|
-
showSidePanel: boolean;
|
|
53
|
-
showArticleTextOverview: boolean;
|
|
54
|
-
showTransactionText: boolean;
|
|
55
|
-
showArticleText: boolean;
|
|
56
|
-
showCopyOrderDialog: boolean;
|
|
57
|
-
loaded: boolean;
|
|
58
22
|
screenConfigLoaded: boolean;
|
|
59
|
-
textToEdit: string;
|
|
60
|
-
historicTransactionLines: TransactionLineInfo[] | null;
|
|
61
|
-
statusBarConfigNames: StatusBarCfgNames;
|
|
62
|
-
private _subs;
|
|
63
|
-
private _transaction;
|
|
64
23
|
private _transactionKind;
|
|
65
24
|
private _transactionNr;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ngOnDestroy(): void;
|
|
69
|
-
handleButtonBarButtonClicked(button: TransactionBarButton): void;
|
|
70
|
-
handleShowSidePanel(line: TransactionLineInfo): void;
|
|
71
|
-
handleShowArticleTextOverview(line: TransactionLineInfo): void;
|
|
72
|
-
handleShowTransactionText(line: TransactionLineInfo): void;
|
|
73
|
-
handleShowArticleText(line: TransactionLineInfo): void;
|
|
74
|
-
saveTransactionLineText(data: {
|
|
75
|
-
request: TransactionAddTextLineRequest;
|
|
76
|
-
new: boolean;
|
|
77
|
-
}): Promise<void>;
|
|
78
|
-
saveArticleLineText(data: {
|
|
79
|
-
request: TransactionAddTextLineRequest;
|
|
80
|
-
new: boolean;
|
|
81
|
-
}): Promise<void>;
|
|
82
|
-
handleEditTransactionText(line: TransactionLineInfo): void;
|
|
83
|
-
handleEditArticleText(line: TransactionLineInfo): void;
|
|
84
|
-
closeArticleText(): void;
|
|
85
|
-
closeTransactionText(): void;
|
|
86
|
-
closeArticleTextOverview(): void;
|
|
87
|
-
showTransactionTextDialog(): void;
|
|
88
|
-
showArticleTextDialog(): void;
|
|
89
|
-
showArticleTextOverviewDialog(): void;
|
|
90
|
-
shouldShowTiles(): boolean;
|
|
25
|
+
constructor(service: TransactionService, _transactionEventService: TransactionEventService, _screenConfigurationService: TransactionScreenConfigurationService);
|
|
26
|
+
addExternalOrderLines(request: ExternalCatalogAddArticleRequest): void;
|
|
91
27
|
private _getTransaction;
|
|
92
|
-
private _hideArticleTextDialog;
|
|
93
|
-
private _hideTransactionTextDialog;
|
|
94
|
-
private _hideArticleTextOverviewDialog;
|
|
95
|
-
private updateTransactionLine;
|
|
96
28
|
private _prepareHeader;
|
|
97
29
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@include export-module('co-transaction-internal-layout') {
|
|
2
|
+
.co-transaction-internal {
|
|
3
|
+
font-family: $tp-co-transaction-font-family;
|
|
4
|
+
display: block;
|
|
5
|
+
padding: $tp-transaction-padding;
|
|
6
|
+
.transaction-footer-wrapper {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: repeat(2, minmax(50%, 1fr));
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
//grid-template-areas: 'column1 column2';
|
|
11
|
+
margin: $tp-transaction-totals-margin;
|
|
12
|
+
.co-add-product {
|
|
13
|
+
grid-column: 1/1;
|
|
14
|
+
justify-self: flex-start;
|
|
15
|
+
}
|
|
16
|
+
.co-transaction-totals {
|
|
17
|
+
grid-column: 2/2;
|
|
18
|
+
justify-self: flex-end;
|
|
19
|
+
width: 300px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.transaction-lines-header {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
align-items: center;
|
|
26
|
+
padding: $tp-transaction-transaction-lines-header-padding;
|
|
27
|
+
flex-wrap: nowrap;
|
|
28
|
+
.transaction-lines-header-item {
|
|
29
|
+
flex-basis: 33%;
|
|
30
|
+
&.right {
|
|
31
|
+
display: flex;
|
|
32
|
+
column-gap: $tp-transaction-transaction-lines-header-column-gap;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: flex-end;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.transaction-sales-avatar {
|
|
38
|
+
height: 30px;
|
|
39
|
+
width: 30px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
&.show-quick-access, &.show-button-bar {
|
|
43
|
+
.transaction-lines-header {
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.transaction-tiles-wrapper {
|
|
48
|
+
display: grid;
|
|
49
|
+
grid-template-columns: 25% 25% 25% 25%;
|
|
50
|
+
grid-column-gap: 5px;
|
|
51
|
+
grid-row-gap: 5px;
|
|
52
|
+
|
|
53
|
+
@media(max-width: 1500px) {
|
|
54
|
+
grid-template-columns: 33% 33% 33%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media(max-width: 1200px) {
|
|
58
|
+
grid-template-columns: 50% 50%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media(max-width: 900px) {
|
|
62
|
+
grid-template-columns: 100%;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.transaction-lines-wrapper {
|
|
66
|
+
padding: $tp-transaction-transaction-lines-wrapper-padding;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.quick-send-button {
|
|
70
|
+
height: 32px;
|
|
71
|
+
width: 70px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
$tp-co-transaction-font-family: $tp-font-family !default;
|
|
2
|
+
$tp-transaction-totals-margin: 15px 0 !default;
|
|
3
|
+
$tp-transaction-padding: 25px !default;
|
|
4
|
+
$tp-transaction-transaction-lines-header-padding: 20px 0 !default;
|
|
5
|
+
|
|
6
|
+
$tp-transaction-padding: 20px !default;
|
|
7
|
+
$tp-transaction-transaction-lines-header-padding: 20px !default;
|
|
8
|
+
$tp-transaction-transaction-lines-header-column-gap: 20px !default;
|
|
9
|
+
$tp-transaction-transaction-lines-wrapper-padding: 0 !default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
@import "./_material-definition";
|
|
3
|
+
@import "./_layout";
|
|
4
|
+
@import "./_theme";
|
|
5
|
+
@import "../../transaction-header/transaction-header/style/material";
|
|
6
|
+
@import "../../transaction-lines/style/material";
|
|
7
|
+
@import "../../transaction-grid/transaction-lines-grid/style/material";
|
|
8
|
+
@import "../../transaction-totals/style/material";
|
|
9
|
+
@import "../../transaction-quick-access/transaction-quick-access/style/material";
|
|
10
|
+
@import "../../transaction-button-bar/style/material";
|
|
11
|
+
@import "../../transaction-line-side-panel/style/material";
|
|
12
|
+
@import "../../dialog/transaction-header/dialog-transaction-header-delivery-method/style/material";
|
|
13
|
+
@import "../../dialog/transaction-header/dialog-transaction-header-branch/style/material";
|
|
14
|
+
@import "../../transaction-labeled-warehouse-location-button/style/material";
|
|
15
|
+
@import "../../transaction-line-checkbox-list/style/material";
|
|
16
|
+
@import "../../transaction-card/transaction-card/style/material";
|
|
17
|
+
//@import "../../transaction-document-button/style/material";
|
|
18
|
+
@import "../../transaction-document-text-dialog/style/material";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ApplicationRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { TransactionTypeCategory } from '../../enum/transaction-type-category.enum';
|
|
3
|
+
import { ContentViewMode } from '@colijnit/corecomponents_v12';
|
|
4
|
+
import { Icon } from '../../enum/icon.enum';
|
|
5
|
+
import { TransactionCfgName } from '../../enum/transaction-cfg-name.enum';
|
|
6
|
+
import { TransactionLineSidePanelComponent } from '../transaction-line-side-panel/transaction-line-side-panel.component';
|
|
7
|
+
import { RelationAnyType } from '../../model/relation-any-type';
|
|
8
|
+
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
9
|
+
import { TransactionLineInfo } from '@colijnit/transactionapi/build/model/transaction-line-info.bo';
|
|
10
|
+
import { StatusBarCfgNames } from '../../interface/status-bar-cfg-names.interface';
|
|
11
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
12
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
13
|
+
import { DynamicComponentService } from '../../service/dynamic-component.service';
|
|
14
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
15
|
+
import { TransactionScreenConfigurationService } from '../../service/transaction-screen-configuration.service';
|
|
16
|
+
import { DialogService } from '../../service/dialog.service';
|
|
17
|
+
import { LineSelectionService } from '../../service/line-selection.service';
|
|
18
|
+
import { TransactionBarButton } from '../../model/transaction-bar-button';
|
|
19
|
+
import { TransactionAddTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo';
|
|
20
|
+
export declare class TransactionInternalComponent implements OnDestroy {
|
|
21
|
+
iconCacheService: IconCacheService;
|
|
22
|
+
service: TransactionService;
|
|
23
|
+
private _appRef;
|
|
24
|
+
private _dynamicComponentService;
|
|
25
|
+
private _transactionEventService;
|
|
26
|
+
private _screenConfigurationService;
|
|
27
|
+
private _dialogService;
|
|
28
|
+
private _lineSelectionService;
|
|
29
|
+
readonly categories: typeof TransactionTypeCategory;
|
|
30
|
+
readonly viewModes: typeof ContentViewMode;
|
|
31
|
+
readonly icons: typeof Icon;
|
|
32
|
+
readonly cfgNames: typeof TransactionCfgName;
|
|
33
|
+
screenWidth: number;
|
|
34
|
+
sidePanelComponents: QueryList<TransactionLineSidePanelComponent>;
|
|
35
|
+
relation: RelationAnyType;
|
|
36
|
+
set transaction(value: TransactionInfoResponse);
|
|
37
|
+
get transaction(): TransactionInfoResponse;
|
|
38
|
+
showHeader: boolean;
|
|
39
|
+
showQuickAccess: boolean;
|
|
40
|
+
showButtonBar: boolean;
|
|
41
|
+
showClass(): boolean;
|
|
42
|
+
onResize(event: any): void;
|
|
43
|
+
activeViewMode: ContentViewMode;
|
|
44
|
+
activeCategory: TransactionTypeCategory;
|
|
45
|
+
sidePanelTransactionLine: TransactionLineInfo;
|
|
46
|
+
transactionLine: TransactionLineInfo;
|
|
47
|
+
showSidePanel: boolean;
|
|
48
|
+
showArticleTextOverview: boolean;
|
|
49
|
+
showTransactionText: boolean;
|
|
50
|
+
showArticleText: boolean;
|
|
51
|
+
showCopyOrderDialog: boolean;
|
|
52
|
+
loaded: boolean;
|
|
53
|
+
textToEdit: string;
|
|
54
|
+
historicTransactionLines: TransactionLineInfo[] | null;
|
|
55
|
+
statusBarConfigNames: StatusBarCfgNames;
|
|
56
|
+
private _subs;
|
|
57
|
+
private _transaction;
|
|
58
|
+
private _typeForConfig;
|
|
59
|
+
constructor(iconCacheService: IconCacheService, service: TransactionService, _appRef: ApplicationRef, _dynamicComponentService: DynamicComponentService, _transactionEventService: TransactionEventService, _screenConfigurationService: TransactionScreenConfigurationService, _dialogService: DialogService, _lineSelectionService: LineSelectionService);
|
|
60
|
+
ngOnDestroy(): void;
|
|
61
|
+
handleButtonBarButtonClicked(button: TransactionBarButton): void;
|
|
62
|
+
handleShowSidePanel(line: TransactionLineInfo): void;
|
|
63
|
+
handleShowArticleTextOverview(line: TransactionLineInfo): void;
|
|
64
|
+
handleShowTransactionText(line: TransactionLineInfo): void;
|
|
65
|
+
handleShowArticleText(line: TransactionLineInfo): void;
|
|
66
|
+
saveTransactionLineText(data: {
|
|
67
|
+
request: TransactionAddTextLineRequest;
|
|
68
|
+
new: boolean;
|
|
69
|
+
}): Promise<void>;
|
|
70
|
+
saveArticleLineText(data: {
|
|
71
|
+
request: TransactionAddTextLineRequest;
|
|
72
|
+
new: boolean;
|
|
73
|
+
}): Promise<void>;
|
|
74
|
+
handleEditTransactionText(line: TransactionLineInfo): void;
|
|
75
|
+
handleEditArticleText(line: TransactionLineInfo): void;
|
|
76
|
+
closeArticleText(): void;
|
|
77
|
+
closeTransactionText(): void;
|
|
78
|
+
closeArticleTextOverview(): void;
|
|
79
|
+
showTransactionTextDialog(): void;
|
|
80
|
+
showArticleTextDialog(): void;
|
|
81
|
+
showArticleTextOverviewDialog(): void;
|
|
82
|
+
shouldShowTiles(): boolean;
|
|
83
|
+
private _hideArticleTextDialog;
|
|
84
|
+
private _hideTransactionTextDialog;
|
|
85
|
+
private _hideArticleTextOverviewDialog;
|
|
86
|
+
private updateTransactionLine;
|
|
87
|
+
}
|
|
@@ -7,12 +7,15 @@ export declare class TransactionLineActionButtonsPopupComponent {
|
|
|
7
7
|
readonly icons: typeof Icon;
|
|
8
8
|
configNames: ActionButtonsCfgNames;
|
|
9
9
|
parentForOverlay: ElementRef;
|
|
10
|
+
canReopenExternalOrder: boolean;
|
|
11
|
+
reopenExternalOrderClick: EventEmitter<void>;
|
|
10
12
|
addDocumentButtonClick: EventEmitter<void>;
|
|
11
13
|
articleTextButtonClick: EventEmitter<void>;
|
|
12
14
|
transactionTextButtonClick: EventEmitter<void>;
|
|
13
15
|
sidePanelButtonClick: EventEmitter<void>;
|
|
14
16
|
showClass: boolean;
|
|
15
17
|
constructor(iconCacheService: IconCacheService);
|
|
18
|
+
HandleReopenExternalOrderClick(event: MouseEvent): void;
|
|
16
19
|
handleAddDocumentButtonClick(event: MouseEvent): void;
|
|
17
20
|
handleArticleTextButtonClick(event: MouseEvent): void;
|
|
18
21
|
handleTransactionTextButtonClick(event: MouseEvent): void;
|
package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Icon } from '../../enum/icon.enum';
|
|
|
6
6
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
7
7
|
import { TransactionLineInfo } from '@colijnit/transactionapi/build/model/transaction-line-info.bo';
|
|
8
8
|
import { OverlayService } from '@colijnit/corecomponents_v12';
|
|
9
|
+
import { OrderLineSetInfo } from "@colijnit/transactionapi/build/model/order-line-set-info.bo";
|
|
9
10
|
import { ActionButtonsCfgNames } from '../../interface/action-buttons-cfg-names.interface';
|
|
10
11
|
export declare class TransactionLineActionButtonsComponent implements OnInit {
|
|
11
12
|
elementRef: ElementRef;
|
|
@@ -18,6 +19,9 @@ export declare class TransactionLineActionButtonsComponent implements OnInit {
|
|
|
18
19
|
configNames: ActionButtonsCfgNames;
|
|
19
20
|
set transactionLine(value: TransactionLineInfo);
|
|
20
21
|
get transactionLine(): TransactionLineInfo;
|
|
22
|
+
set orderLineSets(value: OrderLineSetInfo[]);
|
|
23
|
+
get orderLineSets(): OrderLineSetInfo[];
|
|
24
|
+
private _orderLineSets;
|
|
21
25
|
waitingForUserAction: EventEmitter<boolean>;
|
|
22
26
|
transactionArticleTextOverviewButtonClicked: EventEmitter<TransactionLineInfo>;
|
|
23
27
|
transactionTextButtonClicked: EventEmitter<TransactionLineInfo>;
|
|
@@ -29,13 +33,16 @@ export declare class TransactionLineActionButtonsComponent implements OnInit {
|
|
|
29
33
|
showActionButtons: boolean;
|
|
30
34
|
private _transactionLine;
|
|
31
35
|
private _actionButtonsPopupComponentRef;
|
|
36
|
+
private _orderLineSet;
|
|
32
37
|
constructor(elementRef: ElementRef, iconCacheService: IconCacheService, _transactionService: TransactionService, _transactionEventService: TransactionEventService, _overlayService: OverlayService, _eventService: TransactionEventService);
|
|
33
38
|
ngOnInit(): void;
|
|
34
39
|
handleShowHideClick(): void;
|
|
40
|
+
reopenExternalOrderClick(): void;
|
|
35
41
|
handleAddDocumentButtonClick(): void;
|
|
36
42
|
handleTransactionText(): void;
|
|
37
43
|
handleArticleText(): void;
|
|
38
44
|
handleShowSidePanel(): void;
|
|
39
45
|
private _showPopup;
|
|
40
46
|
private _hidePopup;
|
|
47
|
+
private _isReopenableExternalCatalogLine;
|
|
41
48
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FormMasterService } from
|
|
3
|
-
import { TransactionBaseComponent } from
|
|
4
|
-
import { AllocateGoodsForSalesOrderRequest } from
|
|
5
|
-
import { SalesOrderLineAllocationDetails } from
|
|
6
|
-
import { LogisticalStateDetail } from
|
|
7
|
-
import { IconCacheService } from
|
|
8
|
-
import { TransactionService } from
|
|
9
|
-
import { DialogService } from
|
|
10
|
-
import { TransactionEventService } from
|
|
2
|
+
import { FormMasterService } from '@colijnit/corecomponents_v12';
|
|
3
|
+
import { TransactionBaseComponent } from '../core/base/transaction-base.component';
|
|
4
|
+
import { AllocateGoodsForSalesOrderRequest } from '@colijnit/transactionapi/build/model/allocate-goods-for-sales-order-request';
|
|
5
|
+
import { SalesOrderLineAllocationDetails } from '@colijnit/transactionapi/build/model/sales-order-line-allocation-details';
|
|
6
|
+
import { LogisticalStateDetail } from '@colijnit/transactionapi/build/model/logistical-state-detail.bo';
|
|
7
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
8
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
9
|
+
import { DialogService } from '../../service/dialog.service';
|
|
10
|
+
import { TransactionEventService } from '../../service/transaction-event.service';
|
|
11
11
|
import { DictionaryService } from '../../service/dictionary.service';
|
|
12
12
|
import { TransactionImageService } from '../../service/transaction-image.service';
|
|
13
13
|
import { TransactionScreenConfigurationService } from '../../service/transaction-screen-configuration.service';
|
|
@@ -25,6 +25,7 @@ export declare class TransactionLineSalesAllocationComponent extends Transaction
|
|
|
25
25
|
allocationDetails: SalesOrderLineAllocationDetails;
|
|
26
26
|
goodsAllocationHistory: LogisticalStateDetail[];
|
|
27
27
|
showClass(): boolean;
|
|
28
|
+
internalParameterPakBinnen: boolean;
|
|
28
29
|
private _subs;
|
|
29
30
|
constructor(transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, transactionScreenConfigurationService: TransactionScreenConfigurationService, dialogService: DialogService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
30
31
|
ngOnInit(): void;
|
|
@@ -15302,6 +15302,7 @@ export declare class Dictionaries {
|
|
|
15302
15302
|
RENDERS_AVAILABLE: string;
|
|
15303
15303
|
REOPEN: string;
|
|
15304
15304
|
REOPEN_ABSENCEFILE: string;
|
|
15305
|
+
REOPEN_EXTERNAL_ORDER: string;
|
|
15305
15306
|
REOPEN_SELECTOR: string;
|
|
15306
15307
|
REPEATING: string;
|
|
15307
15308
|
REPEAT_LAST_OPTION_QUESTION: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
|
|
2
|
+
import { BaseModuleScreenConfigService } from '@colijnit/corecomponents_v12';
|
|
3
|
+
import { TransactionConnectorAdapterService } from './transaction-connector-adapter.service';
|
|
4
|
+
export declare class CartScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
5
|
+
private _transactionAdapterService;
|
|
6
|
+
readonly screenModuleName: string;
|
|
7
|
+
private _screenConfigurationObjectCache;
|
|
8
|
+
constructor(_transactionAdapterService: TransactionConnectorAdapterService);
|
|
9
|
+
clear(): void;
|
|
10
|
+
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
11
|
+
private _setScreenConfigurationObjectCache;
|
|
12
|
+
private _screenConfigurationLoaded;
|
|
13
|
+
}
|
|
@@ -110,7 +110,6 @@ export declare class TransactionBaseService extends BaseModuleService {
|
|
|
110
110
|
searchTransactions(request: TransactionSearchViewRequest): Promise<TransactionSearchResult>;
|
|
111
111
|
getTransactionById(transactionId: number): Promise<void>;
|
|
112
112
|
getTransactionByNrAndKind(transactionNr: number, transactionKind: TransactionKind): Promise<void>;
|
|
113
|
-
getRefreshedTransactionFromDatabase(transactionId: number): Promise<void>;
|
|
114
113
|
getWebSessionSalesOrder(): Promise<void>;
|
|
115
114
|
tryToLockTransaction(id: number, version: number, secondAttempt?: boolean): Promise<boolean>;
|
|
116
115
|
getTransactionInfo(transId: number, lineId: number): Promise<TransactionInfoHistory[]>;
|
|
@@ -154,7 +154,6 @@ export declare class TransactionConnectorAdapterService {
|
|
|
154
154
|
getArticleBoundTextLinesOfArticleLine(articleLineUuid: string): Promise<TransactionLineInfo[]>;
|
|
155
155
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<TransactionInfoResponse>;
|
|
156
156
|
getTransactionById(transactionId: number): Promise<TransactionInfoResponse>;
|
|
157
|
-
getRefreshedTransactionFromDatabase(transactionId: number): Promise<TransactionInfoResponse>;
|
|
158
157
|
getWebSessionSalesOrder(): Promise<TransactionInfoResponse>;
|
|
159
158
|
deleteTransactionByUuId(uuid: string): Promise<TransactionInfoResponse>;
|
|
160
159
|
lockTransactionById(transactionId: number, version: number): Promise<TransactionLockResult>;
|
|
@@ -143,7 +143,6 @@ export declare class TransactionConnectorService {
|
|
|
143
143
|
getArticleBoundTextLinesOfArticleLine(articleLineUuid: string): Promise<TransactionLineInfo[]>;
|
|
144
144
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<TransactionInfoResponse>;
|
|
145
145
|
getTransactionById(transactionId: number): Promise<TransactionInfoResponse>;
|
|
146
|
-
getRefreshedTransactionFromDatabase(transactionId: number): Promise<TransactionInfoResponse>;
|
|
147
146
|
getWebSessionSalesOrder(): Promise<TransactionInfoResponse>;
|
|
148
147
|
deleteTransactionByUuId(uuid: string): Promise<TransactionInfoResponse>;
|
|
149
148
|
lockTransactionById(transId: number, version: number): Promise<TransactionLockResult>;
|