@colijnit/transaction 12.1.85 → 12.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-transaction.umd.js +98 -22
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/checkout/checkout.module.js +1 -1
- package/esm2015/lib/component/core/base/transaction-base.component.js +12 -1
- package/esm2015/lib/component/transaction/transaction.component.js +9 -7
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +4 -1
- package/esm2015/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +60 -38
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price/transaction-line-price.component.js +3 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +43 -4
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.module.js +5 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/transaction-quick-access-order-purchase.component.js +1 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/transaction-quick-access-order-purchase.module.js +4 -3
- package/esm2015/lib/service/transaction-connector-adapter.service.js +2 -2
- package/fesm2015/colijnit-transaction.js +130 -56
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-base.component.d.ts +4 -0
- package/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.d.ts +3 -2
- package/lib/component/transaction-line/transaction-purchase-order-line/style/_layout.scss +3 -1
- package/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.d.ts +8 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.d.ts +14 -0
- package/package.json +1 -1
|
@@ -110,6 +110,8 @@ import { SalesOrderLineAllocationDetails } from '@colijnit/transactionapi/build/
|
|
|
110
110
|
import { EmailPurchaseOrderRequest } from '@colijnit/mainapi/build/model/email-purchase-order-request';
|
|
111
111
|
import { PrintPurchaseOrderRequest } from '@colijnit/mainapi/build/model/print-purchase-order-request';
|
|
112
112
|
import { PdfPurchaseOrderRequest } from '@colijnit/mainapi/build/model/pdf-purchase-order-request';
|
|
113
|
+
import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-purchase-portal-line';
|
|
114
|
+
import { PurchasePortalFilters } from '@colijnit/transactionapi/build/model/purchase-portal-filters.bo';
|
|
113
115
|
import { RelationRequest } from '@colijnit/relationapi/build/model/relation-request';
|
|
114
116
|
import { CoDocument } from '@colijnit/sharedapi/build/model/co-document.bo';
|
|
115
117
|
import { GenderType } from '@colijnit/relationapi/build/enum/gender-type.enum';
|
|
@@ -121,8 +123,6 @@ import { RelationSmallObject } from '@colijnit/relationapi/build/model/relation-
|
|
|
121
123
|
import { IconModule as IconModule$1, CoCurrencyPipeModule } from '@colijnit/corecomponents';
|
|
122
124
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo';
|
|
123
125
|
import { PurchaseOrderLineReceiptCorrectionDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo';
|
|
124
|
-
import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-purchase-portal-line';
|
|
125
|
-
import { PurchasePortalFilters } from '@colijnit/transactionapi/build/model/purchase-portal-filters.bo';
|
|
126
126
|
import { AllocateGoodsForSalesOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/allocate-goods-for-sales-order-correction-request';
|
|
127
127
|
import { SalesOrderLineAllocationCorrectionDetails } from '@colijnit/transactionapi/build/model/sales-order-line-allocation-correction-details';
|
|
128
128
|
import { IoneCatalogModule } from '@colijnit/catalog';
|
|
@@ -1023,6 +1023,7 @@ class TransactionBaseComponent {
|
|
|
1023
1023
|
this._transactionLine = new TransactionLineInfo();
|
|
1024
1024
|
this._transactionInfo = new TransactionInfo();
|
|
1025
1025
|
this._transactionTotal = new TransactionTotal();
|
|
1026
|
+
this._purchasePortalLine = new PurchasePortalLine();
|
|
1026
1027
|
}
|
|
1027
1028
|
set transaction(value) {
|
|
1028
1029
|
this._transaction = value;
|
|
@@ -1080,6 +1081,14 @@ class TransactionBaseComponent {
|
|
|
1080
1081
|
get transactionTotal() {
|
|
1081
1082
|
return this._transactionTotal;
|
|
1082
1083
|
}
|
|
1084
|
+
set purchasePortalLine(value) {
|
|
1085
|
+
if (value) {
|
|
1086
|
+
this._purchasePortalLine = value;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
get purchasePortalLine() {
|
|
1090
|
+
return this._purchasePortalLine;
|
|
1091
|
+
}
|
|
1083
1092
|
set relation(value) {
|
|
1084
1093
|
if (value) {
|
|
1085
1094
|
this._relation = value;
|
|
@@ -1148,6 +1157,7 @@ TransactionBaseComponent.propDecorators = {
|
|
|
1148
1157
|
transactionLine: [{ type: Input }],
|
|
1149
1158
|
transactionInfo: [{ type: Input }],
|
|
1150
1159
|
transactionTotal: [{ type: Input }],
|
|
1160
|
+
purchasePortalLine: [{ type: Input }],
|
|
1151
1161
|
relation: [{ type: Input }],
|
|
1152
1162
|
expanded: [{ type: Input }],
|
|
1153
1163
|
preview: [{ type: HostBinding, args: ["class.preview",] }, { type: Input }],
|
|
@@ -3417,7 +3427,7 @@ class TransactionConnectorAdapterService {
|
|
|
3417
3427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3418
3428
|
const response = yield this.connector.getPurchaseAdviceLines(filters, goodId);
|
|
3419
3429
|
if (response && response.validationResult && response.validationResult.success) {
|
|
3420
|
-
return this._boFactory.makeBOArrayFromRawBackendDataArray(PurchaseAdviceLine, response.
|
|
3430
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray(PurchaseAdviceLine, response.resultObjects);
|
|
3421
3431
|
}
|
|
3422
3432
|
else {
|
|
3423
3433
|
this._handleExceptionFromResponse(response);
|
|
@@ -9362,9 +9372,16 @@ TransactionSearchSalesOrderTileComponent.ctorParameters = () => [
|
|
|
9362
9372
|
];
|
|
9363
9373
|
|
|
9364
9374
|
class TransactionQuickAccessOrderConfirmationComponent extends TransactionBaseComponent {
|
|
9365
|
-
constructor() {
|
|
9366
|
-
super(
|
|
9375
|
+
constructor(iconService, service, _transactionEventService) {
|
|
9376
|
+
super(service);
|
|
9377
|
+
this.iconService = iconService;
|
|
9378
|
+
this.service = service;
|
|
9379
|
+
this._transactionEventService = _transactionEventService;
|
|
9380
|
+
this.icons = Icon;
|
|
9367
9381
|
this.purchaseOrderConfirmation = new GetPurchaseOrderConfirmation();
|
|
9382
|
+
this.awaitingResult = false;
|
|
9383
|
+
this.resultSuccessful = false;
|
|
9384
|
+
this.iconVisible = true;
|
|
9368
9385
|
}
|
|
9369
9386
|
showClass() {
|
|
9370
9387
|
return true;
|
|
@@ -9375,6 +9392,24 @@ class TransactionQuickAccessOrderConfirmationComponent extends TransactionBaseCo
|
|
|
9375
9392
|
this.transactionService.purchaseOrderConfirmation(this.purchaseOrderConfirmation);
|
|
9376
9393
|
}
|
|
9377
9394
|
}
|
|
9395
|
+
handleSelectAllLines(value) {
|
|
9396
|
+
this._transactionEventService.selectAllSalesOrderLinesForPurchase.next(value);
|
|
9397
|
+
}
|
|
9398
|
+
handleCommitEvent() {
|
|
9399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9400
|
+
this.iconVisible = false;
|
|
9401
|
+
this.resultSuccessful = false;
|
|
9402
|
+
this.awaitingResult = true;
|
|
9403
|
+
if (this.purchaseOrderConfirmation.confirmationDate && this.purchaseOrderConfirmation.reference) {
|
|
9404
|
+
this.purchaseOrderConfirmation.transId = this.transactionService.currentTransaction.transactionInfo.transactionNr;
|
|
9405
|
+
this.transactionService.purchaseOrderConfirmation(this.purchaseOrderConfirmation);
|
|
9406
|
+
}
|
|
9407
|
+
this.awaitingResult = false;
|
|
9408
|
+
setTimeout(() => {
|
|
9409
|
+
this.iconVisible = true;
|
|
9410
|
+
}, 600);
|
|
9411
|
+
});
|
|
9412
|
+
}
|
|
9378
9413
|
}
|
|
9379
9414
|
TransactionQuickAccessOrderConfirmationComponent.decorators = [
|
|
9380
9415
|
{ type: Component, args: [{
|
|
@@ -9392,12 +9427,21 @@ TransactionQuickAccessOrderConfirmationComponent.decorators = [
|
|
|
9392
9427
|
[(model)]="purchaseOrderConfirmation.leverbatch"
|
|
9393
9428
|
[placeholder]="'BATCH' | localize"
|
|
9394
9429
|
></co-input-text>
|
|
9395
|
-
<co-input-checkbox (modelChange)="
|
|
9430
|
+
<co-input-checkbox (modelChange)="handleSelectAllLines($event)"
|
|
9396
9431
|
></co-input-checkbox>
|
|
9432
|
+
<div class="button-wrapper" (click)="handleCommitEvent()">
|
|
9433
|
+
<co-checkmark-overlay [successful]="resultSuccessful" [visible]="awaitingResult"></co-checkmark-overlay>
|
|
9434
|
+
<co-icon class="button-icon" [iconData]="iconService.getIcon(icons.GearSolid)" [class.hidden]="!iconVisible"></co-icon>
|
|
9435
|
+
</div>
|
|
9397
9436
|
`,
|
|
9398
9437
|
encapsulation: ViewEncapsulation.None
|
|
9399
9438
|
},] }
|
|
9400
9439
|
];
|
|
9440
|
+
TransactionQuickAccessOrderConfirmationComponent.ctorParameters = () => [
|
|
9441
|
+
{ type: IconCacheService },
|
|
9442
|
+
{ type: TransactionService },
|
|
9443
|
+
{ type: TransactionEventService }
|
|
9444
|
+
];
|
|
9401
9445
|
TransactionQuickAccessOrderConfirmationComponent.propDecorators = {
|
|
9402
9446
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-quick-access-order-confirmation",] }]
|
|
9403
9447
|
};
|
|
@@ -10610,7 +10654,7 @@ TransactionReceiveGoodsLineComponent.decorators = [
|
|
|
10610
10654
|
<co-transaction-line-warehouse-button [transactionLine]="viewModel" [readonly]="viewModel.quantityReceived === viewModel.amount" [transactionInfo]="transactionInfo"></co-transaction-line-warehouse-button>
|
|
10611
10655
|
<co-transaction-line-warehouse-location-button [readonly]="warehouseButtonReadonly()" [line]="viewModel"></co-transaction-line-warehouse-location-button>
|
|
10612
10656
|
<co-editable-label class="transaction-line-totals-total price"
|
|
10613
|
-
[model]="viewModel.amount
|
|
10657
|
+
[model]="viewModel.amount?.toString() + 'x'"
|
|
10614
10658
|
[readonly]="true"
|
|
10615
10659
|
></co-editable-label>
|
|
10616
10660
|
<div class="transaction-line-totals-amount"
|
|
@@ -10988,7 +11032,7 @@ TransactionGoodsAllocationLineComponent.decorators = [
|
|
|
10988
11032
|
<co-transaction-line-warehouse-button [transactionLine]="viewModel" [readonly]="viewModel.quantityAllocated === viewModel.amount" [transactionInfo]="transactionInfo"></co-transaction-line-warehouse-button>
|
|
10989
11033
|
<co-transaction-line-warehouse-location-button [readonly]="viewModel.quantityAllocated === viewModel.amount || !viewModel.isLocationRequired" [line]="viewModel"></co-transaction-line-warehouse-location-button>
|
|
10990
11034
|
<co-editable-label class="transaction-line-totals-total price"
|
|
10991
|
-
[model]="viewModel.amount
|
|
11035
|
+
[model]="viewModel.amount?.toString() + 'x'"
|
|
10992
11036
|
[readonly]="true"
|
|
10993
11037
|
></co-editable-label>
|
|
10994
11038
|
<co-transaction-line-statusbar class="status-bar-wrapper" [transactionLine]="transactionLine" [transactionInfo]="transactionInfo" [activeCategory]="category.SalesOrderAllocation"></co-transaction-line-statusbar>
|
|
@@ -11364,6 +11408,9 @@ class TransactionPurchaseOrderLineComponent extends TransactionBaseComponent {
|
|
|
11364
11408
|
this.showDialogDiscount = false;
|
|
11365
11409
|
this.showCheckboxForLine = false;
|
|
11366
11410
|
this.viewModel = new ExtendedTransactionLineViewModel();
|
|
11411
|
+
this.getPurchasePortalLine = new GetPurchasePortalLine();
|
|
11412
|
+
this.purchasePortalFilter = new PurchasePortalFilters();
|
|
11413
|
+
this.purchasePortalLines = [];
|
|
11367
11414
|
this.transactionTypeCategory = TransactionTypeCategory;
|
|
11368
11415
|
this._subs = [];
|
|
11369
11416
|
}
|
|
@@ -11372,7 +11419,7 @@ class TransactionPurchaseOrderLineComponent extends TransactionBaseComponent {
|
|
|
11372
11419
|
}
|
|
11373
11420
|
ngOnInit() {
|
|
11374
11421
|
this.transactionKind = this.transactionService.currentTransaction.transactionInfo.transactionKind;
|
|
11375
|
-
|
|
11422
|
+
this.getPurchasePortalLines();
|
|
11376
11423
|
this._subs.push(this._transactionEventService.selectAllSalesOrderLinesForPurchase.subscribe((value) => {
|
|
11377
11424
|
this.selected = value;
|
|
11378
11425
|
}));
|
|
@@ -11383,50 +11430,67 @@ class TransactionPurchaseOrderLineComponent extends TransactionBaseComponent {
|
|
|
11383
11430
|
transactionLineSet() {
|
|
11384
11431
|
this.showCheckboxForLine = this.transactionLine.commissionCode === "0";
|
|
11385
11432
|
}
|
|
11433
|
+
getPurchasePortalLines() {
|
|
11434
|
+
this.purchasePortalFilter.purchaseOrderNo = this.transactionInfo.transactionNr.toString();
|
|
11435
|
+
this.purchasePortalFilter.lineId = this.transactionLine.lineNr.toString();
|
|
11436
|
+
this.getPurchasePortalLine.transIdPurchase = this.transactionInfo.id;
|
|
11437
|
+
this.getPurchasePortalLine.filterObject = this.purchasePortalFilter;
|
|
11438
|
+
this.transactionService.getPurchasePortalLines(this.getPurchasePortalLine).then((result) => {
|
|
11439
|
+
this.purchasePortalLines = result;
|
|
11440
|
+
});
|
|
11441
|
+
}
|
|
11442
|
+
handleOpenSidePanel(mouseClick) {
|
|
11443
|
+
const target = mouseClick.target;
|
|
11444
|
+
if (target && target.dataset && target.dataset['action'] && target.dataset['action'] === 'openSidePanel') {
|
|
11445
|
+
this._transactionEventService.openSidePanel.next(this.transactionLine);
|
|
11446
|
+
}
|
|
11447
|
+
}
|
|
11386
11448
|
}
|
|
11387
11449
|
TransactionPurchaseOrderLineComponent.decorators = [
|
|
11388
11450
|
{ type: Component, args: [{
|
|
11389
11451
|
selector: "co-transaction-purchase-order-line",
|
|
11390
11452
|
template: `
|
|
11391
|
-
<co-transaction-base-line [transactionInfo]="transactionInfo" [transactionLine]="transactionLine"
|
|
11392
|
-
|
|
11393
|
-
<
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
<
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11453
|
+
<co-transaction-base-line *ngFor="let lines of purchasePortalLines" [transactionInfo]="transactionInfo" (click)="handleOpenSidePanel($event)" [transactionLine]="transactionLine" [preview]="preview" [checkbox]="showCheckboxForLine" [checkboxValue]="selected" (checkboxValueChanged)="selected = $event">
|
|
11454
|
+
<div class="transaction-line-wrapper" data-action="openSidePanel">
|
|
11455
|
+
<div class="transaction-line-wrapper">
|
|
11456
|
+
<co-transaction-line-statusbar [transactionLine]="transactionLine" [transactionInfo]="transactionInfo" [activeCategory]="transactionTypeCategory.PurchaseOrderReceivedGoods"></co-transaction-line-statusbar>
|
|
11457
|
+
<co-transaction-line-delivery-date-button [transactionLine]="transactionLine" class="two-column"></co-transaction-line-delivery-date-button>
|
|
11458
|
+
<div class="transaction-line-totals-grid">
|
|
11459
|
+
<co-transaction-line-price class="transaction-line-totals-grid price"
|
|
11460
|
+
[purchasePortalLine]="lines"
|
|
11461
|
+
[showLabel]="false"
|
|
11462
|
+
[defaultEditMode]="false"
|
|
11463
|
+
></co-transaction-line-price>
|
|
11464
|
+
<div class="transaction-line-totals-grid discount" (click)="showDialogDiscount = true">
|
|
11465
|
+
<span class="co-transaction-overflow-ellipsis" [class.transaction-negative-value]="transactionLine.lineTotalDiscountAmount < 0"
|
|
11466
|
+
[textContent]="(lines.discountOrderPrice | coCurrency) || ('DISCOUNT' | localize)"></span>
|
|
11467
|
+
</div>
|
|
11468
|
+
<co-transaction-line-price class="transaction-line-totals-grid price"
|
|
11469
|
+
[purchasePortalLine]="lines"
|
|
11470
|
+
[showLabel]="false"
|
|
11471
|
+
[defaultEditMode]="false"
|
|
11472
|
+
></co-transaction-line-price>
|
|
11404
11473
|
</div>
|
|
11405
|
-
<co-transaction-line-price class="transaction-line-totals-grid price"
|
|
11406
|
-
[transactionLine]="transactionLine"
|
|
11407
|
-
[showLabel]="false"
|
|
11408
|
-
[defaultEditMode]="false"
|
|
11409
|
-
></co-transaction-line-price>
|
|
11410
11474
|
</div>
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11475
|
+
<div class="vertical-border"></div>
|
|
11476
|
+
<div class="transaction-line-totals-grid" data-action="openSidePanel">
|
|
11477
|
+
<co-icon class="transaction-line-supplier-icon" [iconData]="iconCacheService.getIcon(icons.IndustrySolid)"></co-icon>
|
|
11478
|
+
<span class="transaction-line-supplier-id" [textContent]="lines.articleNoSupplier"></span>
|
|
11479
|
+
<div class="transaction-line-totals-grid">
|
|
11480
|
+
<co-transaction-line-price class="transaction-line-totals-grid price"
|
|
11481
|
+
[purchasePortalLine]="lines"
|
|
11482
|
+
[showLabel]="false"
|
|
11483
|
+
[defaultEditMode]="false"
|
|
11484
|
+
></co-transaction-line-price>
|
|
11485
|
+
</div>
|
|
11486
|
+
<co-input-number-picker class="amount-number-picker"
|
|
11487
|
+
[(model)]="lines.amountAccepted"
|
|
11488
|
+
></co-input-number-picker>
|
|
11489
|
+
<co-transaction-line-delivery-date-button [purchasePortalLine]="lines"
|
|
11490
|
+
class="two-column"
|
|
11491
|
+
></co-transaction-line-delivery-date-button>
|
|
11422
11492
|
</div>
|
|
11423
|
-
|
|
11424
|
-
[(model)]="transactionLine.amount"
|
|
11425
|
-
></co-input-number-picker>
|
|
11426
|
-
<co-transaction-line-delivery-date-button [transactionLine]="transactionLine"
|
|
11427
|
-
class="two-column"
|
|
11428
|
-
></co-transaction-line-delivery-date-button>
|
|
11429
|
-
</div>
|
|
11493
|
+
</div>
|
|
11430
11494
|
</co-transaction-base-line>
|
|
11431
11495
|
`,
|
|
11432
11496
|
encapsulation: ViewEncapsulation.None
|
|
@@ -15550,12 +15614,14 @@ class TransactionComponent {
|
|
|
15550
15614
|
if (sidePanelComponent) {
|
|
15551
15615
|
sidePanelComponent.handleCancelClick();
|
|
15552
15616
|
}
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15617
|
+
if (line) {
|
|
15618
|
+
this.sidePanelTransactionLine = line;
|
|
15619
|
+
this._dynamicComponentService.createComponent(TransactionLineSidePanelComponent, {
|
|
15620
|
+
transactionInfo: this.transaction.transactionInfo,
|
|
15621
|
+
transactionLine: this.sidePanelTransactionLine,
|
|
15622
|
+
activeCategory: this.activeCategory
|
|
15623
|
+
});
|
|
15624
|
+
}
|
|
15559
15625
|
}
|
|
15560
15626
|
}
|
|
15561
15627
|
TransactionComponent.decorators = [
|
|
@@ -17510,7 +17576,7 @@ TransactionLinePriceComponent.decorators = [
|
|
|
17510
17576
|
{ type: Component, args: [{
|
|
17511
17577
|
selector: "co-transaction-line-price",
|
|
17512
17578
|
template: `
|
|
17513
|
-
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionLine.price | coCurrency"></span>
|
|
17579
|
+
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionLine.price || purchasePortalLine.confirmedPrice | coCurrency"></span>
|
|
17514
17580
|
<co-input-text #input *ngIf="editMode || defaultEditMode"
|
|
17515
17581
|
[noStyle]="true"
|
|
17516
17582
|
[hideArrowButtons]="true"
|
|
@@ -17518,7 +17584,7 @@ TransactionLinePriceComponent.decorators = [
|
|
|
17518
17584
|
[type]="'number'"
|
|
17519
17585
|
[showSaveCancel]="!readonly"
|
|
17520
17586
|
[readonly]="readonly"
|
|
17521
|
-
[model]="transactionLine.price"
|
|
17587
|
+
[model]="transactionLine.price || purchasePortalLine.confirmedPrice"
|
|
17522
17588
|
(blur)="editMode = false"
|
|
17523
17589
|
></co-input-text>
|
|
17524
17590
|
`,
|
|
@@ -20211,7 +20277,9 @@ TransactionQuickAccessOrderConfirmationModule.decorators = [
|
|
|
20211
20277
|
InputCheckboxModule,
|
|
20212
20278
|
PipeModule,
|
|
20213
20279
|
SendMethodDialogModule,
|
|
20214
|
-
QuickSendButtonModule
|
|
20280
|
+
QuickSendButtonModule,
|
|
20281
|
+
CheckmarkOverlayModule,
|
|
20282
|
+
IconModule
|
|
20215
20283
|
],
|
|
20216
20284
|
declarations: [
|
|
20217
20285
|
TransactionQuickAccessOrderConfirmationComponent
|
|
@@ -20361,7 +20429,8 @@ TransactionQuickAccessOrderPurchaseModule.decorators = [
|
|
|
20361
20429
|
IconModule,
|
|
20362
20430
|
PipeModule,
|
|
20363
20431
|
SendMethodDialogModule,
|
|
20364
|
-
QuickSendButtonModule
|
|
20432
|
+
QuickSendButtonModule,
|
|
20433
|
+
CheckmarkOverlayModule
|
|
20365
20434
|
],
|
|
20366
20435
|
declarations: [
|
|
20367
20436
|
TransactionQuickAccessOrderPurchaseComponent
|
|
@@ -21120,6 +21189,9 @@ class TransactionBaseLineComponent extends TransactionBaseComponent {
|
|
|
21120
21189
|
showClass() {
|
|
21121
21190
|
return true;
|
|
21122
21191
|
}
|
|
21192
|
+
ngOnDestroy() {
|
|
21193
|
+
this._transactionEventService.openSidePanel.next(null);
|
|
21194
|
+
}
|
|
21123
21195
|
deleteTransactionLineClick(event) {
|
|
21124
21196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21125
21197
|
event.preventDefault();
|
|
@@ -21448,7 +21520,8 @@ TransactionLineDeliveryDateButtonComponent.decorators = [
|
|
|
21448
21520
|
template: `
|
|
21449
21521
|
<div class="transaction-line-button custom-width no-border">
|
|
21450
21522
|
<span [textContent]="'DELIVERY_DATE' | localize | append:':'"></span>
|
|
21451
|
-
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.deliveryDate | date:'dd MMM YYYY'"></span>
|
|
21523
|
+
<span *ngIf="transactionLine" class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.deliveryDate | date:'dd MMM YYYY'"></span>
|
|
21524
|
+
<span *ngIf="purchasePortalLine" class="co-transaction-overflow-ellipsis" [textContent]="purchasePortalLine.deliveryDateConfirmed | date:'dd MMM YYYY'"></span>
|
|
21452
21525
|
<co-icon class="header-delivery-date-icon" [iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
|
|
21453
21526
|
</div>
|
|
21454
21527
|
`,
|
|
@@ -21460,6 +21533,7 @@ TransactionLineDeliveryDateButtonComponent.ctorParameters = () => [
|
|
|
21460
21533
|
];
|
|
21461
21534
|
TransactionLineDeliveryDateButtonComponent.propDecorators = {
|
|
21462
21535
|
transactionLine: [{ type: Input }],
|
|
21536
|
+
purchasePortalLine: [{ type: Input }],
|
|
21463
21537
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-delivery-date-button",] }]
|
|
21464
21538
|
};
|
|
21465
21539
|
|