@colijnit/transaction 12.1.71 → 12.1.73
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 +391 -147
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/assets/dictionary/text.properties.js +37 -1
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +17 -4
- package/esm2015/lib/component/checkout/checkout.component.js +11 -6
- package/esm2015/lib/component/core/base/transaction-filter-content-base.component.js +3 -2
- package/esm2015/lib/component/core/base/transaction-line-base.component.js +4 -3
- package/esm2015/lib/component/relation/relation-base.component.js +4 -1
- package/esm2015/lib/component/relation/relation-general/relation-general.component.js +6 -4
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +10 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-button.component.js +14 -4
- package/esm2015/lib/component/transaction-search/transaction-filter-content/enum/search-placeholder.enum.js +27 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-article/transaction-purchase-order-filter-content-article.component.js +7 -3
- package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-logistics/transaction-purchase-order-filter-content-logistics.component.js +6 -3
- package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-order/transaction-purchase-order-filter-content-order.component.js +8 -3
- package/esm2015/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-article/transaction-sales-order-filter-content-article.component.js +23 -18
- package/esm2015/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-logistics/transaction-sales-order-filter-content-logistics.component.js +133 -130
- package/esm2015/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-order/transaction-sales-order-filter-content-order.component.js +44 -38
- package/esm2015/lib/component/transaction-search/transaction-filter-item/transaction-filter-item.component.js +3 -2
- package/esm2015/lib/service/error.service.js +17 -1
- package/esm2015/lib/service/pending-reason.service.js +17 -11
- package/esm2015/lib/service/relation-connector.service.js +31 -1
- package/esm2015/lib/service/relation.service.js +40 -2
- package/esm2015/lib/service/transaction-connector-adapter.service.js +17 -1
- package/esm2015/lib/service/transaction-connector.service.js +6 -1
- package/esm2015/lib/service/transaction.service.js +14 -5
- package/fesm2015/colijnit-transaction.js +561 -315
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +8 -4
- package/lib/component/checkout/checkout.component.d.ts +2 -0
- package/lib/component/core/base/transaction-filter-content-base.component.d.ts +2 -1
- package/lib/component/relation/relation-base.component.d.ts +3 -1
- package/lib/component/relation/relation-general/relation-general.component.d.ts +2 -0
- package/lib/component/relation/relation-general/style/_layout.scss +1 -0
- package/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.d.ts +1 -0
- package/lib/component/transaction-line-fields/transaction-line-supplier-button.component.d.ts +1 -0
- package/lib/component/transaction-search/transaction-filter-content/enum/search-placeholder.enum.d.ts +25 -0
- package/lib/component/transaction-search/transaction-filter-item/transaction-filter-item.component.d.ts +1 -1
- package/lib/service/pending-reason.service.d.ts +8 -7
- package/lib/service/relation-connector.service.d.ts +2 -0
- package/lib/service/relation.service.d.ts +7 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/lib/style/transaction-globals.scss +3 -43
- package/package.json +3 -3
|
@@ -63,15 +63,18 @@ import { SharedService as SharedService$1, sendMethodsWithIcon, KeyPadModule, St
|
|
|
63
63
|
import { CustomerFullObject } from '@colijnit/relationapi/build/model/customer-full-object.bo';
|
|
64
64
|
import { RelationStatus } from '@colijnit/articleapi/build/enum/relation-status.enum';
|
|
65
65
|
import { RelationKind } from '@colijnit/articleapi/build/enum/relation-kind.enum';
|
|
66
|
+
import { TransactionKind } from '@colijnit/transactionapi/build/enum/transaction-kind.enum';
|
|
66
67
|
import { RelationApi } from '@colijnit/relationapi';
|
|
67
68
|
import { SupplierFullObject } from '@colijnit/relationapi/build/model/supplier-full-object.bo';
|
|
68
69
|
import { RelationListObject } from '@colijnit/relationapi/build/model/relation-list-object.bo';
|
|
69
70
|
import { BranchLov } from '@colijnit/relationapi/build/model/branch-lov.bo';
|
|
70
|
-
import {
|
|
71
|
+
import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
|
|
72
|
+
import { Relation } from '@colijnit/relationapi/build/model/relation.bo';
|
|
71
73
|
import { CreateTransactionRequest } from '@colijnit/transactionapi/build/model/create-transaction-request';
|
|
72
74
|
import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputTextComponent, InputListboxModule, DropDownModule, InputSearchModule, ColumnAlign, SimpleGridColumnDirective, ObserveVisibilityModule, ColorSequenceService, PriceDisplayPipeModule, InputDatePickerModule, Carousel3dModule, CarouselModule, FilterPipeModule, InputDatePickerComponent, InputTextareaComponent, InputTextareaModule, InputNumberPickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, ClickoutsideModule, CheckmarkOverlayModule, CoOrientation, CoDirection, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
|
|
73
75
|
import { FlexModule } from '@angular/flex-layout';
|
|
74
76
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
77
|
+
import { RelationKind as RelationKind$1 } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
75
78
|
import { AddressType } from '@colijnit/relationapi/build/enum/address-type.enum';
|
|
76
79
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
77
80
|
import { DateUtils } from '@colijnit/ioneconnector/build/utils/date-utils';
|
|
@@ -102,8 +105,6 @@ import { PrintPurchaseOrderRequest } from '@colijnit/mainapi/build/model/print-p
|
|
|
102
105
|
import { PdfPurchaseOrderRequest } from '@colijnit/mainapi/build/model/pdf-purchase-order-request';
|
|
103
106
|
import { RelationRequest } from '@colijnit/relationapi/build/model/relation-request';
|
|
104
107
|
import { CoDocument } from '@colijnit/sharedapi/build/model/co-document.bo';
|
|
105
|
-
import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
|
|
106
|
-
import { Relation } from '@colijnit/relationapi/build/model/relation.bo';
|
|
107
108
|
import { RelationNameKind } from '@colijnit/relationapi/build/enum/relation-name-kind.enum';
|
|
108
109
|
import { GenderType } from '@colijnit/relationapi/build/enum/gender-type.enum';
|
|
109
110
|
import { FunctionUtils } from '@colijnit/ioneconnector/build/utils/function-utils';
|
|
@@ -111,7 +112,6 @@ import { ContactOption } from '@colijnit/relationapi/build/model/contact-option.
|
|
|
111
112
|
import { BusinessObjectUtils } from '@colijnit/ioneconnector/build/utils/business-object-utils';
|
|
112
113
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
113
114
|
import { RelationSmallObject } from '@colijnit/relationapi/build/model/relation-small-object.bo';
|
|
114
|
-
import { RelationKind as RelationKind$1 } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
115
115
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo';
|
|
116
116
|
import { PurchaseOrderLineReceiptCorrectionDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo';
|
|
117
117
|
import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-purchase-portal-line';
|
|
@@ -426,6 +426,24 @@ class Dictionary {
|
|
|
426
426
|
"SEARCH_NUMBER_SUPPLIER_OR_DATE": "Zoeken op nummer, leverancier of datum",
|
|
427
427
|
"SEARCH_PRICE_LIST": "Zoek prijslijst",
|
|
428
428
|
"SEARCH_VAT": "Zoek btw",
|
|
429
|
+
"SEARCH_ARTICLE_NR": "Zoek artikelnummer",
|
|
430
|
+
"SEARCH_BATCH_NUMBER": "Zoek batchnummer",
|
|
431
|
+
"SEARCH_BRANCH": "Zoek filiaal",
|
|
432
|
+
"SEARCH_COMMISSION_CODE": "Zoek commissiecode",
|
|
433
|
+
"SEARCH_CUSTOMER_GROUP": "Zoek klantgroep",
|
|
434
|
+
"SEARCH_CUSTOMER_NAME": "Zoek klantnaam",
|
|
435
|
+
"SEARCH_EXCEEDENCE_CODE": "Zoek uitloopcode",
|
|
436
|
+
"SEARCH_MAIN_ARTICLE": "Zoek hoofdartikel",
|
|
437
|
+
"SEARCH_ONHOLD": "Zoek gepauzeerd",
|
|
438
|
+
"SEARCH_OWN_REFERENCE": "Zoek eigen referentie",
|
|
439
|
+
"SEARCH_PURCHASENUMBER": "Zoek inkoopnummer",
|
|
440
|
+
"SEARCH_PURCHASEPERSON": "Zoek inkoper",
|
|
441
|
+
"SEARCH_SALESPERSON": "Zoek verkoper",
|
|
442
|
+
"SEARCH_SERIAL_NUMBER": "Zoek serienummer",
|
|
443
|
+
"SEARCH_SOURCE_WAREHOUSE": "Zoek bronmagazijn",
|
|
444
|
+
"SEARCH_SUPPLIER": "Zoek leverancier",
|
|
445
|
+
"SEARCH_TAGS": "Zoek tags",
|
|
446
|
+
"SEARCH_TURNOVER_GROUP": "Zoek omzetgroep",
|
|
429
447
|
"SEARCH_WAREHOUSE": "Zoek magazijn",
|
|
430
448
|
"SELECT": "Selecteren",
|
|
431
449
|
"SELECT_A": "Selecteer een",
|
|
@@ -773,6 +791,24 @@ class Dictionary {
|
|
|
773
791
|
"SEARCH_NUMBER_SUPPLIER_OR_DATE": "Search for number, supplier or date",
|
|
774
792
|
"SEARCH_PRICE_LIST": "Search pricelist",
|
|
775
793
|
"SEARCH_VAT": "Search vat",
|
|
794
|
+
"SEARCH_ARTICLE_NR": "Search article number",
|
|
795
|
+
"SEARCH_BATCH_NUMBER": "Search batch number",
|
|
796
|
+
"SEARCH_BRANCH": "Search branch",
|
|
797
|
+
"SEARCH_COMMISSION_CODE": "Search commission code",
|
|
798
|
+
"SEARCH_CUSTOMER_GROUP": "Search customer group",
|
|
799
|
+
"SEARCH_CUSTOMER_NAME": "Search customer name",
|
|
800
|
+
"SEARCH_EXCEEDENCE_CODE": "Search exceedence code",
|
|
801
|
+
"SEARCH_MAIN_ARTICLE": "Search main article",
|
|
802
|
+
"SEARCH_ONHOLD": "Search on hold",
|
|
803
|
+
"SEARCH_OWN_REFERENCE": "Search own reference",
|
|
804
|
+
"SEARCH_PURCHASENUMBER": "Search purchase number",
|
|
805
|
+
"SEARCH_PURCHASEPERSON": "Search purchase person",
|
|
806
|
+
"SEARCH_SALESPERSON": "Search sales person",
|
|
807
|
+
"SEARCH_SERIAL_NUMBER": "Search serial number",
|
|
808
|
+
"SEARCH_SOURCE_WAREHOUSE": "Search source warehouse",
|
|
809
|
+
"SEARCH_SUPPLIER": "Search supplier",
|
|
810
|
+
"SEARCH_TAGS": "Search tags",
|
|
811
|
+
"SEARCH_TURNOVER_GROUP": "Search turnover group",
|
|
776
812
|
"SEARCH_WAREHOUSE": "Search warehouse",
|
|
777
813
|
"SELECT": "Select",
|
|
778
814
|
"SELECT_A": "Select a",
|
|
@@ -1753,7 +1789,8 @@ TransactionLineBaseComponent.decorators = [
|
|
|
1753
1789
|
];
|
|
1754
1790
|
TransactionLineBaseComponent.propDecorators = {
|
|
1755
1791
|
transactionLine: [{ type: Input }],
|
|
1756
|
-
transactionInfo: [{ type: Input }]
|
|
1792
|
+
transactionInfo: [{ type: Input }],
|
|
1793
|
+
readonly: [{ type: HostBinding, args: ['class.read-only',] }]
|
|
1757
1794
|
};
|
|
1758
1795
|
|
|
1759
1796
|
class DialogTransactionLineBaseComponent extends TransactionLineBaseComponent {
|
|
@@ -2174,6 +2211,22 @@ class ErrorService {
|
|
|
2174
2211
|
}
|
|
2175
2212
|
});
|
|
2176
2213
|
}
|
|
2214
|
+
else if (response.validationResult.fieldValidations) {
|
|
2215
|
+
messages.push(this._messageAsValidationError('Validation error'));
|
|
2216
|
+
for (let key in response.validationResult.fieldValidations) {
|
|
2217
|
+
if (response.validationResult.fieldValidations.hasOwnProperty(key)) {
|
|
2218
|
+
if (response.validationResult.fieldValidations[key].messages && response.validationResult.fieldValidations[key].messages.length > 0) {
|
|
2219
|
+
for (let i = 0; i < response.validationResult.fieldValidations[key].messages.length; i++) {
|
|
2220
|
+
const messageCode = {
|
|
2221
|
+
value: response.validationResult.fieldValidations[key].messages[i].fieldId,
|
|
2222
|
+
defaultStr: response.validationResult.fieldValidations[key].messages[i].message
|
|
2223
|
+
};
|
|
2224
|
+
messagesDetails.push(this._messageDetails(messageCode));
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2177
2230
|
}
|
|
2178
2231
|
messages.push('</div>');
|
|
2179
2232
|
return this.showError(messages.join(''), messagesDetails.length > 0 ? messagesDetails.join('') : undefined);
|
|
@@ -3206,6 +3259,22 @@ class TransactionConnectorAdapterService {
|
|
|
3206
3259
|
}
|
|
3207
3260
|
});
|
|
3208
3261
|
}
|
|
3262
|
+
changeHeaderTransactionDeliveryDateDefinitive(uuid, definitive) {
|
|
3263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3264
|
+
const request = {
|
|
3265
|
+
transactionUuid: uuid,
|
|
3266
|
+
newDeliveryDateDefinitive: definitive
|
|
3267
|
+
};
|
|
3268
|
+
const response = yield this.connector.changeHeaderDeliveryDateDefinitive(request);
|
|
3269
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3270
|
+
return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
|
|
3271
|
+
}
|
|
3272
|
+
else {
|
|
3273
|
+
this._handleExceptionFromResponse(response);
|
|
3274
|
+
return null;
|
|
3275
|
+
}
|
|
3276
|
+
});
|
|
3277
|
+
}
|
|
3209
3278
|
changeHeaderTransactionRemark(uuid, remark) {
|
|
3210
3279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3211
3280
|
const request = {
|
|
@@ -4338,6 +4407,11 @@ class TransactionConnectorService {
|
|
|
4338
4407
|
return this._adapterService.changeHeaderTransactionDeliveryDate(uuid, date);
|
|
4339
4408
|
});
|
|
4340
4409
|
}
|
|
4410
|
+
changeHeaderTransactionDeliveryDateDefinitive(uuid, definitive) {
|
|
4411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4412
|
+
return this._adapterService.changeHeaderTransactionDeliveryDateDefinitive(uuid, definitive);
|
|
4413
|
+
});
|
|
4414
|
+
}
|
|
4341
4415
|
changeHeaderTransactionRemark(uuid, remark) {
|
|
4342
4416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4343
4417
|
return this._adapterService.changeHeaderTransactionRemark(uuid, remark);
|
|
@@ -4881,6 +4955,36 @@ class RelationConnectorService {
|
|
|
4881
4955
|
});
|
|
4882
4956
|
});
|
|
4883
4957
|
}
|
|
4958
|
+
insertSupplier(relation) {
|
|
4959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4960
|
+
return new Promise((resolve, reject) => {
|
|
4961
|
+
return this.connector.insertSupplier(relation).then((result) => {
|
|
4962
|
+
if (result.validationResult && result.validationResult.success) {
|
|
4963
|
+
resolve(this._boFactory.makeWithRawBackendData(SupplierFullObject, result.resultObject));
|
|
4964
|
+
}
|
|
4965
|
+
else {
|
|
4966
|
+
this._handleExceptionFromResponse(result);
|
|
4967
|
+
reject(null);
|
|
4968
|
+
}
|
|
4969
|
+
});
|
|
4970
|
+
});
|
|
4971
|
+
});
|
|
4972
|
+
}
|
|
4973
|
+
updateSupplier(relation) {
|
|
4974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4975
|
+
return new Promise((resolve, reject) => {
|
|
4976
|
+
return this.connector.updateSupplier(relation).then((result) => {
|
|
4977
|
+
if (result.validationResult && result.validationResult.success) {
|
|
4978
|
+
resolve(this._boFactory.makeWithRawBackendData(SupplierFullObject, result.resultObject));
|
|
4979
|
+
}
|
|
4980
|
+
else {
|
|
4981
|
+
this._handleExceptionFromResponse(result);
|
|
4982
|
+
reject(null);
|
|
4983
|
+
}
|
|
4984
|
+
});
|
|
4985
|
+
});
|
|
4986
|
+
});
|
|
4987
|
+
}
|
|
4884
4988
|
_handleExceptionFromResponse(result) {
|
|
4885
4989
|
this._errorService.showValidationError(result);
|
|
4886
4990
|
}
|
|
@@ -4897,8 +5001,149 @@ RelationConnectorService.ctorParameters = () => [
|
|
|
4897
5001
|
{ type: TransactionEventService }
|
|
4898
5002
|
];
|
|
4899
5003
|
|
|
5004
|
+
class RelationService {
|
|
5005
|
+
constructor(_adapterService, _selectMultipleCacheService, _selectSingleCacheService, _selectMultipleParameterizedCacheService) {
|
|
5006
|
+
this._adapterService = _adapterService;
|
|
5007
|
+
this._selectMultipleCacheService = _selectMultipleCacheService;
|
|
5008
|
+
this._selectSingleCacheService = _selectSingleCacheService;
|
|
5009
|
+
this._selectMultipleParameterizedCacheService = _selectMultipleParameterizedCacheService;
|
|
5010
|
+
this._lockMethods = new Map([
|
|
5011
|
+
[RelationKind.Customer, (relationNr) => this._lockCustomerFullObject(relationNr)],
|
|
5012
|
+
[RelationKind.Supplier, (relationNr) => this._lockSupplierFullObject(relationNr)],
|
|
5013
|
+
[RelationKind.Personnel, (relationNr) => this._lockEmployeeFullObject(relationNr)],
|
|
5014
|
+
[RelationKind.Branch, (relationNr) => this._lockBranchFullObject(relationNr)],
|
|
5015
|
+
[RelationKind.Company, (relationNr) => this._lockCompanyFullObject(relationNr)],
|
|
5016
|
+
[RelationKind.ContactPerson, (relationNr) => this._lockContactPerson(relationNr)],
|
|
5017
|
+
]);
|
|
5018
|
+
this._getMethods = new Map([
|
|
5019
|
+
[RelationKind.Customer, (relationNr) => this.getCustomerFullObject(relationNr)],
|
|
5020
|
+
[RelationKind.Supplier, (relationNr) => this.getSupplierFullObject(relationNr)]
|
|
5021
|
+
]);
|
|
5022
|
+
this._updateMethods = new Map([
|
|
5023
|
+
[RelationKind.Customer, (relation) => this.updateCustomer(relation)],
|
|
5024
|
+
[RelationKind.Supplier, (relation) => this.updateSupplier(relation)]
|
|
5025
|
+
]);
|
|
5026
|
+
this._insertMethods = new Map([
|
|
5027
|
+
[RelationKind.Customer, (relation) => this.insertCustomer(relation)],
|
|
5028
|
+
[RelationKind.Supplier, (relation) => this.insertSupplier(relation)]
|
|
5029
|
+
]);
|
|
5030
|
+
}
|
|
5031
|
+
getCustomerFullObject(relationNo) {
|
|
5032
|
+
return this._selectSingleCacheService.requestCache(CustomerFullObject, relationNo, () => {
|
|
5033
|
+
return this._adapterService.getCustomerFullObject(relationNo);
|
|
5034
|
+
}).getValue();
|
|
5035
|
+
}
|
|
5036
|
+
getSupplierFullObject(relationNo) {
|
|
5037
|
+
return this._selectSingleCacheService.requestCache(SupplierFullObject, relationNo, () => {
|
|
5038
|
+
return this._adapterService.getSupplierFullObject(relationNo);
|
|
5039
|
+
}).getValue();
|
|
5040
|
+
}
|
|
5041
|
+
insertCustomer(relation) {
|
|
5042
|
+
return this._adapterService.insertCustomer(relation);
|
|
5043
|
+
}
|
|
5044
|
+
updateCustomer(relation) {
|
|
5045
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5046
|
+
return this._adapterService.updateCustomer(relation);
|
|
5047
|
+
});
|
|
5048
|
+
}
|
|
5049
|
+
insertSupplier(relation) {
|
|
5050
|
+
return this._adapterService.insertSupplier(relation);
|
|
5051
|
+
}
|
|
5052
|
+
updateSupplier(relation) {
|
|
5053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5054
|
+
return this._adapterService.updateSupplier(relation);
|
|
5055
|
+
});
|
|
5056
|
+
}
|
|
5057
|
+
getRelationListObjects(relationRequest) {
|
|
5058
|
+
return this._adapterService.getRelationListObjects(relationRequest);
|
|
5059
|
+
}
|
|
5060
|
+
getRelationNumber(relationId) {
|
|
5061
|
+
return this._adapterService.getRelationNumber(relationId);
|
|
5062
|
+
}
|
|
5063
|
+
getBranches(branchNr) {
|
|
5064
|
+
return this._selectMultipleParameterizedCacheService.requestCache(BranchLov, (branchNr) => {
|
|
5065
|
+
return this._adapterService.getBranches(branchNr);
|
|
5066
|
+
}).getValue(branchNr);
|
|
5067
|
+
}
|
|
5068
|
+
insertRelation(relationKind, relation) {
|
|
5069
|
+
const insertMethod = this._insertMethods.get(relationKind);
|
|
5070
|
+
if (insertMethod) {
|
|
5071
|
+
return insertMethod.call(this, relation);
|
|
5072
|
+
}
|
|
5073
|
+
else {
|
|
5074
|
+
const result = new Relation();
|
|
5075
|
+
return Promise.resolve(result);
|
|
5076
|
+
}
|
|
5077
|
+
}
|
|
5078
|
+
updateRelation(relationKind, relation) {
|
|
5079
|
+
const updateMethod = this._updateMethods.get(relationKind);
|
|
5080
|
+
if (updateMethod) {
|
|
5081
|
+
return updateMethod.call(this, relation);
|
|
5082
|
+
}
|
|
5083
|
+
else {
|
|
5084
|
+
const result = new Relation();
|
|
5085
|
+
return Promise.resolve(result);
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
lockRelation(relationKind, relationNr) {
|
|
5089
|
+
const lockMethod = this._lockMethods.get(relationKind);
|
|
5090
|
+
if (lockMethod) {
|
|
5091
|
+
return lockMethod.call(this, relationNr);
|
|
5092
|
+
}
|
|
5093
|
+
else {
|
|
5094
|
+
const result = new ValidationResult();
|
|
5095
|
+
result.success = false;
|
|
5096
|
+
return Promise.resolve(result);
|
|
5097
|
+
}
|
|
5098
|
+
}
|
|
5099
|
+
getRelation(relationKind, relationNr) {
|
|
5100
|
+
const getMethod = this._getMethods.get(relationKind);
|
|
5101
|
+
if (getMethod) {
|
|
5102
|
+
return getMethod.call(this, relationNr);
|
|
5103
|
+
}
|
|
5104
|
+
else {
|
|
5105
|
+
const result = new ValidationResult();
|
|
5106
|
+
result.success = false;
|
|
5107
|
+
return Promise.resolve(null);
|
|
5108
|
+
}
|
|
5109
|
+
}
|
|
5110
|
+
commit() {
|
|
5111
|
+
return this._adapterService.commit();
|
|
5112
|
+
}
|
|
5113
|
+
_lockCustomerFullObject(relationNr) {
|
|
5114
|
+
return this._adapterService.lockCustomerFullObject(relationNr);
|
|
5115
|
+
}
|
|
5116
|
+
_lockSupplierFullObject(relationNr) {
|
|
5117
|
+
return this._adapterService.lockSupplierFullObject(relationNr);
|
|
5118
|
+
}
|
|
5119
|
+
_lockEmployeeFullObject(relationNr) {
|
|
5120
|
+
return this._adapterService.lockEmployeeFullObject(relationNr);
|
|
5121
|
+
}
|
|
5122
|
+
_lockBranchFullObject(relationNr) {
|
|
5123
|
+
return this._adapterService.lockBranchFullObject(relationNr);
|
|
5124
|
+
}
|
|
5125
|
+
_lockCompanyFullObject(relationNr) {
|
|
5126
|
+
return this._adapterService.lockCompanyFullObject(relationNr);
|
|
5127
|
+
}
|
|
5128
|
+
_lockContactPerson(relationNr) {
|
|
5129
|
+
return this._adapterService.lockContactPerson(relationNr);
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
RelationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function RelationService_Factory() { return new RelationService(i0.ɵɵinject(RelationConnectorService), i0.ɵɵinject(SelectMultipleCacheService), i0.ɵɵinject(SelectSingleCacheService), i0.ɵɵinject(SelectMultipleParameterizedCacheService)); }, token: RelationService, providedIn: "root" });
|
|
5133
|
+
RelationService.decorators = [
|
|
5134
|
+
{ type: Injectable, args: [{
|
|
5135
|
+
providedIn: "root"
|
|
5136
|
+
},] }
|
|
5137
|
+
];
|
|
5138
|
+
RelationService.ctorParameters = () => [
|
|
5139
|
+
{ type: RelationConnectorService },
|
|
5140
|
+
{ type: SelectMultipleCacheService },
|
|
5141
|
+
{ type: SelectSingleCacheService },
|
|
5142
|
+
{ type: SelectMultipleParameterizedCacheService }
|
|
5143
|
+
];
|
|
5144
|
+
|
|
4900
5145
|
class PendingReasonService {
|
|
4901
|
-
constructor(options, dialogService, connector, sharedService, articleConnector, dictionaryService, transactionEventService,
|
|
5146
|
+
constructor(options, dialogService, connector, sharedService, articleConnector, dictionaryService, transactionEventService, relationService) {
|
|
4902
5147
|
this.options = options;
|
|
4903
5148
|
this.dialogService = dialogService;
|
|
4904
5149
|
this.connector = connector;
|
|
@@ -4906,7 +5151,7 @@ class PendingReasonService {
|
|
|
4906
5151
|
this.articleConnector = articleConnector;
|
|
4907
5152
|
this.dictionaryService = dictionaryService;
|
|
4908
5153
|
this.transactionEventService = transactionEventService;
|
|
4909
|
-
this.
|
|
5154
|
+
this.relationService = relationService;
|
|
4910
5155
|
this.logout = new Subject();
|
|
4911
5156
|
this.transactionUpdated = new BehaviorSubject(undefined);
|
|
4912
5157
|
this.relationUpdated = new BehaviorSubject(undefined);
|
|
@@ -4917,7 +5162,7 @@ class PendingReasonService {
|
|
|
4917
5162
|
this.purchasePortalLine = [];
|
|
4918
5163
|
this.docDeliveryBatch = new DocDeliveryBatch();
|
|
4919
5164
|
this.articleAmount = 0;
|
|
4920
|
-
this._relation = new
|
|
5165
|
+
this._relation = new Relation();
|
|
4921
5166
|
}
|
|
4922
5167
|
set relation(value) {
|
|
4923
5168
|
if (value) {
|
|
@@ -4936,6 +5181,11 @@ class PendingReasonService {
|
|
|
4936
5181
|
this.transactionEventService.connectionInitialized.next(true);
|
|
4937
5182
|
});
|
|
4938
5183
|
}
|
|
5184
|
+
resetCurrentTransaction() {
|
|
5185
|
+
this.currentTransaction = new TransactionInfoResponse();
|
|
5186
|
+
this._relation = new CustomerFullObject();
|
|
5187
|
+
this.articleAmount = 0;
|
|
5188
|
+
}
|
|
4939
5189
|
cancelAddTransactionLine(lineUuid, remember = true) {
|
|
4940
5190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4941
5191
|
return new Promise((resolve, reject) => {
|
|
@@ -5138,14 +5388,14 @@ class PendingReasonService {
|
|
|
5138
5388
|
}
|
|
5139
5389
|
_getRelation(relation) {
|
|
5140
5390
|
if (relation) {
|
|
5141
|
-
this.
|
|
5391
|
+
this.relationService.getRelationNumber(relation.relationId).then((relationNr) => {
|
|
5142
5392
|
if (relation.relationType === RelationKind.Customer) {
|
|
5143
|
-
this.
|
|
5393
|
+
this.relationService.getCustomerFullObject(parseInt(relationNr, 0)).then((customer) => {
|
|
5144
5394
|
this.relation = customer;
|
|
5145
5395
|
});
|
|
5146
5396
|
}
|
|
5147
5397
|
else if (relation.relationType === RelationKind.Supplier) {
|
|
5148
|
-
this.
|
|
5398
|
+
this.relationService.getSupplierFullObject(parseInt(relationNr, 0)).then((supplier) => {
|
|
5149
5399
|
this.relation = supplier;
|
|
5150
5400
|
});
|
|
5151
5401
|
}
|
|
@@ -5153,7 +5403,7 @@ class PendingReasonService {
|
|
|
5153
5403
|
}
|
|
5154
5404
|
}
|
|
5155
5405
|
}
|
|
5156
|
-
PendingReasonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(DialogService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(i4.SharedService), i0.ɵɵinject(ArticleConnectorService), i0.ɵɵinject(DictionaryService), i0.ɵɵinject(TransactionEventService), i0.ɵɵinject(
|
|
5406
|
+
PendingReasonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(DialogService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(i4.SharedService), i0.ɵɵinject(ArticleConnectorService), i0.ɵɵinject(DictionaryService), i0.ɵɵinject(TransactionEventService), i0.ɵɵinject(RelationService)); }, token: PendingReasonService, providedIn: "root" });
|
|
5157
5407
|
PendingReasonService.decorators = [
|
|
5158
5408
|
{ type: Injectable, args: [{
|
|
5159
5409
|
providedIn: "root"
|
|
@@ -5167,7 +5417,7 @@ PendingReasonService.ctorParameters = () => [
|
|
|
5167
5417
|
{ type: ArticleConnectorService },
|
|
5168
5418
|
{ type: DictionaryService },
|
|
5169
5419
|
{ type: TransactionEventService },
|
|
5170
|
-
{ type:
|
|
5420
|
+
{ type: RelationService }
|
|
5171
5421
|
];
|
|
5172
5422
|
|
|
5173
5423
|
class TransactionService extends PendingReasonService {
|
|
@@ -5258,6 +5508,15 @@ class TransactionService extends PendingReasonService {
|
|
|
5258
5508
|
return false;
|
|
5259
5509
|
});
|
|
5260
5510
|
}
|
|
5511
|
+
updateHeaderTransactionDeliveryDateDefinitive(uuid, definitive) {
|
|
5512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5513
|
+
const response = yield this.connector.changeHeaderTransactionDeliveryDateDefinitive(uuid, definitive);
|
|
5514
|
+
if (response) {
|
|
5515
|
+
return this.handleHeaderOperationStatuses(response);
|
|
5516
|
+
}
|
|
5517
|
+
return false;
|
|
5518
|
+
});
|
|
5519
|
+
}
|
|
5261
5520
|
updateHeaderTransactionRemark(uuid, remark) {
|
|
5262
5521
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5263
5522
|
const response = yield this.connector.changeHeaderTransactionRemark(uuid, remark);
|
|
@@ -5472,10 +5731,10 @@ class TransactionService extends PendingReasonService {
|
|
|
5472
5731
|
// this._cleanRelationBeforeSave();
|
|
5473
5732
|
this.initializeTransaction();
|
|
5474
5733
|
if (!this.relation.relationId) {
|
|
5475
|
-
this.relation = yield this.
|
|
5734
|
+
this.relation = yield this.relationService.insertRelation(this._relationKindFromTransactionKind.get(this.transactionKind), this.relation);
|
|
5476
5735
|
}
|
|
5477
5736
|
else {
|
|
5478
|
-
this.relation = yield this.
|
|
5737
|
+
this.relation = yield this.relationService.updateRelation(this._relationKindFromTransactionKind.get(this.transactionKind), this.relation);
|
|
5479
5738
|
}
|
|
5480
5739
|
if (!this.currentTransaction.transactionInfo.relation) {
|
|
5481
5740
|
return yield this.addRelationToTransaction(this.relation.relationId);
|
|
@@ -5980,7 +6239,7 @@ class TransactionService extends PendingReasonService {
|
|
|
5980
6239
|
});
|
|
5981
6240
|
}
|
|
5982
6241
|
}
|
|
5983
|
-
TransactionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(DialogService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(i4.SharedService), i0.ɵɵinject(ArticleConnectorService), i0.ɵɵinject(DictionaryService), i0.ɵɵinject(TransactionEventService), i0.ɵɵinject(
|
|
6242
|
+
TransactionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(DialogService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(i4.SharedService), i0.ɵɵinject(ArticleConnectorService), i0.ɵɵinject(DictionaryService), i0.ɵɵinject(TransactionEventService), i0.ɵɵinject(RelationService)); }, token: TransactionService, providedIn: "root" });
|
|
5984
6243
|
TransactionService.decorators = [
|
|
5985
6244
|
{ type: Injectable, args: [{
|
|
5986
6245
|
providedIn: "root"
|
|
@@ -6007,24 +6266,27 @@ class CheckoutComponent {
|
|
|
6007
6266
|
}
|
|
6008
6267
|
ngOnInit() {
|
|
6009
6268
|
this.service.transactionKind = this.transactionType;
|
|
6269
|
+
this.relationType = this.service.getRelationKindFromTransactionKind();
|
|
6010
6270
|
}
|
|
6011
6271
|
// ngOnDestroy(): void {
|
|
6012
6272
|
// this._subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
6013
6273
|
// }
|
|
6014
6274
|
handleCreateTransaction(event) {
|
|
6015
6275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6276
|
+
let success = true;
|
|
6016
6277
|
if (this.stepper.activeStep === 0 && (yield this.handleRelationValidation())) {
|
|
6017
|
-
|
|
6278
|
+
success = yield this.service.saveRelation();
|
|
6018
6279
|
if (success) {
|
|
6019
6280
|
yield this.service.updateHeaderTransactionDefinitive(this.service.currentTransaction.transactionInfo.uuid, true);
|
|
6020
6281
|
}
|
|
6021
6282
|
}
|
|
6283
|
+
if (!success) {
|
|
6284
|
+
return;
|
|
6285
|
+
}
|
|
6022
6286
|
const response = yield this.service.saveTransaction();
|
|
6023
6287
|
if (response && response.isSuccess) {
|
|
6024
6288
|
const id = this.service.currentTransaction.transactionInfo.id;
|
|
6025
|
-
this.service.
|
|
6026
|
-
this.service.relation = new CustomerFullObject();
|
|
6027
|
-
this.service.articleAmount = 0;
|
|
6289
|
+
this.service.resetCurrentTransaction();
|
|
6028
6290
|
this.transactionFinished.emit({ id: id, fromCheckout: this.showCreateTransactionButton });
|
|
6029
6291
|
}
|
|
6030
6292
|
});
|
|
@@ -6100,7 +6362,9 @@ CheckoutComponent.decorators = [
|
|
|
6100
6362
|
(createClicked)="handleCreateTransaction($event)"
|
|
6101
6363
|
>
|
|
6102
6364
|
<co-stepper-step #stepRelation [index]="1" [label]="'YOUR_DATA' | localize" (validateStep)="handleRelationValidation()">
|
|
6103
|
-
<co-checkout-overview-relation-edit #checkoutRelation *ngIf="stepRelation.show"
|
|
6365
|
+
<co-checkout-overview-relation-edit #checkoutRelation *ngIf="stepRelation.show"
|
|
6366
|
+
[(relation)]="service.relation"
|
|
6367
|
+
[relationType]="relationType"
|
|
6104
6368
|
[deliveryAddressNawNr]="deliveryAddressNawNr"
|
|
6105
6369
|
[invoiceAddressNawNr]="invoiceAddressNawNr"
|
|
6106
6370
|
(deliveryAddressChange)="handleDeliveryAddressChange($event)"
|
|
@@ -6158,8 +6422,10 @@ class CheckoutOverviewRelationEditComponent {
|
|
|
6158
6422
|
constructor(_formMaster, service) {
|
|
6159
6423
|
this._formMaster = _formMaster;
|
|
6160
6424
|
this.service = service;
|
|
6425
|
+
this.relationKind = RelationKind$1;
|
|
6161
6426
|
this.icons = Icon;
|
|
6162
6427
|
this.addressType = AddressType;
|
|
6428
|
+
this.relationType = RelationKind$1.Customer;
|
|
6163
6429
|
this.validSubmit = new EventEmitter();
|
|
6164
6430
|
this.invalidSubmit = new EventEmitter();
|
|
6165
6431
|
this.deliveryAddressChange = new EventEmitter();
|
|
@@ -6170,6 +6436,9 @@ class CheckoutOverviewRelationEditComponent {
|
|
|
6170
6436
|
set relation(value) {
|
|
6171
6437
|
this._relation = value;
|
|
6172
6438
|
if (this._relation) {
|
|
6439
|
+
if (this._relation instanceof CustomerFullObject) {
|
|
6440
|
+
this.customerGroup = this._relation.customerGroup;
|
|
6441
|
+
}
|
|
6173
6442
|
this.address = this._relation.getFirstAddressOrCreateNew();
|
|
6174
6443
|
const firstActiveAddress = this._relation.activeAddresses.length > 0 ? this._relation.activeAddresses[0] : undefined;
|
|
6175
6444
|
this.deliveryAddressNawNr = firstActiveAddress ? firstActiveAddress.nawNr : 0;
|
|
@@ -6192,6 +6461,12 @@ class CheckoutOverviewRelationEditComponent {
|
|
|
6192
6461
|
}
|
|
6193
6462
|
});
|
|
6194
6463
|
}
|
|
6464
|
+
handleCustomerGroupChange(group) {
|
|
6465
|
+
this.customerGroup = group;
|
|
6466
|
+
if (this._relation instanceof CustomerFullObject) {
|
|
6467
|
+
this._relation.customerGroup = this.customerGroup;
|
|
6468
|
+
}
|
|
6469
|
+
}
|
|
6195
6470
|
updateRelation(rel) {
|
|
6196
6471
|
this._relation = rel;
|
|
6197
6472
|
this.relationChange.emit(this._relation);
|
|
@@ -6237,11 +6512,11 @@ CheckoutOverviewRelationEditComponent.decorators = [
|
|
|
6237
6512
|
[relation]="relation"
|
|
6238
6513
|
></co-relation-type>
|
|
6239
6514
|
</div>
|
|
6240
|
-
<div class="checkout-data-row">
|
|
6241
|
-
<relation-customer-groups [
|
|
6515
|
+
<div class="checkout-data-row" *ngIf="relationType === relationKind.Customer">
|
|
6516
|
+
<relation-customer-groups [model]="customerGroup" (modelChange)="handleCustomerGroupChange($event)" required></relation-customer-groups>
|
|
6242
6517
|
</div>
|
|
6243
6518
|
<div class="checkout-data-row">
|
|
6244
|
-
<co-relation-general [relation]="relation" (relationChange)="updateRelation($event)"></co-relation-general>
|
|
6519
|
+
<co-relation-general [relation]="relation" [relationType]="relationType" (relationChange)="updateRelation($event)"></co-relation-general>
|
|
6245
6520
|
</div>
|
|
6246
6521
|
<div class="checkout-data-row">
|
|
6247
6522
|
<co-relation-address [address]="address"></co-relation-address>
|
|
@@ -6338,6 +6613,7 @@ CheckoutOverviewRelationEditComponent.ctorParameters = () => [
|
|
|
6338
6613
|
];
|
|
6339
6614
|
CheckoutOverviewRelationEditComponent.propDecorators = {
|
|
6340
6615
|
relation: [{ type: Input }],
|
|
6616
|
+
relationType: [{ type: Input }],
|
|
6341
6617
|
deliveryAddressNawNr: [{ type: Input }],
|
|
6342
6618
|
invoiceAddressNawNr: [{ type: Input }],
|
|
6343
6619
|
validSubmit: [{ type: Output }],
|
|
@@ -7351,6 +7627,7 @@ CoreModule.decorators = [
|
|
|
7351
7627
|
|
|
7352
7628
|
class RelationBaseComponent {
|
|
7353
7629
|
constructor() {
|
|
7630
|
+
this.relationType = RelationKind$1.Customer;
|
|
7354
7631
|
this.relationChange = new EventEmitter();
|
|
7355
7632
|
this._relation = NULL_RELATION_OBJECT;
|
|
7356
7633
|
}
|
|
@@ -7375,6 +7652,7 @@ RelationBaseComponent.decorators = [
|
|
|
7375
7652
|
];
|
|
7376
7653
|
RelationBaseComponent.propDecorators = {
|
|
7377
7654
|
relation: [{ type: Input }],
|
|
7655
|
+
relationType: [{ type: Input }],
|
|
7378
7656
|
relationChange: [{ type: Output }]
|
|
7379
7657
|
};
|
|
7380
7658
|
|
|
@@ -12168,109 +12446,6 @@ SharedService.ctorParameters = () => [
|
|
|
12168
12446
|
{ type: TransactionEventService }
|
|
12169
12447
|
];
|
|
12170
12448
|
|
|
12171
|
-
class RelationService {
|
|
12172
|
-
constructor(_adapterService, _selectMultipleCacheService, _selectSingleCacheService, _selectMultipleParameterizedCacheService) {
|
|
12173
|
-
this._adapterService = _adapterService;
|
|
12174
|
-
this._selectMultipleCacheService = _selectMultipleCacheService;
|
|
12175
|
-
this._selectSingleCacheService = _selectSingleCacheService;
|
|
12176
|
-
this._selectMultipleParameterizedCacheService = _selectMultipleParameterizedCacheService;
|
|
12177
|
-
this._lockMethods = new Map([
|
|
12178
|
-
[RelationKind.Customer, (relationNr) => this._lockCustomerFullObject(relationNr)],
|
|
12179
|
-
[RelationKind.Supplier, (relationNr) => this._lockSupplierFullObject(relationNr)],
|
|
12180
|
-
[RelationKind.Personnel, (relationNr) => this._lockEmployeeFullObject(relationNr)],
|
|
12181
|
-
[RelationKind.Branch, (relationNr) => this._lockBranchFullObject(relationNr)],
|
|
12182
|
-
[RelationKind.Company, (relationNr) => this._lockCompanyFullObject(relationNr)],
|
|
12183
|
-
[RelationKind.ContactPerson, (relationNr) => this._lockContactPerson(relationNr)],
|
|
12184
|
-
]);
|
|
12185
|
-
this._updateMethods = new Map([
|
|
12186
|
-
[RelationKind.Customer, (relation) => this.updateCustomer(relation)]
|
|
12187
|
-
]);
|
|
12188
|
-
}
|
|
12189
|
-
getCustomerFullObject(relationNo) {
|
|
12190
|
-
return this._selectSingleCacheService.requestCache(CustomerFullObject, relationNo, () => {
|
|
12191
|
-
return this._adapterService.getCustomerFullObject(relationNo);
|
|
12192
|
-
}).getValue();
|
|
12193
|
-
}
|
|
12194
|
-
getSupplierFullObject(relationNo) {
|
|
12195
|
-
return this._selectSingleCacheService.requestCache(SupplierFullObject, relationNo, () => {
|
|
12196
|
-
return this._adapterService.getSupplierFullObject(relationNo);
|
|
12197
|
-
}).getValue();
|
|
12198
|
-
}
|
|
12199
|
-
insertCustomer(relation) {
|
|
12200
|
-
return this._adapterService.insertCustomer(relation);
|
|
12201
|
-
}
|
|
12202
|
-
updateCustomer(relation) {
|
|
12203
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12204
|
-
return this._adapterService.updateCustomer(relation);
|
|
12205
|
-
});
|
|
12206
|
-
}
|
|
12207
|
-
getRelationListObjects(relationRequest) {
|
|
12208
|
-
return this._adapterService.getRelationListObjects(relationRequest);
|
|
12209
|
-
}
|
|
12210
|
-
getRelationNumber(relationId) {
|
|
12211
|
-
return this._adapterService.getRelationNumber(relationId);
|
|
12212
|
-
}
|
|
12213
|
-
getBranches(branchNr) {
|
|
12214
|
-
return this._selectMultipleParameterizedCacheService.requestCache(BranchLov, (branchNr) => {
|
|
12215
|
-
return this._adapterService.getBranches(branchNr);
|
|
12216
|
-
}).getValue(branchNr);
|
|
12217
|
-
}
|
|
12218
|
-
updateRelation(relationKind, relation) {
|
|
12219
|
-
const updateMethod = this._updateMethods.get(relationKind);
|
|
12220
|
-
if (updateMethod) {
|
|
12221
|
-
return updateMethod.call(this, relation);
|
|
12222
|
-
}
|
|
12223
|
-
else {
|
|
12224
|
-
const result = new Relation();
|
|
12225
|
-
return Promise.resolve(result);
|
|
12226
|
-
}
|
|
12227
|
-
}
|
|
12228
|
-
lockRelation(relationKind, relationNr) {
|
|
12229
|
-
const lockMethod = this._lockMethods.get(relationKind);
|
|
12230
|
-
if (lockMethod) {
|
|
12231
|
-
return lockMethod.call(this, relationNr);
|
|
12232
|
-
}
|
|
12233
|
-
else {
|
|
12234
|
-
const result = new ValidationResult();
|
|
12235
|
-
result.success = false;
|
|
12236
|
-
return Promise.resolve(result);
|
|
12237
|
-
}
|
|
12238
|
-
}
|
|
12239
|
-
commit() {
|
|
12240
|
-
return this._adapterService.commit();
|
|
12241
|
-
}
|
|
12242
|
-
_lockCustomerFullObject(relationNr) {
|
|
12243
|
-
return this._adapterService.lockCustomerFullObject(relationNr);
|
|
12244
|
-
}
|
|
12245
|
-
_lockSupplierFullObject(relationNr) {
|
|
12246
|
-
return this._adapterService.lockSupplierFullObject(relationNr);
|
|
12247
|
-
}
|
|
12248
|
-
_lockEmployeeFullObject(relationNr) {
|
|
12249
|
-
return this._adapterService.lockEmployeeFullObject(relationNr);
|
|
12250
|
-
}
|
|
12251
|
-
_lockBranchFullObject(relationNr) {
|
|
12252
|
-
return this._adapterService.lockBranchFullObject(relationNr);
|
|
12253
|
-
}
|
|
12254
|
-
_lockCompanyFullObject(relationNr) {
|
|
12255
|
-
return this._adapterService.lockCompanyFullObject(relationNr);
|
|
12256
|
-
}
|
|
12257
|
-
_lockContactPerson(relationNr) {
|
|
12258
|
-
return this._adapterService.lockContactPerson(relationNr);
|
|
12259
|
-
}
|
|
12260
|
-
}
|
|
12261
|
-
RelationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function RelationService_Factory() { return new RelationService(i0.ɵɵinject(RelationConnectorService), i0.ɵɵinject(SelectMultipleCacheService), i0.ɵɵinject(SelectSingleCacheService), i0.ɵɵinject(SelectMultipleParameterizedCacheService)); }, token: RelationService, providedIn: "root" });
|
|
12262
|
-
RelationService.decorators = [
|
|
12263
|
-
{ type: Injectable, args: [{
|
|
12264
|
-
providedIn: "root"
|
|
12265
|
-
},] }
|
|
12266
|
-
];
|
|
12267
|
-
RelationService.ctorParameters = () => [
|
|
12268
|
-
{ type: RelationConnectorService },
|
|
12269
|
-
{ type: SelectMultipleCacheService },
|
|
12270
|
-
{ type: SelectSingleCacheService },
|
|
12271
|
-
{ type: SelectMultipleParameterizedCacheService }
|
|
12272
|
-
];
|
|
12273
|
-
|
|
12274
12449
|
class AvatarComponent {
|
|
12275
12450
|
constructor(_transactionService, _sharedService, _colorSequenceService, _relationService) {
|
|
12276
12451
|
this._transactionService = _transactionService;
|
|
@@ -13134,6 +13309,7 @@ class RelationGeneralComponent extends RelationBaseComponent {
|
|
|
13134
13309
|
this._dictionaryService = _dictionaryService;
|
|
13135
13310
|
this._dialogService = _dialogService;
|
|
13136
13311
|
this._relationService = _relationService;
|
|
13312
|
+
this.relationKind = RelationKind$1;
|
|
13137
13313
|
this.relType = RelationNameKind;
|
|
13138
13314
|
this.genderType = GenderType;
|
|
13139
13315
|
this.readonly = false;
|
|
@@ -13191,7 +13367,7 @@ class RelationGeneralComponent extends RelationBaseComponent {
|
|
|
13191
13367
|
}
|
|
13192
13368
|
else {
|
|
13193
13369
|
this.hideSidebar();
|
|
13194
|
-
this.relation = yield this._relationService.
|
|
13370
|
+
this.relation = yield this._relationService.getRelation(relationSuggested.relationType, parseInt(relationSuggested.relationNr));
|
|
13195
13371
|
this.relationChange.next(this.relation);
|
|
13196
13372
|
}
|
|
13197
13373
|
}
|
|
@@ -13240,7 +13416,7 @@ RelationGeneralComponent.decorators = [
|
|
|
13240
13416
|
template: `
|
|
13241
13417
|
<div *ngIf="relation.type === relType.Private" class="collapseable" @showHidePrivateRelationFields>
|
|
13242
13418
|
<div class="default-data-row">
|
|
13243
|
-
<co-input-text
|
|
13419
|
+
<co-input-text *ngIf="relationType !== relationKind.Supplier"
|
|
13244
13420
|
class="checkout-first-name"
|
|
13245
13421
|
[readonly]="readonly"
|
|
13246
13422
|
[(model)]="relation.firstName"
|
|
@@ -13249,7 +13425,7 @@ RelationGeneralComponent.decorators = [
|
|
|
13249
13425
|
(blur)="checkVisibilitySuggestions()"
|
|
13250
13426
|
[required]="true"
|
|
13251
13427
|
></co-input-text>
|
|
13252
|
-
<co-input-text
|
|
13428
|
+
<co-input-text *ngIf="relationType !== relationKind.Supplier"
|
|
13253
13429
|
class="checkout-prefix-name default-width"
|
|
13254
13430
|
[readonly]="readonly"
|
|
13255
13431
|
[(model)]="relation.prefix"
|
|
@@ -13868,6 +14044,11 @@ class TransactionHeaderDeliveryComponent extends TransactionBaseComponent {
|
|
|
13868
14044
|
}
|
|
13869
14045
|
});
|
|
13870
14046
|
}
|
|
14047
|
+
changeDeliveryDateDefinitive(event, definitive) {
|
|
14048
|
+
event.preventDefault();
|
|
14049
|
+
event.stopPropagation();
|
|
14050
|
+
this.service.updateHeaderTransactionDeliveryDateDefinitive(this.transactionInfo.uuid, definitive);
|
|
14051
|
+
}
|
|
13871
14052
|
}
|
|
13872
14053
|
TransactionHeaderDeliveryComponent.decorators = [
|
|
13873
14054
|
{ type: Component, args: [{
|
|
@@ -13898,8 +14079,10 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
13898
14079
|
[defaultEditMode]="false"
|
|
13899
14080
|
[showLabel]="false"
|
|
13900
14081
|
></co-transaction-header-delivery-date>
|
|
13901
|
-
<co-icon *ngIf="transactionInfo.deliveryDateDefinitive" [iconData]="iconService.getIcon(icons.LockKeyholeSolid)"
|
|
13902
|
-
|
|
14082
|
+
<co-icon *ngIf="transactionInfo.deliveryDateDefinitive" [iconData]="iconService.getIcon(icons.LockKeyholeSolid)"
|
|
14083
|
+
(click)="changeDeliveryDateDefinitive($event, false)"></co-icon>
|
|
14084
|
+
<co-icon *ngIf="!transactionInfo.deliveryDateDefinitive" [iconData]="iconService.getIcon(icons.LockKeyholeOpenSolid)"
|
|
14085
|
+
(click)="changeDeliveryDateDefinitive($event, true)"></co-icon>
|
|
13903
14086
|
</div>
|
|
13904
14087
|
</ng-template>
|
|
13905
14088
|
<ng-template #secondBlock>
|
|
@@ -21926,12 +22109,21 @@ class TransactionLineSupplierButtonComponent extends TransactionLineBaseComponen
|
|
|
21926
22109
|
showClass() {
|
|
21927
22110
|
return true;
|
|
21928
22111
|
}
|
|
22112
|
+
handleOpenDialog(event) {
|
|
22113
|
+
event.preventDefault();
|
|
22114
|
+
event.stopPropagation();
|
|
22115
|
+
this.showDialogSupplier = !this.readonly;
|
|
22116
|
+
}
|
|
21929
22117
|
transactionLineSet() {
|
|
21930
22118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21931
22119
|
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
21932
|
-
|
|
21933
|
-
|
|
22120
|
+
const request = new RelationRequest();
|
|
22121
|
+
request.relationId = this.transactionLine.supplierId;
|
|
22122
|
+
this._relationService.getRelationListObjects(request).then((relations) => {
|
|
22123
|
+
const relation = relations && relations.length > 0 ? relations[0] : null;
|
|
22124
|
+
this.transactionLine.supplierDescription = relation ? relation.displayName : "";
|
|
21934
22125
|
});
|
|
22126
|
+
this.readonly = !this.transactionLine.articleFreeSupplier;
|
|
21935
22127
|
}
|
|
21936
22128
|
});
|
|
21937
22129
|
}
|
|
@@ -21940,7 +22132,7 @@ TransactionLineSupplierButtonComponent.decorators = [
|
|
|
21940
22132
|
{ type: Component, args: [{
|
|
21941
22133
|
selector: "co-transaction-line-supplier-button",
|
|
21942
22134
|
template: `
|
|
21943
|
-
<div class="transaction-line-button big" (click)="
|
|
22135
|
+
<div class="transaction-line-button big" (click)="handleOpenDialog($event)">
|
|
21944
22136
|
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.supplierDescription"></span>
|
|
21945
22137
|
</div>
|
|
21946
22138
|
<co-dialog-transaction-line-supplier *ngIf="showDialogSupplier"
|
|
@@ -22408,8 +22600,8 @@ class TransactionFilterItemComponent {
|
|
|
22408
22600
|
this.placeholder = '';
|
|
22409
22601
|
this.customContent = false;
|
|
22410
22602
|
this.singleSelect = false;
|
|
22411
|
-
this.collectionChange = new EventEmitter();
|
|
22412
22603
|
this.searchCollectionPlaceholder = "SEARCH_IN_COLLECTION";
|
|
22604
|
+
this.collectionChange = new EventEmitter();
|
|
22413
22605
|
this.searchPlaceholder = "SEARCH";
|
|
22414
22606
|
this.noResultsLabel = "NO_RESULTS";
|
|
22415
22607
|
this.showMoreLabel = "SHOW_MORE";
|
|
@@ -22458,6 +22650,7 @@ TransactionFilterItemComponent.propDecorators = {
|
|
|
22458
22650
|
customContent: [{ type: Input }],
|
|
22459
22651
|
singleSelect: [{ type: Input }],
|
|
22460
22652
|
minSearchCharsToLoadCollection: [{ type: Input }],
|
|
22653
|
+
searchCollectionPlaceholder: [{ type: Input }],
|
|
22461
22654
|
collectionLoadFn: [{ type: Input }],
|
|
22462
22655
|
collectionChange: [{ type: Output }]
|
|
22463
22656
|
};
|
|
@@ -22665,13 +22858,40 @@ FilterRequestService.ctorParameters = () => [
|
|
|
22665
22858
|
{ type: TransactionService }
|
|
22666
22859
|
];
|
|
22667
22860
|
|
|
22861
|
+
var SearchPlaceholder;
|
|
22862
|
+
(function (SearchPlaceholder) {
|
|
22863
|
+
SearchPlaceholder["ArticleNr"] = "SEARCH_ARTICLE_NR";
|
|
22864
|
+
SearchPlaceholder["BatchNumber"] = "SEARCH_BATCH_NUMBER";
|
|
22865
|
+
SearchPlaceholder["Branch"] = "SEARCH_BRANCH";
|
|
22866
|
+
SearchPlaceholder["CommissionCode"] = "SEARCH_COMMISSION_CODE";
|
|
22867
|
+
SearchPlaceholder["Confirmed"] = "SEARCH_CONFIRMED";
|
|
22868
|
+
SearchPlaceholder["CustomerGroup"] = "SEARCH_CUSTOMER_GROUP";
|
|
22869
|
+
SearchPlaceholder["CustomerName"] = "SEARCH_CUSTOMER_NAME";
|
|
22870
|
+
SearchPlaceholder["Delivered"] = "SEARCH_DELIVERED";
|
|
22871
|
+
SearchPlaceholder["DeliveryMethod"] = "SEARCH_DELIVERY_METHOD";
|
|
22872
|
+
SearchPlaceholder["ExceedenceCode"] = "SEARCH_EXCEEDENCE_CODE";
|
|
22873
|
+
SearchPlaceholder["Invoiced"] = "SEARCH_INVOICED";
|
|
22874
|
+
SearchPlaceholder["MainArticle"] = "SEARCH_MAIN_ARTICLE";
|
|
22875
|
+
SearchPlaceholder["OnHold"] = "SEARCH_ONHOLD";
|
|
22876
|
+
SearchPlaceholder["OwnReference"] = "SEARCH_OWN_REFERENCE";
|
|
22877
|
+
SearchPlaceholder["PurchaseNumber"] = "SEARCH_PURCHASENUMBER";
|
|
22878
|
+
SearchPlaceholder["PurchasePerson"] = "SEARCH_PURCHASEPERSON";
|
|
22879
|
+
SearchPlaceholder["SalesPerson"] = "SEARCH_SALESPERSON";
|
|
22880
|
+
SearchPlaceholder["SerialNumber"] = "SEARCH_SERIAL_NUMBER";
|
|
22881
|
+
SearchPlaceholder["SourceWarehouse"] = "SEARCH_SOURCE_WAREHOUSE";
|
|
22882
|
+
SearchPlaceholder["Supplier"] = "SEARCH_SUPPLIER";
|
|
22883
|
+
SearchPlaceholder["Tags"] = "SEARCH_TAGS";
|
|
22884
|
+
SearchPlaceholder["TurnoverGroup"] = "SEARCH_TURNOVER_GROUP";
|
|
22885
|
+
SearchPlaceholder["Warehouse"] = "SEARCH_WAREHOUSE";
|
|
22886
|
+
})(SearchPlaceholder || (SearchPlaceholder = {}));
|
|
22887
|
+
|
|
22668
22888
|
class TransactionFilterContentBaseComponent {
|
|
22669
22889
|
constructor(searchService, filterRequestService, transactionService) {
|
|
22670
22890
|
this.searchService = searchService;
|
|
22671
22891
|
this.filterRequestService = filterRequestService;
|
|
22672
22892
|
this.transactionService = transactionService;
|
|
22893
|
+
this.searchPlaceholder = SearchPlaceholder;
|
|
22673
22894
|
this.searchRequest = this.searchService.searchRequest;
|
|
22674
|
-
this.searchPlaceholder = "SEARCH";
|
|
22675
22895
|
this.filterButtonLabel = "SEARCH_IMPERATIVE";
|
|
22676
22896
|
}
|
|
22677
22897
|
ngOnInit() {
|
|
@@ -22765,6 +22985,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22765
22985
|
<div class="filter-item-wrapper" lazyRender #lazyRenderArticleNr="lazyRender">
|
|
22766
22986
|
<co-transaction-filter-item *ngIf="lazyRenderArticleNr.isShowing"
|
|
22767
22987
|
[placeholder]="'ARTICLE_NR'"
|
|
22988
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ArticleNr"
|
|
22768
22989
|
[singleSelect]="true"
|
|
22769
22990
|
[minSearchCharsToLoadCollection]="3"
|
|
22770
22991
|
[collectionLoadFn]="getArticles"
|
|
@@ -22776,6 +22997,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22776
22997
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTurnoverGroup="lazyRender">
|
|
22777
22998
|
<co-transaction-filter-item *ngIf="lazyRenderTurnoverGroup.isShowing"
|
|
22778
22999
|
[placeholder]="'TURNOVER_GROUP'"
|
|
23000
|
+
[searchCollectionPlaceholder]="searchPlaceholder.TurnoverGroup"
|
|
22779
23001
|
[collection]="turnoverGroups"
|
|
22780
23002
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')">
|
|
22781
23003
|
</co-transaction-filter-item>
|
|
@@ -22785,6 +23007,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22785
23007
|
<div class="filter-item-wrapper" lazyRender #lazyRenderExceedanceCodes="lazyRender">
|
|
22786
23008
|
<co-transaction-filter-item *ngIf="lazyRenderExceedanceCodes.isShowing"
|
|
22787
23009
|
[placeholder]="'EXCEEDENCE_CODE'"
|
|
23010
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ExceedenceCode"
|
|
22788
23011
|
[collection]="exceedanceCodes"
|
|
22789
23012
|
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')"
|
|
22790
23013
|
>
|
|
@@ -22797,7 +23020,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22797
23020
|
[placeholder]="'SERIAL_NUMBER'"
|
|
22798
23021
|
[customContent]="true">
|
|
22799
23022
|
<co-input-text [(model)]="searchRequest.serialNumber"
|
|
22800
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23023
|
+
[placeholder]="searchPlaceholder.SerialNumber | localize"></co-input-text>
|
|
22801
23024
|
</co-transaction-filter-item>
|
|
22802
23025
|
</div>
|
|
22803
23026
|
|
|
@@ -22807,7 +23030,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22807
23030
|
[placeholder]="'BATCH_NUMBER'"
|
|
22808
23031
|
[customContent]="true">
|
|
22809
23032
|
<co-input-text [(model)]="searchRequest.batchNumber"
|
|
22810
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23033
|
+
[placeholder]="searchPlaceholder.BatchNumber | localize"></co-input-text>
|
|
22811
23034
|
</co-transaction-filter-item>
|
|
22812
23035
|
</div>
|
|
22813
23036
|
|
|
@@ -22815,6 +23038,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22815
23038
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSupplier="lazyRender">
|
|
22816
23039
|
<co-transaction-filter-item *ngIf="lazyRenderSupplier.isShowing"
|
|
22817
23040
|
[placeholder]="'SUPPLIER'"
|
|
23041
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Supplier"
|
|
22818
23042
|
[collection]="suppliers"
|
|
22819
23043
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')">
|
|
22820
23044
|
</co-transaction-filter-item>
|
|
@@ -22927,7 +23151,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
22927
23151
|
[placeholder]="'SERIAL_NUMBER'"
|
|
22928
23152
|
[customContent]="true">
|
|
22929
23153
|
<co-input-text [(model)]="searchRequest.serialNumber"
|
|
22930
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23154
|
+
[placeholder]="searchPlaceholder.SerialNumber | localize"></co-input-text>
|
|
22931
23155
|
</co-transaction-filter-item>
|
|
22932
23156
|
</div>
|
|
22933
23157
|
|
|
@@ -22937,7 +23161,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
22937
23161
|
[placeholder]="'BATCH_NUMBER'"
|
|
22938
23162
|
[customContent]="true">
|
|
22939
23163
|
<co-input-text [(model)]="searchRequest.batchNumber"
|
|
22940
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23164
|
+
[placeholder]="searchPlaceholder.BatchNumber | localize"></co-input-text>
|
|
22941
23165
|
</co-transaction-filter-item>
|
|
22942
23166
|
</div>
|
|
22943
23167
|
|
|
@@ -23031,6 +23255,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
23031
23255
|
<div class="filter-item-wrapper" lazyRender #lazyRenderWarehouse="lazyRender">
|
|
23032
23256
|
<co-transaction-filter-item *ngIf="lazyRenderWarehouse.isShowing"
|
|
23033
23257
|
[placeholder]="'WAREHOUSE'"
|
|
23258
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Warehouse"
|
|
23034
23259
|
[singleSelect]="true"
|
|
23035
23260
|
[collection]="warehouses"
|
|
23036
23261
|
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'warehouse')">
|
|
@@ -23041,6 +23266,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
23041
23266
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSourceWarehouse="lazyRender">
|
|
23042
23267
|
<co-transaction-filter-item *ngIf="lazyRenderSourceWarehouse.isShowing"
|
|
23043
23268
|
[placeholder]="'SOURCE_WAREHOUSE'"
|
|
23269
|
+
[searchCollectionPlaceholder]="searchPlaceholder.SourceWarehouse"
|
|
23044
23270
|
[singleSelect]="true"
|
|
23045
23271
|
[collection]="sourceWarehouses"
|
|
23046
23272
|
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'sourceWarehouse')">
|
|
@@ -23051,6 +23277,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
23051
23277
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryMethod="lazyRender">
|
|
23052
23278
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryMethod.isShowing"
|
|
23053
23279
|
[placeholder]="'DELIVERY_METHOD'"
|
|
23280
|
+
[searchCollectionPlaceholder]="searchPlaceholder.DeliveryMethod"
|
|
23054
23281
|
[collection]="deliveryMethods"
|
|
23055
23282
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')">
|
|
23056
23283
|
</co-transaction-filter-item>
|
|
@@ -23256,7 +23483,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23256
23483
|
[placeholder]="'PURCHASENUMBER'"
|
|
23257
23484
|
[customContent]="true">
|
|
23258
23485
|
<co-input-text [(model)]="searchRequest.transNr"
|
|
23259
|
-
[placeholder]="
|
|
23486
|
+
[placeholder]="searchPlaceholder.PurchaseNumber | localize"></co-input-text>
|
|
23260
23487
|
</co-transaction-filter-item>
|
|
23261
23488
|
</div>
|
|
23262
23489
|
|
|
@@ -23294,6 +23521,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23294
23521
|
<div class="filter-item-wrapper" lazyRender #lazyRenderBranch="lazyRender">
|
|
23295
23522
|
<co-transaction-filter-item *ngIf="lazyRenderBranch.isShowing"
|
|
23296
23523
|
[placeholder]="'BRANCH'"
|
|
23524
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Branch"
|
|
23297
23525
|
[collection]="branches"
|
|
23298
23526
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')">
|
|
23299
23527
|
</co-transaction-filter-item>
|
|
@@ -23303,6 +23531,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23303
23531
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSalesPerson="lazyRender">
|
|
23304
23532
|
<co-transaction-filter-item *ngIf="lazyRenderSalesPerson.isShowing"
|
|
23305
23533
|
[placeholder]="'PURCHASE_PERSON'"
|
|
23534
|
+
[searchCollectionPlaceholder]="searchPlaceholder.PurchasePerson"
|
|
23306
23535
|
[collection]="purchasePersons"
|
|
23307
23536
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')">
|
|
23308
23537
|
</co-transaction-filter-item>
|
|
@@ -23314,7 +23543,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23314
23543
|
[placeholder]="'OWN_REFERENCE'"
|
|
23315
23544
|
[customContent]="true">
|
|
23316
23545
|
<co-input-text [(model)]="searchRequest.userReference"
|
|
23317
|
-
[placeholder]="
|
|
23546
|
+
[placeholder]="searchPlaceholder.OwnReference | localize"></co-input-text>
|
|
23318
23547
|
</co-transaction-filter-item>
|
|
23319
23548
|
</div>
|
|
23320
23549
|
|
|
@@ -23322,6 +23551,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23322
23551
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTags="lazyRender">
|
|
23323
23552
|
<co-transaction-filter-item *ngIf="lazyRenderTags.isShowing"
|
|
23324
23553
|
[placeholder]="'TAGS'"
|
|
23554
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Tags"
|
|
23325
23555
|
[collection]="tags"
|
|
23326
23556
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'tagRange')">
|
|
23327
23557
|
</co-transaction-filter-item>
|
|
@@ -23331,6 +23561,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23331
23561
|
<div class="filter-item-wrapper" lazyRender #lazyRenderOnHold="lazyRender">
|
|
23332
23562
|
<co-transaction-filter-item *ngIf="lazyRenderOnHold.isShowing"
|
|
23333
23563
|
[placeholder]="'ON_HOLD'"
|
|
23564
|
+
[searchCollectionPlaceholder]="searchPlaceholder.OnHold"
|
|
23334
23565
|
[collection]="onHoldCodes"
|
|
23335
23566
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event,'rangeOnHoldCodes')">
|
|
23336
23567
|
</co-transaction-filter-item>
|
|
@@ -23340,6 +23571,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23340
23571
|
<div class="filter-item-wrapper" lazyRender #lazyRenderCommissionCode="lazyRender">
|
|
23341
23572
|
<co-transaction-filter-item *ngIf="lazyRenderCommissionCode.isShowing"
|
|
23342
23573
|
[placeholder]="'COMMISSION_CODE'"
|
|
23574
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CommissionCode"
|
|
23343
23575
|
[collection]="commissionCodes"
|
|
23344
23576
|
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')">
|
|
23345
23577
|
</co-transaction-filter-item>
|
|
@@ -24161,47 +24393,52 @@ TransactionSalesOrderFilterContentArticleComponent.decorators = [
|
|
|
24161
24393
|
<!--Artikelnummer-->
|
|
24162
24394
|
<div class="filter-item-wrapper" lazyRender #lazyRenderArticleNr="lazyRender">
|
|
24163
24395
|
<co-transaction-filter-item *ngIf="lazyRenderArticleNr.isShowing"
|
|
24164
|
-
|
|
24165
|
-
|
|
24166
|
-
|
|
24167
|
-
|
|
24168
|
-
|
|
24396
|
+
[placeholder]="'ARTICLE_NR'"
|
|
24397
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ArticleNr"
|
|
24398
|
+
[singleSelect]="true"
|
|
24399
|
+
[minSearchCharsToLoadCollection]="3"
|
|
24400
|
+
[collectionLoadFn]="getArticles"
|
|
24401
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'articleNr')">
|
|
24169
24402
|
</co-transaction-filter-item>
|
|
24170
24403
|
</div>
|
|
24171
24404
|
|
|
24172
24405
|
<!--Omzetgroep-->
|
|
24173
24406
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTurnoverGroup="lazyRender">
|
|
24174
24407
|
<co-transaction-filter-item *ngIf="lazyRenderTurnoverGroup.isShowing"
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24408
|
+
[placeholder]="'TURNOVER_GROUP'"
|
|
24409
|
+
[searchCollectionPlaceholder]="searchPlaceholder.TurnoverGroup"
|
|
24410
|
+
[collection]="turnoverGroups"
|
|
24411
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')">
|
|
24178
24412
|
</co-transaction-filter-item>
|
|
24179
24413
|
</div>
|
|
24180
24414
|
|
|
24181
24415
|
<!--Hoofdartikel-->
|
|
24182
24416
|
<div class="filter-item-wrapper" lazyRender #lazyRenderMainArticle="lazyRender">
|
|
24183
24417
|
<co-transaction-filter-item *ngIf="lazyRenderMainArticle.isShowing"
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24418
|
+
[placeholder]="'MAIN_ARTICLE'"
|
|
24419
|
+
[searchCollectionPlaceholder]="searchPlaceholder.MainArticle"
|
|
24420
|
+
[collection]="mainArticles"
|
|
24421
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'mainArticleNrRange')">
|
|
24187
24422
|
</co-transaction-filter-item>
|
|
24188
24423
|
</div>
|
|
24189
24424
|
|
|
24190
24425
|
<!--Uitloopcode -->
|
|
24191
24426
|
<div class="filter-item-wrapper" lazyRender #lazyRenderExceedanceCodes="lazyRender">
|
|
24192
24427
|
<co-transaction-filter-item *ngIf="lazyRenderExceedanceCodes.isShowing"
|
|
24193
|
-
|
|
24194
|
-
|
|
24195
|
-
|
|
24428
|
+
[placeholder]="'EXCEEDENCE_CODE'"
|
|
24429
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ExceedenceCode"
|
|
24430
|
+
[collection]="exceedanceCodes"
|
|
24431
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')">
|
|
24196
24432
|
</co-transaction-filter-item>
|
|
24197
24433
|
</div>
|
|
24198
24434
|
|
|
24199
24435
|
<!--Leverancier-->
|
|
24200
24436
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSupplier="lazyRender">
|
|
24201
24437
|
<co-transaction-filter-item *ngIf="lazyRenderSupplier.isShowing"
|
|
24202
|
-
|
|
24203
|
-
|
|
24204
|
-
|
|
24438
|
+
[placeholder]="'SUPPLIER'"
|
|
24439
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Supplier"
|
|
24440
|
+
[collection]="suppliers"
|
|
24441
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')"
|
|
24205
24442
|
>
|
|
24206
24443
|
</co-transaction-filter-item>
|
|
24207
24444
|
</div>
|
|
@@ -24295,9 +24532,10 @@ TransactionSalesOrderFilterContentLogisticsComponent.decorators = [
|
|
|
24295
24532
|
<!--Levermethode-->
|
|
24296
24533
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryMethod="lazyRender">
|
|
24297
24534
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryMethod.isShowing"
|
|
24298
|
-
|
|
24299
|
-
|
|
24300
|
-
|
|
24535
|
+
[placeholder]="'DELIVERY_METHOD'"
|
|
24536
|
+
[collection]="deliveryMethods"
|
|
24537
|
+
[searchCollectionPlaceholder]="searchPlaceholder.DeliveryMethod"
|
|
24538
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')"
|
|
24301
24539
|
>
|
|
24302
24540
|
</co-transaction-filter-item>
|
|
24303
24541
|
</div>
|
|
@@ -24306,8 +24544,8 @@ TransactionSalesOrderFilterContentLogisticsComponent.decorators = [
|
|
|
24306
24544
|
<!--Leverdatum definitief-->
|
|
24307
24545
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryDateFinal="lazyRender">
|
|
24308
24546
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryDateFinal.isShowing"
|
|
24309
|
-
|
|
24310
|
-
|
|
24547
|
+
[placeholder]="'DELIVERY_DATE_FINAL'"
|
|
24548
|
+
[customContent]="true"
|
|
24311
24549
|
>
|
|
24312
24550
|
<co-input-checkbox
|
|
24313
24551
|
[model]="searchRequest.deliveryDateDefinitive === 'J'"
|
|
@@ -24330,131 +24568,133 @@ TransactionSalesOrderFilterContentLogisticsComponent.decorators = [
|
|
|
24330
24568
|
[label]="'DELIVERED'"
|
|
24331
24569
|
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'quantityDelivered')"
|
|
24332
24570
|
></co-transaction-filter-historic-state>
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
<!--Gefactureerd-->
|
|
24336
|
-
<div class="filter-item-wrapper" lazyRender #lazyRenderInvoiced="lazyRender">
|
|
24337
|
-
<co-transaction-filter-historic-state *ngIf="lazyRenderInvoiced.isShowing"
|
|
24338
|
-
[label]="'INVOICED'"
|
|
24339
|
-
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'quantityInvoiced')"
|
|
24340
|
-
></co-transaction-filter-historic-state>
|
|
24341
|
-
</div>
|
|
24571
|
+
</div>
|
|
24342
24572
|
|
|
24343
|
-
|
|
24344
|
-
|
|
24345
|
-
|
|
24346
|
-
|
|
24347
|
-
|
|
24348
|
-
|
|
24349
|
-
|
|
24573
|
+
<!--Gefactureerd-->
|
|
24574
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderInvoiced="lazyRender">
|
|
24575
|
+
<co-transaction-filter-historic-state *ngIf="lazyRenderInvoiced.isShowing"
|
|
24576
|
+
[label]="'INVOICED'"
|
|
24577
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'quantityInvoiced')"
|
|
24578
|
+
></co-transaction-filter-historic-state>
|
|
24579
|
+
</div>
|
|
24350
24580
|
|
|
24351
|
-
|
|
24352
|
-
|
|
24353
|
-
|
|
24354
|
-
|
|
24355
|
-
|
|
24356
|
-
|
|
24357
|
-
|
|
24581
|
+
<!--Te picken-->
|
|
24582
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderToBePicked="lazyRender">
|
|
24583
|
+
<co-transaction-filter-historic-state *ngIf="lazyRenderToBePicked.isShowing"
|
|
24584
|
+
[label]="'TO_BE_PICKED'"
|
|
24585
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'quantityToBePicked')"
|
|
24586
|
+
></co-transaction-filter-historic-state>
|
|
24587
|
+
</div>
|
|
24358
24588
|
|
|
24359
|
-
|
|
24360
|
-
|
|
24361
|
-
|
|
24362
|
-
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
|
|
24366
|
-
[endDate]="confirmedDeliveryEndDate"
|
|
24367
|
-
(dateRangeChange)="onDateRangeChange($event, 'confirmedDeliveryDateRange')"
|
|
24368
|
-
(cleared)="onClearedDateRangeChange('confirmedDeliveryDateRange')"
|
|
24369
|
-
[placeholder]="'SELECT_DATE' | localize">
|
|
24370
|
-
</co-input-date-range>
|
|
24371
|
-
</co-transaction-filter-item>
|
|
24372
|
-
</div>
|
|
24589
|
+
<!--Gepicked-->
|
|
24590
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderPicked="lazyRender">
|
|
24591
|
+
<co-transaction-filter-historic-state *ngIf="lazyRenderPicked.isShowing"
|
|
24592
|
+
[label]="'PICKED'"
|
|
24593
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'quantityPicked')"
|
|
24594
|
+
></co-transaction-filter-historic-state>
|
|
24595
|
+
</div>
|
|
24373
24596
|
|
|
24374
|
-
|
|
24375
|
-
|
|
24376
|
-
|
|
24377
|
-
|
|
24378
|
-
|
|
24379
|
-
|
|
24380
|
-
|
|
24381
|
-
|
|
24382
|
-
|
|
24383
|
-
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24387
|
-
|
|
24597
|
+
<!--Bevestigde leverdatum-->
|
|
24598
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderConfirmedDeliveryDate="lazyRender">
|
|
24599
|
+
<co-transaction-filter-item *ngIf="lazyRenderConfirmedDeliveryDate.isShowing"
|
|
24600
|
+
[placeholder]="'CONFIRMED_DELIVERY_DATE'"
|
|
24601
|
+
[customContent]="true">
|
|
24602
|
+
<co-input-date-range
|
|
24603
|
+
[startDate]="confirmedDeliveryStartDate"
|
|
24604
|
+
[endDate]="confirmedDeliveryEndDate"
|
|
24605
|
+
(dateRangeChange)="onDateRangeChange($event, 'confirmedDeliveryDateRange')"
|
|
24606
|
+
(cleared)="onClearedDateRangeChange('confirmedDeliveryDateRange')"
|
|
24607
|
+
[placeholder]="'SELECT_DATE' | localize">
|
|
24608
|
+
</co-input-date-range>
|
|
24609
|
+
</co-transaction-filter-item>
|
|
24610
|
+
</div>
|
|
24388
24611
|
|
|
24389
|
-
|
|
24390
|
-
|
|
24391
|
-
|
|
24392
|
-
|
|
24393
|
-
|
|
24394
|
-
|
|
24395
|
-
|
|
24396
|
-
|
|
24397
|
-
|
|
24398
|
-
|
|
24399
|
-
|
|
24400
|
-
|
|
24612
|
+
<!--Aankomstdatum-->
|
|
24613
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderArrivalDate="lazyRender">
|
|
24614
|
+
<co-transaction-filter-item *ngIf="lazyRenderArrivalDate.isShowing"
|
|
24615
|
+
[placeholder]="'ARRIVAL_DATE'"
|
|
24616
|
+
[customContent]="true">
|
|
24617
|
+
<co-input-date-range
|
|
24618
|
+
[startDate]="arrivalStartDate"
|
|
24619
|
+
[endDate]="arrivalEndDate"
|
|
24620
|
+
(dateRangeChange)="onDateRangeChange($event, 'arrivalDateRange')"
|
|
24621
|
+
(cleared)="onClearedDateRangeChange('arrivalDateRange')"
|
|
24622
|
+
[placeholder]="'SELECT_DATE' | localize">
|
|
24623
|
+
</co-input-date-range>
|
|
24624
|
+
</co-transaction-filter-item>
|
|
24625
|
+
</div>
|
|
24401
24626
|
|
|
24402
|
-
|
|
24403
|
-
|
|
24404
|
-
|
|
24405
|
-
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
|
|
24410
|
-
|
|
24627
|
+
<!--Deellevering-->
|
|
24628
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderPartialDelivery="lazyRender">
|
|
24629
|
+
<co-transaction-filter-item *ngIf="lazyRenderPartialDelivery.isShowing"
|
|
24630
|
+
[placeholder]="'PART_DELIVERY'"
|
|
24631
|
+
[customContent]="true">
|
|
24632
|
+
<co-input-checkbox
|
|
24633
|
+
[model]="searchRequest.partialDelivery === 'J'"
|
|
24634
|
+
(modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'partialDelivery')"
|
|
24635
|
+
[label]="'PART_DELIVERY' | localize">
|
|
24636
|
+
</co-input-checkbox>
|
|
24637
|
+
</co-transaction-filter-item>
|
|
24638
|
+
</div>
|
|
24411
24639
|
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
|
|
24420
|
-
</
|
|
24640
|
+
<!--Magazijn -->
|
|
24641
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderWarehouse="lazyRender">
|
|
24642
|
+
<co-transaction-filter-item *ngIf="lazyRenderWarehouse.isShowing"
|
|
24643
|
+
[placeholder]="'WAREHOUSE'"
|
|
24644
|
+
[singleSelect]="true"
|
|
24645
|
+
[collection]="warehouses"
|
|
24646
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Warehouse"
|
|
24647
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'warehouse')">
|
|
24648
|
+
</co-transaction-filter-item>
|
|
24649
|
+
</div>
|
|
24421
24650
|
|
|
24422
|
-
|
|
24423
|
-
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
</
|
|
24651
|
+
<!--Bron magazijn-->
|
|
24652
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderSourceWarehouse="lazyRender">
|
|
24653
|
+
<co-transaction-filter-item *ngIf="lazyRenderSourceWarehouse.isShowing"
|
|
24654
|
+
[placeholder]="'SOURCE_WAREHOUSE'"
|
|
24655
|
+
[singleSelect]="true"
|
|
24656
|
+
[collection]="sourceWarehouses"
|
|
24657
|
+
[searchCollectionPlaceholder]="searchPlaceholder.SourceWarehouse"
|
|
24658
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'sourceWarehouse')">
|
|
24659
|
+
</co-transaction-filter-item>
|
|
24660
|
+
</div>
|
|
24431
24661
|
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24662
|
+
<!--Serienummer -->
|
|
24663
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderSerialNumber="lazyRender">
|
|
24664
|
+
<co-transaction-filter-item *ngIf="lazyRenderSerialNumber.isShowing"
|
|
24665
|
+
[placeholder]="'SERIAL_NUMBER'"
|
|
24666
|
+
[customContent]="true">
|
|
24667
|
+
<co-input-text [(model)]="searchRequest.serialNumber"
|
|
24668
|
+
[placeholder]="searchPlaceholder.SerialNumber | localize"></co-input-text>
|
|
24669
|
+
</co-transaction-filter-item>
|
|
24670
|
+
</div>
|
|
24441
24671
|
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
|
|
24445
|
-
|
|
24446
|
-
|
|
24447
|
-
|
|
24448
|
-
|
|
24449
|
-
|
|
24450
|
-
|
|
24451
|
-
>
|
|
24452
|
-
</co-input-checkbox>
|
|
24453
|
-
</co-transaction-filter-item>
|
|
24454
|
-
</div>
|
|
24672
|
+
<!--Batchnummer -->
|
|
24673
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderBatchNumber="lazyRender">
|
|
24674
|
+
<co-transaction-filter-item *ngIf="lazyRenderBatchNumber.isShowing"
|
|
24675
|
+
[placeholder]="'BATCH_NUMBER'"
|
|
24676
|
+
[customContent]="true">
|
|
24677
|
+
<co-input-text [(model)]="searchRequest.batchNumber"
|
|
24678
|
+
[placeholder]="searchPlaceholder.BatchNumber | localize"></co-input-text>
|
|
24679
|
+
</co-transaction-filter-item>
|
|
24680
|
+
</div>
|
|
24455
24681
|
|
|
24456
|
-
|
|
24682
|
+
<!--Inclusief retouren-->
|
|
24683
|
+
<div class="filter-item-wrapper" lazyRender #lazyRenderIncludingReturns="lazyRender">
|
|
24684
|
+
<co-transaction-filter-item *ngIf="lazyRenderIncludingReturns.isShowing"
|
|
24685
|
+
[placeholder]="'INCLUDING_RETURNS'"
|
|
24686
|
+
[customContent]="true">
|
|
24687
|
+
<co-input-checkbox
|
|
24688
|
+
[label]="'INCLUDING_RETURNS' | localize"
|
|
24689
|
+
[model]="searchRequest.includingReturns === 1"
|
|
24690
|
+
(modelChange)="filterRequestService.handleCheckboxValueChangeForNumber($event, 'includingReturns')"
|
|
24691
|
+
>
|
|
24692
|
+
</co-input-checkbox>
|
|
24693
|
+
</co-transaction-filter-item>
|
|
24457
24694
|
</div>
|
|
24695
|
+
|
|
24696
|
+
<!--Levermethode op (regel/header): todo: nog uitzoeken welke filter dit is-->
|
|
24697
|
+
</div>
|
|
24458
24698
|
`
|
|
24459
24699
|
},] }
|
|
24460
24700
|
];
|
|
@@ -24581,8 +24821,8 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24581
24821
|
<!--Orderdatum-->
|
|
24582
24822
|
<div class="filter-item-wrapper" lazyRender #lazyRenderOrderDate="lazyRender">
|
|
24583
24823
|
<co-transaction-filter-item *ngIf="lazyRenderOrderDate.isShowing"
|
|
24584
|
-
|
|
24585
|
-
|
|
24824
|
+
[placeholder]="'ORDER_DATE'"
|
|
24825
|
+
[customContent]="true">
|
|
24586
24826
|
<co-input-date-range
|
|
24587
24827
|
[startDate]="transStartDate"
|
|
24588
24828
|
[endDate]="transEndDate"
|
|
@@ -24596,8 +24836,8 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24596
24836
|
<!--Leverdatum-->
|
|
24597
24837
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryDate="lazyRender">
|
|
24598
24838
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryDate.isShowing"
|
|
24599
|
-
|
|
24600
|
-
|
|
24839
|
+
[placeholder]="'DELIVERY_DATE'"
|
|
24840
|
+
[customContent]="true">
|
|
24601
24841
|
<co-input-date-range
|
|
24602
24842
|
[startDate]="deliveryStartDate"
|
|
24603
24843
|
[endDate]="deliveryEndDate"
|
|
@@ -24611,18 +24851,20 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24611
24851
|
<!--Filiaal-->
|
|
24612
24852
|
<div class="filter-item-wrapper" lazyRender #lazyRenderBranch="lazyRender">
|
|
24613
24853
|
<co-transaction-filter-item *ngIf="lazyRenderBranch.isShowing"
|
|
24614
|
-
|
|
24615
|
-
|
|
24616
|
-
|
|
24854
|
+
[placeholder]="'BRANCH'"
|
|
24855
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Branch"
|
|
24856
|
+
[collection]="branches"
|
|
24857
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')">
|
|
24617
24858
|
</co-transaction-filter-item>
|
|
24618
24859
|
</div>
|
|
24619
24860
|
|
|
24620
24861
|
<!--Verkoper-->
|
|
24621
24862
|
<div class="filter-item-wrapper" lazyRender #lazyRenderHandledBy="lazyRender">
|
|
24622
24863
|
<co-transaction-filter-item *ngIf="lazyRenderHandledBy.isShowing"
|
|
24623
|
-
|
|
24624
|
-
|
|
24625
|
-
|
|
24864
|
+
[placeholder]="'HANDLED_BY'"
|
|
24865
|
+
[searchCollectionPlaceholder]="searchPlaceholder.SalesPerson"
|
|
24866
|
+
[collection]="salesPersons"
|
|
24867
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')"
|
|
24626
24868
|
>
|
|
24627
24869
|
</co-transaction-filter-item>
|
|
24628
24870
|
</div>
|
|
@@ -24630,38 +24872,39 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24630
24872
|
<!--Eigen referentie-->
|
|
24631
24873
|
<div class="filter-item-wrapper" lazyRender #lazyRenderUserReference="lazyRender">
|
|
24632
24874
|
<co-transaction-filter-item *ngIf="lazyRenderUserReference.isShowing"
|
|
24633
|
-
|
|
24634
|
-
|
|
24875
|
+
[placeholder]="'OWN_REFERENCE'"
|
|
24876
|
+
[customContent]="true">
|
|
24635
24877
|
<co-input-text [(model)]="searchRequest.userReference"
|
|
24636
|
-
[placeholder]="
|
|
24878
|
+
[placeholder]="searchPlaceholder.OwnReference | localize"></co-input-text>
|
|
24637
24879
|
</co-transaction-filter-item>
|
|
24638
24880
|
</div>
|
|
24639
24881
|
|
|
24640
24882
|
<!--Tags-->
|
|
24641
24883
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTags="lazyRender">
|
|
24642
24884
|
<co-transaction-filter-item *ngIf="lazyRenderTags.isShowing"
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24885
|
+
[placeholder]="'TAGS'"
|
|
24886
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Tags"
|
|
24887
|
+
[collection]="tags"
|
|
24888
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'tagRange')">
|
|
24889
|
+
<co-input-text [(model)]="searchRequest.tagRange" [placeholder]="searchPlaceholder.Tags | localize"></co-input-text>
|
|
24647
24890
|
</co-transaction-filter-item>
|
|
24648
24891
|
</div>
|
|
24649
24892
|
|
|
24650
24893
|
<!--On hold codes-->
|
|
24651
24894
|
<div class="filter-item-wrapper" lazyRender #lazyRenderOnHold="lazyRender">
|
|
24652
24895
|
<co-transaction-filter-item *ngIf="lazyRenderOnHold.isShowing"
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
<co-input-text [(model)]="searchRequest.tagRange" [placeholder]="
|
|
24896
|
+
[placeholder]="'ON_HOLD'"
|
|
24897
|
+
[collection]="onHoldCodes"
|
|
24898
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event,'rangeOnHoldCodes')">
|
|
24899
|
+
<co-input-text [(model)]="searchRequest.tagRange" [placeholder]="searchPlaceholder.OnHold | localize"></co-input-text>
|
|
24657
24900
|
</co-transaction-filter-item>
|
|
24658
24901
|
</div>
|
|
24659
24902
|
|
|
24660
24903
|
<!--Order definitief-->
|
|
24661
24904
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTransDef="lazyRender">
|
|
24662
24905
|
<co-transaction-filter-item *ngIf="lazyRenderTransDef.isShowing"
|
|
24663
|
-
|
|
24664
|
-
|
|
24906
|
+
[placeholder]="'ORDER_DEFINITIVE'"
|
|
24907
|
+
[customContent]="true">
|
|
24665
24908
|
<co-input-checkbox
|
|
24666
24909
|
[model]="searchRequest.transactionDefinitive === 'J'"
|
|
24667
24910
|
(modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'transactionDefinitive')"
|
|
@@ -24672,9 +24915,10 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24672
24915
|
<!--Commissiecode-->
|
|
24673
24916
|
<div class="filter-item-wrapper" lazyRender #lazyRenderCommissionCodes="lazyRender">
|
|
24674
24917
|
<co-transaction-filter-item *ngIf="lazyRenderCommissionCodes.isShowing"
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
24918
|
+
[placeholder]="'COMMISSION_CODE'"
|
|
24919
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CommissionCode"
|
|
24920
|
+
[collection]="commissionCodes"
|
|
24921
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')"
|
|
24678
24922
|
>
|
|
24679
24923
|
</co-transaction-filter-item>
|
|
24680
24924
|
</div>
|
|
@@ -24682,8 +24926,8 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24682
24926
|
<!--Inactieve transacties-->
|
|
24683
24927
|
<div class="filter-item-wrapper" lazyRender #lazyRenderInactiveTrans="lazyRender">
|
|
24684
24928
|
<co-transaction-filter-item *ngIf="lazyRenderInactiveTrans.isShowing"
|
|
24685
|
-
|
|
24686
|
-
|
|
24929
|
+
[placeholder]="'INACTIVE_TRANSACTIONS'"
|
|
24930
|
+
[customContent]="true">
|
|
24687
24931
|
<co-input-checkbox
|
|
24688
24932
|
[model]="searchRequest.active === false"
|
|
24689
24933
|
(modelChange)="searchRequest.active = !$event"
|
|
@@ -24695,21 +24939,23 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24695
24939
|
<!--Klantnaam-->
|
|
24696
24940
|
<div class="filter-item-wrapper" lazyRender #lazyRenderRelationName="lazyRender">
|
|
24697
24941
|
<co-transaction-filter-item *ngIf="lazyRenderRelationName.isShowing"
|
|
24698
|
-
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24702
|
-
|
|
24942
|
+
[placeholder]="'CUSTOMER_NAME'"
|
|
24943
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CustomerName"
|
|
24944
|
+
[singleSelect]="true"
|
|
24945
|
+
[minSearchCharsToLoadCollection]="3"
|
|
24946
|
+
[collectionLoadFn]="loadCustomers"
|
|
24947
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'relationName' )">
|
|
24703
24948
|
</co-transaction-filter-item>
|
|
24704
24949
|
</div>
|
|
24705
24950
|
|
|
24706
24951
|
<!--Klantgroep-->
|
|
24707
24952
|
<div class="filter-item-wrapper" lazyRender #lazyRenderCustomerGroup="lazyRender">
|
|
24708
24953
|
<co-transaction-filter-item *ngIf="lazyRenderCustomerGroup.isShowing"
|
|
24709
|
-
|
|
24710
|
-
|
|
24711
|
-
|
|
24712
|
-
|
|
24954
|
+
[placeholder]="'CUSTOMER_GROUP'"
|
|
24955
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CustomerGroup"
|
|
24956
|
+
[singleSelect]="true"
|
|
24957
|
+
[collection]="customerGroups"
|
|
24958
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'customerGroupId')">
|
|
24713
24959
|
</co-transaction-filter-item>
|
|
24714
24960
|
</div>
|
|
24715
24961
|
</div>
|