@colijnit/transaction 12.1.29 → 12.1.30
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 +1042 -444
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +224 -214
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +225 -215
- package/esm2015/lib/assets/dictionary/text.properties.js +7 -1
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +6 -4
- package/esm2015/lib/component/checkout/checkout.component.js +14 -23
- package/esm2015/lib/component/core/base/components/characteristic-answer/characteristic-answer.component.js +83 -0
- package/esm2015/lib/component/core/base/components/characteristic-answer/characteristic-answer.module.js +26 -0
- package/esm2015/lib/component/core/base/components/warehouse/warehouse.component.js +64 -0
- package/esm2015/lib/component/core/base/components/warehouse/warehouse.module.js +26 -0
- package/esm2015/lib/component/core/base/dialog-transaction-line-base.component.js +25 -0
- package/esm2015/lib/component/core/base/transaction-line-base.component.js +77 -0
- package/esm2015/lib/component/core/core.module.js +9 -3
- package/esm2015/lib/component/dialog/dialog-header-search/dialog-header-search.component.js +37 -0
- package/esm2015/lib/component/dialog/dialog-header-search/dialog-header-search.module.js +23 -0
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/dialog-transaction-line-commission-code.component.js +13 -10
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/dialog-transaction-line-commission-code.module.js +6 -3
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/dialog-transaction-line-delivery-method.component.js +34 -0
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/dialog-transaction-line-delivery-method.module.js +28 -0
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.js +35 -0
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.module.js +28 -0
- package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component.js +8 -1
- package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.module.js +6 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.js +8 -6
- package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.module.js +3 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.component.js +39 -12
- package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.module.js +4 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-marketing.component.js +25 -11
- package/esm2015/lib/component/transaction-header-fields/transaction-header-marketing.module.js +4 -3
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +59 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +21 -26
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +37 -4
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.module.js +4 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-description.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-amount.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-line-discount.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price-list.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantity.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-reference.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-special-discount.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +37 -16
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.module.js +4 -3
- package/esm2015/lib/pipe/append.pipe.js +3 -3
- package/esm2015/lib/service/dialog.service.js +26 -3
- package/esm2015/lib/service/pending-reason.service.js +51 -21
- package/esm2015/lib/service/transaction-connector.service.js +2 -2
- package/esm2015/lib/service/transaction.service.js +11 -6
- package/fesm2015/colijnit-transaction.js +867 -274
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout.component.d.ts +2 -1
- package/lib/component/core/base/components/characteristic-answer/characteristic-answer.component.d.ts +21 -0
- package/lib/component/core/base/components/characteristic-answer/characteristic-answer.module.d.ts +2 -0
- package/lib/component/core/base/components/characteristic-answer/style/_layout.scss +15 -0
- package/lib/component/core/base/components/characteristic-answer/style/_material-definition.scss +0 -0
- package/lib/component/core/base/components/characteristic-answer/style/_theme.scss +7 -0
- package/lib/component/core/base/components/characteristic-answer/style/material.scss +4 -0
- package/lib/component/core/base/components/default-ok-cancel-buttons/style/_layout.scss +0 -2
- package/lib/component/core/base/components/default-ok-cancel-buttons/style/_theme.scss +0 -2
- package/lib/component/core/base/components/default-ok-cancel-buttons/style/material.scss +1 -0
- package/lib/component/core/base/components/transaction-header-block/style/_layout.scss +0 -2
- package/lib/component/core/base/components/transaction-header-block/style/_theme.scss +0 -2
- package/lib/component/core/base/components/warehouse/style/_layout.scss +15 -0
- package/lib/component/core/base/components/warehouse/style/_material-definition.scss +0 -0
- package/lib/component/core/base/components/warehouse/style/_theme.scss +7 -0
- package/lib/component/core/base/components/warehouse/style/material.scss +4 -0
- package/lib/component/core/base/components/warehouse/warehouse.component.d.ts +20 -0
- package/lib/component/core/base/components/warehouse/warehouse.module.d.ts +2 -0
- package/lib/component/core/base/dialog-transaction-line-base.component.d.ts +10 -0
- package/lib/component/core/base/transaction-line-base.component.d.ts +34 -0
- package/lib/component/dialog/dialog-header-search/dialog-header-search.component.d.ts +10 -0
- package/lib/component/dialog/dialog-header-search/dialog-header-search.module.d.ts +2 -0
- package/lib/component/dialog/dialog-header-search/style/_layout.scss +7 -0
- package/lib/component/dialog/dialog-header-search/style/_material-definition.scss +1 -0
- package/lib/component/dialog/dialog-header-search/style/_theme.scss +4 -0
- package/lib/component/dialog/dialog-header-search/style/material.scss +4 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-branch/style/_layout.scss +4 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-branch/style/_material-definition.scss +0 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-branch/style/_theme.scss +4 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-branch/style/material.scss +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/dialog-transaction-line-commission-code.component.d.ts +1 -3
- package/lib/component/dialog/transaction-line/dialog-transaction-line-commission-code/style/_layout.scss +13 -9
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/dialog-transaction-line-delivery-method.component.d.ts +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/dialog-transaction-line-delivery-method.module.d.ts +2 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/style/_layout.scss +19 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/style/_material-definition.scss +0 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/style/_theme.scss +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-delivery-method/style/material.scss +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.d.ts +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.module.d.ts +2 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/style/_layout.scss +19 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/style/_material-definition.scss +0 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/style/_theme.scss +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/style/material.scss +5 -0
- package/lib/component/relation/relation-general/style/_layout.scss +1 -1
- package/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component.d.ts +1 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_material-definition.scss +1 -1
- package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +1 -1
- package/lib/component/transaction-header-fields/transaction-header-branch.component.d.ts +11 -0
- package/lib/component/transaction-header-fields/transaction-header-marketing.component.d.ts +11 -1
- package/lib/component/transaction-line/style/_layout.scss +15 -0
- package/lib/component/transaction-line/style/_material-definition.scss +1 -1
- package/lib/component/transaction-line/style/_theme.scss +3 -0
- package/lib/component/transaction-line/style/material.scss +2 -0
- package/lib/component/transaction-line/transaction-line.component.d.ts +6 -0
- package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +3 -9
- package/lib/component/transaction-line-fields/transaction-line-delivery-date.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-delivery-method.component.d.ts +8 -3
- package/lib/component/transaction-line-fields/transaction-line-description.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-discount-amount.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-line-discount.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-price-list.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-price.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-quantity.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-reference.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-special-discount.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-supplier.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-vat.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-warehouse.component.d.ts +10 -5
- package/lib/component/transaction-tile/style/_layout.scss +1 -1
- package/lib/pipe/append.pipe.d.ts +1 -1
- package/lib/service/dialog.service.d.ts +4 -0
- package/lib/service/pending-reason.service.d.ts +4 -1
- package/lib/style/_variables.scss +3 -0
- package/lib/style/transaction-globals.scss +10 -0
- package/package.json +1 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-base.component.js +0 -30
- package/esm2015/lib/component/transaction-line-fields/transaction-line-fields-base.component.js +0 -45
- package/lib/component/core/characteristic-answer/characteristic-answer.component.scss +0 -19
- package/lib/component/dialog/transaction-line/dialog-transaction-line-base.component.d.ts +0 -9
- package/lib/component/transaction-line-fields/transaction-line-fields-base.component.d.ts +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Component, ViewEncapsulation, Input, HostBinding, ComponentFactoryResolver, ApplicationRef, Injector,
|
|
3
|
+
import { Injectable, Component, ViewEncapsulation, Input, HostBinding, EventEmitter, ChangeDetectorRef, Output, Directive, ComponentFactoryResolver, ApplicationRef, Injector, ViewChild, Pipe, NgModule, ElementRef, ContentChildren, HostListener } from '@angular/core';
|
|
4
4
|
import { PendingReasonType } from '@colijnit/transactionapi/build/enum/pending-reason-type.enum';
|
|
5
5
|
import { SequenceName } from '@colijnit/transactionapi/build/enum/sequence-name.enum';
|
|
6
6
|
import { TransactionKind } from '@colijnit/transactionapi/build/enum/transaction-kind.enum';
|
|
@@ -50,6 +50,7 @@ import { PurchasePortalLine } from '@colijnit/transactionapi/build/model/purchas
|
|
|
50
50
|
import { CreatePaymentLinkResult } from '@colijnit/transactionapi/build/model/create-payment-link-result.bo';
|
|
51
51
|
import { PaymentLinkStatus } from '@colijnit/transactionapi/build/model/payment-link-status.bo';
|
|
52
52
|
import { RelationStatus } from '@colijnit/transactionapi/build/enum/relation-status.enum';
|
|
53
|
+
import { TransactionInfo } from '@colijnit/transactionapi/build/model/transaction-info.bo';
|
|
53
54
|
import { ResolveLinePendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
|
|
54
55
|
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
55
56
|
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
@@ -57,7 +58,7 @@ import { ArticleLight } from '@colijnit/articleapi/build/model/article-light.bo'
|
|
|
57
58
|
import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
|
|
58
59
|
import { MainArticle } from '@colijnit/articleapi/build/model/main-article.bo';
|
|
59
60
|
import { ResolveHeaderPendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo';
|
|
60
|
-
import { FormMasterService, CoDialogModule, ButtonModule,
|
|
61
|
+
import { FormMasterService, CoDialogModule, ButtonModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputListboxModule, DropDownModule, ClickoutsideModule, InputTextComponent, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, Carousel3dModule, InputDatePickerComponent, InputTextareaComponent, InputTextareaModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, CollapsibleModule, ColumnAlign, SimpleGridColumnDirective, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, InputSearchModule, CoOrientation, CoDirection, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
|
|
61
62
|
import { FlexModule } from '@angular/flex-layout';
|
|
62
63
|
import { AddressType } from '@colijnit/transactionapi/build/enum/address-type.enum';
|
|
63
64
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
@@ -69,7 +70,6 @@ import { Address } from '@colijnit/transactionapi/build/model/address.bo';
|
|
|
69
70
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
70
71
|
import { TransactionAddTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo';
|
|
71
72
|
import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
|
|
72
|
-
import { TransactionInfo } from '@colijnit/transactionapi/build/model/transaction-info.bo';
|
|
73
73
|
import { RelationRequest } from '@colijnit/transactionapi/build/model/relation-request';
|
|
74
74
|
import { Sharedapi } from '@colijnit/sharedapi/build/sharedapi';
|
|
75
75
|
import { CoDocument } from '@colijnit/sharedapi/build/model/co-document.bo';
|
|
@@ -326,6 +326,7 @@ class Dictionary {
|
|
|
326
326
|
"MAIN_ARTICLE": "Hoofd artikel",
|
|
327
327
|
"MALE": "Man",
|
|
328
328
|
"MARKETING": "Marketing",
|
|
329
|
+
"MARKETING_CODE": "Marketingcode",
|
|
329
330
|
"MENU": "Menu",
|
|
330
331
|
"MODIFICATION_TIME": "Bewerkingstijd",
|
|
331
332
|
"MORE_FILTERS": "Meer filters",
|
|
@@ -360,6 +361,7 @@ class Dictionary {
|
|
|
360
361
|
"ORDER_LINES": "Orderregels",
|
|
361
362
|
"ORDER_NET": "Ordertotaal netto",
|
|
362
363
|
"ORDER_NUMBER": "Ordernummer",
|
|
364
|
+
"ORDER_PARAMETERS": "Orderparameters",
|
|
363
365
|
"ORDER_RULE": "Orderregel",
|
|
364
366
|
"ORDER_RULESET": "Orderregelset",
|
|
365
367
|
"ORDER_TOTAL": "Ordertotaal",
|
|
@@ -430,6 +432,7 @@ class Dictionary {
|
|
|
430
432
|
"SEARCH_NUMBER_CUSTOMER_OR_DATE": "Zoeken op nummer, klant of datum",
|
|
431
433
|
"SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
|
|
432
434
|
"SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
|
|
435
|
+
"SEARCH_WAREHOUSE": "Zoek magazijn",
|
|
433
436
|
"SELECT": "Selecteren",
|
|
434
437
|
"SELECT_A": "Selecteer een",
|
|
435
438
|
"SELECT_CASH_REGISTER": "Selecteer kassa",
|
|
@@ -643,6 +646,7 @@ class Dictionary {
|
|
|
643
646
|
"MAIN_ARTICLE": "Main article",
|
|
644
647
|
"MALE": "Male",
|
|
645
648
|
"MARKETING": "Marketing",
|
|
649
|
+
"MARKETING_CODE": "Marketingcode",
|
|
646
650
|
"MENU": "Menu",
|
|
647
651
|
"MODIFICATION_TIME": "Modification time",
|
|
648
652
|
"MORE_FILTERS": "More filters",
|
|
@@ -677,6 +681,7 @@ class Dictionary {
|
|
|
677
681
|
"ORDER_LINES": "Orderlines",
|
|
678
682
|
"ORDER_NET": "Total net amount",
|
|
679
683
|
"ORDER_NUMBER": "Order number",
|
|
684
|
+
"ORDER_PARAMETERS": "Order parameters",
|
|
680
685
|
"ORDER_RULE": "Order rule",
|
|
681
686
|
"ORDER_RULESET": "Orderruleset",
|
|
682
687
|
"ORDER_TOTAAL": "Order total",
|
|
@@ -738,6 +743,7 @@ class Dictionary {
|
|
|
738
743
|
"SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
|
|
739
744
|
"SEARCH_ADD_ARTICLE": "Search and add article",
|
|
740
745
|
"SEARCH_IN_COLLECTION": "Search in collection...",
|
|
746
|
+
"SEARCH_WAREHOUSE": "Search warehouse",
|
|
741
747
|
"SELECT": "Select",
|
|
742
748
|
"SELECT_A": "Select a",
|
|
743
749
|
"SELECT_CASH_REGISTER": "Select cash register",
|
|
@@ -1845,7 +1851,7 @@ class TransactionConnectorService {
|
|
|
1845
1851
|
resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
|
|
1846
1852
|
}
|
|
1847
1853
|
else {
|
|
1848
|
-
reject(result.
|
|
1854
|
+
reject(result.validationResult.messages && result.validationResult.messages.length > 0 ? result.validationResult.messages[0] : '');
|
|
1849
1855
|
}
|
|
1850
1856
|
});
|
|
1851
1857
|
});
|
|
@@ -3110,6 +3116,246 @@ ConfirmationDialogComponent.propDecorators = {
|
|
|
3110
3116
|
showClass: [{ type: HostBinding, args: ["class.co-confirmation-dialog",] }]
|
|
3111
3117
|
};
|
|
3112
3118
|
|
|
3119
|
+
class CharacteristicAnswerComponent extends DialogBaseComponent {
|
|
3120
|
+
constructor(_changeDetector) {
|
|
3121
|
+
super();
|
|
3122
|
+
this._changeDetector = _changeDetector;
|
|
3123
|
+
this.title = "";
|
|
3124
|
+
this.value = "";
|
|
3125
|
+
this.okClick = new EventEmitter();
|
|
3126
|
+
this.viewModels = [];
|
|
3127
|
+
this._choices = [];
|
|
3128
|
+
}
|
|
3129
|
+
set choices(value) {
|
|
3130
|
+
this._choices = value;
|
|
3131
|
+
this._prepareViewModels();
|
|
3132
|
+
}
|
|
3133
|
+
get choices() {
|
|
3134
|
+
return this._choices;
|
|
3135
|
+
}
|
|
3136
|
+
showClass() {
|
|
3137
|
+
return true;
|
|
3138
|
+
}
|
|
3139
|
+
handleChecked(event, choice) {
|
|
3140
|
+
event.preventDefault();
|
|
3141
|
+
event.stopImmediatePropagation();
|
|
3142
|
+
this.value = choice;
|
|
3143
|
+
this.viewModels.forEach(v => {
|
|
3144
|
+
v.checked = v.value === choice;
|
|
3145
|
+
});
|
|
3146
|
+
this._changeDetector.markForCheck();
|
|
3147
|
+
}
|
|
3148
|
+
handleOkClick() {
|
|
3149
|
+
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
3150
|
+
}
|
|
3151
|
+
_prepareViewModels() {
|
|
3152
|
+
if (this._choices && this._choices.length > 0) {
|
|
3153
|
+
for (let i = 0; i < this._choices.length; i++) {
|
|
3154
|
+
this.viewModels.push({ value: this._choices[i].value, checked: i === 0 });
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
CharacteristicAnswerComponent.decorators = [
|
|
3160
|
+
{ type: Component, args: [{
|
|
3161
|
+
selector: "co-characteristic-answer",
|
|
3162
|
+
template: `
|
|
3163
|
+
<co-dialog [showCloseIcon]="false" [modal]="true" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
|
|
3164
|
+
<ng-container *ngIf="choices && choices.length > 0">
|
|
3165
|
+
<div class="co-transaction-default-flex-row" *ngFor="let choice of viewModels">
|
|
3166
|
+
<co-input-checkbox [model]="choice.checked" [label]="choice.value" (click)="handleChecked($event, choice.value)"></co-input-checkbox>
|
|
3167
|
+
</div>
|
|
3168
|
+
</ng-container>
|
|
3169
|
+
<ng-container *ngIf="!choices || choices.length === 0">
|
|
3170
|
+
<co-input-text
|
|
3171
|
+
[(model)]="value"
|
|
3172
|
+
(enter)="handleOkClick()"
|
|
3173
|
+
></co-input-text>
|
|
3174
|
+
</ng-container>
|
|
3175
|
+
</co-dialog>
|
|
3176
|
+
<ng-template #headerTemplate>
|
|
3177
|
+
<div class="title" [textContent]="title"></div>
|
|
3178
|
+
</ng-template>
|
|
3179
|
+
<ng-template #footerTemplate>
|
|
3180
|
+
<div class="dialog-footer-button-wrapper">
|
|
3181
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
3182
|
+
</div>
|
|
3183
|
+
</ng-template>
|
|
3184
|
+
`,
|
|
3185
|
+
encapsulation: ViewEncapsulation.None
|
|
3186
|
+
},] }
|
|
3187
|
+
];
|
|
3188
|
+
CharacteristicAnswerComponent.ctorParameters = () => [
|
|
3189
|
+
{ type: ChangeDetectorRef }
|
|
3190
|
+
];
|
|
3191
|
+
CharacteristicAnswerComponent.propDecorators = {
|
|
3192
|
+
title: [{ type: Input }],
|
|
3193
|
+
choices: [{ type: Input }],
|
|
3194
|
+
value: [{ type: Input }],
|
|
3195
|
+
okClick: [{ type: Output }],
|
|
3196
|
+
showClass: [{ type: HostBinding, args: ['class.co-characteristic-answer',] }]
|
|
3197
|
+
};
|
|
3198
|
+
|
|
3199
|
+
class TransactionLineBaseComponent {
|
|
3200
|
+
constructor() {
|
|
3201
|
+
/**
|
|
3202
|
+
* Defaults to true
|
|
3203
|
+
*/
|
|
3204
|
+
this.useTransactionLine = true;
|
|
3205
|
+
this.valueChange = new EventEmitter();
|
|
3206
|
+
this.readonly = false;
|
|
3207
|
+
this.viewModels = [];
|
|
3208
|
+
this.viewModelsFiltered = [];
|
|
3209
|
+
this._transactionLine = new TransactionLineInfo();
|
|
3210
|
+
this._transactionInfo = new TransactionInfo();
|
|
3211
|
+
}
|
|
3212
|
+
set searchText(value) {
|
|
3213
|
+
this._searchText = value;
|
|
3214
|
+
this._doSearch();
|
|
3215
|
+
}
|
|
3216
|
+
get searchText() {
|
|
3217
|
+
return this._searchText;
|
|
3218
|
+
}
|
|
3219
|
+
set transactionLine(value) {
|
|
3220
|
+
if (value) {
|
|
3221
|
+
this._transactionLine = value;
|
|
3222
|
+
this.readonly = this._transactionLine.hasInvoices;
|
|
3223
|
+
this.transactionLineSet();
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
get transactionLine() {
|
|
3227
|
+
return this._transactionLine;
|
|
3228
|
+
}
|
|
3229
|
+
set transactionInfo(value) {
|
|
3230
|
+
if (value) {
|
|
3231
|
+
this._transactionInfo = value;
|
|
3232
|
+
this.transactionInfoSet();
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
get transactionInfo() {
|
|
3236
|
+
return this._transactionInfo;
|
|
3237
|
+
}
|
|
3238
|
+
ngOnInit() {
|
|
3239
|
+
this.viewModelsFiltered = this.viewModels.slice();
|
|
3240
|
+
}
|
|
3241
|
+
// overridden by descendents
|
|
3242
|
+
transactionLineSet() {
|
|
3243
|
+
}
|
|
3244
|
+
// overridden by descendents
|
|
3245
|
+
transactionInfoSet() {
|
|
3246
|
+
}
|
|
3247
|
+
_doSearch() {
|
|
3248
|
+
if (!this.searchText) {
|
|
3249
|
+
this.viewModelsFiltered = this.viewModels.slice();
|
|
3250
|
+
}
|
|
3251
|
+
else {
|
|
3252
|
+
this.viewModelsFiltered = this.viewModels.filter(v => {
|
|
3253
|
+
const textFound = v.text ? v.text.indexOf(this.searchText) > -1 : false;
|
|
3254
|
+
// const codeFound: boolean = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 :
|
|
3255
|
+
// (typeof v.value === 'number' ? v.value + "".indexOf(this.searchText) > -1 : false);
|
|
3256
|
+
const codeFound = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 : false;
|
|
3257
|
+
return codeFound || textFound;
|
|
3258
|
+
});
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
TransactionLineBaseComponent.decorators = [
|
|
3263
|
+
{ type: Directive }
|
|
3264
|
+
];
|
|
3265
|
+
TransactionLineBaseComponent.propDecorators = {
|
|
3266
|
+
useTransactionLine: [{ type: Input }],
|
|
3267
|
+
searchText: [{ type: Input }],
|
|
3268
|
+
transactionLine: [{ type: Input }],
|
|
3269
|
+
transactionInfo: [{ type: Input }],
|
|
3270
|
+
valueChange: [{ type: Output }]
|
|
3271
|
+
};
|
|
3272
|
+
|
|
3273
|
+
class DialogTransactionLineBaseComponent extends TransactionLineBaseComponent {
|
|
3274
|
+
constructor() {
|
|
3275
|
+
super(...arguments);
|
|
3276
|
+
this.buttonType = AppPopupButtonType;
|
|
3277
|
+
}
|
|
3278
|
+
onClose(eventType, output) {
|
|
3279
|
+
return;
|
|
3280
|
+
}
|
|
3281
|
+
handleValueChange(value) {
|
|
3282
|
+
this.value = value;
|
|
3283
|
+
}
|
|
3284
|
+
handleOkClick() {
|
|
3285
|
+
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
3286
|
+
}
|
|
3287
|
+
handleSearch(text) {
|
|
3288
|
+
this.searchText = text;
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
DialogTransactionLineBaseComponent.decorators = [
|
|
3292
|
+
{ type: Directive }
|
|
3293
|
+
];
|
|
3294
|
+
|
|
3295
|
+
class DialogTransactionLineWarehouseComponent extends DialogTransactionLineBaseComponent {
|
|
3296
|
+
showClass() {
|
|
3297
|
+
return true;
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
DialogTransactionLineWarehouseComponent.decorators = [
|
|
3301
|
+
{ type: Component, args: [{
|
|
3302
|
+
selector: "co-dialog-transaction-line-warehouse",
|
|
3303
|
+
template: `
|
|
3304
|
+
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
|
|
3305
|
+
<co-transaction-line-warehouse
|
|
3306
|
+
[useTransactionLine]="useTransactionLine"
|
|
3307
|
+
[transactionLine]="transactionLine"
|
|
3308
|
+
[searchText]="searchText"
|
|
3309
|
+
(valueChange)="handleValueChange($event)"
|
|
3310
|
+
></co-transaction-line-warehouse>
|
|
3311
|
+
</co-dialog>
|
|
3312
|
+
<ng-template #dialogHeader>
|
|
3313
|
+
<co-dialog-header-search [title]="'WAREHOUSE'" (search)="handleSearch($event)"></co-dialog-header-search>
|
|
3314
|
+
</ng-template>
|
|
3315
|
+
<ng-template #footerTemplate>
|
|
3316
|
+
<div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
|
|
3317
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
3318
|
+
</div>
|
|
3319
|
+
</ng-template>
|
|
3320
|
+
`,
|
|
3321
|
+
encapsulation: ViewEncapsulation.None
|
|
3322
|
+
},] }
|
|
3323
|
+
];
|
|
3324
|
+
DialogTransactionLineWarehouseComponent.propDecorators = {
|
|
3325
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-warehouse",] }]
|
|
3326
|
+
};
|
|
3327
|
+
|
|
3328
|
+
class DialogTransactionLineCommissionCodeComponent extends DialogTransactionLineBaseComponent {
|
|
3329
|
+
showClass() {
|
|
3330
|
+
return true;
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
DialogTransactionLineCommissionCodeComponent.decorators = [
|
|
3334
|
+
{ type: Component, args: [{
|
|
3335
|
+
selector: "co-dialog-transaction-line-commission-code",
|
|
3336
|
+
template: `
|
|
3337
|
+
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
|
|
3338
|
+
<co-transaction-line-commission-code
|
|
3339
|
+
[useTransactionLine]="useTransactionLine"
|
|
3340
|
+
[transactionLine]="transactionLine"
|
|
3341
|
+
(valueChange)="handleValueChange($event)"></co-transaction-line-commission-code>
|
|
3342
|
+
</co-dialog>
|
|
3343
|
+
<ng-template #dialogHeader>
|
|
3344
|
+
<div class="dialog-header-title" [textContent]="'COMMISSION_CODE' | localize"></div>
|
|
3345
|
+
</ng-template>
|
|
3346
|
+
<ng-template #footerTemplate>
|
|
3347
|
+
<div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
|
|
3348
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
3349
|
+
</div>
|
|
3350
|
+
</ng-template>
|
|
3351
|
+
`,
|
|
3352
|
+
encapsulation: ViewEncapsulation.None
|
|
3353
|
+
},] }
|
|
3354
|
+
];
|
|
3355
|
+
DialogTransactionLineCommissionCodeComponent.propDecorators = {
|
|
3356
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-commission-code",] }]
|
|
3357
|
+
};
|
|
3358
|
+
|
|
3113
3359
|
class DialogService {
|
|
3114
3360
|
constructor(_compFactoryResolver, appRef, injector) {
|
|
3115
3361
|
this._compFactoryResolver = _compFactoryResolver;
|
|
@@ -3149,6 +3395,26 @@ class DialogService {
|
|
|
3149
3395
|
};
|
|
3150
3396
|
return this._createComponent(comp, data);
|
|
3151
3397
|
}
|
|
3398
|
+
showCharacteristics(title, choices, value) {
|
|
3399
|
+
const data = {
|
|
3400
|
+
title: title,
|
|
3401
|
+
choices: choices,
|
|
3402
|
+
value: value
|
|
3403
|
+
};
|
|
3404
|
+
return this._createComponent(CharacteristicAnswerComponent, data);
|
|
3405
|
+
}
|
|
3406
|
+
showWarehouse() {
|
|
3407
|
+
const data = {
|
|
3408
|
+
useTransactionLine: false
|
|
3409
|
+
};
|
|
3410
|
+
return this._createComponent(DialogTransactionLineWarehouseComponent, data);
|
|
3411
|
+
}
|
|
3412
|
+
showCommissionCode() {
|
|
3413
|
+
const data = {
|
|
3414
|
+
useTransactionLine: false
|
|
3415
|
+
};
|
|
3416
|
+
return this._createComponent(DialogTransactionLineCommissionCodeComponent, data);
|
|
3417
|
+
}
|
|
3152
3418
|
_createComponent(componentClass, data) {
|
|
3153
3419
|
return new Promise((resolve) => {
|
|
3154
3420
|
this._componentRef = this._compFactoryResolver
|
|
@@ -3166,10 +3432,10 @@ class DialogService {
|
|
|
3166
3432
|
this._componentRef.onDestroy(() => {
|
|
3167
3433
|
this.appRef.detachView(this._componentRef.hostView);
|
|
3168
3434
|
});
|
|
3169
|
-
this._componentRef.instance.onClose = (output) => {
|
|
3435
|
+
this._componentRef.instance.onClose = (button, output) => {
|
|
3170
3436
|
this.appRef.detachView(this._componentRef.hostView);
|
|
3171
3437
|
this._componentRef = undefined;
|
|
3172
|
-
resolve(output);
|
|
3438
|
+
resolve(output ? output : button);
|
|
3173
3439
|
};
|
|
3174
3440
|
});
|
|
3175
3441
|
}
|
|
@@ -3343,10 +3609,21 @@ class PendingReasonService {
|
|
|
3343
3609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3344
3610
|
this.currentTransaction = value;
|
|
3345
3611
|
this._setAmount();
|
|
3346
|
-
this._initializeTransaction();
|
|
3347
3612
|
this.transactionUpdated.next(this.currentTransaction);
|
|
3348
3613
|
});
|
|
3349
3614
|
}
|
|
3615
|
+
initializeTransaction() {
|
|
3616
|
+
if (!this.relation) {
|
|
3617
|
+
this.relation = new CustomerFullObject();
|
|
3618
|
+
}
|
|
3619
|
+
if (!this.relation.relationId) {
|
|
3620
|
+
this.relation.relationStatus = RelationStatus.RegularCustomer;
|
|
3621
|
+
this.relation.startDate = new Date();
|
|
3622
|
+
}
|
|
3623
|
+
if (this.currentTransaction.transactionInfo.preferredDeliveryDate2 === undefined) {
|
|
3624
|
+
this.currentTransaction.transactionInfo.preferredDeliveryDate2 = "=";
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3350
3627
|
handleLineOperationStatuses(response) {
|
|
3351
3628
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3352
3629
|
if (!response.lineOperationStatuses || response.lineOperationStatuses.length === 0) {
|
|
@@ -3376,15 +3653,22 @@ class PendingReasonService {
|
|
|
3376
3653
|
case PendingReasonType.CONFIRMATION_NEEDED:
|
|
3377
3654
|
yield this._confirmAction(transactionLine.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType);
|
|
3378
3655
|
return false;
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3656
|
+
case PendingReasonType.INVALID_LOGISTICS:
|
|
3657
|
+
switch (operationStatus.pendingReason) {
|
|
3658
|
+
case "LINE_NEEDS_COMMISSION_CODE":
|
|
3659
|
+
this._showCommissionCodeDialog(operationStatus.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType);
|
|
3660
|
+
break;
|
|
3661
|
+
default:
|
|
3662
|
+
this._showWarehouseDialog(operationStatus.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType);
|
|
3663
|
+
break;
|
|
3664
|
+
}
|
|
3665
|
+
break;
|
|
3666
|
+
case PendingReasonType.NON_CRITICAL_DISCONTINUATION:
|
|
3667
|
+
this._showReasonDialog(operationStatus.pendingReason);
|
|
3668
|
+
break;
|
|
3669
|
+
case PendingReasonType.CHARACTERISTICS_ANSWER_NEEDED:
|
|
3670
|
+
this._showCharacteristicDialog(operationStatus.uuid, operationStatus.characteristic, operationStatus.pendingReason, operationStatus.pendingReasonType);
|
|
3671
|
+
break;
|
|
3388
3672
|
case PendingReasonType.NONE:
|
|
3389
3673
|
default:
|
|
3390
3674
|
return true;
|
|
@@ -3429,6 +3713,28 @@ class PendingReasonService {
|
|
|
3429
3713
|
// this._handleLineOperationStatus()
|
|
3430
3714
|
});
|
|
3431
3715
|
}
|
|
3716
|
+
_showCharacteristicDialog(uuid, characteristics, reason, type) {
|
|
3717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3718
|
+
const reasonRequest = new ResolveLinePendingReasonRequest(uuid, reason, type);
|
|
3719
|
+
reasonRequest.textualUserInput =
|
|
3720
|
+
yield this.dialogService.showCharacteristics(characteristics.question, characteristics.transactionLineCharacteristicChoices, characteristics.value);
|
|
3721
|
+
yield this.resolvePendingLineReason(reasonRequest);
|
|
3722
|
+
});
|
|
3723
|
+
}
|
|
3724
|
+
_showWarehouseDialog(uuid, reason, type) {
|
|
3725
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3726
|
+
const reasonRequest = new ResolveLinePendingReasonRequest(uuid, reason, type);
|
|
3727
|
+
reasonRequest.warehouseNr = yield this.dialogService.showWarehouse();
|
|
3728
|
+
yield this.resolvePendingLineReason(reasonRequest);
|
|
3729
|
+
});
|
|
3730
|
+
}
|
|
3731
|
+
_showCommissionCodeDialog(uuid, reason, type) {
|
|
3732
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3733
|
+
const reasonRequest = new ResolveLinePendingReasonRequest(uuid, reason, type);
|
|
3734
|
+
reasonRequest.commissionCode = yield this.dialogService.showCommissionCode();
|
|
3735
|
+
yield this.resolvePendingLineReason(reasonRequest);
|
|
3736
|
+
});
|
|
3737
|
+
}
|
|
3432
3738
|
_confirmHeaderAction(uuid, reason, type) {
|
|
3433
3739
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3434
3740
|
const reasonRequest = new ResolveHeaderPendingReasonRequest(uuid, reason, type);
|
|
@@ -3447,16 +3753,6 @@ class PendingReasonService {
|
|
|
3447
3753
|
this.articleAmount = this.currentTransaction.transactionLines.filter(t => t.lineType === TransactionLineType.ArticleLine).length;
|
|
3448
3754
|
}
|
|
3449
3755
|
}
|
|
3450
|
-
_initializeTransaction() {
|
|
3451
|
-
if (!this.relation) {
|
|
3452
|
-
this.relation = new CustomerFullObject();
|
|
3453
|
-
this.relation.relationStatus = RelationStatus.RegularCustomer;
|
|
3454
|
-
this.relation.startDate = new Date();
|
|
3455
|
-
}
|
|
3456
|
-
if (this.currentTransaction.transactionInfo.preferredDeliveryDate2 === undefined) {
|
|
3457
|
-
this.currentTransaction.transactionInfo.preferredDeliveryDate2 = "=";
|
|
3458
|
-
}
|
|
3459
|
-
}
|
|
3460
3756
|
_cancelArticle(uuid) {
|
|
3461
3757
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3462
3758
|
yield this.cancelAddTransactionLine(uuid, false)
|
|
@@ -3887,6 +4183,7 @@ class TransactionService extends PendingReasonService {
|
|
|
3887
4183
|
saveRelation() {
|
|
3888
4184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3889
4185
|
// this._cleanRelationBeforeSave();
|
|
4186
|
+
this.initializeTransaction();
|
|
3890
4187
|
if (!this.relation.relationId) {
|
|
3891
4188
|
this.relation = yield this.connector.insertCustomer(this.relation);
|
|
3892
4189
|
}
|
|
@@ -3962,8 +4259,12 @@ class TransactionService extends PendingReasonService {
|
|
|
3962
4259
|
}
|
|
3963
4260
|
saveTransaction(close = false) {
|
|
3964
4261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3965
|
-
const response = yield this.connector.saveTransaction(this.currentTransaction.transactionInfo.uuid)
|
|
3966
|
-
|
|
4262
|
+
const response = yield this.connector.saveTransaction(this.currentTransaction.transactionInfo.uuid)
|
|
4263
|
+
.catch((error) => {
|
|
4264
|
+
this.dialogService.showError(error);
|
|
4265
|
+
return null;
|
|
4266
|
+
});
|
|
4267
|
+
if (response && response.isSuccess) {
|
|
3967
4268
|
this.rememberCurrentTransaction(response);
|
|
3968
4269
|
}
|
|
3969
4270
|
return response;
|
|
@@ -3982,9 +4283,9 @@ class TransactionService extends PendingReasonService {
|
|
|
3982
4283
|
reject(false);
|
|
3983
4284
|
}
|
|
3984
4285
|
}))
|
|
3985
|
-
.catch((
|
|
3986
|
-
if (
|
|
3987
|
-
this.dialogService.showError(
|
|
4286
|
+
.catch((error) => {
|
|
4287
|
+
if (error) {
|
|
4288
|
+
this.dialogService.showError(error);
|
|
3988
4289
|
}
|
|
3989
4290
|
reject(false);
|
|
3990
4291
|
});
|
|
@@ -4326,7 +4627,7 @@ class CheckoutComponent {
|
|
|
4326
4627
|
if (this.checkoutRelation && this.stepRelation) {
|
|
4327
4628
|
const valid = this.checkoutRelation.submit();
|
|
4328
4629
|
if (valid) {
|
|
4329
|
-
this.stepRelation.completed =
|
|
4630
|
+
this.stepRelation.completed = yield this.saveRelation();
|
|
4330
4631
|
}
|
|
4331
4632
|
}
|
|
4332
4633
|
});
|
|
@@ -4336,23 +4637,10 @@ class CheckoutComponent {
|
|
|
4336
4637
|
if (this.checkoutDelivery && this.stepDelivery) {
|
|
4337
4638
|
const valid = this.checkoutDelivery.submit();
|
|
4338
4639
|
if (valid) {
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
}
|
|
4344
|
-
handleOverviewValidation() {
|
|
4345
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4346
|
-
if ( /*this.checkoutDelivery && */this.stepOverview) {
|
|
4347
|
-
const response = yield this.service.saveTransaction();
|
|
4348
|
-
if (response && response.isSuccess) {
|
|
4349
|
-
// const commitResponse: DataServiceResponseData = await this.service.commit();
|
|
4350
|
-
// if (commitResponse && commitResponse.validationResult && commitResponse.validationResult.success) {
|
|
4351
|
-
this.stepOverview.completed = true;
|
|
4352
|
-
// }
|
|
4353
|
-
}
|
|
4354
|
-
else {
|
|
4355
|
-
yield this._dialogService.showError("Opslag bezorging mislukt");
|
|
4640
|
+
const response = yield this.service.saveTransaction();
|
|
4641
|
+
if (response && response.isSuccess) {
|
|
4642
|
+
this.stepDelivery.completed = yield this.handleSaveDelivery();
|
|
4643
|
+
}
|
|
4356
4644
|
}
|
|
4357
4645
|
}
|
|
4358
4646
|
});
|
|
@@ -4389,7 +4677,7 @@ CheckoutComponent.decorators = [
|
|
|
4389
4677
|
{ type: Component, args: [{
|
|
4390
4678
|
selector: "co-checkout",
|
|
4391
4679
|
template: `
|
|
4392
|
-
<co-stepper [finishButtonLabel]="'CHECKOUT_FINISH' | localize" (finishStep)="handleFinishStep()">
|
|
4680
|
+
<co-stepper #stepper [finishButtonLabel]="'CHECKOUT_FINISH' | localize" (finishStep)="handleFinishStep()">
|
|
4393
4681
|
<co-stepper-step #stepRelation [index]="1" [label]="'YOUR_DATA' | localize" (validateStep)="handleRelationValidation()">
|
|
4394
4682
|
<co-checkout-overview-relation-edit #checkoutRelation *ngIf="stepRelation.show" [(relation)]="service.relation"
|
|
4395
4683
|
[deliveryAddressNawNr]="deliveryAddressNawNr"
|
|
@@ -4406,13 +4694,16 @@ CheckoutComponent.decorators = [
|
|
|
4406
4694
|
</co-stepper-step>
|
|
4407
4695
|
<co-stepper-step #stepOverview [index]="3" [label]="'OVERVIEW_AND_PAYMENT' | localize">
|
|
4408
4696
|
<co-checkout-overview-payment *ngIf="stepOverview.show"
|
|
4409
|
-
|
|
4410
|
-
|
|
4697
|
+
[relation]="service.relation"
|
|
4698
|
+
[transaction]="service.currentTransaction"
|
|
4699
|
+
(changeYourDataClick)="stepper.goto(0)"
|
|
4700
|
+
(changeDeliveryClick)="stepper.goto(1)"
|
|
4701
|
+
(payed)="transactionFinished.emit(transaction.transactionInfo)"
|
|
4411
4702
|
></co-checkout-overview-payment>
|
|
4412
4703
|
</co-stepper-step>
|
|
4413
4704
|
<div class="co-checkout-right-panel">
|
|
4414
4705
|
<div class="co-checkout-right-panel-relation">
|
|
4415
|
-
|
|
4706
|
+
<co-avatar [relationId]="sellerId"></co-avatar>
|
|
4416
4707
|
</div>
|
|
4417
4708
|
<co-shopping-cart-preview [showCheckoutButton]="false" [withoutBorder]="true"></co-shopping-cart-preview>
|
|
4418
4709
|
</div>
|
|
@@ -4427,6 +4718,7 @@ CheckoutComponent.ctorParameters = () => [
|
|
|
4427
4718
|
{ type: DialogService }
|
|
4428
4719
|
];
|
|
4429
4720
|
CheckoutComponent.propDecorators = {
|
|
4721
|
+
stepper: [{ type: ViewChild, args: ["stepper",] }],
|
|
4430
4722
|
stepRelation: [{ type: ViewChild, args: ["stepRelation",] }],
|
|
4431
4723
|
stepDelivery: [{ type: ViewChild, args: ["stepDelivery",] }],
|
|
4432
4724
|
stepOverview: [{ type: ViewChild, args: ["stepOverview",] }],
|
|
@@ -5045,8 +5337,6 @@ CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
|
5045
5337
|
<co-transaction-header-delivery-date class="header-delivery-deliverydate"
|
|
5046
5338
|
[transactionInfo]="transaction.transactionInfo"
|
|
5047
5339
|
></co-transaction-header-delivery-date>
|
|
5048
|
-
</div>
|
|
5049
|
-
<div class="checkout-data-row">
|
|
5050
5340
|
<co-transaction-header-preferred-delivery-date class="header-delivery-deliverydate"
|
|
5051
5341
|
[transactionInfo]="transaction.transactionInfo"
|
|
5052
5342
|
></co-transaction-header-preferred-delivery-date>
|
|
@@ -5111,16 +5401,20 @@ CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
|
5111
5401
|
</div>
|
|
5112
5402
|
<div class="checkout-data-column">
|
|
5113
5403
|
<div class="checkout-data-row">
|
|
5114
|
-
<co-transaction-header-definitive [transactionInfo]="transaction.transactionInfo"></co-transaction-header-definitive>
|
|
5115
5404
|
<co-transaction-header-branch [transactionInfo]="transaction.transactionInfo"></co-transaction-header-branch>
|
|
5116
5405
|
<co-transaction-header-administrative-relation [transactionInfo]="transaction.transactionInfo"></co-transaction-header-administrative-relation>
|
|
5117
5406
|
</div>
|
|
5407
|
+
<div class="checkout-data-row">
|
|
5408
|
+
<span class="label" [textContent]="'MARKETING_CODE' | localize"></span>
|
|
5409
|
+
</div>
|
|
5118
5410
|
<div class="checkout-data-row">
|
|
5119
5411
|
<co-transaction-header-marketing [transactionInfo]="transaction.transactionInfo"></co-transaction-header-marketing>
|
|
5120
5412
|
</div>
|
|
5121
5413
|
<div class="checkout-data-row">
|
|
5414
|
+
<span class="label" [textContent]="'ORDER_PARAMETERS' | localize"></span>
|
|
5122
5415
|
</div>
|
|
5123
5416
|
<div class="checkout-data-row">
|
|
5417
|
+
<co-transaction-header-definitive [transactionInfo]="transaction.transactionInfo"></co-transaction-header-definitive>
|
|
5124
5418
|
</div>
|
|
5125
5419
|
</div>
|
|
5126
5420
|
</div>
|
|
@@ -5427,10 +5721,10 @@ StockStatusIndicatorComponent.propDecorators = {
|
|
|
5427
5721
|
// A pipe for appending strings to other strings in view templates.
|
|
5428
5722
|
class AppendPipe {
|
|
5429
5723
|
transform(value, append) {
|
|
5430
|
-
if (!value) {
|
|
5724
|
+
if (!value && typeof value !== 'number') {
|
|
5431
5725
|
return "";
|
|
5432
5726
|
}
|
|
5433
|
-
if (!append) {
|
|
5727
|
+
if (!append && typeof append !== 'number') {
|
|
5434
5728
|
return value;
|
|
5435
5729
|
}
|
|
5436
5730
|
return value + append;
|
|
@@ -5729,60 +6023,166 @@ LoaderComponent.decorators = [
|
|
|
5729
6023
|
},] }
|
|
5730
6024
|
];
|
|
5731
6025
|
|
|
5732
|
-
class
|
|
6026
|
+
class CharacteristicAnswerModule {
|
|
5733
6027
|
}
|
|
5734
|
-
|
|
6028
|
+
CharacteristicAnswerModule.decorators = [
|
|
5735
6029
|
{ type: NgModule, args: [{
|
|
5736
6030
|
imports: [
|
|
5737
6031
|
CommonModule,
|
|
5738
|
-
InputComboBoxModule,
|
|
5739
|
-
CoDialogModule,
|
|
5740
6032
|
ButtonModule,
|
|
5741
|
-
|
|
6033
|
+
CoDialogModule,
|
|
6034
|
+
InputCheckboxModule,
|
|
6035
|
+
InputTextModule,
|
|
5742
6036
|
PipeModule
|
|
5743
6037
|
],
|
|
5744
6038
|
declarations: [
|
|
5745
|
-
|
|
5746
|
-
IconComponent,
|
|
5747
|
-
CustomerGroupsComponent,
|
|
5748
|
-
StockStatusIndicatorComponent,
|
|
5749
|
-
LoaderComponent
|
|
6039
|
+
CharacteristicAnswerComponent
|
|
5750
6040
|
],
|
|
5751
6041
|
exports: [
|
|
5752
|
-
|
|
5753
|
-
IconComponent,
|
|
5754
|
-
CustomerGroupsComponent,
|
|
5755
|
-
StockStatusIndicatorComponent,
|
|
5756
|
-
LoaderComponent
|
|
6042
|
+
CharacteristicAnswerComponent
|
|
5757
6043
|
]
|
|
5758
6044
|
},] }
|
|
5759
6045
|
];
|
|
5760
6046
|
|
|
5761
|
-
class
|
|
5762
|
-
constructor() {
|
|
5763
|
-
|
|
5764
|
-
this.
|
|
6047
|
+
class WarehouseComponent extends DialogBaseComponent {
|
|
6048
|
+
constructor(_transactionService) {
|
|
6049
|
+
super();
|
|
6050
|
+
this._transactionService = _transactionService;
|
|
6051
|
+
this.okClick = new EventEmitter();
|
|
6052
|
+
this.collection = [];
|
|
6053
|
+
this.viewModels = [];
|
|
5765
6054
|
}
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
this._relation = value;
|
|
5769
|
-
this.relationSet();
|
|
5770
|
-
}
|
|
6055
|
+
showClass() {
|
|
6056
|
+
return true;
|
|
5771
6057
|
}
|
|
5772
|
-
|
|
5773
|
-
|
|
6058
|
+
ngOnInit() {
|
|
6059
|
+
this._transactionService.getWarehouses().then((warehouses) => {
|
|
6060
|
+
this.collection = warehouses.slice();
|
|
6061
|
+
this.collection.forEach((d, index) => {
|
|
6062
|
+
this.viewModels.push({ value: d.warehouseNo, text: d.description, checked: index === 0 });
|
|
6063
|
+
});
|
|
6064
|
+
});
|
|
5774
6065
|
}
|
|
5775
|
-
|
|
5776
|
-
|
|
6066
|
+
handleChecked(event, choice) {
|
|
6067
|
+
event.preventDefault();
|
|
6068
|
+
event.stopImmediatePropagation();
|
|
6069
|
+
this._value = choice;
|
|
6070
|
+
this.viewModels.forEach(v => {
|
|
6071
|
+
v.checked = v.value === choice;
|
|
6072
|
+
});
|
|
5777
6073
|
}
|
|
5778
|
-
|
|
5779
|
-
|
|
6074
|
+
handleOkClick() {
|
|
6075
|
+
this.onClose(AppPopupButtonType.Ok, this._value);
|
|
5780
6076
|
}
|
|
5781
6077
|
}
|
|
5782
|
-
|
|
5783
|
-
{ type:
|
|
5784
|
-
|
|
5785
|
-
|
|
6078
|
+
WarehouseComponent.decorators = [
|
|
6079
|
+
{ type: Component, args: [{
|
|
6080
|
+
selector: "co-warehouse",
|
|
6081
|
+
template: `
|
|
6082
|
+
<co-dialog [showCloseIcon]="false" [modal]="true" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
|
|
6083
|
+
<div class="co-transaction-default-flex-row" *ngFor="let model of viewModels">
|
|
6084
|
+
<co-input-checkbox [model]="model.checked" [label]="model.text" (click)="handleChecked($event, model.value)"></co-input-checkbox>
|
|
6085
|
+
</div>
|
|
6086
|
+
</co-dialog>
|
|
6087
|
+
<ng-template #headerTemplate>
|
|
6088
|
+
<div class="title" [textContent]="'WAREHOUSE' | localize"></div>
|
|
6089
|
+
</ng-template>
|
|
6090
|
+
<ng-template #footerTemplate>
|
|
6091
|
+
<div class="dialog-footer-button-wrapper">
|
|
6092
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
6093
|
+
</div>
|
|
6094
|
+
</ng-template>
|
|
6095
|
+
`,
|
|
6096
|
+
encapsulation: ViewEncapsulation.None
|
|
6097
|
+
},] }
|
|
6098
|
+
];
|
|
6099
|
+
WarehouseComponent.ctorParameters = () => [
|
|
6100
|
+
{ type: TransactionService }
|
|
6101
|
+
];
|
|
6102
|
+
WarehouseComponent.propDecorators = {
|
|
6103
|
+
okClick: [{ type: Output }],
|
|
6104
|
+
showClass: [{ type: HostBinding, args: ["class.co-warehouse",] }]
|
|
6105
|
+
};
|
|
6106
|
+
|
|
6107
|
+
class WarehouseModule {
|
|
6108
|
+
}
|
|
6109
|
+
WarehouseModule.decorators = [
|
|
6110
|
+
{ type: NgModule, args: [{
|
|
6111
|
+
imports: [
|
|
6112
|
+
CommonModule,
|
|
6113
|
+
CoDialogModule,
|
|
6114
|
+
InputCheckboxModule,
|
|
6115
|
+
InputTextModule,
|
|
6116
|
+
ButtonModule,
|
|
6117
|
+
PipeModule
|
|
6118
|
+
],
|
|
6119
|
+
declarations: [
|
|
6120
|
+
WarehouseComponent
|
|
6121
|
+
],
|
|
6122
|
+
exports: [
|
|
6123
|
+
WarehouseComponent
|
|
6124
|
+
]
|
|
6125
|
+
},] }
|
|
6126
|
+
];
|
|
6127
|
+
|
|
6128
|
+
class CoreModule {
|
|
6129
|
+
}
|
|
6130
|
+
CoreModule.decorators = [
|
|
6131
|
+
{ type: NgModule, args: [{
|
|
6132
|
+
imports: [
|
|
6133
|
+
CommonModule,
|
|
6134
|
+
InputComboBoxModule,
|
|
6135
|
+
CoDialogModule,
|
|
6136
|
+
ButtonModule,
|
|
6137
|
+
ConfirmationDialogModule,
|
|
6138
|
+
PipeModule,
|
|
6139
|
+
InputTextModule,
|
|
6140
|
+
InputCheckboxModule,
|
|
6141
|
+
CharacteristicAnswerModule,
|
|
6142
|
+
WarehouseModule
|
|
6143
|
+
],
|
|
6144
|
+
declarations: [
|
|
6145
|
+
ImageDisplayComponent,
|
|
6146
|
+
IconComponent,
|
|
6147
|
+
CustomerGroupsComponent,
|
|
6148
|
+
StockStatusIndicatorComponent,
|
|
6149
|
+
LoaderComponent
|
|
6150
|
+
],
|
|
6151
|
+
exports: [
|
|
6152
|
+
ImageDisplayComponent,
|
|
6153
|
+
IconComponent,
|
|
6154
|
+
CustomerGroupsComponent,
|
|
6155
|
+
StockStatusIndicatorComponent,
|
|
6156
|
+
LoaderComponent
|
|
6157
|
+
]
|
|
6158
|
+
},] }
|
|
6159
|
+
];
|
|
6160
|
+
|
|
6161
|
+
class RelationBaseComponent {
|
|
6162
|
+
constructor() {
|
|
6163
|
+
this.relationChange = new EventEmitter();
|
|
6164
|
+
this._relation = NULL_RELATION_OBJECT;
|
|
6165
|
+
}
|
|
6166
|
+
set relation(value) {
|
|
6167
|
+
if (value) {
|
|
6168
|
+
this._relation = value;
|
|
6169
|
+
this.relationSet();
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6172
|
+
get relation() {
|
|
6173
|
+
return this._relation;
|
|
6174
|
+
}
|
|
6175
|
+
get relationAsCustomer() {
|
|
6176
|
+
return this._relation && this._relation;
|
|
6177
|
+
}
|
|
6178
|
+
// overridden by descendant classes
|
|
6179
|
+
relationSet() {
|
|
6180
|
+
}
|
|
6181
|
+
}
|
|
6182
|
+
RelationBaseComponent.decorators = [
|
|
6183
|
+
{ type: Directive }
|
|
6184
|
+
];
|
|
6185
|
+
RelationBaseComponent.propDecorators = {
|
|
5786
6186
|
relation: [{ type: Input }],
|
|
5787
6187
|
relationChange: [{ type: Output }]
|
|
5788
6188
|
};
|
|
@@ -6824,6 +7224,38 @@ TransactionLineActionButtonsComponent.propDecorators = {
|
|
|
6824
7224
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
|
|
6825
7225
|
};
|
|
6826
7226
|
|
|
7227
|
+
class DialogTransactionLineDeliveryMethodComponent extends DialogTransactionLineBaseComponent {
|
|
7228
|
+
showClass() {
|
|
7229
|
+
return true;
|
|
7230
|
+
}
|
|
7231
|
+
}
|
|
7232
|
+
DialogTransactionLineDeliveryMethodComponent.decorators = [
|
|
7233
|
+
{ type: Component, args: [{
|
|
7234
|
+
selector: "co-dialog-transaction-line-delivery-method",
|
|
7235
|
+
template: `
|
|
7236
|
+
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
|
|
7237
|
+
<co-transaction-line-delivery-method
|
|
7238
|
+
[useTransactionLine]="useTransactionLine"
|
|
7239
|
+
[transactionLine]="transactionLine"
|
|
7240
|
+
[searchText]="searchText"
|
|
7241
|
+
(valueChange)="handleValueChange($event)"></co-transaction-line-delivery-method>
|
|
7242
|
+
</co-dialog>
|
|
7243
|
+
<ng-template #dialogHeader>
|
|
7244
|
+
<co-dialog-header-search [title]="'DELIVERY_METHOD'" (search)="handleSearch($event)"></co-dialog-header-search>
|
|
7245
|
+
</ng-template>
|
|
7246
|
+
<ng-template #footerTemplate>
|
|
7247
|
+
<div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
|
|
7248
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
7249
|
+
</div>
|
|
7250
|
+
</ng-template>
|
|
7251
|
+
`,
|
|
7252
|
+
encapsulation: ViewEncapsulation.None
|
|
7253
|
+
},] }
|
|
7254
|
+
];
|
|
7255
|
+
DialogTransactionLineDeliveryMethodComponent.propDecorators = {
|
|
7256
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
|
|
7257
|
+
};
|
|
7258
|
+
|
|
6827
7259
|
class TransactionLineComponent {
|
|
6828
7260
|
constructor(service, iconCacheService, _dialogService, _dictionaryService, _imageService) {
|
|
6829
7261
|
this.service = service;
|
|
@@ -6847,6 +7279,9 @@ class TransactionLineComponent {
|
|
|
6847
7279
|
this.isSelected = this._line.isSelected;
|
|
6848
7280
|
this.readonly = this._line.hasInvoices;
|
|
6849
7281
|
this._loadLineImage();
|
|
7282
|
+
this._loadLineCommissionCode();
|
|
7283
|
+
this._loadLineWarehouse();
|
|
7284
|
+
this._loadLineDeliveryMethod();
|
|
6850
7285
|
}
|
|
6851
7286
|
get line() {
|
|
6852
7287
|
return this._line;
|
|
@@ -6887,6 +7322,15 @@ class TransactionLineComponent {
|
|
|
6887
7322
|
this.sidePanelButtonClicked.next();
|
|
6888
7323
|
this.waitingForUserAction.next(true);
|
|
6889
7324
|
}
|
|
7325
|
+
openCommissionCodeDialog() {
|
|
7326
|
+
this._dialogService.showTransactionLineComponent(DialogTransactionLineCommissionCodeComponent, this.line);
|
|
7327
|
+
}
|
|
7328
|
+
openWarehouseDialog() {
|
|
7329
|
+
this._dialogService.showTransactionLineComponent(DialogTransactionLineWarehouseComponent, this.line);
|
|
7330
|
+
}
|
|
7331
|
+
openDeliveryMethodDialog() {
|
|
7332
|
+
this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
|
|
7333
|
+
}
|
|
6890
7334
|
_loadLineImage() {
|
|
6891
7335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6892
7336
|
if (this.line && this.line.isArticle) {
|
|
@@ -6896,6 +7340,36 @@ class TransactionLineComponent {
|
|
|
6896
7340
|
}
|
|
6897
7341
|
});
|
|
6898
7342
|
}
|
|
7343
|
+
_loadLineCommissionCode() {
|
|
7344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7345
|
+
if (this.line && this.line.isArticle) {
|
|
7346
|
+
this.service.getCommissionCodes('NL').then((codes) => {
|
|
7347
|
+
const commissionCode = codes.find(c => c.code === this.line.commissionCode);
|
|
7348
|
+
this.line.commissionDescription = commissionCode ? commissionCode.description : "";
|
|
7349
|
+
});
|
|
7350
|
+
}
|
|
7351
|
+
});
|
|
7352
|
+
}
|
|
7353
|
+
_loadLineWarehouse() {
|
|
7354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7355
|
+
if (this.line && this.line.isArticle) {
|
|
7356
|
+
this.service.getWarehouses().then((warehouses) => {
|
|
7357
|
+
const warehouse = warehouses.find(w => w.warehouseNo === this.line.warehouseNumber);
|
|
7358
|
+
this.line.warehouseDescription = warehouse ? warehouse.description : "";
|
|
7359
|
+
});
|
|
7360
|
+
}
|
|
7361
|
+
});
|
|
7362
|
+
}
|
|
7363
|
+
_loadLineDeliveryMethod() {
|
|
7364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7365
|
+
if (this.line && this.line.isArticle) {
|
|
7366
|
+
this.service.getDeliveryMethods().then((methods) => {
|
|
7367
|
+
const method = methods.find(m => m.code === this.line.deliveryMethodCode);
|
|
7368
|
+
this.line.deliveryMethodDescription = method ? method.description : "";
|
|
7369
|
+
});
|
|
7370
|
+
}
|
|
7371
|
+
});
|
|
7372
|
+
}
|
|
6899
7373
|
}
|
|
6900
7374
|
TransactionLineComponent.decorators = [
|
|
6901
7375
|
{ type: Component, args: [{
|
|
@@ -6937,6 +7411,19 @@ TransactionLineComponent.decorators = [
|
|
|
6937
7411
|
<span [textContent]="line.deliveryDate | date:'dd MMM YYYY'"></span>
|
|
6938
7412
|
</div>
|
|
6939
7413
|
</div>
|
|
7414
|
+
<div *ngIf=!preview class="transaction-line-extended-wrapper">
|
|
7415
|
+
<div class="transaction-line-extended-row-wrapper" (click)="openCommissionCodeDialog()">
|
|
7416
|
+
<div [textContent]="line.commissionDescription | append:' | ' | append:line.commissionCode"></div>
|
|
7417
|
+
</div>
|
|
7418
|
+
<div class="transaction-line-extended-row-wrapper" (click)="openWarehouseDialog()">
|
|
7419
|
+
<co-icon class="header-warehouse-icon" [iconData]="iconCacheService.getIcon(icons.Warehouse)"></co-icon>
|
|
7420
|
+
<div [textContent]="line.warehouseDescription"></div>
|
|
7421
|
+
</div>
|
|
7422
|
+
<div class="transaction-line-extended-row-wrapper" (click)="openDeliveryMethodDialog()">
|
|
7423
|
+
<co-icon class="header-delivery-truck-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)"></co-icon>
|
|
7424
|
+
<span [textContent]="line.deliveryMethodDescription"></span>
|
|
7425
|
+
</div>
|
|
7426
|
+
</div>
|
|
6940
7427
|
<div class="transaction-line-totals">
|
|
6941
7428
|
<co-transaction-line-price class="transaction-line-totals-price price"
|
|
6942
7429
|
[transactionLine]="line"
|
|
@@ -7252,49 +7739,7 @@ EditableLabelModule.decorators = [
|
|
|
7252
7739
|
},] }
|
|
7253
7740
|
];
|
|
7254
7741
|
|
|
7255
|
-
class
|
|
7256
|
-
constructor() {
|
|
7257
|
-
this.showExtended = false;
|
|
7258
|
-
this.readonly = false;
|
|
7259
|
-
this._transactionLine = new TransactionLineInfo();
|
|
7260
|
-
this._transactionInfo = new TransactionInfo();
|
|
7261
|
-
}
|
|
7262
|
-
set transactionLine(value) {
|
|
7263
|
-
if (value) {
|
|
7264
|
-
this._transactionLine = value;
|
|
7265
|
-
this.readonly = this._transactionLine.hasInvoices;
|
|
7266
|
-
this.transactionLineSet();
|
|
7267
|
-
}
|
|
7268
|
-
}
|
|
7269
|
-
get transactionLine() {
|
|
7270
|
-
return this._transactionLine;
|
|
7271
|
-
}
|
|
7272
|
-
set transactionInfo(value) {
|
|
7273
|
-
if (value) {
|
|
7274
|
-
this._transactionInfo = value;
|
|
7275
|
-
this.transactionInfoSet();
|
|
7276
|
-
}
|
|
7277
|
-
}
|
|
7278
|
-
get transactionInfo() {
|
|
7279
|
-
return this._transactionInfo;
|
|
7280
|
-
}
|
|
7281
|
-
// overridden by descendents
|
|
7282
|
-
transactionLineSet() {
|
|
7283
|
-
}
|
|
7284
|
-
// overridden by descendents
|
|
7285
|
-
transactionInfoSet() {
|
|
7286
|
-
}
|
|
7287
|
-
}
|
|
7288
|
-
TransactionLineFieldsBaseComponent.decorators = [
|
|
7289
|
-
{ type: Directive }
|
|
7290
|
-
];
|
|
7291
|
-
TransactionLineFieldsBaseComponent.propDecorators = {
|
|
7292
|
-
showExtended: [{ type: Input }],
|
|
7293
|
-
transactionLine: [{ type: Input }],
|
|
7294
|
-
transactionInfo: [{ type: Input }]
|
|
7295
|
-
};
|
|
7296
|
-
|
|
7297
|
-
class TransactionLinePriceComponent extends TransactionLineFieldsBaseComponent {
|
|
7742
|
+
class TransactionLinePriceComponent extends TransactionLineBaseComponent {
|
|
7298
7743
|
constructor(_transactionService) {
|
|
7299
7744
|
super();
|
|
7300
7745
|
this._transactionService = _transactionService;
|
|
@@ -7388,7 +7833,7 @@ TransactionLinePriceModule.decorators = [
|
|
|
7388
7833
|
},] }
|
|
7389
7834
|
];
|
|
7390
7835
|
|
|
7391
|
-
class TransactionLineDescriptionComponent extends
|
|
7836
|
+
class TransactionLineDescriptionComponent extends TransactionLineBaseComponent {
|
|
7392
7837
|
constructor(_transactionService) {
|
|
7393
7838
|
super();
|
|
7394
7839
|
this._transactionService = _transactionService;
|
|
@@ -10319,12 +10764,18 @@ class TransactionHeaderBranchComponent extends TransactionHeaderFieldsBaseCompon
|
|
|
10319
10764
|
constructor(_transactionService) {
|
|
10320
10765
|
super();
|
|
10321
10766
|
this._transactionService = _transactionService;
|
|
10767
|
+
this.showExtended = false;
|
|
10322
10768
|
this.collection = [];
|
|
10323
10769
|
this.fields = { text: "description", value: "relationId" };
|
|
10770
|
+
this.viewModels = [];
|
|
10324
10771
|
}
|
|
10325
10772
|
ngOnInit() {
|
|
10773
|
+
this.viewModels.length = 0;
|
|
10326
10774
|
this._transactionService.getBranches().then((branches) => {
|
|
10327
10775
|
this.collection = branches;
|
|
10776
|
+
this.collection.forEach(c => {
|
|
10777
|
+
this.viewModels.push({ value: c.relationId, text: c.description, checked: this.transactionInfo.branch && this.transactionInfo.branch.relationId === c.relationId });
|
|
10778
|
+
});
|
|
10328
10779
|
});
|
|
10329
10780
|
}
|
|
10330
10781
|
commitTransactionBranch(branch) {
|
|
@@ -10345,6 +10796,15 @@ class TransactionHeaderBranchComponent extends TransactionHeaderFieldsBaseCompon
|
|
|
10345
10796
|
return true;
|
|
10346
10797
|
});
|
|
10347
10798
|
}
|
|
10799
|
+
handleChecked(row) {
|
|
10800
|
+
row.checked = true;
|
|
10801
|
+
for (let i = 0; i < this.viewModels.length; i++) {
|
|
10802
|
+
if (this.viewModels[i].value !== row.value) {
|
|
10803
|
+
this.viewModels[i].checked = false;
|
|
10804
|
+
}
|
|
10805
|
+
}
|
|
10806
|
+
this.commitTransactionBranch(this.viewModels.find(v => v.checked).value);
|
|
10807
|
+
}
|
|
10348
10808
|
transactionInfoSet() {
|
|
10349
10809
|
this.readonly = this.readonly || this.transactionInfo.deliveryDateDefinitive;
|
|
10350
10810
|
}
|
|
@@ -10353,23 +10813,35 @@ TransactionHeaderBranchComponent.decorators = [
|
|
|
10353
10813
|
{ type: Component, args: [{
|
|
10354
10814
|
selector: "co-transaction-header-branch",
|
|
10355
10815
|
template: `
|
|
10356
|
-
<
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10816
|
+
<ng-container *ngIf="!showExtended">
|
|
10817
|
+
<co-drop-down-list
|
|
10818
|
+
[readonly]="readonly"
|
|
10819
|
+
[placeholder]="'BRANCH' | localize"
|
|
10820
|
+
[allowFiltering]="true"
|
|
10821
|
+
[filterType]="'Contains'"
|
|
10822
|
+
[collection]="collection"
|
|
10823
|
+
[fields]="fields"
|
|
10824
|
+
[model]="transactionInfo.branch"
|
|
10825
|
+
(modelChange)="commitTransactionBranch($event)">
|
|
10826
|
+
</co-drop-down-list>
|
|
10827
|
+
</ng-container>
|
|
10828
|
+
<ng-container *ngIf="showExtended">
|
|
10829
|
+
<div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
|
|
10830
|
+
<co-input-checkbox [model]="row.checked" (modelChange)="handleChecked(row)"></co-input-checkbox>
|
|
10831
|
+
<span class="extended-row-code" [textContent]="row.value"></span>
|
|
10832
|
+
<span class="extended-row-description" [textContent]="row.text"></span>
|
|
10833
|
+
</div>
|
|
10834
|
+
</ng-container>
|
|
10366
10835
|
`,
|
|
10367
10836
|
encapsulation: ViewEncapsulation.None
|
|
10368
10837
|
},] }
|
|
10369
10838
|
];
|
|
10370
10839
|
TransactionHeaderBranchComponent.ctorParameters = () => [
|
|
10371
10840
|
{ type: TransactionService }
|
|
10372
|
-
];
|
|
10841
|
+
];
|
|
10842
|
+
TransactionHeaderBranchComponent.propDecorators = {
|
|
10843
|
+
showExtended: [{ type: Input }]
|
|
10844
|
+
};
|
|
10373
10845
|
|
|
10374
10846
|
class TransactionHeaderBranchModule {
|
|
10375
10847
|
}
|
|
@@ -10378,7 +10850,8 @@ TransactionHeaderBranchModule.decorators = [
|
|
|
10378
10850
|
imports: [
|
|
10379
10851
|
CommonModule,
|
|
10380
10852
|
PipeModule,
|
|
10381
|
-
DropDownModule
|
|
10853
|
+
DropDownModule,
|
|
10854
|
+
InputCheckboxModule
|
|
10382
10855
|
],
|
|
10383
10856
|
declarations: [
|
|
10384
10857
|
TransactionHeaderBranchComponent
|
|
@@ -10425,14 +10898,16 @@ TransactionHeaderAdministrativeRelationComponent.decorators = [
|
|
|
10425
10898
|
{ type: Component, args: [{
|
|
10426
10899
|
selector: "co-transaction-header-administrative-relation",
|
|
10427
10900
|
template: `
|
|
10428
|
-
<co-
|
|
10429
|
-
[placeholder]="'ADMINISTRATIVE_MANAGER' | localize"
|
|
10901
|
+
<co-drop-down-list
|
|
10430
10902
|
[readonly]="readonly"
|
|
10903
|
+
[placeholder]="'ADMINISTRATIVE_MANAGER' | localize"
|
|
10904
|
+
[allowFiltering]="true"
|
|
10905
|
+
[filterType]="'Contains'"
|
|
10431
10906
|
[collection]="collection"
|
|
10432
10907
|
[fields]="fields"
|
|
10433
|
-
[
|
|
10434
|
-
(modelChange)="commitTransactionAdministrative($event)"
|
|
10435
|
-
|
|
10908
|
+
[model]="transactionInfo.admCoordinator"
|
|
10909
|
+
(modelChange)="commitTransactionAdministrative($event)">
|
|
10910
|
+
</co-drop-down-list>
|
|
10436
10911
|
`,
|
|
10437
10912
|
encapsulation: ViewEncapsulation.None
|
|
10438
10913
|
},] }
|
|
@@ -10448,7 +10923,7 @@ TransactionHeaderAdministrativeRelationModule.decorators = [
|
|
|
10448
10923
|
imports: [
|
|
10449
10924
|
CommonModule,
|
|
10450
10925
|
PipeModule,
|
|
10451
|
-
|
|
10926
|
+
DropDownModule
|
|
10452
10927
|
],
|
|
10453
10928
|
declarations: [
|
|
10454
10929
|
TransactionHeaderAdministrativeRelationComponent
|
|
@@ -10465,15 +10940,19 @@ class TransactionHeaderMarketingComponent extends TransactionHeaderFieldsBaseCom
|
|
|
10465
10940
|
this._transactionService = _transactionService;
|
|
10466
10941
|
this.collection = [];
|
|
10467
10942
|
this.fields = { text: "description", value: "code" };
|
|
10943
|
+
this.viewModels = [];
|
|
10468
10944
|
}
|
|
10469
10945
|
ngOnInit() {
|
|
10946
|
+
this.viewModels.length = 0;
|
|
10470
10947
|
this._transactionService.getMarketingCodes().then((marketingCodes) => {
|
|
10471
10948
|
this.collection = marketingCodes;
|
|
10949
|
+
this.collection.forEach(c => {
|
|
10950
|
+
this.viewModels.push({ value: c.code, text: c.description, checked: this.transactionInfo.marketingCode && this.transactionInfo.marketingCode === c.code });
|
|
10951
|
+
});
|
|
10472
10952
|
});
|
|
10473
10953
|
}
|
|
10474
|
-
commitTransactionMarketing(
|
|
10954
|
+
commitTransactionMarketing(code) {
|
|
10475
10955
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10476
|
-
const code = codes.length > 0 ? codes[0] : null;
|
|
10477
10956
|
if (this.transactionInfo.marketingCode !== code) {
|
|
10478
10957
|
const oldCode = this.transactionInfo.marketingCode;
|
|
10479
10958
|
const success = yield this._transactionService.updateHeaderTransactionMarketing(this.transactionInfo.uuid, code);
|
|
@@ -10485,6 +10964,17 @@ class TransactionHeaderMarketingComponent extends TransactionHeaderFieldsBaseCom
|
|
|
10485
10964
|
return true;
|
|
10486
10965
|
});
|
|
10487
10966
|
}
|
|
10967
|
+
handleChecked(event, row) {
|
|
10968
|
+
event.preventDefault();
|
|
10969
|
+
event.stopPropagation();
|
|
10970
|
+
row.checked = true;
|
|
10971
|
+
for (let i = 0; i < this.viewModels.length; i++) {
|
|
10972
|
+
if (this.viewModels[i].value !== row.value) {
|
|
10973
|
+
this.viewModels[i].checked = false;
|
|
10974
|
+
}
|
|
10975
|
+
}
|
|
10976
|
+
this.commitTransactionMarketing(this.viewModels.find(v => v.checked).value);
|
|
10977
|
+
}
|
|
10488
10978
|
transactionInfoSet() {
|
|
10489
10979
|
this.readonly = this.readonly || this.transactionInfo.deliveryDateDefinitive;
|
|
10490
10980
|
}
|
|
@@ -10493,14 +10983,13 @@ TransactionHeaderMarketingComponent.decorators = [
|
|
|
10493
10983
|
{ type: Component, args: [{
|
|
10494
10984
|
selector: "co-transaction-header-marketing",
|
|
10495
10985
|
template: `
|
|
10496
|
-
<co-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
></co-input-listbox>
|
|
10986
|
+
<div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
|
|
10987
|
+
<co-input-checkbox
|
|
10988
|
+
[model]="row.checked"
|
|
10989
|
+
[label]="row.value + ' ' + row.text"
|
|
10990
|
+
(click)="handleChecked($event, row)"
|
|
10991
|
+
></co-input-checkbox>
|
|
10992
|
+
</div>
|
|
10504
10993
|
`,
|
|
10505
10994
|
encapsulation: ViewEncapsulation.None
|
|
10506
10995
|
},] }
|
|
@@ -10516,7 +11005,8 @@ TransactionHeaderMarketingModule.decorators = [
|
|
|
10516
11005
|
imports: [
|
|
10517
11006
|
CommonModule,
|
|
10518
11007
|
PipeModule,
|
|
10519
|
-
InputListboxModule
|
|
11008
|
+
InputListboxModule,
|
|
11009
|
+
InputCheckboxModule
|
|
10520
11010
|
],
|
|
10521
11011
|
declarations: [
|
|
10522
11012
|
TransactionHeaderMarketingComponent
|
|
@@ -11324,60 +11814,6 @@ TransactionGridBaseComponent.propDecorators = {
|
|
|
11324
11814
|
rowVisible: [{ type: Output }]
|
|
11325
11815
|
};
|
|
11326
11816
|
|
|
11327
|
-
class DialogTransactionLineBaseComponent extends DialogBaseComponent {
|
|
11328
|
-
constructor() {
|
|
11329
|
-
super(...arguments);
|
|
11330
|
-
this.readonly = false;
|
|
11331
|
-
this._transactionLine = new TransactionLineInfo();
|
|
11332
|
-
}
|
|
11333
|
-
set transactionLine(value) {
|
|
11334
|
-
if (value) {
|
|
11335
|
-
this._transactionLine = value;
|
|
11336
|
-
this.readonly = this._transactionLine.hasInvoices;
|
|
11337
|
-
this.transactionLineSet();
|
|
11338
|
-
}
|
|
11339
|
-
}
|
|
11340
|
-
get transactionLine() {
|
|
11341
|
-
return this._transactionLine;
|
|
11342
|
-
}
|
|
11343
|
-
// overridden by descendents
|
|
11344
|
-
transactionLineSet() {
|
|
11345
|
-
}
|
|
11346
|
-
}
|
|
11347
|
-
DialogTransactionLineBaseComponent.decorators = [
|
|
11348
|
-
{ type: Directive }
|
|
11349
|
-
];
|
|
11350
|
-
DialogTransactionLineBaseComponent.propDecorators = {
|
|
11351
|
-
transactionLine: [{ type: Input }]
|
|
11352
|
-
};
|
|
11353
|
-
|
|
11354
|
-
class DialogTransactionLineCommissionCodeComponent extends DialogTransactionLineBaseComponent {
|
|
11355
|
-
constructor() {
|
|
11356
|
-
super(...arguments);
|
|
11357
|
-
this.buttonType = AppPopupButtonType;
|
|
11358
|
-
}
|
|
11359
|
-
showClass() {
|
|
11360
|
-
return true;
|
|
11361
|
-
}
|
|
11362
|
-
}
|
|
11363
|
-
DialogTransactionLineCommissionCodeComponent.decorators = [
|
|
11364
|
-
{ type: Component, args: [{
|
|
11365
|
-
selector: "co-dialog-transaction-line-commission-code",
|
|
11366
|
-
template: `
|
|
11367
|
-
<co-dialog [headerTemplate]="dialogHeader" (closeClick)="onClose(buttonType.Ok)">
|
|
11368
|
-
<co-transaction-line-commission-code [transactionLine]="transactionLine" [showExtended]="true"></co-transaction-line-commission-code>
|
|
11369
|
-
</co-dialog>
|
|
11370
|
-
<ng-template #dialogHeader>
|
|
11371
|
-
<span class="dialog-header" [textContent]="'COMMISSION_CODE' | localize"></span>
|
|
11372
|
-
</ng-template>
|
|
11373
|
-
`,
|
|
11374
|
-
encapsulation: ViewEncapsulation.None
|
|
11375
|
-
},] }
|
|
11376
|
-
];
|
|
11377
|
-
DialogTransactionLineCommissionCodeComponent.propDecorators = {
|
|
11378
|
-
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-commission-code",] }]
|
|
11379
|
-
};
|
|
11380
|
-
|
|
11381
11817
|
class TransactionLinesGridComponent extends TransactionGridBaseComponent {
|
|
11382
11818
|
constructor(imageService, _service, _dialogService) {
|
|
11383
11819
|
super(imageService);
|
|
@@ -11401,6 +11837,9 @@ class TransactionLinesGridComponent extends TransactionGridBaseComponent {
|
|
|
11401
11837
|
openCommissionCodeDialog(row) {
|
|
11402
11838
|
this._dialogService.showTransactionLineComponent(DialogTransactionLineCommissionCodeComponent, row);
|
|
11403
11839
|
}
|
|
11840
|
+
openWarehouseDialog(row) {
|
|
11841
|
+
this._dialogService.showTransactionLineComponent(DialogTransactionLineWarehouseComponent, row);
|
|
11842
|
+
}
|
|
11404
11843
|
}
|
|
11405
11844
|
TransactionLinesGridComponent.decorators = [
|
|
11406
11845
|
{ type: Component, args: [{
|
|
@@ -11411,6 +11850,9 @@ TransactionLinesGridComponent.decorators = [
|
|
|
11411
11850
|
<ng-template #headerTemplate>
|
|
11412
11851
|
<icon class="transaction-grid-header-icon" [icon]="icons.Warehouse"></icon>
|
|
11413
11852
|
</ng-template>
|
|
11853
|
+
<ng-template #template let-row = "row">
|
|
11854
|
+
<div [textContent]="row.warehouseNumber" (click)="openWarehouseDialog(row)"></div>
|
|
11855
|
+
</ng-template>
|
|
11414
11856
|
</co-simple-grid-column>
|
|
11415
11857
|
<co-simple-grid-column [field]="''" [width]="50" [order]="45" [textAlign]="align.Right">
|
|
11416
11858
|
<ng-template #headerTemplate>
|
|
@@ -11788,7 +12230,7 @@ TransactionLineSidePanelDefaultComponent.propDecorators = {
|
|
|
11788
12230
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel-default",] }]
|
|
11789
12231
|
};
|
|
11790
12232
|
|
|
11791
|
-
class TransactionLineQuantityComponent extends
|
|
12233
|
+
class TransactionLineQuantityComponent extends TransactionLineBaseComponent {
|
|
11792
12234
|
constructor(_transactionService) {
|
|
11793
12235
|
super();
|
|
11794
12236
|
this._transactionService = _transactionService;
|
|
@@ -11838,7 +12280,7 @@ TransactionLineQuantityModule.decorators = [
|
|
|
11838
12280
|
},] }
|
|
11839
12281
|
];
|
|
11840
12282
|
|
|
11841
|
-
class TransactionLineLineDiscountComponent extends
|
|
12283
|
+
class TransactionLineLineDiscountComponent extends TransactionLineBaseComponent {
|
|
11842
12284
|
constructor(_transactionService) {
|
|
11843
12285
|
super();
|
|
11844
12286
|
this._transactionService = _transactionService;
|
|
@@ -11903,7 +12345,7 @@ TransactionLineLineDiscountModule.decorators = [
|
|
|
11903
12345
|
},] }
|
|
11904
12346
|
];
|
|
11905
12347
|
|
|
11906
|
-
class TransactionLineVatComponent extends
|
|
12348
|
+
class TransactionLineVatComponent extends TransactionLineBaseComponent {
|
|
11907
12349
|
constructor(_transactionService) {
|
|
11908
12350
|
super();
|
|
11909
12351
|
this._transactionService = _transactionService;
|
|
@@ -11967,7 +12409,7 @@ TransactionLineVatModule.decorators = [
|
|
|
11967
12409
|
},] }
|
|
11968
12410
|
];
|
|
11969
12411
|
|
|
11970
|
-
class TransactionLinePriceListComponent extends
|
|
12412
|
+
class TransactionLinePriceListComponent extends TransactionLineBaseComponent {
|
|
11971
12413
|
constructor(_transactionService) {
|
|
11972
12414
|
super();
|
|
11973
12415
|
this._transactionService = _transactionService;
|
|
@@ -12031,16 +12473,20 @@ TransactionLinePriceListModule.decorators = [
|
|
|
12031
12473
|
},] }
|
|
12032
12474
|
];
|
|
12033
12475
|
|
|
12034
|
-
class TransactionLineDeliveryMethodComponent extends
|
|
12476
|
+
class TransactionLineDeliveryMethodComponent extends TransactionLineBaseComponent {
|
|
12035
12477
|
constructor(_transactionService) {
|
|
12036
12478
|
super();
|
|
12037
12479
|
this._transactionService = _transactionService;
|
|
12038
12480
|
this.data = [];
|
|
12039
|
-
this.fields = { text: "description", value: "code" };
|
|
12040
12481
|
}
|
|
12041
12482
|
ngOnInit() {
|
|
12483
|
+
this.viewModels.length = 0;
|
|
12042
12484
|
this._transactionService.getDeliveryMethods().then((methods) => {
|
|
12043
12485
|
this.data = methods.slice();
|
|
12486
|
+
this.data.forEach((d, index) => {
|
|
12487
|
+
this.viewModels.push({ value: d.code, text: d.description, checked: this.useTransactionLine ? this.transactionLine.deliveryMethodCode === d.code : index === 0 });
|
|
12488
|
+
super.ngOnInit();
|
|
12489
|
+
});
|
|
12044
12490
|
});
|
|
12045
12491
|
}
|
|
12046
12492
|
commitDeliveryMethod(method) {
|
|
@@ -12056,11 +12502,39 @@ class TransactionLineDeliveryMethodComponent extends TransactionLineFieldsBaseCo
|
|
|
12056
12502
|
return true;
|
|
12057
12503
|
});
|
|
12058
12504
|
}
|
|
12505
|
+
handleChecked(event, row) {
|
|
12506
|
+
event.preventDefault();
|
|
12507
|
+
event.stopPropagation();
|
|
12508
|
+
row.checked = true;
|
|
12509
|
+
for (let i = 0; i < this.viewModels.length; i++) {
|
|
12510
|
+
if (this.viewModels[i].value !== row.value) {
|
|
12511
|
+
this.viewModels[i].checked = false;
|
|
12512
|
+
}
|
|
12513
|
+
}
|
|
12514
|
+
if (this.useTransactionLine) {
|
|
12515
|
+
this.commitDeliveryMethod(this.viewModels.find(v => v.checked).value);
|
|
12516
|
+
}
|
|
12517
|
+
else {
|
|
12518
|
+
this.valueChange.emit(row.value);
|
|
12519
|
+
}
|
|
12520
|
+
}
|
|
12521
|
+
transactionLineSet() {
|
|
12522
|
+
this.readonly = this.readonly || !this.transactionInfo.transactionDefinitive;
|
|
12523
|
+
}
|
|
12059
12524
|
}
|
|
12060
12525
|
TransactionLineDeliveryMethodComponent.decorators = [
|
|
12061
12526
|
{ type: Component, args: [{
|
|
12062
12527
|
selector: "co-transaction-line-delivery-method",
|
|
12063
12528
|
template: `
|
|
12529
|
+
<div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
|
|
12530
|
+
<co-input-checkbox
|
|
12531
|
+
[model]="row.checked"
|
|
12532
|
+
[label]="row.value + ' ' + row.text"
|
|
12533
|
+
(click)="handleChecked($event, row)"
|
|
12534
|
+
></co-input-checkbox>
|
|
12535
|
+
</div>
|
|
12536
|
+
<!--
|
|
12537
|
+
|
|
12064
12538
|
<co-input-combo-box
|
|
12065
12539
|
[collection]="data"
|
|
12066
12540
|
[placeholder]="'DELIVERY_METHOD' | localize"
|
|
@@ -12068,6 +12542,7 @@ TransactionLineDeliveryMethodComponent.decorators = [
|
|
|
12068
12542
|
[readonly]="readonly"
|
|
12069
12543
|
(modelChange)="commitDeliveryMethod($event)"
|
|
12070
12544
|
></co-input-combo-box>
|
|
12545
|
+
-->
|
|
12071
12546
|
`,
|
|
12072
12547
|
encapsulation: ViewEncapsulation.None
|
|
12073
12548
|
},] }
|
|
@@ -12083,7 +12558,8 @@ TransactionLineDeliveryMethodModule.decorators = [
|
|
|
12083
12558
|
imports: [
|
|
12084
12559
|
CommonModule,
|
|
12085
12560
|
PipeModule,
|
|
12086
|
-
InputComboBoxModule
|
|
12561
|
+
InputComboBoxModule,
|
|
12562
|
+
InputCheckboxModule
|
|
12087
12563
|
],
|
|
12088
12564
|
declarations: [
|
|
12089
12565
|
TransactionLineDeliveryMethodComponent
|
|
@@ -12094,7 +12570,7 @@ TransactionLineDeliveryMethodModule.decorators = [
|
|
|
12094
12570
|
},] }
|
|
12095
12571
|
];
|
|
12096
12572
|
|
|
12097
|
-
class TransactionLineDeliveryDateComponent extends
|
|
12573
|
+
class TransactionLineDeliveryDateComponent extends TransactionLineBaseComponent {
|
|
12098
12574
|
constructor(_transactionService) {
|
|
12099
12575
|
super();
|
|
12100
12576
|
this._transactionService = _transactionService;
|
|
@@ -12152,7 +12628,7 @@ TransactionLineDeliveryDateModule.decorators = [
|
|
|
12152
12628
|
},] }
|
|
12153
12629
|
];
|
|
12154
12630
|
|
|
12155
|
-
class TransactionLineReferenceComponent extends
|
|
12631
|
+
class TransactionLineReferenceComponent extends TransactionLineBaseComponent {
|
|
12156
12632
|
constructor(_transactionService) {
|
|
12157
12633
|
super();
|
|
12158
12634
|
this._transactionService = _transactionService;
|
|
@@ -12216,20 +12692,18 @@ TransactionLineReferenceModule.decorators = [
|
|
|
12216
12692
|
},] }
|
|
12217
12693
|
];
|
|
12218
12694
|
|
|
12219
|
-
class TransactionLineCommissionCodeComponent extends
|
|
12695
|
+
class TransactionLineCommissionCodeComponent extends TransactionLineBaseComponent {
|
|
12220
12696
|
constructor(_transactionService) {
|
|
12221
12697
|
super();
|
|
12222
12698
|
this._transactionService = _transactionService;
|
|
12223
12699
|
this.data = [];
|
|
12224
|
-
this.fields = { text: "description", value: "code" };
|
|
12225
|
-
this.viewModels = [];
|
|
12226
12700
|
}
|
|
12227
12701
|
ngOnInit() {
|
|
12228
12702
|
this.viewModels.length = 0;
|
|
12229
12703
|
this._transactionService.getCommissionCodes("NL").then((codes) => {
|
|
12230
12704
|
this.data = codes.slice();
|
|
12231
|
-
this.data.forEach(d => {
|
|
12232
|
-
this.viewModels.push({ value: d.code, text: d.description, checked: this.transactionLine.commissionCode === d.code });
|
|
12705
|
+
this.data.forEach((d, index) => {
|
|
12706
|
+
this.viewModels.push({ value: d.code, text: d.description, checked: this.useTransactionLine ? this.transactionLine.commissionCode === d.code : index === 0 });
|
|
12233
12707
|
});
|
|
12234
12708
|
});
|
|
12235
12709
|
}
|
|
@@ -12246,14 +12720,21 @@ class TransactionLineCommissionCodeComponent extends TransactionLineFieldsBaseCo
|
|
|
12246
12720
|
return true;
|
|
12247
12721
|
});
|
|
12248
12722
|
}
|
|
12249
|
-
handleChecked(row) {
|
|
12723
|
+
handleChecked(event, row) {
|
|
12724
|
+
event.preventDefault();
|
|
12725
|
+
event.stopPropagation();
|
|
12250
12726
|
row.checked = true;
|
|
12251
12727
|
for (let i = 0; i < this.viewModels.length; i++) {
|
|
12252
12728
|
if (this.viewModels[i].value !== row.value) {
|
|
12253
12729
|
this.viewModels[i].checked = false;
|
|
12254
12730
|
}
|
|
12255
12731
|
}
|
|
12256
|
-
|
|
12732
|
+
if (this.useTransactionLine) {
|
|
12733
|
+
this.commitCommissionCode(this.viewModels.find(v => v.checked).value);
|
|
12734
|
+
}
|
|
12735
|
+
else {
|
|
12736
|
+
this.valueChange.emit(row.value);
|
|
12737
|
+
}
|
|
12257
12738
|
}
|
|
12258
12739
|
transactionLineSet() {
|
|
12259
12740
|
this.readonly = this.readonly || !this.transactionLine.articleFreeCommissionCode;
|
|
@@ -12263,23 +12744,13 @@ TransactionLineCommissionCodeComponent.decorators = [
|
|
|
12263
12744
|
{ type: Component, args: [{
|
|
12264
12745
|
selector: "co-transaction-line-commission-code",
|
|
12265
12746
|
template: `
|
|
12266
|
-
<
|
|
12267
|
-
<co-input-
|
|
12268
|
-
[
|
|
12269
|
-
[
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
(modelChange)="commitCommissionCode($event)"
|
|
12274
|
-
></co-input-combo-box>
|
|
12275
|
-
</ng-container>
|
|
12276
|
-
<ng-container *ngIf="showExtended">
|
|
12277
|
-
<div class="extended-row-wrapper" *ngFor="let row of viewModels">
|
|
12278
|
-
<co-input-checkbox [model]="row.checked" (modelChange)="handleChecked(row)"></co-input-checkbox>
|
|
12279
|
-
<span class="extended-row-code" [textContent]="row.value"></span>
|
|
12280
|
-
<span class="extended-row-description" [textContent]="row.text"></span>
|
|
12281
|
-
</div>
|
|
12282
|
-
</ng-container>
|
|
12747
|
+
<div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
|
|
12748
|
+
<co-input-checkbox
|
|
12749
|
+
[model]="row.checked"
|
|
12750
|
+
[label]="row.value + ' ' + row.text"
|
|
12751
|
+
(click)="handleChecked($event, row)"
|
|
12752
|
+
></co-input-checkbox>
|
|
12753
|
+
</div>
|
|
12283
12754
|
`,
|
|
12284
12755
|
encapsulation: ViewEncapsulation.None
|
|
12285
12756
|
},] }
|
|
@@ -12307,17 +12778,21 @@ TransactionLineCommissionCodeModule.decorators = [
|
|
|
12307
12778
|
},] }
|
|
12308
12779
|
];
|
|
12309
12780
|
|
|
12310
|
-
class TransactionLineWarehouseComponent extends
|
|
12781
|
+
class TransactionLineWarehouseComponent extends TransactionLineBaseComponent {
|
|
12311
12782
|
constructor(_transactionService) {
|
|
12312
12783
|
super();
|
|
12313
12784
|
this._transactionService = _transactionService;
|
|
12314
12785
|
this.data = [];
|
|
12315
|
-
this.fields = { text: "description", value: "code" };
|
|
12316
12786
|
}
|
|
12317
12787
|
ngOnInit() {
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12788
|
+
this.viewModels.length = 0;
|
|
12789
|
+
this._transactionService.getWarehouses(this.branch).then((warehouses) => {
|
|
12790
|
+
this.data = warehouses.slice();
|
|
12791
|
+
this.data.forEach((d, index) => {
|
|
12792
|
+
this.viewModels.push({ value: d.warehouseNo, text: d.description, checked: this.useTransactionLine ? this.transactionLine.warehouseNumber === d.warehouseNo : index === 0 });
|
|
12793
|
+
super.ngOnInit();
|
|
12794
|
+
});
|
|
12795
|
+
});
|
|
12321
12796
|
}
|
|
12322
12797
|
commitWarehouse(warehouse) {
|
|
12323
12798
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -12332,26 +12807,43 @@ class TransactionLineWarehouseComponent extends TransactionLineFieldsBaseCompone
|
|
|
12332
12807
|
return true;
|
|
12333
12808
|
});
|
|
12334
12809
|
}
|
|
12810
|
+
handleChecked(event, row) {
|
|
12811
|
+
event.preventDefault();
|
|
12812
|
+
event.stopPropagation();
|
|
12813
|
+
row.checked = true;
|
|
12814
|
+
for (let i = 0; i < this.viewModels.length; i++) {
|
|
12815
|
+
if (this.viewModels[i].value !== row.value) {
|
|
12816
|
+
this.viewModels[i].checked = false;
|
|
12817
|
+
}
|
|
12818
|
+
}
|
|
12819
|
+
if (this.useTransactionLine) {
|
|
12820
|
+
this.commitWarehouse(this.viewModels.find(v => v.checked).value);
|
|
12821
|
+
}
|
|
12822
|
+
else {
|
|
12823
|
+
this.valueChange.emit(row.value);
|
|
12824
|
+
}
|
|
12825
|
+
}
|
|
12335
12826
|
}
|
|
12336
12827
|
TransactionLineWarehouseComponent.decorators = [
|
|
12337
12828
|
{ type: Component, args: [{
|
|
12338
12829
|
selector: "co-transaction-line-warehouse",
|
|
12339
12830
|
template: `
|
|
12340
|
-
<co-
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
(modelChange)="commitWarehouse($event)"
|
|
12347
|
-
></co-input-combo-box>
|
|
12831
|
+
<div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
|
|
12832
|
+
<co-input-checkbox
|
|
12833
|
+
[model]="row.checked"
|
|
12834
|
+
[label]="row.value + ' ' + row.text"
|
|
12835
|
+
(click)="handleChecked($event, row)"></co-input-checkbox>
|
|
12836
|
+
</div>
|
|
12348
12837
|
`,
|
|
12349
12838
|
encapsulation: ViewEncapsulation.None
|
|
12350
12839
|
},] }
|
|
12351
12840
|
];
|
|
12352
12841
|
TransactionLineWarehouseComponent.ctorParameters = () => [
|
|
12353
12842
|
{ type: TransactionService }
|
|
12354
|
-
];
|
|
12843
|
+
];
|
|
12844
|
+
TransactionLineWarehouseComponent.propDecorators = {
|
|
12845
|
+
branch: [{ type: Input }]
|
|
12846
|
+
};
|
|
12355
12847
|
|
|
12356
12848
|
class TransactionLineWarehouseModule {
|
|
12357
12849
|
}
|
|
@@ -12361,7 +12853,8 @@ TransactionLineWarehouseModule.decorators = [
|
|
|
12361
12853
|
CommonModule,
|
|
12362
12854
|
InputTextModule,
|
|
12363
12855
|
PipeModule,
|
|
12364
|
-
InputComboBoxModule
|
|
12856
|
+
InputComboBoxModule,
|
|
12857
|
+
InputCheckboxModule
|
|
12365
12858
|
],
|
|
12366
12859
|
declarations: [
|
|
12367
12860
|
TransactionLineWarehouseComponent
|
|
@@ -12372,7 +12865,7 @@ TransactionLineWarehouseModule.decorators = [
|
|
|
12372
12865
|
},] }
|
|
12373
12866
|
];
|
|
12374
12867
|
|
|
12375
|
-
class TransactionLineDiscountAmountComponent extends
|
|
12868
|
+
class TransactionLineDiscountAmountComponent extends TransactionLineBaseComponent {
|
|
12376
12869
|
constructor(_transactionService) {
|
|
12377
12870
|
super();
|
|
12378
12871
|
this._transactionService = _transactionService;
|
|
@@ -12437,7 +12930,7 @@ TransactionLineDiscountAmountModule.decorators = [
|
|
|
12437
12930
|
},] }
|
|
12438
12931
|
];
|
|
12439
12932
|
|
|
12440
|
-
class TransactionLineQuantumDiscountComponent extends
|
|
12933
|
+
class TransactionLineQuantumDiscountComponent extends TransactionLineBaseComponent {
|
|
12441
12934
|
constructor(_transactionService) {
|
|
12442
12935
|
super();
|
|
12443
12936
|
this._transactionService = _transactionService;
|
|
@@ -12502,7 +12995,7 @@ TransactionLineQuantumDiscountModule.decorators = [
|
|
|
12502
12995
|
},] }
|
|
12503
12996
|
];
|
|
12504
12997
|
|
|
12505
|
-
class TransactionLineSpecialDiscountComponent extends
|
|
12998
|
+
class TransactionLineSpecialDiscountComponent extends TransactionLineBaseComponent {
|
|
12506
12999
|
constructor(_transactionService) {
|
|
12507
13000
|
super();
|
|
12508
13001
|
this._transactionService = _transactionService;
|
|
@@ -12567,7 +13060,7 @@ TransactionLineSpecialDiscountModule.decorators = [
|
|
|
12567
13060
|
},] }
|
|
12568
13061
|
];
|
|
12569
13062
|
|
|
12570
|
-
class TransactionLineSupplierComponent extends
|
|
13063
|
+
class TransactionLineSupplierComponent extends TransactionLineBaseComponent {
|
|
12571
13064
|
constructor(_transactionService) {
|
|
12572
13065
|
super();
|
|
12573
13066
|
this._transactionService = _transactionService;
|
|
@@ -14698,6 +15191,60 @@ TransactionBaseGridModule.decorators = [
|
|
|
14698
15191
|
},] }
|
|
14699
15192
|
];
|
|
14700
15193
|
|
|
15194
|
+
class DialogHeaderSearchComponent {
|
|
15195
|
+
constructor() {
|
|
15196
|
+
this.search = new EventEmitter();
|
|
15197
|
+
}
|
|
15198
|
+
set title(value) {
|
|
15199
|
+
this._title = value;
|
|
15200
|
+
this.searchPlaceholder = `SEARCH_${this._title}`;
|
|
15201
|
+
}
|
|
15202
|
+
get title() {
|
|
15203
|
+
return this._title;
|
|
15204
|
+
}
|
|
15205
|
+
showClass() {
|
|
15206
|
+
return true;
|
|
15207
|
+
}
|
|
15208
|
+
handleSearch(text) {
|
|
15209
|
+
this.search.emit(text);
|
|
15210
|
+
}
|
|
15211
|
+
}
|
|
15212
|
+
DialogHeaderSearchComponent.decorators = [
|
|
15213
|
+
{ type: Component, args: [{
|
|
15214
|
+
selector: "co-dialog-header-search",
|
|
15215
|
+
template: `
|
|
15216
|
+
<div class="dialog-header-search-wrapper">
|
|
15217
|
+
<div class="dialog-header-search-title" [textContent]="title | localize"></div>
|
|
15218
|
+
<co-input-search [placeholder]="searchPlaceholder | localize" [noIcon]="true" (modelChange)="handleSearch($event)"></co-input-search>
|
|
15219
|
+
</div>
|
|
15220
|
+
`,
|
|
15221
|
+
encapsulation: ViewEncapsulation.None
|
|
15222
|
+
},] }
|
|
15223
|
+
];
|
|
15224
|
+
DialogHeaderSearchComponent.propDecorators = {
|
|
15225
|
+
title: [{ type: Input }],
|
|
15226
|
+
search: [{ type: Output }],
|
|
15227
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-header-search",] }]
|
|
15228
|
+
};
|
|
15229
|
+
|
|
15230
|
+
class DialogHeaderSearchModule {
|
|
15231
|
+
}
|
|
15232
|
+
DialogHeaderSearchModule.decorators = [
|
|
15233
|
+
{ type: NgModule, args: [{
|
|
15234
|
+
imports: [
|
|
15235
|
+
CommonModule,
|
|
15236
|
+
PipeModule,
|
|
15237
|
+
InputSearchModule
|
|
15238
|
+
],
|
|
15239
|
+
declarations: [
|
|
15240
|
+
DialogHeaderSearchComponent
|
|
15241
|
+
],
|
|
15242
|
+
exports: [
|
|
15243
|
+
DialogHeaderSearchComponent
|
|
15244
|
+
]
|
|
15245
|
+
},] }
|
|
15246
|
+
];
|
|
15247
|
+
|
|
14701
15248
|
class DialogTransactionLineCommissionCodeModule {
|
|
14702
15249
|
}
|
|
14703
15250
|
DialogTransactionLineCommissionCodeModule.decorators = [
|
|
@@ -14706,7 +15253,9 @@ DialogTransactionLineCommissionCodeModule.decorators = [
|
|
|
14706
15253
|
CommonModule,
|
|
14707
15254
|
TransactionLineCommissionCodeModule,
|
|
14708
15255
|
CoDialogModule,
|
|
14709
|
-
PipeModule
|
|
15256
|
+
PipeModule,
|
|
15257
|
+
ButtonModule,
|
|
15258
|
+
DialogHeaderSearchModule
|
|
14710
15259
|
],
|
|
14711
15260
|
declarations: [
|
|
14712
15261
|
DialogTransactionLineCommissionCodeComponent
|
|
@@ -14717,6 +15266,48 @@ DialogTransactionLineCommissionCodeModule.decorators = [
|
|
|
14717
15266
|
},] }
|
|
14718
15267
|
];
|
|
14719
15268
|
|
|
15269
|
+
class DialogTransactionLineWarehouseModule {
|
|
15270
|
+
}
|
|
15271
|
+
DialogTransactionLineWarehouseModule.decorators = [
|
|
15272
|
+
{ type: NgModule, args: [{
|
|
15273
|
+
imports: [
|
|
15274
|
+
CommonModule,
|
|
15275
|
+
CoDialogModule,
|
|
15276
|
+
TransactionLineWarehouseModule,
|
|
15277
|
+
DialogHeaderSearchModule,
|
|
15278
|
+
ButtonModule,
|
|
15279
|
+
PipeModule
|
|
15280
|
+
],
|
|
15281
|
+
declarations: [
|
|
15282
|
+
DialogTransactionLineWarehouseComponent
|
|
15283
|
+
],
|
|
15284
|
+
exports: [
|
|
15285
|
+
DialogTransactionLineWarehouseComponent
|
|
15286
|
+
]
|
|
15287
|
+
},] }
|
|
15288
|
+
];
|
|
15289
|
+
|
|
15290
|
+
class DialogTransactionLineDeliveryMethodModule {
|
|
15291
|
+
}
|
|
15292
|
+
DialogTransactionLineDeliveryMethodModule.decorators = [
|
|
15293
|
+
{ type: NgModule, args: [{
|
|
15294
|
+
imports: [
|
|
15295
|
+
CommonModule,
|
|
15296
|
+
CoDialogModule,
|
|
15297
|
+
TransactionLineDeliveryMethodModule,
|
|
15298
|
+
DialogHeaderSearchModule,
|
|
15299
|
+
ButtonModule,
|
|
15300
|
+
PipeModule
|
|
15301
|
+
],
|
|
15302
|
+
declarations: [
|
|
15303
|
+
DialogTransactionLineDeliveryMethodComponent
|
|
15304
|
+
],
|
|
15305
|
+
exports: [
|
|
15306
|
+
DialogTransactionLineDeliveryMethodComponent
|
|
15307
|
+
]
|
|
15308
|
+
},] }
|
|
15309
|
+
];
|
|
15310
|
+
|
|
14720
15311
|
class TransactionLinesGridModule {
|
|
14721
15312
|
}
|
|
14722
15313
|
TransactionLinesGridModule.decorators = [
|
|
@@ -14730,7 +15321,9 @@ TransactionLinesGridModule.decorators = [
|
|
|
14730
15321
|
ButtonModule,
|
|
14731
15322
|
PriceDisplayPipeModule,
|
|
14732
15323
|
TransactionBaseGridModule,
|
|
14733
|
-
DialogTransactionLineCommissionCodeModule
|
|
15324
|
+
DialogTransactionLineCommissionCodeModule,
|
|
15325
|
+
DialogTransactionLineWarehouseModule,
|
|
15326
|
+
DialogTransactionLineDeliveryMethodModule
|
|
14734
15327
|
],
|
|
14735
15328
|
declarations: [
|
|
14736
15329
|
TransactionLinesGridComponent
|
|
@@ -18033,5 +18626,5 @@ TransactionLineGridModule.decorators = [
|
|
|
18033
18626
|
* Generated bundle index. Do not edit.
|
|
18034
18627
|
*/
|
|
18035
18628
|
|
|
18036
|
-
export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressComponent as ɵba, RelationBaseComponent as ɵbb, RelationAddressSelectModule as ɵbc, RelationAddressTileModule as ɵbd, TileModule as ɵbe, TileComponent as ɵbf, RelationAddressTileComponent as ɵbg, RelationAddressSelectComponent as ɵbh, BusinessObjectFactory as ɵbi, StepperModule as ɵbj, StepperComponent as ɵbk, StepperStepComponent as ɵbl, TransactionArticleTextModule as ɵbm, TransactionArticleTextComponent as ɵbn, TransactionArticleTextOverviewModule as ɵbo, TransactionArticleTextOverviewComponent as ɵbp, TransactionLineActionButtonsModule as ɵbq, TransactionLineActionButtonsComponent as ɵbr, EditableLabelModule as ɵbs, EditableLabelComponent as ɵbt, TransactionLinePriceModule as ɵbu, TransactionLinePriceComponent as ɵbv, TransactionLineFieldsBaseComponent as ɵbw, TransactionLineDescriptionModule as ɵbx, TransactionLineDescriptionComponent as ɵby, TransactionImageService as ɵbz, OptionsService as ɵc, AvatarModule as ɵca, AvatarComponent as ɵcb, SharedService as ɵcc, SharedConnectorService as ɵcd, DeliveryTypeTileModule as ɵce, DeliveryTypeTileComponent as ɵcf, PaymentModule as ɵcg, PaymentTileModule as ɵch, PaymentTileComponent as ɵci, PaymentQrCodeModule as ɵcj, PaymentQrCodeComponent as ɵck, PaymentComponent as ɵcl, PaymentService as ɵcm, RelationTypeModule as ɵcn, RelationTypeComponent as ɵco, RelationGeneralModule as ɵcp, RelationSuggestionsListModule as ɵcq, RelationSuggestionsListItemModule as ɵcr, RelationSuggestionsListItemComponent as ɵcs, RelationSuggestionsListComponent as ɵct, RelationGeneralComponent as ɵcu, RelationAddressesModule as ɵcv, RelationAddressesComponent as ɵcw, RelationContactDetailsModule as ɵcx, RelationContactDetailsComponent as ɵcy, RelationPreferencesModule as ɵcz, DictionaryService as ɵd, RelationPreferencesComponent as ɵda, TransactionHeaderBlockModule as ɵdb, TransactionHeaderBlockComponent as ɵdc, TransactionHeaderDeliveryDateModule as ɵdd, TransactionHeaderDeliveryDateComponent as ɵde, TransactionHeaderFieldsBaseComponent as ɵdf, TransactionHeaderDeliveryOptionsModule as ɵdg, TransactionHeaderDeliveryOptionsComponent as ɵdh, TransactionHeaderRemarksModule as ɵdi, TransactionHeaderRemarksComponent as ɵdj, TransactionHeaderReferenceModule as ɵdk, TransactionHeaderReferenceComponent as ɵdl, TransactionHeaderRelationReferenceModule as ɵdm, TransactionHeaderRelationReferenceComponent as ɵdn, TransactionHeaderDeliveryMethodModule as ɵdo, TransactionHeaderDeliveryMethodComponent as ɵdp, TransactionHeaderPreferredDeliveryDateModule as ɵdq, TransactionHeaderPreferredDeliveryDateComponent as ɵdr, TransactionBaseComponent as ɵds, TransactionHeaderPartialDeliveryModule as ɵdt, TransactionHeaderPartialDeliveryComponent as ɵdu, TransactionHeaderDownpaymentPercentageModule as ɵdv, TransactionHeaderDownpaymentPercentageComponent as ɵdw, TransactionHeaderDownpaymentAmountModule as ɵdx, TransactionHeaderDownpaymentAmountComponent as ɵdy, TransactionHeaderDefinitiveModule as ɵdz, TransactionConnectorService as ɵe, TransactionHeaderDefinitiveComponent as ɵea, TransactionHeaderBranchModule as ɵeb, TransactionHeaderBranchComponent as ɵec, TransactionHeaderAdministrativeRelationModule as ɵed, TransactionHeaderAdministrativeRelationComponent as ɵee, TransactionHeaderMarketingModule as ɵef, TransactionHeaderMarketingComponent as ɵeg, CheckoutOverviewRelationEditComponent as ɵeh, CheckoutOverviewDeliveryEditComponent as ɵei, CheckoutOverviewDeliveryAddressComponent as ɵej, CheckoutOverviewPaymentComponent as ɵek, CheckoutLoginComponent as ɵel, TransactionFilterCategoriesModule as ɵem, TransactionFilterCategoriesComponent as ɵen, TransactionHeaderPaymentModule as ɵeo, TransactionHeaderPaymentComponent as ɵep, TransactionLinesGridModule as ɵeq, TransactionBaseGridModule as ɵer, TransactionLineSidePanelModule as ɵes, TransactionLineSidePanelDefaultModule as ɵet, TransactionLinePriceListModule as ɵeu, TransactionLinePriceListComponent as ɵev, TransactionLineVatModule as ɵew, TransactionLineVatComponent as ɵex, TransactionLineQuantityModule as ɵey, TransactionLineQuantityComponent as ɵez, CollectionCacheService as ɵf, TransactionLineLineDiscountModule as ɵfa, TransactionLineLineDiscountComponent as ɵfb, TransactionLineDeliveryMethodModule as ɵfc, TransactionLineDeliveryMethodComponent as ɵfd, TransactionLineDeliveryDateModule as ɵfe, TransactionLineDeliveryDateComponent as ɵff, TransactionLineReferenceModule as ɵfg, TransactionLineReferenceComponent as ɵfh, TransactionLineCommissionCodeModule as ɵfi, TransactionLineCommissionCodeComponent as ɵfj, TransactionLineWarehouseModule as ɵfk, TransactionLineWarehouseComponent as ɵfl, TransactionLineDiscountAmountModule as ɵfm, TransactionLineDiscountAmountComponent as ɵfn, TransactionLineQuantumDiscountModule as ɵfo, TransactionLineQuantumDiscountComponent as ɵfp, TransactionLineSpecialDiscountModule as ɵfq, TransactionLineSpecialDiscountComponent as ɵfr, TransactionLineSupplierModule as ɵfs, TransactionLineSupplierComponent as ɵft, TransactionLineSidePanelDefaultComponent as ɵfu, TransactionReceivingGoodsHistoryModule as ɵfv, TransactionHistoryGridModule as ɵfw, TransactionHistoryGridStatusModule as ɵfx, TransactionHistoryGridStatusComponent as ɵfy, TransactionHistoryGridComponent as ɵfz, ArticleConnectorService as ɵg, TransactionReceivingGoodsHistoryComponent as ɵga, TransactionReceivingGoodsDetailsModule as ɵgb, TransactionReceivingGoodsDetailsComponent as ɵgc, ArticleService as ɵgd, TransactionButtonBarModule as ɵge, TransactionButtonBarComponent as ɵgf, TransactionMappingService as ɵgg, TransactionButtonBarButtonComponent as ɵgh, TransactionLineSidePanelPurchaseModule as ɵgi, DefaultOkCancelButtonsModule as ɵgj, DefaultOkCancelButtonsComponent as ɵgk, TransactionLineSidePanelPurchaseComponent as ɵgl, TransactionEventService as ɵgm, TransactionLineSidePanelComponent as ɵgn, TransactionBaseGridComponent as ɵgo, TransactionGridBaseComponent as ɵgp, DialogTransactionLineCommissionCodeModule as ɵgq, DialogTransactionLineCommissionCodeComponent as ɵgr, DialogTransactionLineBaseComponent as ɵgs, TransactionLinesGridComponent as ɵgt, DiscountModule as ɵgu, DiscountComponent as ɵgv, TransactionQuickAccessOverviewModule as ɵgw, TransactionQuickAccessOverviewComponent as ɵgx, TransactionOrderConfirmationGridModule as ɵgy, TransactionOrderConfirmationGridComponent as ɵgz, CoreModule as ɵh, TransactionReceivedGoodsGridModule as ɵha, TransactionReceivedGoodsGridComponent as ɵhb, ViewModeButtonsModule as ɵhc, ViewModeButtonsComponent as ɵhd, TransactionGridModule as ɵhe, TransactionGridComponent as ɵhf, TransactionTileModule as ɵhg, TransactionTileComponent as ɵhh, TransactionSearchResultModule as ɵhi, TransactionSearchSalesOrderTileModule as ɵhj, StatusBarModule as ɵhk, StatusBarComponent as ɵhl, TransactionSearchSalesOrderTileComponent as ɵhm, TransactionSearchTileBaseComponent as ɵhn, TransactionSearchPurchaseOrderTileModule as ɵho, TransactionSearchPurchaseOrderTileComponent as ɵhp, TransactionSearchSalesOrderGridModule as ɵhq, TransactionSearchSalesOrderGridComponent as ɵhr, TransactionSearchGridBaseComponent as ɵhs, TransactionSearchPurchaseOrderGridModule as ɵht, TransactionSearchPurchaseOrderGridComponent as ɵhu, TransactionSearchHeaderModule as ɵhv, TransactionSearchHeaderComponent as ɵhw, TransactionSearchGridModule as ɵhx, TransactionSearchGridComponent as ɵhy, TransactionSearchTileModule as ɵhz, ConfirmationDialogModule as ɵi, TransactionSearchTileComponent as ɵia, TransactionSearchResultComponent as ɵib, TransactionSalesOrderFilterModule as ɵic, TransactionSalesOrderFilterContentOrderModule as ɵid, TransactionSalesOrderFilterContentOrderComponent as ɵie, TransactionFilterContentBaseComponent as ɵif, FilterRequestService as ɵig, TransactionSalesOrderFilterContentLogisticsModule as ɵih, TransactionFilterHistoricStateModule as ɵii, TransactionFilterHistoricStateComponent as ɵij, TransactionSalesOrderFilterContentLogisticsComponent as ɵik, TransactionSalesOrderFilterContentArticleModule as ɵil, TransactionSalesOrderFilterContentArticleComponent as ɵim, TransactionSalesOrderFilterComponent as ɵin, TransactionFilterBaseComponent as ɵio, TransactionPurchaseOrderFilterModule as ɵip, TransactionPurchaseOrderFilterContentOrderModule as ɵiq, TransactionPurchaseOrderFilterContentOrderComponent as ɵir, TransactionPurchaseOrderFilterContentLogisticsModule as ɵis, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵit, TransactionPurchaseOrderFilterContentArticleModule as ɵiu, TransactionPurchaseOrderFilterContentArticleComponent as ɵiv, TransactionPurchaseOrderFilterComponent as ɵiw, TransactionFilterModule as ɵix, TransactionFilterComponent as ɵiy, PipeModule as ɵj, AppendPipe as ɵk, DeliveryTimePipe as ɵl, DateDurationPipe as ɵm, LocalizePipe as ɵn, CoCurrencyPipe as ɵo, SafeStylePipe as ɵp, SafeHtmlPipe as ɵq, ConfirmationDialogComponent as ɵr, DialogBaseComponent as ɵs, ImageDisplayComponent as ɵt, IconComponent as ɵu, IconCacheService as ɵv, CustomerGroupsComponent as ɵw, StockStatusIndicatorComponent as ɵx, LoaderComponent as ɵy, RelationAddressModule as ɵz };
|
|
18629
|
+
export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, CustomerGroupsComponent as ɵba, StockStatusIndicatorComponent as ɵbb, LoaderComponent as ɵbc, RelationAddressModule as ɵbd, RelationAddressComponent as ɵbe, RelationBaseComponent as ɵbf, RelationAddressSelectModule as ɵbg, RelationAddressTileModule as ɵbh, TileModule as ɵbi, TileComponent as ɵbj, RelationAddressTileComponent as ɵbk, RelationAddressSelectComponent as ɵbl, BusinessObjectFactory as ɵbm, StepperModule as ɵbn, StepperComponent as ɵbo, StepperStepComponent as ɵbp, TransactionArticleTextModule as ɵbq, TransactionArticleTextComponent as ɵbr, TransactionArticleTextOverviewModule as ɵbs, TransactionArticleTextOverviewComponent as ɵbt, TransactionLineActionButtonsModule as ɵbu, TransactionLineActionButtonsComponent as ɵbv, EditableLabelModule as ɵbw, EditableLabelComponent as ɵbx, TransactionLinePriceModule as ɵby, TransactionLinePriceComponent as ɵbz, OptionsService as ɵc, TransactionLineBaseComponent as ɵca, TransactionLineDescriptionModule as ɵcb, TransactionLineDescriptionComponent as ɵcc, TransactionImageService as ɵcd, AvatarModule as ɵce, AvatarComponent as ɵcf, SharedService as ɵcg, SharedConnectorService as ɵch, DeliveryTypeTileModule as ɵci, DeliveryTypeTileComponent as ɵcj, PaymentModule as ɵck, PaymentTileModule as ɵcl, PaymentTileComponent as ɵcm, PaymentQrCodeModule as ɵcn, PaymentQrCodeComponent as ɵco, PaymentComponent as ɵcp, PaymentService as ɵcq, RelationTypeModule as ɵcr, RelationTypeComponent as ɵcs, RelationGeneralModule as ɵct, RelationSuggestionsListModule as ɵcu, RelationSuggestionsListItemModule as ɵcv, RelationSuggestionsListItemComponent as ɵcw, RelationSuggestionsListComponent as ɵcx, RelationGeneralComponent as ɵcy, RelationAddressesModule as ɵcz, DictionaryService as ɵd, RelationAddressesComponent as ɵda, RelationContactDetailsModule as ɵdb, RelationContactDetailsComponent as ɵdc, RelationPreferencesModule as ɵdd, RelationPreferencesComponent as ɵde, TransactionHeaderBlockModule as ɵdf, TransactionHeaderBlockComponent as ɵdg, TransactionHeaderDeliveryDateModule as ɵdh, TransactionHeaderDeliveryDateComponent as ɵdi, TransactionHeaderFieldsBaseComponent as ɵdj, TransactionHeaderDeliveryOptionsModule as ɵdk, TransactionHeaderDeliveryOptionsComponent as ɵdl, TransactionHeaderRemarksModule as ɵdm, TransactionHeaderRemarksComponent as ɵdn, TransactionHeaderReferenceModule as ɵdo, TransactionHeaderReferenceComponent as ɵdp, TransactionHeaderRelationReferenceModule as ɵdq, TransactionHeaderRelationReferenceComponent as ɵdr, TransactionHeaderDeliveryMethodModule as ɵds, TransactionHeaderDeliveryMethodComponent as ɵdt, TransactionHeaderPreferredDeliveryDateModule as ɵdu, TransactionHeaderPreferredDeliveryDateComponent as ɵdv, TransactionBaseComponent as ɵdw, TransactionHeaderPartialDeliveryModule as ɵdx, TransactionHeaderPartialDeliveryComponent as ɵdy, TransactionHeaderDownpaymentPercentageModule as ɵdz, TransactionConnectorService as ɵe, TransactionHeaderDownpaymentPercentageComponent as ɵea, TransactionHeaderDownpaymentAmountModule as ɵeb, TransactionHeaderDownpaymentAmountComponent as ɵec, TransactionHeaderDefinitiveModule as ɵed, TransactionHeaderDefinitiveComponent as ɵee, TransactionHeaderBranchModule as ɵef, TransactionHeaderBranchComponent as ɵeg, TransactionHeaderAdministrativeRelationModule as ɵeh, TransactionHeaderAdministrativeRelationComponent as ɵei, TransactionHeaderMarketingModule as ɵej, TransactionHeaderMarketingComponent as ɵek, CheckoutOverviewRelationEditComponent as ɵel, CheckoutOverviewDeliveryEditComponent as ɵem, CheckoutOverviewDeliveryAddressComponent as ɵen, CheckoutOverviewPaymentComponent as ɵeo, CheckoutLoginComponent as ɵep, TransactionFilterCategoriesModule as ɵeq, TransactionFilterCategoriesComponent as ɵer, TransactionHeaderPaymentModule as ɵes, TransactionHeaderPaymentComponent as ɵet, TransactionLinesGridModule as ɵeu, TransactionBaseGridModule as ɵev, TransactionLineSidePanelModule as ɵew, TransactionLineSidePanelDefaultModule as ɵex, TransactionLinePriceListModule as ɵey, TransactionLinePriceListComponent as ɵez, CollectionCacheService as ɵf, TransactionLineVatModule as ɵfa, TransactionLineVatComponent as ɵfb, TransactionLineQuantityModule as ɵfc, TransactionLineQuantityComponent as ɵfd, TransactionLineLineDiscountModule as ɵfe, TransactionLineLineDiscountComponent as ɵff, TransactionLineDeliveryMethodModule as ɵfg, TransactionLineDeliveryMethodComponent as ɵfh, TransactionLineDeliveryDateModule as ɵfi, TransactionLineDeliveryDateComponent as ɵfj, TransactionLineReferenceModule as ɵfk, TransactionLineReferenceComponent as ɵfl, TransactionLineCommissionCodeModule as ɵfm, TransactionLineCommissionCodeComponent as ɵfn, TransactionLineWarehouseModule as ɵfo, TransactionLineWarehouseComponent as ɵfp, TransactionLineDiscountAmountModule as ɵfq, TransactionLineDiscountAmountComponent as ɵfr, TransactionLineQuantumDiscountModule as ɵfs, TransactionLineQuantumDiscountComponent as ɵft, TransactionLineSpecialDiscountModule as ɵfu, TransactionLineSpecialDiscountComponent as ɵfv, TransactionLineSupplierModule as ɵfw, TransactionLineSupplierComponent as ɵfx, TransactionLineSidePanelDefaultComponent as ɵfy, TransactionReceivingGoodsHistoryModule as ɵfz, ArticleConnectorService as ɵg, TransactionHistoryGridModule as ɵga, TransactionHistoryGridStatusModule as ɵgb, TransactionHistoryGridStatusComponent as ɵgc, TransactionHistoryGridComponent as ɵgd, TransactionReceivingGoodsHistoryComponent as ɵge, TransactionReceivingGoodsDetailsModule as ɵgf, TransactionReceivingGoodsDetailsComponent as ɵgg, ArticleService as ɵgh, TransactionButtonBarModule as ɵgi, TransactionButtonBarComponent as ɵgj, TransactionMappingService as ɵgk, TransactionButtonBarButtonComponent as ɵgl, TransactionLineSidePanelPurchaseModule as ɵgm, DefaultOkCancelButtonsModule as ɵgn, DefaultOkCancelButtonsComponent as ɵgo, TransactionLineSidePanelPurchaseComponent as ɵgp, TransactionEventService as ɵgq, TransactionLineSidePanelComponent as ɵgr, TransactionBaseGridComponent as ɵgs, TransactionGridBaseComponent as ɵgt, DialogTransactionLineCommissionCodeModule as ɵgu, DialogHeaderSearchModule as ɵgv, DialogHeaderSearchComponent as ɵgw, DialogTransactionLineCommissionCodeComponent as ɵgx, DialogTransactionLineBaseComponent as ɵgy, DialogTransactionLineWarehouseModule as ɵgz, CoreModule as ɵh, DialogTransactionLineWarehouseComponent as ɵha, DialogTransactionLineDeliveryMethodModule as ɵhb, DialogTransactionLineDeliveryMethodComponent as ɵhc, TransactionLinesGridComponent as ɵhd, DiscountModule as ɵhe, DiscountComponent as ɵhf, TransactionQuickAccessOverviewModule as ɵhg, TransactionQuickAccessOverviewComponent as ɵhh, TransactionOrderConfirmationGridModule as ɵhi, TransactionOrderConfirmationGridComponent as ɵhj, TransactionReceivedGoodsGridModule as ɵhk, TransactionReceivedGoodsGridComponent as ɵhl, ViewModeButtonsModule as ɵhm, ViewModeButtonsComponent as ɵhn, TransactionGridModule as ɵho, TransactionGridComponent as ɵhp, TransactionTileModule as ɵhq, TransactionTileComponent as ɵhr, TransactionSearchResultModule as ɵhs, TransactionSearchSalesOrderTileModule as ɵht, StatusBarModule as ɵhu, StatusBarComponent as ɵhv, TransactionSearchSalesOrderTileComponent as ɵhw, TransactionSearchTileBaseComponent as ɵhx, TransactionSearchPurchaseOrderTileModule as ɵhy, TransactionSearchPurchaseOrderTileComponent as ɵhz, ConfirmationDialogModule as ɵi, TransactionSearchSalesOrderGridModule as ɵia, TransactionSearchSalesOrderGridComponent as ɵib, TransactionSearchGridBaseComponent as ɵic, TransactionSearchPurchaseOrderGridModule as ɵid, TransactionSearchPurchaseOrderGridComponent as ɵie, TransactionSearchHeaderModule as ɵif, TransactionSearchHeaderComponent as ɵig, TransactionSearchGridModule as ɵih, TransactionSearchGridComponent as ɵii, TransactionSearchTileModule as ɵij, TransactionSearchTileComponent as ɵik, TransactionSearchResultComponent as ɵil, TransactionSalesOrderFilterModule as ɵim, TransactionSalesOrderFilterContentOrderModule as ɵin, TransactionSalesOrderFilterContentOrderComponent as ɵio, TransactionFilterContentBaseComponent as ɵip, FilterRequestService as ɵiq, TransactionSalesOrderFilterContentLogisticsModule as ɵir, TransactionFilterHistoricStateModule as ɵis, TransactionFilterHistoricStateComponent as ɵit, TransactionSalesOrderFilterContentLogisticsComponent as ɵiu, TransactionSalesOrderFilterContentArticleModule as ɵiv, TransactionSalesOrderFilterContentArticleComponent as ɵiw, TransactionSalesOrderFilterComponent as ɵix, TransactionFilterBaseComponent as ɵiy, TransactionPurchaseOrderFilterModule as ɵiz, PipeModule as ɵj, TransactionPurchaseOrderFilterContentOrderModule as ɵja, TransactionPurchaseOrderFilterContentOrderComponent as ɵjb, TransactionPurchaseOrderFilterContentLogisticsModule as ɵjc, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵjd, TransactionPurchaseOrderFilterContentArticleModule as ɵje, TransactionPurchaseOrderFilterContentArticleComponent as ɵjf, TransactionPurchaseOrderFilterComponent as ɵjg, TransactionFilterModule as ɵjh, TransactionFilterComponent as ɵji, AppendPipe as ɵk, DeliveryTimePipe as ɵl, DateDurationPipe as ɵm, LocalizePipe as ɵn, CoCurrencyPipe as ɵo, SafeStylePipe as ɵp, SafeHtmlPipe as ɵq, ConfirmationDialogComponent as ɵr, DialogBaseComponent as ɵs, CharacteristicAnswerModule as ɵt, CharacteristicAnswerComponent as ɵu, WarehouseModule as ɵv, WarehouseComponent as ɵw, ImageDisplayComponent as ɵx, IconComponent as ɵy, IconCacheService as ɵz };
|
|
18037
18630
|
//# sourceMappingURL=colijnit-transaction.js.map
|