@colijnit/transaction 261.20.44 → 261.20.45
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 +387 -357
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +9 -6
- package/lib/component/payment/style/_layout.scss +6 -0
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +1 -1
- package/package.json +2 -2
|
@@ -354,8 +354,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
354
354
|
class Version {
|
|
355
355
|
name = "@colijnit/transaction";
|
|
356
356
|
description = "Colijn IT transaction package";
|
|
357
|
-
symVer = "261.20.
|
|
358
|
-
publishDate = "
|
|
357
|
+
symVer = "261.20.45";
|
|
358
|
+
publishDate = "03/06/2026, 08:47:45";
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -24549,7 +24549,10 @@ class DeliveryPlanningOverviewTileComponent {
|
|
|
24549
24549
|
}
|
|
24550
24550
|
}
|
|
24551
24551
|
async handleAvailabilityChecked(planOrder) {
|
|
24552
|
-
|
|
24552
|
+
let available = this.transportDay.availableOnDate;
|
|
24553
|
+
available = await this.districtAvailabilityCheck(planOrder);
|
|
24554
|
+
available = await this.deliveryMethodAvailabilityCheck(planOrder);
|
|
24555
|
+
this.availabilityChecked.emit({ transportDay: this.transportDay, available: available });
|
|
24553
24556
|
}
|
|
24554
24557
|
async getOrderLinesPlanned(planOrder) {
|
|
24555
24558
|
let request = new OrderLinesPlannedRequest();
|
|
@@ -25857,15 +25860,16 @@ class DeliveryPlanningOverviewComponent {
|
|
|
25857
25860
|
this.resetPlanningTransportEvent.emit();
|
|
25858
25861
|
}
|
|
25859
25862
|
async handleDeleteOrder(deleteResult, planningTransportWeek) {
|
|
25860
|
-
const oldWeek =
|
|
25861
|
-
|
|
25863
|
+
const oldWeek = structuredClone(planningTransportWeek);
|
|
25864
|
+
const oldWeekTransportId = parseInt(oldWeek[oldWeek.length - 1].toString());
|
|
25862
25865
|
let order = deleteResult.order;
|
|
25863
25866
|
if (order) {
|
|
25864
|
-
if (deleteResult.order.lines.length > 0) {
|
|
25867
|
+
if (deleteResult.order.lines.length > 0 || deleteResult.order.tasks?.length > 0) {
|
|
25865
25868
|
this.deliveryPlanningService.deletingOrder = order;
|
|
25866
25869
|
deleteResult.transport.plannedOrders.splice(deleteResult.transport.plannedOrders.indexOf(order), 1);
|
|
25867
25870
|
this.updatePlanningTransportEvent.emit({
|
|
25868
25871
|
oldWeek: oldWeek,
|
|
25872
|
+
oldWeekTransportId: oldWeekTransportId,
|
|
25869
25873
|
week: planningTransportWeek,
|
|
25870
25874
|
action: DeliveryPlanningUpdateActions.DeletePlannedOrder
|
|
25871
25875
|
});
|
|
@@ -25876,7 +25880,8 @@ class DeliveryPlanningOverviewComponent {
|
|
|
25876
25880
|
}
|
|
25877
25881
|
}
|
|
25878
25882
|
handleDeleteLine(deleteResult, weekDay, transportWeekRow) {
|
|
25879
|
-
let oldWeek = transportWeekRow;
|
|
25883
|
+
let oldWeek = structuredClone(transportWeekRow);
|
|
25884
|
+
const oldWeekTransportId = parseInt(oldWeek[oldWeek.length - 1].toString());
|
|
25880
25885
|
let order = weekDay.plannedOrders.find(order => order.transId === deleteResult.order.transId);
|
|
25881
25886
|
order.lines = order.lines.filter(line => line.originalLineNr !== deleteResult.line.originalLineNr);
|
|
25882
25887
|
if (order.lines.length === 0) {
|
|
@@ -25885,6 +25890,7 @@ class DeliveryPlanningOverviewComponent {
|
|
|
25885
25890
|
this.deliveryPlanningService.deletingOrder = order;
|
|
25886
25891
|
this.updatePlanningTransportEvent.emit({
|
|
25887
25892
|
oldWeek: oldWeek,
|
|
25893
|
+
oldWeekTransportId: oldWeekTransportId,
|
|
25888
25894
|
week: transportWeekRow,
|
|
25889
25895
|
action: DeliveryPlanningUpdateActions.DeletePlannedLines
|
|
25890
25896
|
});
|
|
@@ -25914,8 +25920,8 @@ class DeliveryPlanningOverviewComponent {
|
|
|
25914
25920
|
transportDay.ordersLoaded = true;
|
|
25915
25921
|
}
|
|
25916
25922
|
async planOrderLines(order, transportDay, week) {
|
|
25917
|
-
|
|
25918
|
-
|
|
25923
|
+
let oldWeek = structuredClone(week);
|
|
25924
|
+
const oldWeekTransportId = parseInt(oldWeek[oldWeek.length - 1].toString());
|
|
25919
25925
|
if (order.lines?.length > 0) {
|
|
25920
25926
|
order.linesLoaded = true;
|
|
25921
25927
|
order.tasks = [];
|
|
@@ -25952,6 +25958,7 @@ class DeliveryPlanningOverviewComponent {
|
|
|
25952
25958
|
}
|
|
25953
25959
|
this.updatePlanningTransportEvent.emit({
|
|
25954
25960
|
oldWeek: oldWeek,
|
|
25961
|
+
oldWeekTransportId: oldWeekTransportId,
|
|
25955
25962
|
week: week,
|
|
25956
25963
|
action: DeliveryPlanningUpdateActions.PlanLines
|
|
25957
25964
|
});
|
|
@@ -26024,10 +26031,12 @@ class DeliveryPlanningOverviewComponent {
|
|
|
26024
26031
|
}
|
|
26025
26032
|
async handleSettingsSaved() {
|
|
26026
26033
|
const week = this.planTransportWeekArr.find((week) => week.some((weekDay) => weekDay === this.selectedTransportDay));
|
|
26034
|
+
const oldWeekTransportId = parseInt(week[week.length - 1].toString());
|
|
26027
26035
|
if (week) {
|
|
26028
26036
|
await new Promise((resolve) => {
|
|
26029
26037
|
this.updatePlanningTransportEvent.emit({
|
|
26030
26038
|
oldWeek: week,
|
|
26039
|
+
oldWeekTransportId: oldWeekTransportId,
|
|
26031
26040
|
week: week,
|
|
26032
26041
|
action: DeliveryPlanningUpdateActions.DeleteOrderReplan,
|
|
26033
26042
|
resolve: () => {
|
|
@@ -26108,16 +26117,18 @@ class DeliveryPlanningOverviewComponent {
|
|
|
26108
26117
|
return transport && !transport.available;
|
|
26109
26118
|
}
|
|
26110
26119
|
handleTimeChangeEvent(transportDay, week, obj) {
|
|
26111
|
-
let oldWeek = week;
|
|
26120
|
+
let oldWeek = structuredClone(week);
|
|
26121
|
+
const oldWeekTransportId = parseInt(oldWeek[oldWeek.length - 1].toString());
|
|
26112
26122
|
let order = transportDay.plannedOrders.find(planOrder => planOrder.transId === obj.transId);
|
|
26113
26123
|
order.startTime = new Date(obj['startTime']);
|
|
26114
26124
|
order.endTime = new Date(obj['endTime']);
|
|
26115
|
-
this.updatePlanningTransportEvent.emit({ oldWeek: oldWeek, week: week, action: this.planningActions.PlanOrder });
|
|
26125
|
+
this.updatePlanningTransportEvent.emit({ oldWeek: oldWeek, oldWeekTransportId: oldWeekTransportId, week: week, action: this.planningActions.PlanOrder });
|
|
26116
26126
|
}
|
|
26117
26127
|
async handleMoveEvent(moveData, transport, week, weekArr) {
|
|
26118
26128
|
let planOrder = await this._transactionCon.getPlanOrder(moveData.scheduledObject['id']);
|
|
26119
26129
|
let oldWeekWithOrder = [];
|
|
26120
26130
|
let weekWithOrder = [];
|
|
26131
|
+
const oldWeekTransportId = parseInt(oldWeekWithOrder[oldWeekWithOrder.length - 1].toString());
|
|
26121
26132
|
//remove from old transport
|
|
26122
26133
|
weekArr.forEach(((row) => {
|
|
26123
26134
|
row.forEach((weekDay) => {
|
|
@@ -26135,6 +26146,7 @@ class DeliveryPlanningOverviewComponent {
|
|
|
26135
26146
|
this.deliveryPlanningService.deletingOrder = planOrder;
|
|
26136
26147
|
this.updatePlanningTransportEvent.emit({
|
|
26137
26148
|
oldWeek: oldWeekWithOrder,
|
|
26149
|
+
oldWeekTransportId: oldWeekTransportId,
|
|
26138
26150
|
week: weekWithOrder,
|
|
26139
26151
|
action: DeliveryPlanningUpdateActions.DeletePlannedOrder
|
|
26140
26152
|
});
|
|
@@ -26159,13 +26171,15 @@ class DeliveryPlanningOverviewComponent {
|
|
|
26159
26171
|
}
|
|
26160
26172
|
handleMoveOrderUp(planOrder, planningTransportWeek, transportDay) {
|
|
26161
26173
|
const oldWeek = structuredClone(planningTransportWeek);
|
|
26174
|
+
const oldWeekTransportId = parseInt(oldWeek[oldWeek.length - 1].toString());
|
|
26162
26175
|
this.deliveryPlanningService.reorderItem(transportDay.plannedOrders, planOrder, 'up');
|
|
26163
|
-
this.updatePlanningTransportEvent.emit({ oldWeek: oldWeek, week: planningTransportWeek, action: DeliveryPlanningUpdateActions.PlanOrder });
|
|
26176
|
+
this.updatePlanningTransportEvent.emit({ oldWeek: oldWeek, oldWeekTransportId: oldWeekTransportId, week: planningTransportWeek, action: DeliveryPlanningUpdateActions.PlanOrder });
|
|
26164
26177
|
}
|
|
26165
26178
|
handleMoveOrderDown(planOrder, planningTransportWeek, transportDay) {
|
|
26166
26179
|
const oldWeek = structuredClone(planningTransportWeek);
|
|
26180
|
+
const oldWeekTransportId = parseInt(oldWeek[oldWeek.length - 1].toString());
|
|
26167
26181
|
this.deliveryPlanningService.reorderItem(transportDay.plannedOrders, planOrder, 'down');
|
|
26168
|
-
this.updatePlanningTransportEvent.emit({ oldWeek: oldWeek, week: planningTransportWeek, action: DeliveryPlanningUpdateActions.PlanOrder });
|
|
26182
|
+
this.updatePlanningTransportEvent.emit({ oldWeek: oldWeek, oldWeekTransportId: oldWeekTransportId, week: planningTransportWeek, action: DeliveryPlanningUpdateActions.PlanOrder });
|
|
26169
26183
|
}
|
|
26170
26184
|
selectTransportDay(transportDay) {
|
|
26171
26185
|
transportDay.selected = !transportDay.selected;
|
|
@@ -26226,6 +26240,7 @@ class DeliveryPlanningOverviewComponent {
|
|
|
26226
26240
|
return;
|
|
26227
26241
|
}
|
|
26228
26242
|
const oldWeek = structuredClone(planningTransportWeek);
|
|
26243
|
+
const oldWeekTransportId = parseInt(oldWeek[oldWeek.length - 1].toString());
|
|
26229
26244
|
const orders = transportDay.plannedOrders;
|
|
26230
26245
|
const fromIndex = orders.findIndex((o) => o.transId === event.transId);
|
|
26231
26246
|
if (fromIndex === -1) {
|
|
@@ -26252,6 +26267,7 @@ class DeliveryPlanningOverviewComponent {
|
|
|
26252
26267
|
this.deliveryPlanningService.dragging = false;
|
|
26253
26268
|
this.updatePlanningTransportEvent.emit({
|
|
26254
26269
|
oldWeek: oldWeek,
|
|
26270
|
+
oldWeekTransportId: oldWeekTransportId,
|
|
26255
26271
|
week: planningTransportWeek,
|
|
26256
26272
|
action: DeliveryPlanningUpdateActions.PlanOrder
|
|
26257
26273
|
});
|
|
@@ -26443,6 +26459,7 @@ class DeliveryPlanningMainComponent {
|
|
|
26443
26459
|
_transaction;
|
|
26444
26460
|
_transactionEventService;
|
|
26445
26461
|
_changeDetector;
|
|
26462
|
+
_promptService;
|
|
26446
26463
|
_subs = [];
|
|
26447
26464
|
planning;
|
|
26448
26465
|
hasLoaded = false;
|
|
@@ -26462,13 +26479,14 @@ class DeliveryPlanningMainComponent {
|
|
|
26462
26479
|
showClass() {
|
|
26463
26480
|
return true;
|
|
26464
26481
|
}
|
|
26465
|
-
constructor(_deliveryPlanningService, _viewModeService, _transactionConn, _transaction, _transactionEventService, _changeDetector) {
|
|
26482
|
+
constructor(_deliveryPlanningService, _viewModeService, _transactionConn, _transaction, _transactionEventService, _changeDetector, _promptService) {
|
|
26466
26483
|
this._deliveryPlanningService = _deliveryPlanningService;
|
|
26467
26484
|
this._viewModeService = _viewModeService;
|
|
26468
26485
|
this._transactionConn = _transactionConn;
|
|
26469
26486
|
this._transaction = _transaction;
|
|
26470
26487
|
this._transactionEventService = _transactionEventService;
|
|
26471
26488
|
this._changeDetector = _changeDetector;
|
|
26489
|
+
this._promptService = _promptService;
|
|
26472
26490
|
}
|
|
26473
26491
|
async ngOnInit() {
|
|
26474
26492
|
this._viewModeService.onSearchViewResizeClick();
|
|
@@ -26490,7 +26508,18 @@ class DeliveryPlanningMainComponent {
|
|
|
26490
26508
|
}
|
|
26491
26509
|
async updatePlanTransportWeek(updateData) {
|
|
26492
26510
|
let result = this._deliveryPlanningService.convertToPlanTransportWeek(this._deliveryPlanningService.planTransportWeekArr);
|
|
26493
|
-
let week
|
|
26511
|
+
let week;
|
|
26512
|
+
if (this._deliveryPlanningService.currentPlanningMode === DeliveryPlanningModes.Transaction && this._deliveryPlanningService.viewMode === DeliveryPlanningViewModes.Sidebar) {
|
|
26513
|
+
const weekInArr = result.find((planTransportWeek) => planTransportWeek.transportId === updateData.oldWeekTransportId);
|
|
26514
|
+
if (!weekInArr) {
|
|
26515
|
+
await this._promptService.showError("COULD_NOT_FIND_CORRESPONDING_WEEK");
|
|
26516
|
+
return;
|
|
26517
|
+
}
|
|
26518
|
+
week = weekInArr;
|
|
26519
|
+
}
|
|
26520
|
+
else {
|
|
26521
|
+
week = result.find((week) => week.transportId === updateData.week[updateData.week.length - 1]);
|
|
26522
|
+
}
|
|
26494
26523
|
if (week) {
|
|
26495
26524
|
let updateResult = await this._transactionConn.updatePlanTransportWeek(week);
|
|
26496
26525
|
if (updateResult) {
|
|
@@ -26498,8 +26527,8 @@ class DeliveryPlanningMainComponent {
|
|
|
26498
26527
|
this._deliveryPlanningService.deletingOrder.dateResetNeeded = true;
|
|
26499
26528
|
await this._transactionConn.restoreDeliverySettings([this._deliveryPlanningService.deletingOrder]);
|
|
26500
26529
|
}
|
|
26501
|
-
await this._transaction.commit();
|
|
26502
26530
|
if (this._transaction.currentTransaction.transactionInfo.id) {
|
|
26531
|
+
await this._transaction.commit();
|
|
26503
26532
|
await this._transaction.getTransactionById(this._transaction.currentTransaction?.transactionInfo?.id);
|
|
26504
26533
|
this._transaction.currentPlanOrder = await this._transaction.getPlanOrder(this._transaction.currentTransaction.transactionInfo.id);
|
|
26505
26534
|
}
|
|
@@ -26555,7 +26584,7 @@ class DeliveryPlanningMainComponent {
|
|
|
26555
26584
|
this._deliveryPlanningService.plannings = await this._transactionConn.getPlanningSources();
|
|
26556
26585
|
this._deliveryPlanningService.currentPlanning = this._deliveryPlanningService.plannings[0];
|
|
26557
26586
|
}
|
|
26558
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningMainComponent, deps: [{ token: DeliveryPlanningService }, { token: SearchViewModeService }, { token: TransactionConnectorService }, { token: TransactionService }, { token: TransactionEventService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
26587
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningMainComponent, deps: [{ token: DeliveryPlanningService }, { token: SearchViewModeService }, { token: TransactionConnectorService }, { token: TransactionService }, { token: TransactionEventService }, { token: i0.ChangeDetectorRef }, { token: i1$1.PromptService }], target: i0.ɵɵFactoryTarget.Component });
|
|
26559
26588
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DeliveryPlanningMainComponent, isStandalone: false, selector: "co-delivery-planning-main", outputs: { fullscreenEvent: "fullscreenEvent" }, host: { properties: { "class.co-delivery-planning-main": "this.showClass" } }, ngImport: i0, template: `
|
|
26560
26589
|
<div class="wrapper row">
|
|
26561
26590
|
|
|
@@ -26606,7 +26635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
26606
26635
|
encapsulation: ViewEncapsulation.None,
|
|
26607
26636
|
standalone: false
|
|
26608
26637
|
}]
|
|
26609
|
-
}], ctorParameters: () => [{ type: DeliveryPlanningService }, { type: SearchViewModeService }, { type: TransactionConnectorService }, { type: TransactionService }, { type: TransactionEventService }, { type: i0.ChangeDetectorRef }], propDecorators: { fullscreenEvent: [{
|
|
26638
|
+
}], ctorParameters: () => [{ type: DeliveryPlanningService }, { type: SearchViewModeService }, { type: TransactionConnectorService }, { type: TransactionService }, { type: TransactionEventService }, { type: i0.ChangeDetectorRef }, { type: i1$1.PromptService }], propDecorators: { fullscreenEvent: [{
|
|
26610
26639
|
type: Output
|
|
26611
26640
|
}], showClass: [{
|
|
26612
26641
|
type: HostBinding,
|
|
@@ -34495,6 +34524,7 @@ class TransactionPaymentService {
|
|
|
34495
34524
|
voucher;
|
|
34496
34525
|
details;
|
|
34497
34526
|
paymentDate = new Date();
|
|
34527
|
+
showPaymentMethodMessage = false;
|
|
34498
34528
|
set currentPaymentMethod(value) {
|
|
34499
34529
|
this._currentPaymentMethod = value;
|
|
34500
34530
|
this.statusMessage = '';
|
|
@@ -34558,6 +34588,10 @@ class TransactionPaymentService {
|
|
|
34558
34588
|
if (this.amountToPay === 0) {
|
|
34559
34589
|
this._handlePayment();
|
|
34560
34590
|
}
|
|
34591
|
+
if (!this.currentPaymentMethod) {
|
|
34592
|
+
this.showPaymentMethodMessage = true;
|
|
34593
|
+
return;
|
|
34594
|
+
}
|
|
34561
34595
|
this.statusMessage = '';
|
|
34562
34596
|
this.cancelUrl = '';
|
|
34563
34597
|
const request = new DoPaymentRequest();
|
|
@@ -34630,6 +34664,7 @@ class TransactionPaymentService {
|
|
|
34630
34664
|
}
|
|
34631
34665
|
});
|
|
34632
34666
|
}
|
|
34667
|
+
this.showPaymentMethodMessage = false;
|
|
34633
34668
|
}
|
|
34634
34669
|
cancelPayment() {
|
|
34635
34670
|
if (this.cancelUrl) {
|
|
@@ -35412,202 +35447,210 @@ class PaymentComponent extends TransactionPaymentBaseComponent {
|
|
|
35412
35447
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: PaymentComponent, isStandalone: false, selector: "co-payment", host: { properties: { "class.co-payment": "this.showClass" } }, providers: [
|
|
35413
35448
|
TransactionPaymentService
|
|
35414
35449
|
], usesInheritance: true, ngImport: i0, template: `
|
|
35415
|
-
|
|
35416
|
-
|
|
35417
|
-
|
|
35418
|
-
|
|
35419
|
-
|
|
35420
|
-
|
|
35421
|
-
|
|
35422
|
-
|
|
35423
|
-
|
|
35424
|
-
|
|
35425
|
-
|
|
35426
|
-
|
|
35427
|
-
|
|
35428
|
-
|
|
35429
|
-
|
|
35430
|
-
|
|
35431
|
-
|
|
35432
|
-
|
|
35433
|
-
|
|
35434
|
-
|
|
35435
|
-
|
|
35436
|
-
|
|
35437
|
-
|
|
35438
|
-
|
|
35439
|
-
|
|
35440
|
-
|
|
35441
|
-
|
|
35442
|
-
|
|
35443
|
-
|
|
35444
|
-
|
|
35445
|
-
|
|
35446
|
-
|
|
35447
|
-
|
|
35448
|
-
|
|
35449
|
-
|
|
35450
|
-
|
|
35451
|
-
|
|
35452
|
-
|
|
35453
|
-
|
|
35454
|
-
<div class="payment-to-pay-wrapper">
|
|
35455
|
-
<div class="payment-to-pay-total">
|
|
35456
|
-
<div class="payment-to-pay-header">
|
|
35457
|
-
<span class="payment-header-title" [textContent]="'TOTAL_AMOUNT_TO_PAY' | localize"></span>
|
|
35458
|
-
<span class="payment-total-pay" [textContent]="paymentService.amountToPay | coCurrency: true"></span>
|
|
35450
|
+
<div class="payment-wrapper">
|
|
35451
|
+
<div class="payment-methods-register-wrapper">
|
|
35452
|
+
<div class="payment-cash-register-wrapper">
|
|
35453
|
+
<div class="payment-cash-register-header">
|
|
35454
|
+
<span class="payment-header-title" [textContent]="'SELECT_CASH_REGISTER' | localize"></span>
|
|
35455
|
+
</div>
|
|
35456
|
+
<div class="payment-methods">
|
|
35457
|
+
@for (cashRegister of cashRegisters; track cashRegister; let index = $index) {
|
|
35458
|
+
<co-payment-tile
|
|
35459
|
+
[icon]="cashRegister.icon"
|
|
35460
|
+
[description]="cashRegister.description"
|
|
35461
|
+
[selected]="cashRegisterIdx === index"
|
|
35462
|
+
(selectedChange)="cashRegisterSelected(cashRegister, index)"
|
|
35463
|
+
></co-payment-tile>
|
|
35464
|
+
}
|
|
35465
|
+
</div>
|
|
35466
|
+
</div>
|
|
35467
|
+
<div class="payment-methods-wrapper">
|
|
35468
|
+
<div class="payment-methods-header">
|
|
35469
|
+
<span class="payment-header-title" [textContent]="'SELECT' | localize"></span>
|
|
35470
|
+
<span class="payment-header-title" [textContent]="'PAYMENT_METHOD' | localize:false"></span>
|
|
35471
|
+
<span [textContent]="' (*)'"></span>
|
|
35472
|
+
</div>
|
|
35473
|
+
<div class="payment-methods co-small-scrollbar">
|
|
35474
|
+
@if (showLoader) {
|
|
35475
|
+
<co-loader class="loader"></co-loader>
|
|
35476
|
+
}
|
|
35477
|
+
@if (!showLoader) {
|
|
35478
|
+
@for (paymentMethod of paymentMethods; track paymentMethod; let index = $index) {
|
|
35479
|
+
<co-payment-tile
|
|
35480
|
+
[image]="paymentMethod.image"
|
|
35481
|
+
[description]="paymentMethod.payment.description"
|
|
35482
|
+
[selected]="paymentMethodIdx === index"
|
|
35483
|
+
(selectedChange)="paymentMethodSelected(paymentMethod.payment, index)"
|
|
35484
|
+
></co-payment-tile>
|
|
35485
|
+
}
|
|
35486
|
+
}
|
|
35487
|
+
</div>
|
|
35488
|
+
</div>
|
|
35459
35489
|
</div>
|
|
35460
|
-
<div class="payment-
|
|
35461
|
-
|
|
35462
|
-
|
|
35463
|
-
|
|
35464
|
-
|
|
35465
|
-
|
|
35466
|
-
|
|
35467
|
-
|
|
35468
|
-
|
|
35469
|
-
|
|
35490
|
+
<div class="payment-to-pay-wrapper">
|
|
35491
|
+
<div class="payment-to-pay-total">
|
|
35492
|
+
<div class="payment-to-pay-header">
|
|
35493
|
+
<span class="payment-header-title" [textContent]="'TOTAL_AMOUNT_TO_PAY' | localize"></span>
|
|
35494
|
+
<span class="payment-total-pay" [textContent]="paymentService.amountToPay | coCurrency: true"></span>
|
|
35495
|
+
</div>
|
|
35496
|
+
<div class="payment-input-button-wrapper">
|
|
35497
|
+
<div class="payment-input-button">
|
|
35498
|
+
<co-payment-to-pay
|
|
35499
|
+
[amountToPay]="paymentService.amountToPay"></co-payment-to-pay>
|
|
35500
|
+
<div class="payment-to-pay-button">
|
|
35501
|
+
<co-button
|
|
35502
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
35503
|
+
[disabled]="paymentService.amountToPay === 0"
|
|
35504
|
+
(click)="handlePayment()">
|
|
35505
|
+
</co-button>
|
|
35506
|
+
</div>
|
|
35507
|
+
</div>
|
|
35508
|
+
@if (paymentService.showPaymentMethodMessage) {
|
|
35509
|
+
<div class="payment-method-message" [textContent]="'PAYMENT_METHOD_MESSAGE' | localize"></div>
|
|
35510
|
+
}
|
|
35511
|
+
@if (showPaymentDate) {
|
|
35512
|
+
<div class="payment-bookdate">
|
|
35513
|
+
<co-input-date [(model)]="paymentDate"></co-input-date>
|
|
35514
|
+
</div>
|
|
35515
|
+
}
|
|
35516
|
+
@if (paymentService.statusMessage) {
|
|
35517
|
+
<div class="payment-error-message"
|
|
35518
|
+
[textContent]="paymentService.statusMessage"></div>
|
|
35519
|
+
}
|
|
35520
|
+
</div>
|
|
35470
35521
|
</div>
|
|
35471
|
-
|
|
35472
|
-
|
|
35473
|
-
|
|
35474
|
-
|
|
35522
|
+
|
|
35523
|
+
<div class="payment-deposit">
|
|
35524
|
+
<co-deposit-payment
|
|
35525
|
+
[branch]="branch"
|
|
35526
|
+
[transactionUuid]="transactionUuid"
|
|
35527
|
+
(depositPaymentFetched)="onDepositPaymentFetched($event)">
|
|
35528
|
+
</co-deposit-payment>
|
|
35475
35529
|
</div>
|
|
35476
|
-
|
|
35477
|
-
|
|
35478
|
-
|
|
35479
|
-
|
|
35480
|
-
|
|
35530
|
+
@if (showKeyPad) {
|
|
35531
|
+
<co-key-pad class="payment-to-pay-keypad"
|
|
35532
|
+
[showValue]="false"
|
|
35533
|
+
[emitModelChangeOnEnter]="false"
|
|
35534
|
+
[model]="paymentService.amountToPay"
|
|
35535
|
+
(modelChange)="handleKeyPadModelChange($event)"
|
|
35536
|
+
(enterClick)="handlePayment()"
|
|
35537
|
+
></co-key-pad>
|
|
35538
|
+
}
|
|
35481
35539
|
</div>
|
|
35482
|
-
</div>
|
|
35483
|
-
|
|
35484
|
-
<div class="payment-deposit">
|
|
35485
|
-
<co-deposit-payment
|
|
35486
|
-
[branch]="branch"
|
|
35487
|
-
[transactionUuid]="transactionUuid"
|
|
35488
|
-
(depositPaymentFetched)="onDepositPaymentFetched($event)">
|
|
35489
|
-
</co-deposit-payment>
|
|
35490
|
-
</div>
|
|
35491
|
-
@if (showKeyPad) {
|
|
35492
|
-
<co-key-pad class="payment-to-pay-keypad"
|
|
35493
|
-
[showValue]="false"
|
|
35494
|
-
[emitModelChangeOnEnter]="false"
|
|
35495
|
-
[model]="paymentService.amountToPay"
|
|
35496
|
-
(modelChange)="handleKeyPadModelChange($event)"
|
|
35497
|
-
(enterClick)="handlePayment()"
|
|
35498
|
-
></co-key-pad>
|
|
35499
|
-
}
|
|
35500
35540
|
</div>
|
|
35501
|
-
|
|
35502
|
-
|
|
35503
|
-
|
|
35504
|
-
|
|
35505
|
-
|
|
35506
|
-
|
|
35507
|
-
|
|
35508
|
-
|
|
35509
|
-
`, isInline: true, dependencies: [{ kind: "component", type: PaymentTileComponent, selector: "co-payment-tile", inputs: ["selected", "icon", "image", "description", "showRadioButton"], outputs: ["selectedChange"] }, { kind: "component", type: i2.KeyPadComponent, selector: "co-key-pad", inputs: ["model", "showValue", "resetModelOnInit", "emitModelChangeOnEnter"], outputs: ["modelChange", "internalModelChange", "enterClick"] }, { kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: PaymentQrCodeComponent, selector: "co-payment-qr-code", inputs: ["qrCodeImage", "qrCodeUrl"] }, { kind: "component", type: DepositPaymentComponent, selector: "co-deposit-payment", inputs: ["branch", "transactionKind", "showTitle", "transactionUuid"], outputs: ["depositPaymentFetched"] }, { kind: "component", type: LoaderComponent, selector: "co-loader" }, { kind: "component", type: PaymentToPayComponent, selector: "co-payment-to-pay", inputs: ["showLabel", "amountToPay"] }, { kind: "component", type: i1$1.InputDatePickerComponent, selector: "co-input-date", inputs: ["firstDayOfWeek", "showClearButton"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: CoCurrencyPipe, name: "coCurrency" }], encapsulation: i0.ViewEncapsulation.None });
|
|
35541
|
+
@if (paymentService.showPspQrCode) {
|
|
35542
|
+
<co-dialog (closeClick)="paymentService.showPspQrCode = false">
|
|
35543
|
+
<co-payment-qr-code
|
|
35544
|
+
[qrCodeImage]="paymentService.qrCodeImage"
|
|
35545
|
+
></co-payment-qr-code>
|
|
35546
|
+
</co-dialog>
|
|
35547
|
+
}
|
|
35548
|
+
`, isInline: true, dependencies: [{ kind: "component", type: PaymentTileComponent, selector: "co-payment-tile", inputs: ["selected", "icon", "image", "description", "showRadioButton"], outputs: ["selectedChange"] }, { kind: "component", type: i2.KeyPadComponent, selector: "co-key-pad", inputs: ["model", "showValue", "resetModelOnInit", "emitModelChangeOnEnter"], outputs: ["modelChange", "internalModelChange", "enterClick"] }, { kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: PaymentQrCodeComponent, selector: "co-payment-qr-code", inputs: ["qrCodeImage", "qrCodeUrl"] }, { kind: "component", type: DepositPaymentComponent, selector: "co-deposit-payment", inputs: ["branch", "transactionKind", "showTitle", "transactionUuid"], outputs: ["depositPaymentFetched"] }, { kind: "component", type: LoaderComponent, selector: "co-loader" }, { kind: "component", type: PaymentToPayComponent, selector: "co-payment-to-pay", inputs: ["showLabel", "amountToPay"] }, { kind: "component", type: i1$1.InputDatePickerComponent, selector: "co-input-date", inputs: ["firstDayOfWeek", "showClearButton"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: CoCurrencyPipe, name: "coCurrency" }], encapsulation: i0.ViewEncapsulation.None });
|
|
35510
35549
|
}
|
|
35511
35550
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PaymentComponent, decorators: [{
|
|
35512
35551
|
type: Component,
|
|
35513
35552
|
args: [{
|
|
35514
35553
|
selector: "co-payment",
|
|
35515
35554
|
template: `
|
|
35516
|
-
|
|
35517
|
-
|
|
35518
|
-
|
|
35519
|
-
|
|
35520
|
-
|
|
35521
|
-
|
|
35522
|
-
|
|
35523
|
-
|
|
35524
|
-
|
|
35525
|
-
|
|
35526
|
-
|
|
35527
|
-
|
|
35528
|
-
|
|
35529
|
-
|
|
35530
|
-
|
|
35531
|
-
|
|
35532
|
-
|
|
35533
|
-
|
|
35534
|
-
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35543
|
-
|
|
35544
|
-
|
|
35545
|
-
|
|
35546
|
-
|
|
35547
|
-
|
|
35548
|
-
|
|
35549
|
-
|
|
35550
|
-
|
|
35551
|
-
|
|
35552
|
-
|
|
35553
|
-
|
|
35554
|
-
|
|
35555
|
-
<div class="payment-to-pay-wrapper">
|
|
35556
|
-
<div class="payment-to-pay-total">
|
|
35557
|
-
<div class="payment-to-pay-header">
|
|
35558
|
-
<span class="payment-header-title" [textContent]="'TOTAL_AMOUNT_TO_PAY' | localize"></span>
|
|
35559
|
-
<span class="payment-total-pay" [textContent]="paymentService.amountToPay | coCurrency: true"></span>
|
|
35555
|
+
<div class="payment-wrapper">
|
|
35556
|
+
<div class="payment-methods-register-wrapper">
|
|
35557
|
+
<div class="payment-cash-register-wrapper">
|
|
35558
|
+
<div class="payment-cash-register-header">
|
|
35559
|
+
<span class="payment-header-title" [textContent]="'SELECT_CASH_REGISTER' | localize"></span>
|
|
35560
|
+
</div>
|
|
35561
|
+
<div class="payment-methods">
|
|
35562
|
+
@for (cashRegister of cashRegisters; track cashRegister; let index = $index) {
|
|
35563
|
+
<co-payment-tile
|
|
35564
|
+
[icon]="cashRegister.icon"
|
|
35565
|
+
[description]="cashRegister.description"
|
|
35566
|
+
[selected]="cashRegisterIdx === index"
|
|
35567
|
+
(selectedChange)="cashRegisterSelected(cashRegister, index)"
|
|
35568
|
+
></co-payment-tile>
|
|
35569
|
+
}
|
|
35570
|
+
</div>
|
|
35571
|
+
</div>
|
|
35572
|
+
<div class="payment-methods-wrapper">
|
|
35573
|
+
<div class="payment-methods-header">
|
|
35574
|
+
<span class="payment-header-title" [textContent]="'SELECT' | localize"></span>
|
|
35575
|
+
<span class="payment-header-title" [textContent]="'PAYMENT_METHOD' | localize:false"></span>
|
|
35576
|
+
<span [textContent]="' (*)'"></span>
|
|
35577
|
+
</div>
|
|
35578
|
+
<div class="payment-methods co-small-scrollbar">
|
|
35579
|
+
@if (showLoader) {
|
|
35580
|
+
<co-loader class="loader"></co-loader>
|
|
35581
|
+
}
|
|
35582
|
+
@if (!showLoader) {
|
|
35583
|
+
@for (paymentMethod of paymentMethods; track paymentMethod; let index = $index) {
|
|
35584
|
+
<co-payment-tile
|
|
35585
|
+
[image]="paymentMethod.image"
|
|
35586
|
+
[description]="paymentMethod.payment.description"
|
|
35587
|
+
[selected]="paymentMethodIdx === index"
|
|
35588
|
+
(selectedChange)="paymentMethodSelected(paymentMethod.payment, index)"
|
|
35589
|
+
></co-payment-tile>
|
|
35590
|
+
}
|
|
35591
|
+
}
|
|
35592
|
+
</div>
|
|
35593
|
+
</div>
|
|
35560
35594
|
</div>
|
|
35561
|
-
<div class="payment-
|
|
35562
|
-
|
|
35563
|
-
|
|
35564
|
-
|
|
35565
|
-
|
|
35566
|
-
|
|
35567
|
-
|
|
35568
|
-
|
|
35569
|
-
|
|
35570
|
-
|
|
35595
|
+
<div class="payment-to-pay-wrapper">
|
|
35596
|
+
<div class="payment-to-pay-total">
|
|
35597
|
+
<div class="payment-to-pay-header">
|
|
35598
|
+
<span class="payment-header-title" [textContent]="'TOTAL_AMOUNT_TO_PAY' | localize"></span>
|
|
35599
|
+
<span class="payment-total-pay" [textContent]="paymentService.amountToPay | coCurrency: true"></span>
|
|
35600
|
+
</div>
|
|
35601
|
+
<div class="payment-input-button-wrapper">
|
|
35602
|
+
<div class="payment-input-button">
|
|
35603
|
+
<co-payment-to-pay
|
|
35604
|
+
[amountToPay]="paymentService.amountToPay"></co-payment-to-pay>
|
|
35605
|
+
<div class="payment-to-pay-button">
|
|
35606
|
+
<co-button
|
|
35607
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
35608
|
+
[disabled]="paymentService.amountToPay === 0"
|
|
35609
|
+
(click)="handlePayment()">
|
|
35610
|
+
</co-button>
|
|
35611
|
+
</div>
|
|
35612
|
+
</div>
|
|
35613
|
+
@if (paymentService.showPaymentMethodMessage) {
|
|
35614
|
+
<div class="payment-method-message" [textContent]="'PAYMENT_METHOD_MESSAGE' | localize"></div>
|
|
35615
|
+
}
|
|
35616
|
+
@if (showPaymentDate) {
|
|
35617
|
+
<div class="payment-bookdate">
|
|
35618
|
+
<co-input-date [(model)]="paymentDate"></co-input-date>
|
|
35619
|
+
</div>
|
|
35620
|
+
}
|
|
35621
|
+
@if (paymentService.statusMessage) {
|
|
35622
|
+
<div class="payment-error-message"
|
|
35623
|
+
[textContent]="paymentService.statusMessage"></div>
|
|
35624
|
+
}
|
|
35625
|
+
</div>
|
|
35571
35626
|
</div>
|
|
35572
|
-
|
|
35573
|
-
|
|
35574
|
-
|
|
35575
|
-
|
|
35627
|
+
|
|
35628
|
+
<div class="payment-deposit">
|
|
35629
|
+
<co-deposit-payment
|
|
35630
|
+
[branch]="branch"
|
|
35631
|
+
[transactionUuid]="transactionUuid"
|
|
35632
|
+
(depositPaymentFetched)="onDepositPaymentFetched($event)">
|
|
35633
|
+
</co-deposit-payment>
|
|
35576
35634
|
</div>
|
|
35577
|
-
|
|
35578
|
-
|
|
35579
|
-
|
|
35580
|
-
|
|
35581
|
-
|
|
35635
|
+
@if (showKeyPad) {
|
|
35636
|
+
<co-key-pad class="payment-to-pay-keypad"
|
|
35637
|
+
[showValue]="false"
|
|
35638
|
+
[emitModelChangeOnEnter]="false"
|
|
35639
|
+
[model]="paymentService.amountToPay"
|
|
35640
|
+
(modelChange)="handleKeyPadModelChange($event)"
|
|
35641
|
+
(enterClick)="handlePayment()"
|
|
35642
|
+
></co-key-pad>
|
|
35643
|
+
}
|
|
35582
35644
|
</div>
|
|
35583
|
-
</div>
|
|
35584
|
-
|
|
35585
|
-
<div class="payment-deposit">
|
|
35586
|
-
<co-deposit-payment
|
|
35587
|
-
[branch]="branch"
|
|
35588
|
-
[transactionUuid]="transactionUuid"
|
|
35589
|
-
(depositPaymentFetched)="onDepositPaymentFetched($event)">
|
|
35590
|
-
</co-deposit-payment>
|
|
35591
|
-
</div>
|
|
35592
|
-
@if (showKeyPad) {
|
|
35593
|
-
<co-key-pad class="payment-to-pay-keypad"
|
|
35594
|
-
[showValue]="false"
|
|
35595
|
-
[emitModelChangeOnEnter]="false"
|
|
35596
|
-
[model]="paymentService.amountToPay"
|
|
35597
|
-
(modelChange)="handleKeyPadModelChange($event)"
|
|
35598
|
-
(enterClick)="handlePayment()"
|
|
35599
|
-
></co-key-pad>
|
|
35600
|
-
}
|
|
35601
35645
|
</div>
|
|
35602
|
-
|
|
35603
|
-
|
|
35604
|
-
|
|
35605
|
-
|
|
35606
|
-
|
|
35607
|
-
|
|
35608
|
-
|
|
35609
|
-
|
|
35610
|
-
`,
|
|
35646
|
+
@if (paymentService.showPspQrCode) {
|
|
35647
|
+
<co-dialog (closeClick)="paymentService.showPspQrCode = false">
|
|
35648
|
+
<co-payment-qr-code
|
|
35649
|
+
[qrCodeImage]="paymentService.qrCodeImage"
|
|
35650
|
+
></co-payment-qr-code>
|
|
35651
|
+
</co-dialog>
|
|
35652
|
+
}
|
|
35653
|
+
`,
|
|
35611
35654
|
providers: [
|
|
35612
35655
|
TransactionPaymentService
|
|
35613
35656
|
],
|
|
@@ -59295,7 +59338,9 @@ class TransactionToBePickedLineComponent extends TransactionLineBaseComponent {
|
|
|
59295
59338
|
transactionLineSet() {
|
|
59296
59339
|
if (this.transactionLine.articleLineStatus) {
|
|
59297
59340
|
this.transactionLine.quantityToBePicked = this.transactionLine.articleLineStatus.quantityAllocated - this.transactionLine.articleLineStatus.quantityToBePicked;
|
|
59298
|
-
this.transactionLineToBePickedCompleted =
|
|
59341
|
+
this.transactionLineToBePickedCompleted =
|
|
59342
|
+
(this.transactionLine.articleLineStatus.quantityAllocated === this.transactionLine.articleLineStatus.quantityPicked) ||
|
|
59343
|
+
(this.transactionLine.articleLineStatus.quantityAllocated === this.transactionLine.articleLineStatus.quantityToBePicked);
|
|
59299
59344
|
}
|
|
59300
59345
|
}
|
|
59301
59346
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionToBePickedLineComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -59321,37 +59366,37 @@ class TransactionToBePickedLineComponent extends TransactionLineBaseComponent {
|
|
|
59321
59366
|
[activeCategory]="category.SalesOrderLogistics">
|
|
59322
59367
|
</co-transaction-line-statusbar>
|
|
59323
59368
|
<co-transaction-line-warehouse-button
|
|
59324
|
-
|
|
59325
|
-
|
|
59326
|
-
|
|
59327
|
-
|
|
59369
|
+
class="transaction-field-wrapper medium"
|
|
59370
|
+
[screenConfigurationObject]="cfgNames.LineWarehouse"
|
|
59371
|
+
[readonly]="transactionLineToBePickedCompleted"
|
|
59372
|
+
[inputLabel]="true"
|
|
59328
59373
|
></co-transaction-line-warehouse-button>
|
|
59329
59374
|
<co-transaction-line-warehouse-location-button
|
|
59330
|
-
|
|
59331
|
-
|
|
59332
|
-
|
|
59333
|
-
|
|
59375
|
+
class="transaction-field-wrapper medium"
|
|
59376
|
+
[screenConfigurationObject]="cfgNames.LineWarehouseLocation"
|
|
59377
|
+
[readonly]="transactionLineToBePickedCompleted || !transactionLine.isLocationRequired"
|
|
59378
|
+
[inputLabel]="true"
|
|
59334
59379
|
></co-transaction-line-warehouse-location-button>
|
|
59335
59380
|
<co-transaction-line-delivery-button
|
|
59336
|
-
|
|
59337
|
-
|
|
59338
|
-
|
|
59381
|
+
class="transaction-field-wrapper medium"
|
|
59382
|
+
[screenConfigurationObject]="cfgNames.LineDeliveryMethod"
|
|
59383
|
+
[inputLabel]="true"
|
|
59339
59384
|
></co-transaction-line-delivery-button>
|
|
59340
59385
|
<co-transaction-line-price
|
|
59341
|
-
|
|
59342
|
-
|
|
59343
|
-
|
|
59344
|
-
|
|
59345
|
-
|
|
59346
|
-
|
|
59347
|
-
|
|
59386
|
+
class="transaction-field-wrapper small transaction-line-totals-price price"
|
|
59387
|
+
[screenConfigurationObject]="cfgNames.LinePrice"
|
|
59388
|
+
[showLabel]="false"
|
|
59389
|
+
[defaultEditMode]="false"
|
|
59390
|
+
[showPurchasePrice]="true"
|
|
59391
|
+
[inputLabel]="true"
|
|
59392
|
+
[forceReadonly]="transactionLineService.lineQuantityInvoiced && transactionLineService.lineQuantityInvoiced !== 0"
|
|
59348
59393
|
></co-transaction-line-price>
|
|
59349
59394
|
<co-transaction-line-discount-button
|
|
59350
|
-
|
|
59351
|
-
|
|
59352
|
-
|
|
59353
|
-
|
|
59354
|
-
|
|
59395
|
+
*ngIf="!preview"
|
|
59396
|
+
class="transaction-field-wrapper small"
|
|
59397
|
+
[screenConfigurationObject]="cfgNames.LineDiscount"
|
|
59398
|
+
[configNames]="discountConfigNames"
|
|
59399
|
+
[inputLabel]="true"
|
|
59355
59400
|
></co-transaction-line-discount-button>
|
|
59356
59401
|
<div class="transaction-field-wrapper small">
|
|
59357
59402
|
<div class="inside-field">
|
|
@@ -59382,7 +59427,7 @@ class TransactionToBePickedLineComponent extends TransactionLineBaseComponent {
|
|
|
59382
59427
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionToBePickedLineComponent, decorators: [{
|
|
59383
59428
|
type: Component,
|
|
59384
59429
|
args: [{
|
|
59385
|
-
selector:
|
|
59430
|
+
selector: 'co-transaction-to-be-picked-line',
|
|
59386
59431
|
template: `
|
|
59387
59432
|
<co-transaction-base-line
|
|
59388
59433
|
[lineIndex]="lineIndex"
|
|
@@ -59405,37 +59450,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
59405
59450
|
[activeCategory]="category.SalesOrderLogistics">
|
|
59406
59451
|
</co-transaction-line-statusbar>
|
|
59407
59452
|
<co-transaction-line-warehouse-button
|
|
59408
|
-
|
|
59409
|
-
|
|
59410
|
-
|
|
59411
|
-
|
|
59453
|
+
class="transaction-field-wrapper medium"
|
|
59454
|
+
[screenConfigurationObject]="cfgNames.LineWarehouse"
|
|
59455
|
+
[readonly]="transactionLineToBePickedCompleted"
|
|
59456
|
+
[inputLabel]="true"
|
|
59412
59457
|
></co-transaction-line-warehouse-button>
|
|
59413
59458
|
<co-transaction-line-warehouse-location-button
|
|
59414
|
-
|
|
59415
|
-
|
|
59416
|
-
|
|
59417
|
-
|
|
59459
|
+
class="transaction-field-wrapper medium"
|
|
59460
|
+
[screenConfigurationObject]="cfgNames.LineWarehouseLocation"
|
|
59461
|
+
[readonly]="transactionLineToBePickedCompleted || !transactionLine.isLocationRequired"
|
|
59462
|
+
[inputLabel]="true"
|
|
59418
59463
|
></co-transaction-line-warehouse-location-button>
|
|
59419
59464
|
<co-transaction-line-delivery-button
|
|
59420
|
-
|
|
59421
|
-
|
|
59422
|
-
|
|
59465
|
+
class="transaction-field-wrapper medium"
|
|
59466
|
+
[screenConfigurationObject]="cfgNames.LineDeliveryMethod"
|
|
59467
|
+
[inputLabel]="true"
|
|
59423
59468
|
></co-transaction-line-delivery-button>
|
|
59424
59469
|
<co-transaction-line-price
|
|
59425
|
-
|
|
59426
|
-
|
|
59427
|
-
|
|
59428
|
-
|
|
59429
|
-
|
|
59430
|
-
|
|
59431
|
-
|
|
59470
|
+
class="transaction-field-wrapper small transaction-line-totals-price price"
|
|
59471
|
+
[screenConfigurationObject]="cfgNames.LinePrice"
|
|
59472
|
+
[showLabel]="false"
|
|
59473
|
+
[defaultEditMode]="false"
|
|
59474
|
+
[showPurchasePrice]="true"
|
|
59475
|
+
[inputLabel]="true"
|
|
59476
|
+
[forceReadonly]="transactionLineService.lineQuantityInvoiced && transactionLineService.lineQuantityInvoiced !== 0"
|
|
59432
59477
|
></co-transaction-line-price>
|
|
59433
59478
|
<co-transaction-line-discount-button
|
|
59434
|
-
|
|
59435
|
-
|
|
59436
|
-
|
|
59437
|
-
|
|
59438
|
-
|
|
59479
|
+
*ngIf="!preview"
|
|
59480
|
+
class="transaction-field-wrapper small"
|
|
59481
|
+
[screenConfigurationObject]="cfgNames.LineDiscount"
|
|
59482
|
+
[configNames]="discountConfigNames"
|
|
59483
|
+
[inputLabel]="true"
|
|
59439
59484
|
></co-transaction-line-discount-button>
|
|
59440
59485
|
<div class="transaction-field-wrapper small">
|
|
59441
59486
|
<div class="inside-field">
|
|
@@ -59469,7 +59514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
59469
59514
|
type: Input
|
|
59470
59515
|
}], showClass: [{
|
|
59471
59516
|
type: HostBinding,
|
|
59472
|
-
args: [
|
|
59517
|
+
args: ['class.co-transaction-to-be-picked-line']
|
|
59473
59518
|
}] } });
|
|
59474
59519
|
|
|
59475
59520
|
class TransactionToBePickedLineModule {
|
|
@@ -70177,7 +70222,7 @@ class ShippingMethodDialogComponent {
|
|
|
70177
70222
|
[BatchDeliveryCategory.DeliveryOrder, LayoutCode$1.DeliveryNote],
|
|
70178
70223
|
[BatchDeliveryCategory.Invoice, LayoutCode$1.Invoice],
|
|
70179
70224
|
[BatchDeliveryCategory.Picked, LayoutCode$1.PackageSticker],
|
|
70180
|
-
[BatchDeliveryCategory.Reserve, LayoutCode$1.ReserveSticker]
|
|
70225
|
+
[BatchDeliveryCategory.Reserve, LayoutCode$1.ReserveSticker]
|
|
70181
70226
|
]);
|
|
70182
70227
|
constructor(iconService, transactionService, changeDetector, _transactionMapping) {
|
|
70183
70228
|
this.iconService = iconService;
|
|
@@ -70207,7 +70252,7 @@ class ShippingMethodDialogComponent {
|
|
|
70207
70252
|
batchRequest.overruleSendMethodForPrinting = this.reportDocumentCombinedRequest.reportIdForPrinting;
|
|
70208
70253
|
batchRequest.overruleSendMethodForEDI = this.reportDocumentCombinedRequest.overruleSendMethodForEDI;
|
|
70209
70254
|
}
|
|
70210
|
-
batchRequest.printerName = this.
|
|
70255
|
+
batchRequest.printerName = this.reportDocumentPrintRequest.printerName ?? this.reportDocumentCombinedRequest.printerName;
|
|
70211
70256
|
if (this.category === BatchDeliveryCategory.Invoice || this.category === BatchDeliveryCategory.ToPick) {
|
|
70212
70257
|
batchRequest.documentDate = this.documentDate;
|
|
70213
70258
|
}
|
|
@@ -70322,98 +70367,98 @@ class ShippingMethodDialogComponent {
|
|
|
70322
70367
|
}
|
|
70323
70368
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ShippingMethodDialogComponent, deps: [{ token: IconCacheService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionMappingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
70324
70369
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ShippingMethodDialogComponent, isStandalone: false, selector: "co-shipping-method-dialog", inputs: { category: "category", selectedTransactions: "selectedTransactions" }, outputs: { saveClicked: "saveClicked", cancelClicked: "cancelClicked" }, host: { properties: { "class.co-shipping-method-dialog": "this.showClass" } }, ngImport: i0, template: `
|
|
70325
|
-
|
|
70326
|
-
|
|
70327
|
-
|
|
70328
|
-
|
|
70329
|
-
|
|
70330
|
-
|
|
70331
|
-
|
|
70332
|
-
|
|
70333
|
-
|
|
70334
|
-
|
|
70335
|
-
|
|
70336
|
-
|
|
70337
|
-
|
|
70338
|
-
|
|
70339
|
-
|
|
70340
|
-
|
|
70341
|
-
|
|
70342
|
-
|
|
70343
|
-
|
|
70344
|
-
|
|
70345
|
-
|
|
70346
|
-
|
|
70347
|
-
|
|
70348
|
-
|
|
70349
|
-
|
|
70350
|
-
|
|
70351
|
-
|
|
70352
|
-
|
|
70353
|
-
|
|
70354
|
-
|
|
70355
|
-
|
|
70356
|
-
|
|
70357
|
-
|
|
70358
|
-
|
|
70359
|
-
|
|
70360
|
-
|
|
70361
|
-
|
|
70362
|
-
|
|
70363
|
-
|
|
70364
|
-
|
|
70365
|
-
|
|
70366
|
-
|
|
70367
|
-
|
|
70370
|
+
@if (ready) {
|
|
70371
|
+
<co-send-method-dialog
|
|
70372
|
+
[headerTitle]="'SENDMETHODS' | localize"
|
|
70373
|
+
[printerList]="printerList"
|
|
70374
|
+
[defaultSendMethod]="sendMethodType.CombinePrintAndEmail"
|
|
70375
|
+
[visibleMethods]="[sendMethodType.CombinePrintAndEmail]"
|
|
70376
|
+
[emailAddresses]="emailAddresses"
|
|
70377
|
+
[emailLayouts]="emailLayouts"
|
|
70378
|
+
[printLayouts]="printLayouts"
|
|
70379
|
+
[disablePdfPreview]="true"
|
|
70380
|
+
[isDocSignEnabled]="true"
|
|
70381
|
+
[pdfDoc]="pdfDoc"
|
|
70382
|
+
[showAdditionalChecks]="false"
|
|
70383
|
+
[showLocalPrint]="false"
|
|
70384
|
+
[layoutCode]="layoutCode"
|
|
70385
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
70386
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
70387
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
70388
|
+
[(reportingDocumentCombinedRequest)]="reportDocumentCombinedRequest"
|
|
70389
|
+
(closeClick)="cancelButtonClicked()"
|
|
70390
|
+
(okClick)="saveButtonClicked($event)"
|
|
70391
|
+
>
|
|
70392
|
+
<div extra-content>
|
|
70393
|
+
@if (category === BatchDeliveryCategory.Invoice) {
|
|
70394
|
+
<section>
|
|
70395
|
+
<h3 [textContent]="'INVOICE_DATE' | localize"></h3>
|
|
70396
|
+
<co-input-date [placeholder]="'INVOICE_DATE' | localize"
|
|
70397
|
+
[firstDayOfWeek]="firstDayOfWeek"
|
|
70398
|
+
[(model)]="documentDate"></co-input-date>
|
|
70399
|
+
</section>
|
|
70400
|
+
}
|
|
70401
|
+
@if (category === BatchDeliveryCategory.ToPick) {
|
|
70402
|
+
<section>
|
|
70403
|
+
<h3 [textContent]="'TO_BE_PICKED' | localize"></h3>
|
|
70404
|
+
<co-input-date [placeholder]="'TO_BE_PICKED' | localize"
|
|
70405
|
+
[firstDayOfWeek]="firstDayOfWeek"
|
|
70406
|
+
[(model)]="documentDate"></co-input-date>
|
|
70407
|
+
</section>
|
|
70408
|
+
}
|
|
70409
|
+
</div>
|
|
70410
|
+
</co-send-method-dialog>
|
|
70411
|
+
}
|
|
70412
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i2.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "hideSignatureBtn", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { kind: "component", type: i1$1.InputDatePickerComponent, selector: "co-input-date", inputs: ["firstDayOfWeek", "showClearButton"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
70368
70413
|
}
|
|
70369
70414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ShippingMethodDialogComponent, decorators: [{
|
|
70370
70415
|
type: Component,
|
|
70371
70416
|
args: [{
|
|
70372
70417
|
selector: 'co-shipping-method-dialog',
|
|
70373
70418
|
template: `
|
|
70374
|
-
|
|
70375
|
-
|
|
70376
|
-
|
|
70377
|
-
|
|
70378
|
-
|
|
70379
|
-
|
|
70380
|
-
|
|
70381
|
-
|
|
70382
|
-
|
|
70383
|
-
|
|
70384
|
-
|
|
70385
|
-
|
|
70386
|
-
|
|
70387
|
-
|
|
70388
|
-
|
|
70389
|
-
|
|
70390
|
-
|
|
70391
|
-
|
|
70392
|
-
|
|
70393
|
-
|
|
70394
|
-
|
|
70395
|
-
|
|
70396
|
-
|
|
70397
|
-
|
|
70398
|
-
|
|
70399
|
-
|
|
70400
|
-
|
|
70401
|
-
|
|
70402
|
-
|
|
70403
|
-
|
|
70404
|
-
|
|
70405
|
-
|
|
70406
|
-
|
|
70407
|
-
|
|
70408
|
-
|
|
70409
|
-
|
|
70410
|
-
|
|
70411
|
-
|
|
70412
|
-
|
|
70413
|
-
|
|
70414
|
-
|
|
70415
|
-
|
|
70416
|
-
|
|
70419
|
+
@if (ready) {
|
|
70420
|
+
<co-send-method-dialog
|
|
70421
|
+
[headerTitle]="'SENDMETHODS' | localize"
|
|
70422
|
+
[printerList]="printerList"
|
|
70423
|
+
[defaultSendMethod]="sendMethodType.CombinePrintAndEmail"
|
|
70424
|
+
[visibleMethods]="[sendMethodType.CombinePrintAndEmail]"
|
|
70425
|
+
[emailAddresses]="emailAddresses"
|
|
70426
|
+
[emailLayouts]="emailLayouts"
|
|
70427
|
+
[printLayouts]="printLayouts"
|
|
70428
|
+
[disablePdfPreview]="true"
|
|
70429
|
+
[isDocSignEnabled]="true"
|
|
70430
|
+
[pdfDoc]="pdfDoc"
|
|
70431
|
+
[showAdditionalChecks]="false"
|
|
70432
|
+
[showLocalPrint]="false"
|
|
70433
|
+
[layoutCode]="layoutCode"
|
|
70434
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
70435
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
70436
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
70437
|
+
[(reportingDocumentCombinedRequest)]="reportDocumentCombinedRequest"
|
|
70438
|
+
(closeClick)="cancelButtonClicked()"
|
|
70439
|
+
(okClick)="saveButtonClicked($event)"
|
|
70440
|
+
>
|
|
70441
|
+
<div extra-content>
|
|
70442
|
+
@if (category === BatchDeliveryCategory.Invoice) {
|
|
70443
|
+
<section>
|
|
70444
|
+
<h3 [textContent]="'INVOICE_DATE' | localize"></h3>
|
|
70445
|
+
<co-input-date [placeholder]="'INVOICE_DATE' | localize"
|
|
70446
|
+
[firstDayOfWeek]="firstDayOfWeek"
|
|
70447
|
+
[(model)]="documentDate"></co-input-date>
|
|
70448
|
+
</section>
|
|
70449
|
+
}
|
|
70450
|
+
@if (category === BatchDeliveryCategory.ToPick) {
|
|
70451
|
+
<section>
|
|
70452
|
+
<h3 [textContent]="'TO_BE_PICKED' | localize"></h3>
|
|
70453
|
+
<co-input-date [placeholder]="'TO_BE_PICKED' | localize"
|
|
70454
|
+
[firstDayOfWeek]="firstDayOfWeek"
|
|
70455
|
+
[(model)]="documentDate"></co-input-date>
|
|
70456
|
+
</section>
|
|
70457
|
+
}
|
|
70458
|
+
</div>
|
|
70459
|
+
</co-send-method-dialog>
|
|
70460
|
+
}
|
|
70461
|
+
`,
|
|
70417
70462
|
encapsulation: ViewEncapsulation.None,
|
|
70418
70463
|
standalone: false
|
|
70419
70464
|
}]
|
|
@@ -71480,6 +71525,7 @@ class TransactionSearchResultComponent {
|
|
|
71480
71525
|
this.searchService.setBatchOptionsState(Object.values(BatchDeliveryCategory).includes(category));
|
|
71481
71526
|
}
|
|
71482
71527
|
_showBatchProcessesStatus() {
|
|
71528
|
+
this._clearSelected();
|
|
71483
71529
|
this.showProcessOrdersLoader = false;
|
|
71484
71530
|
this.transactionService.getBatchJobProgressesForTheUser().then((batchJobProgresses) => {
|
|
71485
71531
|
this.batchJobProgress = batchJobProgresses;
|
|
@@ -71497,7 +71543,7 @@ class TransactionSearchResultComponent {
|
|
|
71497
71543
|
@if (screenConfigLoaded) {
|
|
71498
71544
|
@if (searchService.transactions?.length > 0 && batchPageActive && searchService.showBatchOptions) {
|
|
71499
71545
|
<div class="actions-wrapper">
|
|
71500
|
-
@if (
|
|
71546
|
+
@if (batchCategory && batchCategory !== BatchDeliveryCategory.Transport) {
|
|
71501
71547
|
<co-input-checkbox
|
|
71502
71548
|
[model]="checkIfAllSelected()"
|
|
71503
71549
|
[label]="(checkIfAllSelected() ? 'DESELECT' : 'SELECT_ALL_ORDERS') | localize"
|
|
@@ -71620,7 +71666,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
71620
71666
|
@if (screenConfigLoaded) {
|
|
71621
71667
|
@if (searchService.transactions?.length > 0 && batchPageActive && searchService.showBatchOptions) {
|
|
71622
71668
|
<div class="actions-wrapper">
|
|
71623
|
-
@if (
|
|
71669
|
+
@if (batchCategory && batchCategory !== BatchDeliveryCategory.Transport) {
|
|
71624
71670
|
<co-input-checkbox
|
|
71625
71671
|
[model]="checkIfAllSelected()"
|
|
71626
71672
|
[label]="(checkIfAllSelected() ? 'DESELECT' : 'SELECT_ALL_ORDERS') | localize"
|
|
@@ -87230,10 +87276,6 @@ class TransactionInternalComponent {
|
|
|
87230
87276
|
// if (transaction?.transactionInfo?.uuid) {
|
|
87231
87277
|
// this.getTransactionMarginInfo(transaction?.transactionInfo?.uuid);
|
|
87232
87278
|
// }
|
|
87233
|
-
if (transaction?.transactionInfo.id && transaction.transactionInfo.transactionKind === TransactionKind.SalesOrder) {
|
|
87234
|
-
this.getPlanOrderForTransaction(transaction);
|
|
87235
|
-
this.checkPreferredPlanning();
|
|
87236
|
-
}
|
|
87237
87279
|
if (this._containerForFillMode && this.transaction && this.transaction.transactionInfo.transactionKind === TransactionKind.PurchaseOrder) {
|
|
87238
87280
|
this._transactionEventService.activeRubricChange.next({ category: TransactionTypeCategory.PurchaseOrderTransport });
|
|
87239
87281
|
}
|
|
@@ -87545,18 +87587,6 @@ class TransactionInternalComponent {
|
|
|
87545
87587
|
handleViewModeChange(mode) {
|
|
87546
87588
|
this.activeViewMode = mode;
|
|
87547
87589
|
}
|
|
87548
|
-
async getPlanOrderForTransaction(transaction) {
|
|
87549
|
-
if (!this.deliveryPlanningService.currentPlanning?.planningId) {
|
|
87550
|
-
const planningSources = await this._transactionConnectorService.getPlanningSources();
|
|
87551
|
-
this.deliveryPlanningService.currentPlanning = planningSources[0] ? planningSources[0] : undefined;
|
|
87552
|
-
}
|
|
87553
|
-
let planOrder = await this._transactionConnectorService.getPlanOrder(transaction.transactionInfo.id);
|
|
87554
|
-
if (planOrder) {
|
|
87555
|
-
await this.deliveryPlanningService.getSequenceOrderValue(planOrder);
|
|
87556
|
-
await this.deliveryPlanningService.getOrderLinesPlanned(planOrder);
|
|
87557
|
-
this.deliveryPlanningService.linesPlanOrder = planOrder;
|
|
87558
|
-
}
|
|
87559
|
-
}
|
|
87560
87590
|
async handleShowSalesPersonInput(event) {
|
|
87561
87591
|
event.preventDefault();
|
|
87562
87592
|
event.stopPropagation();
|
|
@@ -94288,13 +94318,13 @@ class TransactionQuickAccessOrderActivitiesComponent extends TransactionQuickAcc
|
|
|
94288
94318
|
return Promise.resolve([]); // Not yet provided by middle tier
|
|
94289
94319
|
}
|
|
94290
94320
|
getDefaultSendMethod() {
|
|
94291
|
-
return this.transactionService.
|
|
94321
|
+
return this.transactionService.getWorkOrderDefaultSendMethod(this.transactionInfo.relation.relationId);
|
|
94292
94322
|
}
|
|
94293
94323
|
getEmailLayouts() {
|
|
94294
|
-
return this.transactionService.
|
|
94324
|
+
return this.transactionService.getWorkOrderEmailLayouts(this.transactionInfo.uuid);
|
|
94295
94325
|
}
|
|
94296
94326
|
getPrintLayouts() {
|
|
94297
|
-
return this.transactionService.
|
|
94327
|
+
return this.transactionService.getWorkOrderPrintLayouts(this.transactionInfo.uuid);
|
|
94298
94328
|
}
|
|
94299
94329
|
pdfDocument(reportingDocumentPdfBaseRequest) {
|
|
94300
94330
|
if (this.sendDocumentsComponent.selected) {
|
|
@@ -94356,7 +94386,7 @@ class TransactionQuickAccessOrderActivitiesComponent extends TransactionQuickAcc
|
|
|
94356
94386
|
historicRequest.reportId = reportId;
|
|
94357
94387
|
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
94358
94388
|
this._prepareHistoricRequest(historicRequest);
|
|
94359
|
-
return await this.transactionService.
|
|
94389
|
+
return await this.transactionService.previewWorkOrder(historicRequest);
|
|
94360
94390
|
}
|
|
94361
94391
|
async getPreviewDocumentData(reportId) {
|
|
94362
94392
|
let request;
|