@colijnit/transaction 262.1.31 → 300.1.0
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/fesm2022/colijnit-transaction.mjs +276 -277
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/package.json +11 -11
|
@@ -355,8 +355,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
355
355
|
class Version {
|
|
356
356
|
name = "@colijnit/transaction";
|
|
357
357
|
description = "Colijn IT transaction package";
|
|
358
|
-
symVer = "
|
|
359
|
-
publishDate = "7/
|
|
358
|
+
symVer = "300.1.0";
|
|
359
|
+
publishDate = "7/14/2026, 11:02:07 AM";
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -6856,6 +6856,7 @@ class TransactionConnectorAdapterService {
|
|
|
6856
6856
|
async updatePlanTransportWeek(planTransportWeek) {
|
|
6857
6857
|
const response = await this.connector.updatePlanTransportWeek(planTransportWeek);
|
|
6858
6858
|
if (response && response.validationResult && response.validationResult.success) {
|
|
6859
|
+
await this.connector.commit();
|
|
6859
6860
|
return true;
|
|
6860
6861
|
}
|
|
6861
6862
|
else {
|
|
@@ -10134,9 +10135,6 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
10134
10135
|
this.transactionEventService.transactionCommitted.next(true);
|
|
10135
10136
|
return this.connector.commit();
|
|
10136
10137
|
}
|
|
10137
|
-
commitGeneral() {
|
|
10138
|
-
return this.connector.commit();
|
|
10139
|
-
}
|
|
10140
10138
|
async rollback(refresh = false, force = false) {
|
|
10141
10139
|
if (!this.transactionLocked) {
|
|
10142
10140
|
return true;
|
|
@@ -24166,242 +24164,242 @@ class DeliveryPlanningOverviewTileLineComponent {
|
|
|
24166
24164
|
this.deliveryPlanningService.transactionNavigation.next({ transactionNr: transNr, transactionKind: this.order.type });
|
|
24167
24165
|
}
|
|
24168
24166
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningOverviewTileLineComponent, deps: [{ token: IconCacheService }, { token: DeliveryPlanningService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24169
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DeliveryPlanningOverviewTileLineComponent, isStandalone: false, selector: "co-delivery-planning-overview-tile-line", inputs: { order: "order", isActive: "isActive", linesActive: "linesActive" }, outputs: { deleteOrderEvent: "deleteOrderEvent", deleteOrderLineEvent: "deleteOrderLineEvent", editOrderEvent: "editOrderEvent", moveOrderUpEvent: "moveOrderUpEvent", moveOrderDownEvent: "moveOrderDownEvent", transactionClick: "transactionClick" }, host: { properties: { "class.co-delivery-planning-overview-tile-line": "this.showClass" } }, ngImport: i0, template: `
|
|
24170
|
-
<div class="planning-line-wrapper"
|
|
24171
|
-
[class.normal-mode]="isActive"
|
|
24172
|
-
[class.active-lines]="linesActive"
|
|
24173
|
-
[ngClass]="'color-' + (order?.type || 'unknown')">
|
|
24174
|
-
<div class="planning-line-content">
|
|
24175
|
-
<div class="planning-line-left">
|
|
24176
|
-
<div class="line-expand-icon" (click)="showNormalOrderLines($event)">
|
|
24177
|
-
@if (!linesActive) {
|
|
24178
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)"></co-icon>
|
|
24179
|
-
}
|
|
24180
|
-
@if (linesActive) {
|
|
24181
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)"></co-icon>
|
|
24182
|
-
}
|
|
24183
|
-
</div>
|
|
24184
|
-
<div class="line-content-left">
|
|
24185
|
-
<div class="line-content-link">
|
|
24186
|
-
<co-icon
|
|
24187
|
-
[iconData]="iconCacheService.getIcon(icons.DetailView)"
|
|
24188
|
-
(click)="handleTransactionNavigationClick($event, order?.transactionNr?.toString())"
|
|
24189
|
-
></co-icon>
|
|
24190
|
-
</div>
|
|
24191
|
-
<div class="line-content-data">
|
|
24192
|
-
<div class="planning-address">
|
|
24193
|
-
<span [textContent]="order?.shortAddress"></span>
|
|
24194
|
-
</div>
|
|
24195
|
-
<div class="planning-relation">
|
|
24196
|
-
<span [textContent]="order?.relationName"></span>
|
|
24197
|
-
</div>
|
|
24198
|
-
</div>
|
|
24199
|
-
</div>
|
|
24200
|
-
</div>
|
|
24201
|
-
<div class="planning-line-right">
|
|
24202
|
-
<div class="line-content-right">
|
|
24203
|
-
<div class="planning-time" (click)="handleEditOrderEvent(order)">
|
|
24204
|
-
<co-icon (click)="handleEditOrderEvent(order)" [iconData]="iconCacheService.getIcon(icons.DetailView)"></co-icon>
|
|
24205
|
-
<span [textContent]="(order?.startTime | date: 'HH:mm') + ' - ' + (order?.endTime | date: 'HH:mm')"></span>
|
|
24206
|
-
</div>
|
|
24207
|
-
<div class="planning-order">
|
|
24208
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.CartShoppingRegular)"></co-icon>
|
|
24209
|
-
<span [textContent]="order?.transactionNr"></span>
|
|
24210
|
-
</div>
|
|
24211
|
-
</div>
|
|
24212
|
-
<div class="planning-line-actions">
|
|
24213
|
-
<co-icon (click)="handleDeleteOrderClick($event, order)"
|
|
24214
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24215
|
-
</div>
|
|
24216
|
-
</div>
|
|
24217
|
-
</div>
|
|
24218
|
-
@if (linesActive) {
|
|
24219
|
-
<div class="order-line-list-wrapper">
|
|
24220
|
-
<div class="top-order-lines">
|
|
24221
|
-
<span class="products"
|
|
24222
|
-
[class.active]="viewMode === 'products'"
|
|
24223
|
-
(click)="switchViewMode('products', $event)"
|
|
24224
|
-
[textContent]="'PRODUCTS' | localize"></span>
|
|
24225
|
-
<span class="tasks"
|
|
24226
|
-
[class.active]="viewMode === 'tasks'"
|
|
24227
|
-
(click)="switchViewMode('tasks', $event)"
|
|
24228
|
-
[textContent]="'TASKS' | localize"></span>
|
|
24229
|
-
</div>
|
|
24230
|
-
@if (viewMode === 'products') {
|
|
24231
|
-
<div class="order-lines-wrapper products">
|
|
24232
|
-
<div class="lines-header">
|
|
24233
|
-
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24234
|
-
<span class="qty" [textContent]="'QUANTITY' | localize"></span>
|
|
24235
|
-
<span class="mnt" [textContent]="'ASSEMBLY' | localize"></span>
|
|
24236
|
-
<span class="vlm" [textContent]="'VOLUME' | localize"></span>
|
|
24237
|
-
</div>
|
|
24238
|
-
@for (line of getPlannedLines(order?.lines); track line) {
|
|
24239
|
-
<div class="order-lines">
|
|
24240
|
-
<div class="lines-content">
|
|
24241
|
-
<span class="desc" [textContent]="line.description"></span>
|
|
24242
|
-
<span class="qty" [textContent]="line.amountPlanned"></span>
|
|
24243
|
-
<span class="mnt" [textContent]="line.deliveryFactor"></span>
|
|
24244
|
-
<span class="vlm" [textContent]="line.volume"></span>
|
|
24245
|
-
@if (linesActive || isActive) {
|
|
24246
|
-
<co-icon class="remove-line" (click)="handleDeleteOrderLineClick(order, line)"
|
|
24247
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24248
|
-
}
|
|
24249
|
-
</div>
|
|
24250
|
-
</div>
|
|
24251
|
-
}
|
|
24252
|
-
</div>
|
|
24253
|
-
}
|
|
24254
|
-
@if (viewMode === 'tasks') {
|
|
24255
|
-
<div class="order-lines-wrapper tasks">
|
|
24256
|
-
<div class="lines-header">
|
|
24257
|
-
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24258
|
-
<span class="qty" [textContent]="'ID' | localize"></span>
|
|
24259
|
-
<span class="mnt" [textContent]="'STATE' | localize"></span>
|
|
24260
|
-
<span class="vlm" [textContent]="'DATE' | localize"></span>
|
|
24261
|
-
</div>
|
|
24262
|
-
@for (task of getPlannedTasks(order?.tasks); track task) {
|
|
24263
|
-
<div class="order-lines">
|
|
24264
|
-
<div class="lines-content">
|
|
24265
|
-
<span class="desc" [textContent]="task.name"></span>
|
|
24266
|
-
<span class="qty" [textContent]="task.taskId"></span>
|
|
24267
|
-
<span class="mnt" [textContent]="task.state"></span>
|
|
24268
|
-
<span class="vlm" [textContent]="task.creationDate"></span>
|
|
24269
|
-
</div>
|
|
24270
|
-
</div>
|
|
24271
|
-
}
|
|
24272
|
-
</div>
|
|
24273
|
-
}
|
|
24274
|
-
</div>
|
|
24275
|
-
}
|
|
24276
|
-
|
|
24277
|
-
</div>
|
|
24278
|
-
@if (linesActive) {
|
|
24279
|
-
<div class="reorder-buttons">
|
|
24280
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)" (click)="handleMoveOrderUp()"></co-icon>
|
|
24281
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)" (click)="handleMoveOrderDown()"></co-icon>
|
|
24282
|
-
</div>
|
|
24283
|
-
}
|
|
24167
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DeliveryPlanningOverviewTileLineComponent, isStandalone: false, selector: "co-delivery-planning-overview-tile-line", inputs: { order: "order", isActive: "isActive", linesActive: "linesActive" }, outputs: { deleteOrderEvent: "deleteOrderEvent", deleteOrderLineEvent: "deleteOrderLineEvent", editOrderEvent: "editOrderEvent", moveOrderUpEvent: "moveOrderUpEvent", moveOrderDownEvent: "moveOrderDownEvent", transactionClick: "transactionClick" }, host: { properties: { "class.co-delivery-planning-overview-tile-line": "this.showClass" } }, ngImport: i0, template: `
|
|
24168
|
+
<div class="planning-line-wrapper"
|
|
24169
|
+
[class.normal-mode]="isActive"
|
|
24170
|
+
[class.active-lines]="linesActive"
|
|
24171
|
+
[ngClass]="'color-' + (order?.type || 'unknown')">
|
|
24172
|
+
<div class="planning-line-content">
|
|
24173
|
+
<div class="planning-line-left">
|
|
24174
|
+
<div class="line-expand-icon" (click)="showNormalOrderLines($event)">
|
|
24175
|
+
@if (!linesActive) {
|
|
24176
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)"></co-icon>
|
|
24177
|
+
}
|
|
24178
|
+
@if (linesActive) {
|
|
24179
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)"></co-icon>
|
|
24180
|
+
}
|
|
24181
|
+
</div>
|
|
24182
|
+
<div class="line-content-left">
|
|
24183
|
+
<div class="line-content-link">
|
|
24184
|
+
<co-icon
|
|
24185
|
+
[iconData]="iconCacheService.getIcon(icons.DetailView)"
|
|
24186
|
+
(click)="handleTransactionNavigationClick($event, order?.transactionNr?.toString())"
|
|
24187
|
+
></co-icon>
|
|
24188
|
+
</div>
|
|
24189
|
+
<div class="line-content-data">
|
|
24190
|
+
<div class="planning-address">
|
|
24191
|
+
<span [textContent]="order?.shortAddress"></span>
|
|
24192
|
+
</div>
|
|
24193
|
+
<div class="planning-relation">
|
|
24194
|
+
<span [textContent]="order?.relationName"></span>
|
|
24195
|
+
</div>
|
|
24196
|
+
</div>
|
|
24197
|
+
</div>
|
|
24198
|
+
</div>
|
|
24199
|
+
<div class="planning-line-right">
|
|
24200
|
+
<div class="line-content-right">
|
|
24201
|
+
<div class="planning-time" (click)="handleEditOrderEvent(order)">
|
|
24202
|
+
<co-icon (click)="handleEditOrderEvent(order)" [iconData]="iconCacheService.getIcon(icons.DetailView)"></co-icon>
|
|
24203
|
+
<span [textContent]="(order?.startTime | date: 'HH:mm') + ' - ' + (order?.endTime | date: 'HH:mm')"></span>
|
|
24204
|
+
</div>
|
|
24205
|
+
<div class="planning-order">
|
|
24206
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.CartShoppingRegular)"></co-icon>
|
|
24207
|
+
<span [textContent]="order?.transactionNr"></span>
|
|
24208
|
+
</div>
|
|
24209
|
+
</div>
|
|
24210
|
+
<div class="planning-line-actions">
|
|
24211
|
+
<co-icon (click)="handleDeleteOrderClick($event, order)"
|
|
24212
|
+
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24213
|
+
</div>
|
|
24214
|
+
</div>
|
|
24215
|
+
</div>
|
|
24216
|
+
@if (linesActive) {
|
|
24217
|
+
<div class="order-line-list-wrapper">
|
|
24218
|
+
<div class="top-order-lines">
|
|
24219
|
+
<span class="products"
|
|
24220
|
+
[class.active]="viewMode === 'products'"
|
|
24221
|
+
(click)="switchViewMode('products', $event)"
|
|
24222
|
+
[textContent]="'PRODUCTS' | localize"></span>
|
|
24223
|
+
<span class="tasks"
|
|
24224
|
+
[class.active]="viewMode === 'tasks'"
|
|
24225
|
+
(click)="switchViewMode('tasks', $event)"
|
|
24226
|
+
[textContent]="'TASKS' | localize"></span>
|
|
24227
|
+
</div>
|
|
24228
|
+
@if (viewMode === 'products') {
|
|
24229
|
+
<div class="order-lines-wrapper products">
|
|
24230
|
+
<div class="lines-header">
|
|
24231
|
+
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24232
|
+
<span class="qty" [textContent]="'QUANTITY' | localize"></span>
|
|
24233
|
+
<span class="mnt" [textContent]="'ASSEMBLY' | localize"></span>
|
|
24234
|
+
<span class="vlm" [textContent]="'VOLUME' | localize"></span>
|
|
24235
|
+
</div>
|
|
24236
|
+
@for (line of getPlannedLines(order?.lines); track line) {
|
|
24237
|
+
<div class="order-lines">
|
|
24238
|
+
<div class="lines-content">
|
|
24239
|
+
<span class="desc" [textContent]="line.description"></span>
|
|
24240
|
+
<span class="qty" [textContent]="line.amountPlanned"></span>
|
|
24241
|
+
<span class="mnt" [textContent]="line.deliveryFactor"></span>
|
|
24242
|
+
<span class="vlm" [textContent]="line.volume"></span>
|
|
24243
|
+
@if (linesActive || isActive) {
|
|
24244
|
+
<co-icon class="remove-line" (click)="handleDeleteOrderLineClick(order, line)"
|
|
24245
|
+
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24246
|
+
}
|
|
24247
|
+
</div>
|
|
24248
|
+
</div>
|
|
24249
|
+
}
|
|
24250
|
+
</div>
|
|
24251
|
+
}
|
|
24252
|
+
@if (viewMode === 'tasks') {
|
|
24253
|
+
<div class="order-lines-wrapper tasks">
|
|
24254
|
+
<div class="lines-header">
|
|
24255
|
+
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24256
|
+
<span class="qty" [textContent]="'ID' | localize"></span>
|
|
24257
|
+
<span class="mnt" [textContent]="'STATE' | localize"></span>
|
|
24258
|
+
<span class="vlm" [textContent]="'DATE' | localize"></span>
|
|
24259
|
+
</div>
|
|
24260
|
+
@for (task of getPlannedTasks(order?.tasks); track task) {
|
|
24261
|
+
<div class="order-lines">
|
|
24262
|
+
<div class="lines-content">
|
|
24263
|
+
<span class="desc" [textContent]="task.name"></span>
|
|
24264
|
+
<span class="qty" [textContent]="task.taskId"></span>
|
|
24265
|
+
<span class="mnt" [textContent]="task.state"></span>
|
|
24266
|
+
<span class="vlm" [textContent]="task.creationDate"></span>
|
|
24267
|
+
</div>
|
|
24268
|
+
</div>
|
|
24269
|
+
}
|
|
24270
|
+
</div>
|
|
24271
|
+
}
|
|
24272
|
+
</div>
|
|
24273
|
+
}
|
|
24274
|
+
|
|
24275
|
+
</div>
|
|
24276
|
+
@if (linesActive) {
|
|
24277
|
+
<div class="reorder-buttons">
|
|
24278
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)" (click)="handleMoveOrderUp()"></co-icon>
|
|
24279
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)" (click)="handleMoveOrderDown()"></co-icon>
|
|
24280
|
+
</div>
|
|
24281
|
+
}
|
|
24284
24282
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
24285
24283
|
}
|
|
24286
24284
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningOverviewTileLineComponent, decorators: [{
|
|
24287
24285
|
type: Component,
|
|
24288
24286
|
args: [{
|
|
24289
24287
|
selector: "co-delivery-planning-overview-tile-line",
|
|
24290
|
-
template: `
|
|
24291
|
-
<div class="planning-line-wrapper"
|
|
24292
|
-
[class.normal-mode]="isActive"
|
|
24293
|
-
[class.active-lines]="linesActive"
|
|
24294
|
-
[ngClass]="'color-' + (order?.type || 'unknown')">
|
|
24295
|
-
<div class="planning-line-content">
|
|
24296
|
-
<div class="planning-line-left">
|
|
24297
|
-
<div class="line-expand-icon" (click)="showNormalOrderLines($event)">
|
|
24298
|
-
@if (!linesActive) {
|
|
24299
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)"></co-icon>
|
|
24300
|
-
}
|
|
24301
|
-
@if (linesActive) {
|
|
24302
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)"></co-icon>
|
|
24303
|
-
}
|
|
24304
|
-
</div>
|
|
24305
|
-
<div class="line-content-left">
|
|
24306
|
-
<div class="line-content-link">
|
|
24307
|
-
<co-icon
|
|
24308
|
-
[iconData]="iconCacheService.getIcon(icons.DetailView)"
|
|
24309
|
-
(click)="handleTransactionNavigationClick($event, order?.transactionNr?.toString())"
|
|
24310
|
-
></co-icon>
|
|
24311
|
-
</div>
|
|
24312
|
-
<div class="line-content-data">
|
|
24313
|
-
<div class="planning-address">
|
|
24314
|
-
<span [textContent]="order?.shortAddress"></span>
|
|
24315
|
-
</div>
|
|
24316
|
-
<div class="planning-relation">
|
|
24317
|
-
<span [textContent]="order?.relationName"></span>
|
|
24318
|
-
</div>
|
|
24319
|
-
</div>
|
|
24320
|
-
</div>
|
|
24321
|
-
</div>
|
|
24322
|
-
<div class="planning-line-right">
|
|
24323
|
-
<div class="line-content-right">
|
|
24324
|
-
<div class="planning-time" (click)="handleEditOrderEvent(order)">
|
|
24325
|
-
<co-icon (click)="handleEditOrderEvent(order)" [iconData]="iconCacheService.getIcon(icons.DetailView)"></co-icon>
|
|
24326
|
-
<span [textContent]="(order?.startTime | date: 'HH:mm') + ' - ' + (order?.endTime | date: 'HH:mm')"></span>
|
|
24327
|
-
</div>
|
|
24328
|
-
<div class="planning-order">
|
|
24329
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.CartShoppingRegular)"></co-icon>
|
|
24330
|
-
<span [textContent]="order?.transactionNr"></span>
|
|
24331
|
-
</div>
|
|
24332
|
-
</div>
|
|
24333
|
-
<div class="planning-line-actions">
|
|
24334
|
-
<co-icon (click)="handleDeleteOrderClick($event, order)"
|
|
24335
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24336
|
-
</div>
|
|
24337
|
-
</div>
|
|
24338
|
-
</div>
|
|
24339
|
-
@if (linesActive) {
|
|
24340
|
-
<div class="order-line-list-wrapper">
|
|
24341
|
-
<div class="top-order-lines">
|
|
24342
|
-
<span class="products"
|
|
24343
|
-
[class.active]="viewMode === 'products'"
|
|
24344
|
-
(click)="switchViewMode('products', $event)"
|
|
24345
|
-
[textContent]="'PRODUCTS' | localize"></span>
|
|
24346
|
-
<span class="tasks"
|
|
24347
|
-
[class.active]="viewMode === 'tasks'"
|
|
24348
|
-
(click)="switchViewMode('tasks', $event)"
|
|
24349
|
-
[textContent]="'TASKS' | localize"></span>
|
|
24350
|
-
</div>
|
|
24351
|
-
@if (viewMode === 'products') {
|
|
24352
|
-
<div class="order-lines-wrapper products">
|
|
24353
|
-
<div class="lines-header">
|
|
24354
|
-
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24355
|
-
<span class="qty" [textContent]="'QUANTITY' | localize"></span>
|
|
24356
|
-
<span class="mnt" [textContent]="'ASSEMBLY' | localize"></span>
|
|
24357
|
-
<span class="vlm" [textContent]="'VOLUME' | localize"></span>
|
|
24358
|
-
</div>
|
|
24359
|
-
@for (line of getPlannedLines(order?.lines); track line) {
|
|
24360
|
-
<div class="order-lines">
|
|
24361
|
-
<div class="lines-content">
|
|
24362
|
-
<span class="desc" [textContent]="line.description"></span>
|
|
24363
|
-
<span class="qty" [textContent]="line.amountPlanned"></span>
|
|
24364
|
-
<span class="mnt" [textContent]="line.deliveryFactor"></span>
|
|
24365
|
-
<span class="vlm" [textContent]="line.volume"></span>
|
|
24366
|
-
@if (linesActive || isActive) {
|
|
24367
|
-
<co-icon class="remove-line" (click)="handleDeleteOrderLineClick(order, line)"
|
|
24368
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24369
|
-
}
|
|
24370
|
-
</div>
|
|
24371
|
-
</div>
|
|
24372
|
-
}
|
|
24373
|
-
</div>
|
|
24374
|
-
}
|
|
24375
|
-
@if (viewMode === 'tasks') {
|
|
24376
|
-
<div class="order-lines-wrapper tasks">
|
|
24377
|
-
<div class="lines-header">
|
|
24378
|
-
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24379
|
-
<span class="qty" [textContent]="'ID' | localize"></span>
|
|
24380
|
-
<span class="mnt" [textContent]="'STATE' | localize"></span>
|
|
24381
|
-
<span class="vlm" [textContent]="'DATE' | localize"></span>
|
|
24382
|
-
</div>
|
|
24383
|
-
@for (task of getPlannedTasks(order?.tasks); track task) {
|
|
24384
|
-
<div class="order-lines">
|
|
24385
|
-
<div class="lines-content">
|
|
24386
|
-
<span class="desc" [textContent]="task.name"></span>
|
|
24387
|
-
<span class="qty" [textContent]="task.taskId"></span>
|
|
24388
|
-
<span class="mnt" [textContent]="task.state"></span>
|
|
24389
|
-
<span class="vlm" [textContent]="task.creationDate"></span>
|
|
24390
|
-
</div>
|
|
24391
|
-
</div>
|
|
24392
|
-
}
|
|
24393
|
-
</div>
|
|
24394
|
-
}
|
|
24395
|
-
</div>
|
|
24396
|
-
}
|
|
24397
|
-
|
|
24398
|
-
</div>
|
|
24399
|
-
@if (linesActive) {
|
|
24400
|
-
<div class="reorder-buttons">
|
|
24401
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)" (click)="handleMoveOrderUp()"></co-icon>
|
|
24402
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)" (click)="handleMoveOrderDown()"></co-icon>
|
|
24403
|
-
</div>
|
|
24404
|
-
}
|
|
24288
|
+
template: `
|
|
24289
|
+
<div class="planning-line-wrapper"
|
|
24290
|
+
[class.normal-mode]="isActive"
|
|
24291
|
+
[class.active-lines]="linesActive"
|
|
24292
|
+
[ngClass]="'color-' + (order?.type || 'unknown')">
|
|
24293
|
+
<div class="planning-line-content">
|
|
24294
|
+
<div class="planning-line-left">
|
|
24295
|
+
<div class="line-expand-icon" (click)="showNormalOrderLines($event)">
|
|
24296
|
+
@if (!linesActive) {
|
|
24297
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)"></co-icon>
|
|
24298
|
+
}
|
|
24299
|
+
@if (linesActive) {
|
|
24300
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)"></co-icon>
|
|
24301
|
+
}
|
|
24302
|
+
</div>
|
|
24303
|
+
<div class="line-content-left">
|
|
24304
|
+
<div class="line-content-link">
|
|
24305
|
+
<co-icon
|
|
24306
|
+
[iconData]="iconCacheService.getIcon(icons.DetailView)"
|
|
24307
|
+
(click)="handleTransactionNavigationClick($event, order?.transactionNr?.toString())"
|
|
24308
|
+
></co-icon>
|
|
24309
|
+
</div>
|
|
24310
|
+
<div class="line-content-data">
|
|
24311
|
+
<div class="planning-address">
|
|
24312
|
+
<span [textContent]="order?.shortAddress"></span>
|
|
24313
|
+
</div>
|
|
24314
|
+
<div class="planning-relation">
|
|
24315
|
+
<span [textContent]="order?.relationName"></span>
|
|
24316
|
+
</div>
|
|
24317
|
+
</div>
|
|
24318
|
+
</div>
|
|
24319
|
+
</div>
|
|
24320
|
+
<div class="planning-line-right">
|
|
24321
|
+
<div class="line-content-right">
|
|
24322
|
+
<div class="planning-time" (click)="handleEditOrderEvent(order)">
|
|
24323
|
+
<co-icon (click)="handleEditOrderEvent(order)" [iconData]="iconCacheService.getIcon(icons.DetailView)"></co-icon>
|
|
24324
|
+
<span [textContent]="(order?.startTime | date: 'HH:mm') + ' - ' + (order?.endTime | date: 'HH:mm')"></span>
|
|
24325
|
+
</div>
|
|
24326
|
+
<div class="planning-order">
|
|
24327
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.CartShoppingRegular)"></co-icon>
|
|
24328
|
+
<span [textContent]="order?.transactionNr"></span>
|
|
24329
|
+
</div>
|
|
24330
|
+
</div>
|
|
24331
|
+
<div class="planning-line-actions">
|
|
24332
|
+
<co-icon (click)="handleDeleteOrderClick($event, order)"
|
|
24333
|
+
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24334
|
+
</div>
|
|
24335
|
+
</div>
|
|
24336
|
+
</div>
|
|
24337
|
+
@if (linesActive) {
|
|
24338
|
+
<div class="order-line-list-wrapper">
|
|
24339
|
+
<div class="top-order-lines">
|
|
24340
|
+
<span class="products"
|
|
24341
|
+
[class.active]="viewMode === 'products'"
|
|
24342
|
+
(click)="switchViewMode('products', $event)"
|
|
24343
|
+
[textContent]="'PRODUCTS' | localize"></span>
|
|
24344
|
+
<span class="tasks"
|
|
24345
|
+
[class.active]="viewMode === 'tasks'"
|
|
24346
|
+
(click)="switchViewMode('tasks', $event)"
|
|
24347
|
+
[textContent]="'TASKS' | localize"></span>
|
|
24348
|
+
</div>
|
|
24349
|
+
@if (viewMode === 'products') {
|
|
24350
|
+
<div class="order-lines-wrapper products">
|
|
24351
|
+
<div class="lines-header">
|
|
24352
|
+
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24353
|
+
<span class="qty" [textContent]="'QUANTITY' | localize"></span>
|
|
24354
|
+
<span class="mnt" [textContent]="'ASSEMBLY' | localize"></span>
|
|
24355
|
+
<span class="vlm" [textContent]="'VOLUME' | localize"></span>
|
|
24356
|
+
</div>
|
|
24357
|
+
@for (line of getPlannedLines(order?.lines); track line) {
|
|
24358
|
+
<div class="order-lines">
|
|
24359
|
+
<div class="lines-content">
|
|
24360
|
+
<span class="desc" [textContent]="line.description"></span>
|
|
24361
|
+
<span class="qty" [textContent]="line.amountPlanned"></span>
|
|
24362
|
+
<span class="mnt" [textContent]="line.deliveryFactor"></span>
|
|
24363
|
+
<span class="vlm" [textContent]="line.volume"></span>
|
|
24364
|
+
@if (linesActive || isActive) {
|
|
24365
|
+
<co-icon class="remove-line" (click)="handleDeleteOrderLineClick(order, line)"
|
|
24366
|
+
[iconData]="iconCacheService.getIcon(icons.TrashCanRegular)"></co-icon>
|
|
24367
|
+
}
|
|
24368
|
+
</div>
|
|
24369
|
+
</div>
|
|
24370
|
+
}
|
|
24371
|
+
</div>
|
|
24372
|
+
}
|
|
24373
|
+
@if (viewMode === 'tasks') {
|
|
24374
|
+
<div class="order-lines-wrapper tasks">
|
|
24375
|
+
<div class="lines-header">
|
|
24376
|
+
<span class="desc" [textContent]="'DESCRIPTION' | localize"></span>
|
|
24377
|
+
<span class="qty" [textContent]="'ID' | localize"></span>
|
|
24378
|
+
<span class="mnt" [textContent]="'STATE' | localize"></span>
|
|
24379
|
+
<span class="vlm" [textContent]="'DATE' | localize"></span>
|
|
24380
|
+
</div>
|
|
24381
|
+
@for (task of getPlannedTasks(order?.tasks); track task) {
|
|
24382
|
+
<div class="order-lines">
|
|
24383
|
+
<div class="lines-content">
|
|
24384
|
+
<span class="desc" [textContent]="task.name"></span>
|
|
24385
|
+
<span class="qty" [textContent]="task.taskId"></span>
|
|
24386
|
+
<span class="mnt" [textContent]="task.state"></span>
|
|
24387
|
+
<span class="vlm" [textContent]="task.creationDate"></span>
|
|
24388
|
+
</div>
|
|
24389
|
+
</div>
|
|
24390
|
+
}
|
|
24391
|
+
</div>
|
|
24392
|
+
}
|
|
24393
|
+
</div>
|
|
24394
|
+
}
|
|
24395
|
+
|
|
24396
|
+
</div>
|
|
24397
|
+
@if (linesActive) {
|
|
24398
|
+
<div class="reorder-buttons">
|
|
24399
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronUpRegular)" (click)="handleMoveOrderUp()"></co-icon>
|
|
24400
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ChevronDownRegular)" (click)="handleMoveOrderDown()"></co-icon>
|
|
24401
|
+
</div>
|
|
24402
|
+
}
|
|
24405
24403
|
`,
|
|
24406
24404
|
encapsulation: ViewEncapsulation.None,
|
|
24407
24405
|
standalone: false
|
|
@@ -24621,32 +24619,32 @@ class DeliveryPlanningOverviewTileDropdownComponent {
|
|
|
24621
24619
|
this.actionClicked.emit(action);
|
|
24622
24620
|
}
|
|
24623
24621
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningOverviewTileDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24624
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DeliveryPlanningOverviewTileDropdownComponent, isStandalone: false, selector: "co-delivery-planning-overview-tile-dropdown", outputs: { actionClicked: "actionClicked" }, host: { properties: { "class.co-delivery-planning-overview-tile-dropdown": "this.showClass" } }, ngImport: i0, template: `
|
|
24625
|
-
<div class="dropdown-panel">
|
|
24626
|
-
<button class="dropdown-action" type="button" (click)="onActionClicked('ORDER_PICKING')">
|
|
24627
|
-
<span [textContent]="'ORDER_PICKING' | localize"></span>
|
|
24628
|
-
</button>
|
|
24629
|
-
|
|
24630
|
-
<button class="dropdown-action" type="button" (click)="onActionClicked('DELIVERY_SLIP')">
|
|
24631
|
-
<span [textContent]="'DELIVERY_SLIP' | localize"></span>
|
|
24632
|
-
</button>
|
|
24633
|
-
</div>
|
|
24622
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DeliveryPlanningOverviewTileDropdownComponent, isStandalone: false, selector: "co-delivery-planning-overview-tile-dropdown", outputs: { actionClicked: "actionClicked" }, host: { properties: { "class.co-delivery-planning-overview-tile-dropdown": "this.showClass" } }, ngImport: i0, template: `
|
|
24623
|
+
<div class="dropdown-panel">
|
|
24624
|
+
<button class="dropdown-action" type="button" (click)="onActionClicked('ORDER_PICKING')">
|
|
24625
|
+
<span [textContent]="'ORDER_PICKING' | localize"></span>
|
|
24626
|
+
</button>
|
|
24627
|
+
|
|
24628
|
+
<button class="dropdown-action" type="button" (click)="onActionClicked('DELIVERY_SLIP')">
|
|
24629
|
+
<span [textContent]="'DELIVERY_SLIP' | localize"></span>
|
|
24630
|
+
</button>
|
|
24631
|
+
</div>
|
|
24634
24632
|
`, isInline: true, dependencies: [{ kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
24635
24633
|
}
|
|
24636
24634
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningOverviewTileDropdownComponent, decorators: [{
|
|
24637
24635
|
type: Component,
|
|
24638
24636
|
args: [{
|
|
24639
24637
|
selector: 'co-delivery-planning-overview-tile-dropdown',
|
|
24640
|
-
template: `
|
|
24641
|
-
<div class="dropdown-panel">
|
|
24642
|
-
<button class="dropdown-action" type="button" (click)="onActionClicked('ORDER_PICKING')">
|
|
24643
|
-
<span [textContent]="'ORDER_PICKING' | localize"></span>
|
|
24644
|
-
</button>
|
|
24645
|
-
|
|
24646
|
-
<button class="dropdown-action" type="button" (click)="onActionClicked('DELIVERY_SLIP')">
|
|
24647
|
-
<span [textContent]="'DELIVERY_SLIP' | localize"></span>
|
|
24648
|
-
</button>
|
|
24649
|
-
</div>
|
|
24638
|
+
template: `
|
|
24639
|
+
<div class="dropdown-panel">
|
|
24640
|
+
<button class="dropdown-action" type="button" (click)="onActionClicked('ORDER_PICKING')">
|
|
24641
|
+
<span [textContent]="'ORDER_PICKING' | localize"></span>
|
|
24642
|
+
</button>
|
|
24643
|
+
|
|
24644
|
+
<button class="dropdown-action" type="button" (click)="onActionClicked('DELIVERY_SLIP')">
|
|
24645
|
+
<span [textContent]="'DELIVERY_SLIP' | localize"></span>
|
|
24646
|
+
</button>
|
|
24647
|
+
</div>
|
|
24650
24648
|
`,
|
|
24651
24649
|
standalone: false,
|
|
24652
24650
|
encapsulation: ViewEncapsulation.None
|
|
@@ -26843,8 +26841,7 @@ class DeliveryPlanningMainComponent {
|
|
|
26843
26841
|
this._deliveryPlanningService.deletingOrder.dateResetNeeded = true;
|
|
26844
26842
|
await this._transactionConn.restoreDeliverySettings([this._deliveryPlanningService.deletingOrder]);
|
|
26845
26843
|
}
|
|
26846
|
-
if (this._transaction.currentTransaction.transactionInfo.id) {
|
|
26847
|
-
await this._transaction.commit();
|
|
26844
|
+
if (this._transaction.currentTransaction.transactionInfo.id && this._deliveryPlanningService.currentPlanningMode === DeliveryPlanningModes.Transaction) {
|
|
26848
26845
|
await this._transaction.getTransactionById(this._transaction.currentTransaction?.transactionInfo?.id);
|
|
26849
26846
|
this._transaction.currentPlanOrder = await this._transaction.getPlanOrder(this._transaction.currentTransaction.transactionInfo.id);
|
|
26850
26847
|
}
|
|
@@ -26859,7 +26856,6 @@ class DeliveryPlanningMainComponent {
|
|
|
26859
26856
|
}
|
|
26860
26857
|
}
|
|
26861
26858
|
this._changeDetector.detectChanges();
|
|
26862
|
-
await this._transactionBaseService.commitGeneral();
|
|
26863
26859
|
if (updateData.action === DeliveryPlanningUpdateActions.DeleteOrderReplan && updateData.resolve) {
|
|
26864
26860
|
updateData.resolve();
|
|
26865
26861
|
}
|
|
@@ -45517,7 +45513,6 @@ class DialogCatalogComponent {
|
|
|
45517
45513
|
[isReturn]="isReturn"
|
|
45518
45514
|
(onAddToCart)="handleAddArticleFromArticleClick($event)"
|
|
45519
45515
|
(onAlternativeClick)="handleOnAlternativeClick($event)"
|
|
45520
|
-
[showRelatedProductsPopup]="showRelatedProductsPopup"
|
|
45521
45516
|
></app-ione-product>
|
|
45522
45517
|
}
|
|
45523
45518
|
</div>
|
|
@@ -45566,7 +45561,7 @@ class DialogCatalogComponent {
|
|
|
45566
45561
|
</co-stock>
|
|
45567
45562
|
</co-dialog>
|
|
45568
45563
|
}
|
|
45569
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i3$1.CatalogSearchComponent, selector: "co-catalog-search", inputs: ["settings", "title", "subTitle", "searchPlaceholder", "createFrozenArticle", "showNavigation", "showLandingPage", "tempFilter", "popupFilter", "showViewModes", "embedded", "externalSource", "isReturn", "currentTransactionBranchId", "generalFilterOrders", "purchaseFilterOrders", "logisticsFilterOrders"], outputs: ["settingsChange", "onLookAtArticleButtonClick", "onArButtonClick", "onAddArticleButtonClick", "onArticleClick", "onStockDetailsClick", "onExternalSourceClick"] }, { kind: "component", type: i2.StockComponent, selector: "co-stock", inputs: ["article", "articleWarehouse", "allWarehouses"], outputs: ["handleStickerClicked", "okButtonClicked", "cancelButtonClicked", "handleClick", "handleTransactionClick"] }, { kind: "component", type: i3$1.CatalogExternalSourceComponent, selector: "co-catalog-external-source", inputs: ["catalogDefinition", "user", "externalCatalogStartupInfo", "title", "subTitle", "searchPlaceholder", "tempFilter", "showNavigation", "options", "embedded", "languageCode", "name"], outputs: ["articleClick", "addArticleClick", "lookAtArticleClick", "iFrameFeedbackReceived"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i6.IoneProductComponent, selector: "app-ione-product", inputs: ["sku", "isReturn", "
|
|
45564
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i3$1.CatalogSearchComponent, selector: "co-catalog-search", inputs: ["settings", "title", "subTitle", "searchPlaceholder", "createFrozenArticle", "showNavigation", "showLandingPage", "tempFilter", "popupFilter", "showViewModes", "embedded", "externalSource", "isReturn", "currentTransactionBranchId", "generalFilterOrders", "purchaseFilterOrders", "logisticsFilterOrders"], outputs: ["settingsChange", "onLookAtArticleButtonClick", "onArButtonClick", "onAddArticleButtonClick", "onArticleClick", "onStockDetailsClick", "onExternalSourceClick"] }, { kind: "component", type: i2.StockComponent, selector: "co-stock", inputs: ["article", "articleWarehouse", "allWarehouses"], outputs: ["handleStickerClicked", "okButtonClicked", "cancelButtonClicked", "handleClick", "handleTransactionClick"] }, { kind: "component", type: i3$1.CatalogExternalSourceComponent, selector: "co-catalog-external-source", inputs: ["catalogDefinition", "user", "externalCatalogStartupInfo", "title", "subTitle", "searchPlaceholder", "tempFilter", "showNavigation", "options", "embedded", "languageCode", "name"], outputs: ["articleClick", "addArticleClick", "lookAtArticleClick", "iFrameFeedbackReceived"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i6.IoneProductComponent, selector: "app-ione-product", inputs: ["sku", "isReturn", "enableRenderCarousel", "settings", "handleAddArticleInternally", "handleAddToCartInternally", "externalButtonTemplate"], outputs: ["onAddToCart", "forceRenderImage", "getRenderForRenderCarousel", "onAlternativeClick", "onArticleInfoReceived", "onArticleReceived", "onSelectionsReceived", "onAddToQuote", "openStockEvent", "onAnswersAvailable"] }, { kind: "component", type: i6.ProductExternalSourceComponent, selector: "co-product-external-source", inputs: ["sku", "catalogDefinition", "ownSettings", "externalSource", "externalCatalogStartupInfo", "options"], outputs: ["addToCart", "addToQuote", "alternativeClick", "configuratorFinished"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: AppendPipe, name: "append" }], animations: [
|
|
45570
45565
|
trigger("showHideProduct", [
|
|
45571
45566
|
state("true", style({ transform: "translateX(-50%)" })),
|
|
45572
45567
|
state("false", style({ transform: "translateX(0)" })),
|
|
@@ -45615,7 +45610,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
45615
45610
|
[isReturn]="isReturn"
|
|
45616
45611
|
(onAddToCart)="handleAddArticleFromArticleClick($event)"
|
|
45617
45612
|
(onAlternativeClick)="handleOnAlternativeClick($event)"
|
|
45618
|
-
[showRelatedProductsPopup]="showRelatedProductsPopup"
|
|
45619
45613
|
></app-ione-product>
|
|
45620
45614
|
}
|
|
45621
45615
|
</div>
|
|
@@ -57116,15 +57110,13 @@ class TransactionLineConfirmedDeliveryDateButtonComponent extends TransactionLin
|
|
|
57116
57110
|
}
|
|
57117
57111
|
}
|
|
57118
57112
|
_checkDates() {
|
|
57119
|
-
if (this.transactionInfo
|
|
57120
|
-
|
|
57121
|
-
this.isConfirmedDateLater = this.confirmedDeliveryDate >= this.transactionLine.deliveryDate;
|
|
57122
|
-
}
|
|
57123
|
-
else {
|
|
57124
|
-
this.isConfirmedDateLater = this.confirmedDeliveryDate >= this.transactionInfo.deliveryDate;
|
|
57125
|
-
}
|
|
57126
|
-
this.changeDetector.detectChanges();
|
|
57113
|
+
if (!this.transactionInfo || !this.transactionLine || !this.confirmedDeliveryDate) {
|
|
57114
|
+
return;
|
|
57127
57115
|
}
|
|
57116
|
+
const confirmedDeliveryDate = new Date(this.confirmedDeliveryDate);
|
|
57117
|
+
const deliveryDate = this.transactionInfo.allowPartialDelivery ? new Date(this.transactionLine.deliveryDate) : new Date(this.transactionInfo.deliveryDate);
|
|
57118
|
+
this.isConfirmedDateLater = confirmedDeliveryDate.getTime() > deliveryDate.getTime();
|
|
57119
|
+
this.changeDetector.detectChanges();
|
|
57128
57120
|
}
|
|
57129
57121
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineConfirmedDeliveryDateButtonComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionLineService }, { token: TransactionEventService }, { token: TransactionService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: DictionaryService }, { token: TransactionImageService }, { token: i0.ChangeDetectorRef }, { token: i1$1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
|
57130
57122
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionLineConfirmedDeliveryDateButtonComponent, isStandalone: false, selector: "co-transaction-line-confirmed-delivery-date-button", inputs: { inputLabel: "inputLabel" }, outputs: { showConfirmedDeliveryDateChange: "showConfirmedDeliveryDateChange" }, host: { properties: { "class.co-transaction-line-confirmed-delivery-date-button": "this.showClass" } }, providers: [
|
|
@@ -57148,7 +57140,7 @@ class TransactionLineConfirmedDeliveryDateButtonComponent extends TransactionLin
|
|
|
57148
57140
|
[rightIconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"
|
|
57149
57141
|
></co-transaction-button>
|
|
57150
57142
|
</div>
|
|
57151
|
-
|
|
57143
|
+
|
|
57152
57144
|
`, isInline: true, dependencies: [{ kind: "component", type: TransactionButtonComponent, selector: "co-transaction-button", inputs: ["label", "title", "statusColor", "readonly", "hidden", "forceReadonly", "iconData", "rightIconData", "showCheckMarkLoader", "checkMarkOverlayVisible", "inputLabel", "insideLabel"], outputs: ["iconClicked"] }, { kind: "component", type: TransactionLineLabelComponent, selector: "co-transaction-line-label", inputs: ["insideLabel"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
57153
57145
|
}
|
|
57154
57146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineConfirmedDeliveryDateButtonComponent, decorators: [{
|
|
@@ -57170,7 +57162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
57170
57162
|
[rightIconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"
|
|
57171
57163
|
></co-transaction-button>
|
|
57172
57164
|
</div>
|
|
57173
|
-
|
|
57165
|
+
|
|
57174
57166
|
`,
|
|
57175
57167
|
providers: [
|
|
57176
57168
|
OverlayService,
|
|
@@ -94026,6 +94018,7 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
94026
94018
|
changeDetector;
|
|
94027
94019
|
_connector;
|
|
94028
94020
|
_deliveryPlanningService;
|
|
94021
|
+
_dialogService;
|
|
94029
94022
|
sendDocumentsComponent;
|
|
94030
94023
|
buttonType = AppPopupButtonType;
|
|
94031
94024
|
showLspPopup = false;
|
|
@@ -94040,7 +94033,7 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
94040
94033
|
showClass() {
|
|
94041
94034
|
return true;
|
|
94042
94035
|
}
|
|
94043
|
-
constructor(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector, _connector, _deliveryPlanningService) {
|
|
94036
|
+
constructor(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector, _connector, _deliveryPlanningService, _dialogService) {
|
|
94044
94037
|
super(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
94045
94038
|
this.transactionHeaderService = transactionHeaderService;
|
|
94046
94039
|
this.transactionEventService = transactionEventService;
|
|
@@ -94052,6 +94045,7 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
94052
94045
|
this.changeDetector = changeDetector;
|
|
94053
94046
|
this._connector = _connector;
|
|
94054
94047
|
this._deliveryPlanningService = _deliveryPlanningService;
|
|
94048
|
+
this._dialogService = _dialogService;
|
|
94055
94049
|
}
|
|
94056
94050
|
ngOnInit() {
|
|
94057
94051
|
super.ngOnInit();
|
|
@@ -94085,10 +94079,15 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
94085
94079
|
}
|
|
94086
94080
|
}
|
|
94087
94081
|
async openPlanningSidePanel() {
|
|
94088
|
-
if (this.transactionService.
|
|
94089
|
-
this.
|
|
94082
|
+
if (!this.transactionService.transactionLocked) {
|
|
94083
|
+
if (this.transactionService.currentTransaction.transactionInfo.id && this.transactionService.currentPlanOrder) {
|
|
94084
|
+
this._deliveryPlanningService.planOrderDate = this.transactionService.currentPlanOrder.deliveryDate;
|
|
94085
|
+
}
|
|
94086
|
+
this.transactionEventService.openSidePanel.next(new TransactionLineInfo());
|
|
94087
|
+
}
|
|
94088
|
+
else {
|
|
94089
|
+
await this._dialogService.showInformation('MESSAGE_SAVE_TRANSACTION_FIRST', true);
|
|
94090
94090
|
}
|
|
94091
|
-
this.transactionEventService.openSidePanel.next(new TransactionLineInfo());
|
|
94092
94091
|
}
|
|
94093
94092
|
allowPartialDelivery() {
|
|
94094
94093
|
if (this.transactionInfo) {
|
|
@@ -94123,7 +94122,7 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
94123
94122
|
handleClose() {
|
|
94124
94123
|
this.showLspPopup = false;
|
|
94125
94124
|
}
|
|
94126
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionConnectorService }, { token: DeliveryPlanningService }], target: i0.ɵɵFactoryTarget.Component });
|
|
94125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionConnectorService }, { token: DeliveryPlanningService }, { token: DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
94127
94126
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessPlanningComponent, isStandalone: false, selector: "co-transaction-quick-access-planning", host: { properties: { "class.co-transaction-quick-access-planning": "this.showClass" } }, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
94128
94127
|
<div class="planning-buttons">
|
|
94129
94128
|
<span class="planning-lsp-button" [class.selected]="lspMode" (click)="toggleLspMode()"><co-icon
|
|
@@ -94196,7 +94195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
94196
94195
|
encapsulation: ViewEncapsulation.None,
|
|
94197
94196
|
standalone: false
|
|
94198
94197
|
}]
|
|
94199
|
-
}], ctorParameters: () => [{ type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionImageService }, { type: DictionaryService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }, { type: TransactionConnectorService }, { type: DeliveryPlanningService }], propDecorators: { sendDocumentsComponent: [{
|
|
94198
|
+
}], ctorParameters: () => [{ type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionImageService }, { type: DictionaryService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }, { type: TransactionConnectorService }, { type: DeliveryPlanningService }, { type: DialogService }], propDecorators: { sendDocumentsComponent: [{
|
|
94200
94199
|
type: ViewChild,
|
|
94201
94200
|
args: [TransactionSendDocumentsComponent]
|
|
94202
94201
|
}], showClass: [{
|