@colijnit/transaction 12.1.12 → 12.1.13
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 +41 -145
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +20 -32
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +21 -22
- package/esm2015/lib/component/checkout/checkout.component.js +4 -4
- package/esm2015/lib/component/delivery-type-tile/delivery-type-tile.component.js +10 -12
- package/esm2015/lib/component/order-confirmation-grid/order-confirmation-grid.component.js +1 -1
- package/esm2015/lib/component/order-grid/order-grid.component.js +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +1 -1
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.js +1 -1
- package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.component.js +2 -1
- package/esm2015/lib/service/ione-connector-adapter.service.js +1 -1
- package/esm2015/lib/service/pending-reason.service.js +1 -21
- package/esm2015/lib/service/transaction.service.js +1 -64
- package/fesm2015/colijnit-transaction.js +51 -151
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +1 -5
- package/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +0 -2
- package/lib/component/delivery-type-tile/delivery-type-tile.component.d.ts +3 -5
- package/lib/service/pending-reason.service.d.ts +0 -3
- package/lib/service/transaction.service.d.ts +0 -1
- package/package.json +2 -2
- package/esm2015/lib/model/delivery-type.js +0 -3
- package/lib/model/delivery-type.d.ts +0 -7
|
@@ -35,7 +35,6 @@ import { TransactionLineInfo } from '@colijnit/transactionapi/build/model/transa
|
|
|
35
35
|
import { CashRegister } from '@colijnit/transactionapi/build/model/cash-register';
|
|
36
36
|
import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
|
|
37
37
|
import { Vat } from '@colijnit/transactionapi/build/model/vat';
|
|
38
|
-
import { SetTransactionDeliveryOptionsRequest } from '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo';
|
|
39
38
|
import { RelationStatus } from '@colijnit/transactionapi/build/enum/relation-status.enum';
|
|
40
39
|
import { ResolveLinePendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
|
|
41
40
|
import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, CollapsibleModule, ColumnAlign, SimpleGridColumnDirective, SimpleGridModule, InputTextComponent } from '@colijnit/corecomponents_v12';
|
|
@@ -2345,7 +2344,6 @@ class PendingReasonService {
|
|
|
2345
2344
|
this.applicationUser = false;
|
|
2346
2345
|
this.currentTransaction = new TransactionInfoResponse();
|
|
2347
2346
|
this.relation = new CustomerFullObject();
|
|
2348
|
-
this.deliveryOptions = new SetTransactionDeliveryOptionsRequest();
|
|
2349
2347
|
this.articleAmount = 0;
|
|
2350
2348
|
}
|
|
2351
2349
|
init(options) {
|
|
@@ -2392,7 +2390,6 @@ class PendingReasonService {
|
|
|
2392
2390
|
_rememberCurrentTransaction(value) {
|
|
2393
2391
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2394
2392
|
this.currentTransaction = value;
|
|
2395
|
-
this._setTransactionDeliveryOptions();
|
|
2396
2393
|
this._setAmount();
|
|
2397
2394
|
this._initializeTransaction();
|
|
2398
2395
|
this.transactionUpdated.next(this.currentTransaction);
|
|
@@ -2449,22 +2446,6 @@ class PendingReasonService {
|
|
|
2449
2446
|
this.dialogService.showInformation(reason);
|
|
2450
2447
|
});
|
|
2451
2448
|
}
|
|
2452
|
-
_setTransactionDeliveryOptions() {
|
|
2453
|
-
if (!this.deliveryOptions) {
|
|
2454
|
-
this.deliveryOptions = new SetTransactionDeliveryOptionsRequest();
|
|
2455
|
-
}
|
|
2456
|
-
this.deliveryOptions.allowPartialDelivery = this.currentTransaction.transactionInfo.allowPartialDelivery;
|
|
2457
|
-
this.deliveryOptions.deliveryDate = this.currentTransaction.transactionInfo.deliveryDate;
|
|
2458
|
-
this.deliveryOptions.deliveryMethod = this.currentTransaction.transactionInfo.deliveryMethod;
|
|
2459
|
-
this.deliveryOptions.deliveryOptions = this.currentTransaction.transactionInfo.deliveryOptions;
|
|
2460
|
-
this.deliveryOptions.marketingCode = this.currentTransaction.transactionInfo.marketingCode;
|
|
2461
|
-
this.deliveryOptions.ownReference = this.currentTransaction.transactionInfo.ownReference;
|
|
2462
|
-
this.deliveryOptions.preferredDeliveryDate = this.currentTransaction.transactionInfo.preferredDeliveryDate;
|
|
2463
|
-
this.deliveryOptions.preferredDeliveryDate2 = this.currentTransaction.transactionInfo.preferredDeliveryDate2;
|
|
2464
|
-
this.deliveryOptions.relationReference = this.currentTransaction.transactionInfo.relationReference;
|
|
2465
|
-
this.deliveryOptions.remark = this.currentTransaction.transactionInfo.remark;
|
|
2466
|
-
this.deliveryOptions.transactionUuid = this.currentTransaction.transactionInfo.uuid;
|
|
2467
|
-
}
|
|
2468
2449
|
_setAmount() {
|
|
2469
2450
|
if (this.currentTransaction && this.currentTransaction.transactionLines) {
|
|
2470
2451
|
this.articleAmount = this.currentTransaction.transactionLines.filter(t => t.lineType === TransactionLineType.ArticleLine).length;
|
|
@@ -2475,7 +2456,6 @@ class PendingReasonService {
|
|
|
2475
2456
|
this.relation = new CustomerFullObject();
|
|
2476
2457
|
this.relation.relationStatus = RelationStatus.RegularCustomer;
|
|
2477
2458
|
this.relation.startDate = new Date();
|
|
2478
|
-
this.deliveryOptions = new SetTransactionDeliveryOptionsRequest();
|
|
2479
2459
|
}
|
|
2480
2460
|
if (this.currentTransaction.transactionInfo.preferredDeliveryDate2 === undefined) {
|
|
2481
2461
|
this.currentTransaction.transactionInfo.preferredDeliveryDate2 = "=";
|
|
@@ -2507,56 +2487,6 @@ class TransactionService extends PendingReasonService {
|
|
|
2507
2487
|
super(...arguments);
|
|
2508
2488
|
this._imageCache = new Map();
|
|
2509
2489
|
}
|
|
2510
|
-
// public get currentLines(): TransactionLineInfo[] {
|
|
2511
|
-
// return this._currentLines;
|
|
2512
|
-
// }
|
|
2513
|
-
//
|
|
2514
|
-
// public set currentLines(value: TransactionLineInfo[]) {
|
|
2515
|
-
// this._currentLines = value;
|
|
2516
|
-
// this.articleAmount = ArrayUtils.FindAll(this._currentLines, line => line.isArticle).length;
|
|
2517
|
-
// }
|
|
2518
|
-
//
|
|
2519
|
-
// public set currentTotals(value: TransactionTotal) {
|
|
2520
|
-
// this._currentTotals = value;
|
|
2521
|
-
// }
|
|
2522
|
-
//
|
|
2523
|
-
// public get currentTotals(): TransactionTotal {
|
|
2524
|
-
// return this._currentTotals;
|
|
2525
|
-
// }
|
|
2526
|
-
//
|
|
2527
|
-
// public get currentRelation(): RelationAnyType {
|
|
2528
|
-
// return this._currentRelation;
|
|
2529
|
-
// }
|
|
2530
|
-
//
|
|
2531
|
-
// public get currentTransaction(): TransactionInfo {
|
|
2532
|
-
// return this._currentTransaction;
|
|
2533
|
-
// }
|
|
2534
|
-
//
|
|
2535
|
-
// public set currentLineOperationStatuses(values: LineOperationStatus[]) {
|
|
2536
|
-
// this._currentLineOperationStatuses = values;
|
|
2537
|
-
// }
|
|
2538
|
-
//
|
|
2539
|
-
// public get currentLineOperationStatuses(): LineOperationStatus[] {
|
|
2540
|
-
// return this._currentLineOperationStatuses;
|
|
2541
|
-
// }
|
|
2542
|
-
//
|
|
2543
|
-
// public set currentLineOperationStatus(value: LineOperationStatus) {
|
|
2544
|
-
// this._currentLineOperationStatus = value;
|
|
2545
|
-
// }
|
|
2546
|
-
//
|
|
2547
|
-
// public get currentLineOperationStatus(): LineOperationStatus | undefined {
|
|
2548
|
-
// const status: LineOperationStatus = this.currentLineOperationStatuses.find(line => line.pendingReasonType !== PendingReasonType.NONE
|
|
2549
|
-
// && line.pendingReasonType !== PendingReasonType.NON_CRITICAL_DISCONTINUATION);
|
|
2550
|
-
// return status;
|
|
2551
|
-
// }
|
|
2552
|
-
//
|
|
2553
|
-
// public articleAmount: number = 0;
|
|
2554
|
-
// private _currentLines: TransactionLineInfo[] = [];
|
|
2555
|
-
// private _currentTotals: TransactionTotal = new TransactionTotal();
|
|
2556
|
-
// private _currentRelation: RelationAnyType; // = NULL_RELATION_OBJECT;
|
|
2557
|
-
// private _currentTransaction: TransactionInfo = new TransactionInfo();
|
|
2558
|
-
// private _currentLineOperationStatus: LineOperationStatus = new LineOperationStatus();
|
|
2559
|
-
// private _currentLineOperationStatuses: LineOperationStatus[] = [];
|
|
2560
2490
|
pendingLineOperationStatus(lineOperationStatuses) {
|
|
2561
2491
|
const status = lineOperationStatuses.find(line => line.pendingReasonType !== PendingReasonType.NONE
|
|
2562
2492
|
&& line.pendingReasonType !== PendingReasonType.NON_CRITICAL_DISCONTINUATION);
|
|
@@ -2924,19 +2854,6 @@ class TransactionService extends PendingReasonService {
|
|
|
2924
2854
|
return yield this.connector.getDeliveryOptions();
|
|
2925
2855
|
});
|
|
2926
2856
|
}
|
|
2927
|
-
setTransactionDeliveryOptions() {
|
|
2928
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2929
|
-
// const transactionDeliveryOptionsRequest: SetTransactionDeliveryOptionsRequest = this._getTransactionDeliveryOptions();
|
|
2930
|
-
if (!this.deliveryOptions.transactionUuid) {
|
|
2931
|
-
this.deliveryOptions.transactionUuid = this.currentTransaction.transactionInfo.uuid;
|
|
2932
|
-
}
|
|
2933
|
-
const response = yield this.connector.setTransactionDeliveryOptions(this.deliveryOptions)
|
|
2934
|
-
.catch(() => {
|
|
2935
|
-
return undefined;
|
|
2936
|
-
});
|
|
2937
|
-
return response && response.isSuccess;
|
|
2938
|
-
});
|
|
2939
|
-
}
|
|
2940
2857
|
getRelationListObjects(relationRequest) {
|
|
2941
2858
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2942
2859
|
return yield this.connector.getRelationListObjects(relationRequest);
|
|
@@ -3238,7 +3155,7 @@ class CheckoutComponent {
|
|
|
3238
3155
|
}
|
|
3239
3156
|
handleSaveDelivery() {
|
|
3240
3157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3241
|
-
return
|
|
3158
|
+
return true;
|
|
3242
3159
|
});
|
|
3243
3160
|
}
|
|
3244
3161
|
}
|
|
@@ -3248,12 +3165,12 @@ CheckoutComponent.decorators = [
|
|
|
3248
3165
|
template: `
|
|
3249
3166
|
<co-stepper [finishButtonLabel]="'CHECKOUT_FINISH' | localize" (finishStep)="handleFinishStep()">
|
|
3250
3167
|
<co-stepper-step #stepRelation [index]="1" [label]="'YOUR_DATA' | localize" (validateStep)="handleRelationValidation()">
|
|
3251
|
-
<co-checkout-overview-relation-edit #checkoutRelation *ngIf="stepRelation.show" [(relation)]="service.relation"
|
|
3168
|
+
<co-checkout-overview-relation-edit #checkoutRelation *ngIf="stepRelation.show" [(relation)]="service.relation"
|
|
3252
3169
|
(relationChange)="service.relation = $event"
|
|
3253
3170
|
></co-checkout-overview-relation-edit>
|
|
3254
3171
|
</co-stepper-step>
|
|
3255
3172
|
<co-stepper-step #stepDelivery [index]="2" [label]="'DELIVERY' | localize" (validateStep)="handleDeliveryValidation()">
|
|
3256
|
-
<co-checkout-overview-delivery-edit #checkoutDelivery *ngIf="stepDelivery.show"
|
|
3173
|
+
<co-checkout-overview-delivery-edit #checkoutDelivery *ngIf="stepDelivery.show"
|
|
3257
3174
|
[transaction]="service.currentTransaction"
|
|
3258
3175
|
></co-checkout-overview-delivery-edit>
|
|
3259
3176
|
</co-stepper-step>
|
|
@@ -3440,26 +3357,26 @@ class CheckoutOverviewRelationEditComponent {
|
|
|
3440
3357
|
this.showSelectAddressDialog = false;
|
|
3441
3358
|
}
|
|
3442
3359
|
selectAddress(address) {
|
|
3443
|
-
if (!this.deliveryOptionsRequest) {
|
|
3444
|
-
|
|
3445
|
-
}
|
|
3446
|
-
if (!address) {
|
|
3447
|
-
|
|
3448
|
-
}
|
|
3449
|
-
if (!address) {
|
|
3450
|
-
|
|
3451
|
-
}
|
|
3452
|
-
this._setCountryNameToAddress(address);
|
|
3453
|
-
if (this.editAddressType === AddressType.DeliveryAddress) {
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
}
|
|
3458
|
-
if (this.invoiceAddressSameAsDeliveryAddress || this.editAddressType !== AddressType.DeliveryAddress) {
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
}
|
|
3360
|
+
// if (!this.deliveryOptionsRequest) {
|
|
3361
|
+
// return;
|
|
3362
|
+
// }
|
|
3363
|
+
// if (!address) {
|
|
3364
|
+
// address = this._service.getFirstAddress(this.relation);
|
|
3365
|
+
// }
|
|
3366
|
+
// if (!address) {
|
|
3367
|
+
// return;
|
|
3368
|
+
// }
|
|
3369
|
+
// this._setCountryNameToAddress(address);
|
|
3370
|
+
// if (this.editAddressType === AddressType.DeliveryAddress) {
|
|
3371
|
+
// this.deliveryOptionsRequest.transactionAddress = address.nawNr;
|
|
3372
|
+
// this.deliveryAddress = address;
|
|
3373
|
+
// this.deliveryAddressIdx = this.relation.addresses.findIndex(a => a.nawNr === this.deliveryAddress.nawNr);
|
|
3374
|
+
// }
|
|
3375
|
+
// if (this.invoiceAddressSameAsDeliveryAddress || this.editAddressType !== AddressType.DeliveryAddress) {
|
|
3376
|
+
// this.deliveryOptionsRequest.invoiceAddress = address.nawNr;
|
|
3377
|
+
// this.invoiceAddress = address;
|
|
3378
|
+
// this.invoiceAddressIdx = this.relation.addresses.findIndex(a => a.nawNr === this.invoiceAddress.nawNr);
|
|
3379
|
+
// }
|
|
3463
3380
|
this.showSelectAddressDialog = false;
|
|
3464
3381
|
}
|
|
3465
3382
|
preparePrimaryEmail() {
|
|
@@ -3835,7 +3752,6 @@ CheckoutOverviewRelationEditComponent.ctorParameters = () => [
|
|
|
3835
3752
|
CheckoutOverviewRelationEditComponent.propDecorators = {
|
|
3836
3753
|
relationForm: [{ type: ViewChild, args: [FormComponent, { static: true },] }],
|
|
3837
3754
|
relation: [{ type: Input }],
|
|
3838
|
-
deliveryOptionsRequest: [{ type: Input }],
|
|
3839
3755
|
validSubmit: [{ type: Output }],
|
|
3840
3756
|
invalidSubmit: [{ type: Output }],
|
|
3841
3757
|
relationChange: [{ type: Output }],
|
|
@@ -3925,11 +3841,11 @@ class CheckoutOverviewDeliveryEditComponent {
|
|
|
3925
3841
|
this.icons = Icon;
|
|
3926
3842
|
this.validSubmit = new EventEmitter();
|
|
3927
3843
|
this.invalidSubmit = new EventEmitter();
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
];
|
|
3844
|
+
// public deliveryTypes: DeliveryType[] = [
|
|
3845
|
+
// {code: '1', description: 'Bezorgen', icon: this.icons.DeliveryTruck, price: 89},
|
|
3846
|
+
// {code: '2', description: 'Bezorgen & monteren', icon: this.icons.CalendarDay, price: 119},
|
|
3847
|
+
// {code: '3', description: 'Meenemen', icon: this.icons.Truck},
|
|
3848
|
+
// ];
|
|
3933
3849
|
this.deliveryOptionList = [];
|
|
3934
3850
|
this.deliveryOptions = [];
|
|
3935
3851
|
this.deliveryOptionFields = { text: "description", value: "code" };
|
|
@@ -3977,7 +3893,7 @@ class CheckoutOverviewDeliveryEditComponent {
|
|
|
3977
3893
|
this.deliveryCosts = this.calculateDeliveryCosts();
|
|
3978
3894
|
this.assemblyCosts = this.calculateAssemblyCosts();
|
|
3979
3895
|
this.service.getDeliveryMethods().then((methods) => {
|
|
3980
|
-
this.deliveryMethods = methods;
|
|
3896
|
+
this.deliveryMethods = methods.filter(m => m.webshop);
|
|
3981
3897
|
});
|
|
3982
3898
|
this.service.getDeliveryOptions().then((options) => {
|
|
3983
3899
|
this.deliveryOptionList = options;
|
|
@@ -3990,13 +3906,13 @@ class CheckoutOverviewDeliveryEditComponent {
|
|
|
3990
3906
|
submit() {
|
|
3991
3907
|
return this._formMasterService.submitSlaves();
|
|
3992
3908
|
}
|
|
3993
|
-
handleDeliveryMethodChange(
|
|
3909
|
+
handleDeliveryMethodChange(deliveryMethod) {
|
|
3994
3910
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3995
|
-
|
|
3996
|
-
|
|
3911
|
+
this.transaction.transactionLines.forEach((tl) => {
|
|
3912
|
+
tl.deliveryMethodCode = deliveryMethod.code;
|
|
3913
|
+
});
|
|
3997
3914
|
if (deliveryMethod) {
|
|
3998
3915
|
this.deliveryOptions = this.selectDeliveryOptionsByDeliveryMethod(deliveryMethod);
|
|
3999
|
-
this.deliveryOptionsRequest.deliveryOptions = [];
|
|
4000
3916
|
}
|
|
4001
3917
|
});
|
|
4002
3918
|
}
|
|
@@ -4047,37 +3963,27 @@ CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
|
4047
3963
|
[tileHeight]="100"
|
|
4048
3964
|
[selectedIndex]="deliveryTypeIdx"
|
|
4049
3965
|
(indexSelected)="setIndexDeliveryType($event)">
|
|
4050
|
-
<co-delivery-type-tile #carouselItem *ngFor="let
|
|
4051
|
-
[
|
|
3966
|
+
<co-delivery-type-tile #carouselItem *ngFor="let method of deliveryMethods; let index = index"
|
|
3967
|
+
[method]="method"
|
|
4052
3968
|
[selected]="deliveryTypeIdx === index"
|
|
3969
|
+
(selectedChange)="handleDeliveryMethodChange($event)"
|
|
4053
3970
|
></co-delivery-type-tile>
|
|
4054
3971
|
</co-carousel-3d>
|
|
4055
3972
|
</div>
|
|
4056
3973
|
<div class="checkout-data-row">
|
|
4057
|
-
<co-input-date [
|
|
3974
|
+
<co-input-date [placeholder]="'DELIVERY_DATE' | localize" [required]="true"></co-input-date>
|
|
4058
3975
|
</div>
|
|
4059
3976
|
<div class="checkout-data-row">
|
|
4060
|
-
<co-input-date [
|
|
3977
|
+
<co-input-date [placeholder]="'PREFERRED_DATE' | localize"></co-input-date>
|
|
4061
3978
|
</div>
|
|
4062
3979
|
<div class="checkout-data-row">
|
|
4063
|
-
<co-input-checkbox [
|
|
3980
|
+
<co-input-checkbox [label]="'PART_DELIVERIES' | localize"></co-input-checkbox>
|
|
4064
3981
|
</div>
|
|
4065
3982
|
<div class="checkout-data-row">
|
|
4066
3983
|
<co-collapsible [headerTitle]="'ADD_DELIVERY_OPTION' | localize" [iconData]="iconService.getIcon(icons.TriangleDown)">
|
|
4067
|
-
<div class="checkout-data-row">
|
|
4068
|
-
<co-drop-down-list
|
|
4069
|
-
[collection]="deliveryMethods"
|
|
4070
|
-
[fields]="deliveryMethodFields"
|
|
4071
|
-
[required]="true"
|
|
4072
|
-
[model]="deliveryOptionsRequest.deliveryMethod"
|
|
4073
|
-
(modelChange)="handleDeliveryMethodChange($event)"
|
|
4074
|
-
[placeholder]="'DELIVERY_METHOD' | localize"></co-drop-down-list>
|
|
4075
|
-
<co-input-text [placeholder]="'TOTAL_ASSEMBLY_TIME' | localize"></co-input-text>
|
|
4076
|
-
</div>
|
|
4077
3984
|
<div class="checkout-data-row">
|
|
4078
3985
|
<co-input-listbox
|
|
4079
3986
|
[placeholder]="'DELIVERY_OPTIONS' | localize"
|
|
4080
|
-
[(model)]="deliveryOptionsRequest.deliveryOptions"
|
|
4081
3987
|
[collection]="deliveryOptions"
|
|
4082
3988
|
[fields]="deliveryOptionFields"
|
|
4083
3989
|
[showCheckbox]="true"
|
|
@@ -4088,17 +3994,17 @@ CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
|
4088
3994
|
<div class="checkout-data-row">
|
|
4089
3995
|
<co-collapsible [headerTitle]="'ADD_REMARK' | localize" [iconData]="iconService.getIcon(icons.TriangleDown)">
|
|
4090
3996
|
<div class="checkout-data-row">
|
|
4091
|
-
<co-input-textarea [
|
|
3997
|
+
<co-input-textarea [placeholder]="'REMARKS' | localize"></co-input-textarea>
|
|
4092
3998
|
</div>
|
|
4093
3999
|
</co-collapsible>
|
|
4094
4000
|
</div>
|
|
4095
4001
|
<div class="checkout-data-row">
|
|
4096
4002
|
<co-collapsible [headerTitle]="'ADD_REFERENCE' | localize" [iconData]="iconService.getIcon(icons.TriangleDown)">
|
|
4097
4003
|
<div class="checkout-data-row">
|
|
4098
|
-
<co-input-text [
|
|
4004
|
+
<co-input-text [placeholder]="'REFERENCE' | localize"></co-input-text>
|
|
4099
4005
|
</div>
|
|
4100
4006
|
<div class="checkout-data-row">
|
|
4101
|
-
<co-input-text [
|
|
4007
|
+
<co-input-text [placeholder]="'REFERENCE_RELATION' | localize"></co-input-text>
|
|
4102
4008
|
</div>
|
|
4103
4009
|
</co-collapsible>
|
|
4104
4010
|
</div>
|
|
@@ -4139,7 +4045,6 @@ CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
|
4139
4045
|
<co-drop-down-list
|
|
4140
4046
|
[collection]="marketing"
|
|
4141
4047
|
[fields]="marketingFields"
|
|
4142
|
-
[(model)]="deliveryOptionsRequest.marketingCode"
|
|
4143
4048
|
[placeholder]="'MARKETING' | localize"></co-drop-down-list>
|
|
4144
4049
|
</div>
|
|
4145
4050
|
<div class="checkout-data-row">
|
|
@@ -4174,7 +4079,6 @@ CheckoutOverviewDeliveryEditComponent.ctorParameters = () => [
|
|
|
4174
4079
|
{ type: IconCacheService }
|
|
4175
4080
|
];
|
|
4176
4081
|
CheckoutOverviewDeliveryEditComponent.propDecorators = {
|
|
4177
|
-
deliveryOptionsRequest: [{ type: Input }],
|
|
4178
4082
|
transaction: [{ type: Input }],
|
|
4179
4083
|
validSubmit: [{ type: Output }],
|
|
4180
4084
|
invalidSubmit: [{ type: Output }],
|
|
@@ -6388,34 +6292,29 @@ SellerInformationModule.decorators = [
|
|
|
6388
6292
|
},] }
|
|
6389
6293
|
];
|
|
6390
6294
|
|
|
6391
|
-
class DeliveryType {
|
|
6392
|
-
}
|
|
6393
|
-
|
|
6394
6295
|
class DeliveryTypeTileComponent {
|
|
6395
6296
|
constructor() {
|
|
6396
|
-
this.
|
|
6297
|
+
this.method = new DeliveryMethod();
|
|
6397
6298
|
this.selected = false;
|
|
6398
6299
|
this.selectedChange = new EventEmitter();
|
|
6399
|
-
this.deliveryTypeIdx = 0;
|
|
6400
6300
|
}
|
|
6401
6301
|
showClass() {
|
|
6402
6302
|
return true;
|
|
6403
6303
|
}
|
|
6404
|
-
setIndexDeliveryType(index) {
|
|
6405
|
-
console.log(index);
|
|
6406
|
-
}
|
|
6407
6304
|
}
|
|
6408
6305
|
DeliveryTypeTileComponent.decorators = [
|
|
6409
6306
|
{ type: Component, args: [{
|
|
6410
6307
|
selector: "co-delivery-type-tile",
|
|
6411
6308
|
template: `
|
|
6412
|
-
<co-tile [selected]="selected" (selectedChange)="selectedChange.emit(
|
|
6309
|
+
<co-tile [selected]="selected" (selectedChange)="selectedChange.emit(method)">
|
|
6413
6310
|
<div class="delivery-type-content-wrapper">
|
|
6414
|
-
<div class="delivery-type-title" [textContent]="
|
|
6311
|
+
<div class="delivery-type-title" [textContent]="method.description"></div>
|
|
6415
6312
|
<div class="delivery-type-icon">
|
|
6416
|
-
|
|
6313
|
+
<!--
|
|
6314
|
+
<icon [icon]="method.icon"></icon>
|
|
6315
|
+
-->
|
|
6417
6316
|
</div>
|
|
6418
|
-
<div *ngIf="
|
|
6317
|
+
<div *ngIf="method.factor" class="delivery-type-price" [textContent]="method.factor | priceDisplay"></div>
|
|
6419
6318
|
</div>
|
|
6420
6319
|
</co-tile>
|
|
6421
6320
|
`,
|
|
@@ -6423,7 +6322,7 @@ DeliveryTypeTileComponent.decorators = [
|
|
|
6423
6322
|
},] }
|
|
6424
6323
|
];
|
|
6425
6324
|
DeliveryTypeTileComponent.propDecorators = {
|
|
6426
|
-
|
|
6325
|
+
method: [{ type: Input }],
|
|
6427
6326
|
selected: [{ type: Input }],
|
|
6428
6327
|
selectedChange: [{ type: Output }],
|
|
6429
6328
|
showClass: [{ type: HostBinding, args: ["class.co-delivery-type-tile",] }]
|
|
@@ -7218,6 +7117,7 @@ TransactionLinesGridComponent.decorators = [
|
|
|
7218
7117
|
selector: "co-transaction-lines-grid",
|
|
7219
7118
|
template: `
|
|
7220
7119
|
<co-simple-grid [data]="transactionLines" [extraColumns]="extraColumns" [dragDropEnabled]="true" [emitDragDrop]="true" (onDrop)="handleDrop($event)">
|
|
7120
|
+
<co-simple-grid-column [field]="'text'" [singleColumn]="true"></co-simple-grid-column>
|
|
7221
7121
|
<co-simple-grid-column [headerText]="'ARTICLE_NR' | localize" [field]="'articleNumber'" [order]="10"></co-simple-grid-column>
|
|
7222
7122
|
<co-simple-grid-column [headerText]="'GOOD_DESCRIPTION' | localize" [field]="'goodDescription'" [order]="20"></co-simple-grid-column>
|
|
7223
7123
|
<co-simple-grid-column [headerText]="'PRICE' | localize" [field]="'price'" [textAlign]="align.Right" [order]="30"></co-simple-grid-column>
|