@colijnit/transaction 12.1.72 → 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 +396 -176
- 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-confirmation-details/transaction-confirmation-details.component.js +4 -23
- package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +2 -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-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +1 -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 +565 -343
- 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-confirmation-details/style/_layout.scss +0 -16
- package/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.d.ts +0 -4
- package/lib/component/transaction-confirmation-history/style/_layout.scss +0 -4
- 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-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +0 -1
- 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>
|
|
@@ -18416,9 +18599,7 @@ class TransactionConfirmationHistoryComponent {
|
|
|
18416
18599
|
this.getPurchasePortalLine.filterObject = this.purchasePortalFilter;
|
|
18417
18600
|
this.transactionService.getPurchasePortalLines(this.getPurchasePortalLine).then((result) => {
|
|
18418
18601
|
this.transactionService.purchasePortalLine = result;
|
|
18419
|
-
this.transactionService.purchasePortalLine.
|
|
18420
|
-
this.filteredDocBatchArray = element.docBatchArray.filter(value => value.historical === 'G');
|
|
18421
|
-
});
|
|
18602
|
+
this.filteredDocBatchArray = this.transactionService.purchasePortalLine[0].docBatchArray.filter(value => value.historical === 'G');
|
|
18422
18603
|
});
|
|
18423
18604
|
});
|
|
18424
18605
|
}
|
|
@@ -18521,31 +18702,20 @@ class TransactionConfirmationDetailsComponent {
|
|
|
18521
18702
|
this.showAddOrder = false;
|
|
18522
18703
|
this.newDocBatchArray = new DocDeliveryBatch();
|
|
18523
18704
|
this.docBatchSaved = new EventEmitter();
|
|
18524
|
-
this.isEditMode = false;
|
|
18525
18705
|
}
|
|
18526
18706
|
showClass() {
|
|
18527
18707
|
return true;
|
|
18528
18708
|
}
|
|
18529
|
-
set isEditing(value) {
|
|
18530
|
-
this.isEditMode = value;
|
|
18531
|
-
console.log(this.isEditMode);
|
|
18532
|
-
console.log(this.isEditing);
|
|
18533
|
-
}
|
|
18534
|
-
get isEditing() {
|
|
18535
|
-
return this.isEditMode;
|
|
18536
|
-
}
|
|
18537
18709
|
addButtonClicked() {
|
|
18538
18710
|
this.showAddOrder = !this.showAddOrder;
|
|
18539
18711
|
}
|
|
18540
18712
|
handleOkClick() {
|
|
18541
18713
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18542
18714
|
if (this.newDocBatchArray.docAmount && this.newDocBatchArray.confirmedPrice) {
|
|
18715
|
+
this.newDocBatchArray.docDateOrg = new Date();
|
|
18543
18716
|
this.newDocBatchArray.deleteLine = "F";
|
|
18544
18717
|
this.newDocBatchArray.historical = "G";
|
|
18545
|
-
|
|
18546
|
-
this.newDocBatchArray.docDateOrg = this.newDocBatchArray.docDate;
|
|
18547
|
-
this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
|
|
18548
|
-
}
|
|
18718
|
+
this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
|
|
18549
18719
|
this.transactionService.purchasePortalLine[0].docKind = "IB";
|
|
18550
18720
|
yield this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0]);
|
|
18551
18721
|
this.docBatchSaved.emit(true);
|
|
@@ -18556,10 +18726,6 @@ class TransactionConfirmationDetailsComponent {
|
|
|
18556
18726
|
}
|
|
18557
18727
|
});
|
|
18558
18728
|
}
|
|
18559
|
-
handleCancelClick() {
|
|
18560
|
-
this.newDocBatchArray = new DocDeliveryBatch();
|
|
18561
|
-
this.isEditing = false;
|
|
18562
|
-
}
|
|
18563
18729
|
}
|
|
18564
18730
|
TransactionConfirmationDetailsComponent.decorators = [
|
|
18565
18731
|
{ type: Component, args: [{
|
|
@@ -18577,9 +18743,6 @@ TransactionConfirmationDetailsComponent.decorators = [
|
|
|
18577
18743
|
<span class="header-right-text" [textContent]="transactionLines.deliveryDate | date:'dd-MM-YYYY'"></span>
|
|
18578
18744
|
</div>
|
|
18579
18745
|
</div>
|
|
18580
|
-
<div class="header-inform-user" *ngIf="isEditing">
|
|
18581
|
-
<span class="header-inform-user editting" [textContent]="'EDITING_DATA_ROW' | localize"></span>
|
|
18582
|
-
</div>
|
|
18583
18746
|
<div *ngIf="showAddOrder" class="columns-wrapper">
|
|
18584
18747
|
<div class="details-column">
|
|
18585
18748
|
<co-input-text class="details-input"
|
|
@@ -18620,7 +18783,7 @@ TransactionConfirmationDetailsComponent.decorators = [
|
|
|
18620
18783
|
</co-form>
|
|
18621
18784
|
|
|
18622
18785
|
<div *ngIf="showAddOrder" class="save-cancel-wrapper">
|
|
18623
|
-
<co-default-ok-cancel-buttons (okClick)="handleOkClick()"
|
|
18786
|
+
<co-default-ok-cancel-buttons (okClick)="handleOkClick()"></co-default-ok-cancel-buttons>
|
|
18624
18787
|
</div>
|
|
18625
18788
|
</div>
|
|
18626
18789
|
`,
|
|
@@ -18639,7 +18802,6 @@ TransactionConfirmationDetailsComponent.propDecorators = {
|
|
|
18639
18802
|
transactionInfoNr: [{ type: Input }],
|
|
18640
18803
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-confirmation-details",] }],
|
|
18641
18804
|
newDocBatchArray: [{ type: Input }],
|
|
18642
|
-
isEditing: [{ type: Input }],
|
|
18643
18805
|
docBatchSaved: [{ type: Output }]
|
|
18644
18806
|
};
|
|
18645
18807
|
|
|
@@ -18736,7 +18898,6 @@ class TransactionLineSidePanelPurchaseComponent {
|
|
|
18736
18898
|
this.goodsReceiptStatus = new GoodsReceiptStatusWithHistory();
|
|
18737
18899
|
this.selectedLineDocBatchArray = new DocDeliveryBatch();
|
|
18738
18900
|
this.isDocBatchSaved = false;
|
|
18739
|
-
this.editingMode = false;
|
|
18740
18901
|
this._transactionInfo = new TransactionInfo();
|
|
18741
18902
|
}
|
|
18742
18903
|
set transactionInfo(value) {
|
|
@@ -18763,7 +18924,6 @@ class TransactionLineSidePanelPurchaseComponent {
|
|
|
18763
18924
|
}
|
|
18764
18925
|
fillInputOnClick(data) {
|
|
18765
18926
|
this.selectedLineDocBatchArray = data;
|
|
18766
|
-
this.editingMode = true;
|
|
18767
18927
|
}
|
|
18768
18928
|
docBatchSaved(data) {
|
|
18769
18929
|
this.isDocBatchSaved = data;
|
|
@@ -18779,7 +18939,6 @@ TransactionLineSidePanelPurchaseComponent.decorators = [
|
|
|
18779
18939
|
[transactionInfoNr]="transactionInfo.transactionNr"
|
|
18780
18940
|
[transactionLines]="transactionLine"
|
|
18781
18941
|
[newDocBatchArray]="selectedLineDocBatchArray"
|
|
18782
|
-
[isEditing]="editingMode"
|
|
18783
18942
|
(docBatchSaved)="docBatchSaved($event)"
|
|
18784
18943
|
></co-transaction-confirmation-details>
|
|
18785
18944
|
<co-transaction-confirmation-history
|
|
@@ -21950,12 +22109,21 @@ class TransactionLineSupplierButtonComponent extends TransactionLineBaseComponen
|
|
|
21950
22109
|
showClass() {
|
|
21951
22110
|
return true;
|
|
21952
22111
|
}
|
|
22112
|
+
handleOpenDialog(event) {
|
|
22113
|
+
event.preventDefault();
|
|
22114
|
+
event.stopPropagation();
|
|
22115
|
+
this.showDialogSupplier = !this.readonly;
|
|
22116
|
+
}
|
|
21953
22117
|
transactionLineSet() {
|
|
21954
22118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21955
22119
|
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
21956
|
-
|
|
21957
|
-
|
|
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 : "";
|
|
21958
22125
|
});
|
|
22126
|
+
this.readonly = !this.transactionLine.articleFreeSupplier;
|
|
21959
22127
|
}
|
|
21960
22128
|
});
|
|
21961
22129
|
}
|
|
@@ -21964,7 +22132,7 @@ TransactionLineSupplierButtonComponent.decorators = [
|
|
|
21964
22132
|
{ type: Component, args: [{
|
|
21965
22133
|
selector: "co-transaction-line-supplier-button",
|
|
21966
22134
|
template: `
|
|
21967
|
-
<div class="transaction-line-button big" (click)="
|
|
22135
|
+
<div class="transaction-line-button big" (click)="handleOpenDialog($event)">
|
|
21968
22136
|
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.supplierDescription"></span>
|
|
21969
22137
|
</div>
|
|
21970
22138
|
<co-dialog-transaction-line-supplier *ngIf="showDialogSupplier"
|
|
@@ -22432,8 +22600,8 @@ class TransactionFilterItemComponent {
|
|
|
22432
22600
|
this.placeholder = '';
|
|
22433
22601
|
this.customContent = false;
|
|
22434
22602
|
this.singleSelect = false;
|
|
22435
|
-
this.collectionChange = new EventEmitter();
|
|
22436
22603
|
this.searchCollectionPlaceholder = "SEARCH_IN_COLLECTION";
|
|
22604
|
+
this.collectionChange = new EventEmitter();
|
|
22437
22605
|
this.searchPlaceholder = "SEARCH";
|
|
22438
22606
|
this.noResultsLabel = "NO_RESULTS";
|
|
22439
22607
|
this.showMoreLabel = "SHOW_MORE";
|
|
@@ -22482,6 +22650,7 @@ TransactionFilterItemComponent.propDecorators = {
|
|
|
22482
22650
|
customContent: [{ type: Input }],
|
|
22483
22651
|
singleSelect: [{ type: Input }],
|
|
22484
22652
|
minSearchCharsToLoadCollection: [{ type: Input }],
|
|
22653
|
+
searchCollectionPlaceholder: [{ type: Input }],
|
|
22485
22654
|
collectionLoadFn: [{ type: Input }],
|
|
22486
22655
|
collectionChange: [{ type: Output }]
|
|
22487
22656
|
};
|
|
@@ -22689,13 +22858,40 @@ FilterRequestService.ctorParameters = () => [
|
|
|
22689
22858
|
{ type: TransactionService }
|
|
22690
22859
|
];
|
|
22691
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
|
+
|
|
22692
22888
|
class TransactionFilterContentBaseComponent {
|
|
22693
22889
|
constructor(searchService, filterRequestService, transactionService) {
|
|
22694
22890
|
this.searchService = searchService;
|
|
22695
22891
|
this.filterRequestService = filterRequestService;
|
|
22696
22892
|
this.transactionService = transactionService;
|
|
22893
|
+
this.searchPlaceholder = SearchPlaceholder;
|
|
22697
22894
|
this.searchRequest = this.searchService.searchRequest;
|
|
22698
|
-
this.searchPlaceholder = "SEARCH";
|
|
22699
22895
|
this.filterButtonLabel = "SEARCH_IMPERATIVE";
|
|
22700
22896
|
}
|
|
22701
22897
|
ngOnInit() {
|
|
@@ -22789,6 +22985,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22789
22985
|
<div class="filter-item-wrapper" lazyRender #lazyRenderArticleNr="lazyRender">
|
|
22790
22986
|
<co-transaction-filter-item *ngIf="lazyRenderArticleNr.isShowing"
|
|
22791
22987
|
[placeholder]="'ARTICLE_NR'"
|
|
22988
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ArticleNr"
|
|
22792
22989
|
[singleSelect]="true"
|
|
22793
22990
|
[minSearchCharsToLoadCollection]="3"
|
|
22794
22991
|
[collectionLoadFn]="getArticles"
|
|
@@ -22800,6 +22997,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22800
22997
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTurnoverGroup="lazyRender">
|
|
22801
22998
|
<co-transaction-filter-item *ngIf="lazyRenderTurnoverGroup.isShowing"
|
|
22802
22999
|
[placeholder]="'TURNOVER_GROUP'"
|
|
23000
|
+
[searchCollectionPlaceholder]="searchPlaceholder.TurnoverGroup"
|
|
22803
23001
|
[collection]="turnoverGroups"
|
|
22804
23002
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')">
|
|
22805
23003
|
</co-transaction-filter-item>
|
|
@@ -22809,6 +23007,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22809
23007
|
<div class="filter-item-wrapper" lazyRender #lazyRenderExceedanceCodes="lazyRender">
|
|
22810
23008
|
<co-transaction-filter-item *ngIf="lazyRenderExceedanceCodes.isShowing"
|
|
22811
23009
|
[placeholder]="'EXCEEDENCE_CODE'"
|
|
23010
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ExceedenceCode"
|
|
22812
23011
|
[collection]="exceedanceCodes"
|
|
22813
23012
|
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')"
|
|
22814
23013
|
>
|
|
@@ -22821,7 +23020,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22821
23020
|
[placeholder]="'SERIAL_NUMBER'"
|
|
22822
23021
|
[customContent]="true">
|
|
22823
23022
|
<co-input-text [(model)]="searchRequest.serialNumber"
|
|
22824
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23023
|
+
[placeholder]="searchPlaceholder.SerialNumber | localize"></co-input-text>
|
|
22825
23024
|
</co-transaction-filter-item>
|
|
22826
23025
|
</div>
|
|
22827
23026
|
|
|
@@ -22831,7 +23030,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22831
23030
|
[placeholder]="'BATCH_NUMBER'"
|
|
22832
23031
|
[customContent]="true">
|
|
22833
23032
|
<co-input-text [(model)]="searchRequest.batchNumber"
|
|
22834
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23033
|
+
[placeholder]="searchPlaceholder.BatchNumber | localize"></co-input-text>
|
|
22835
23034
|
</co-transaction-filter-item>
|
|
22836
23035
|
</div>
|
|
22837
23036
|
|
|
@@ -22839,6 +23038,7 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
|
|
|
22839
23038
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSupplier="lazyRender">
|
|
22840
23039
|
<co-transaction-filter-item *ngIf="lazyRenderSupplier.isShowing"
|
|
22841
23040
|
[placeholder]="'SUPPLIER'"
|
|
23041
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Supplier"
|
|
22842
23042
|
[collection]="suppliers"
|
|
22843
23043
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')">
|
|
22844
23044
|
</co-transaction-filter-item>
|
|
@@ -22951,7 +23151,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
22951
23151
|
[placeholder]="'SERIAL_NUMBER'"
|
|
22952
23152
|
[customContent]="true">
|
|
22953
23153
|
<co-input-text [(model)]="searchRequest.serialNumber"
|
|
22954
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23154
|
+
[placeholder]="searchPlaceholder.SerialNumber | localize"></co-input-text>
|
|
22955
23155
|
</co-transaction-filter-item>
|
|
22956
23156
|
</div>
|
|
22957
23157
|
|
|
@@ -22961,7 +23161,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
22961
23161
|
[placeholder]="'BATCH_NUMBER'"
|
|
22962
23162
|
[customContent]="true">
|
|
22963
23163
|
<co-input-text [(model)]="searchRequest.batchNumber"
|
|
22964
|
-
[placeholder]="searchPlaceholder | localize"></co-input-text>
|
|
23164
|
+
[placeholder]="searchPlaceholder.BatchNumber | localize"></co-input-text>
|
|
22965
23165
|
</co-transaction-filter-item>
|
|
22966
23166
|
</div>
|
|
22967
23167
|
|
|
@@ -23055,6 +23255,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
23055
23255
|
<div class="filter-item-wrapper" lazyRender #lazyRenderWarehouse="lazyRender">
|
|
23056
23256
|
<co-transaction-filter-item *ngIf="lazyRenderWarehouse.isShowing"
|
|
23057
23257
|
[placeholder]="'WAREHOUSE'"
|
|
23258
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Warehouse"
|
|
23058
23259
|
[singleSelect]="true"
|
|
23059
23260
|
[collection]="warehouses"
|
|
23060
23261
|
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'warehouse')">
|
|
@@ -23065,6 +23266,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
23065
23266
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSourceWarehouse="lazyRender">
|
|
23066
23267
|
<co-transaction-filter-item *ngIf="lazyRenderSourceWarehouse.isShowing"
|
|
23067
23268
|
[placeholder]="'SOURCE_WAREHOUSE'"
|
|
23269
|
+
[searchCollectionPlaceholder]="searchPlaceholder.SourceWarehouse"
|
|
23068
23270
|
[singleSelect]="true"
|
|
23069
23271
|
[collection]="sourceWarehouses"
|
|
23070
23272
|
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'sourceWarehouse')">
|
|
@@ -23075,6 +23277,7 @@ TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
|
23075
23277
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryMethod="lazyRender">
|
|
23076
23278
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryMethod.isShowing"
|
|
23077
23279
|
[placeholder]="'DELIVERY_METHOD'"
|
|
23280
|
+
[searchCollectionPlaceholder]="searchPlaceholder.DeliveryMethod"
|
|
23078
23281
|
[collection]="deliveryMethods"
|
|
23079
23282
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')">
|
|
23080
23283
|
</co-transaction-filter-item>
|
|
@@ -23280,7 +23483,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23280
23483
|
[placeholder]="'PURCHASENUMBER'"
|
|
23281
23484
|
[customContent]="true">
|
|
23282
23485
|
<co-input-text [(model)]="searchRequest.transNr"
|
|
23283
|
-
[placeholder]="
|
|
23486
|
+
[placeholder]="searchPlaceholder.PurchaseNumber | localize"></co-input-text>
|
|
23284
23487
|
</co-transaction-filter-item>
|
|
23285
23488
|
</div>
|
|
23286
23489
|
|
|
@@ -23318,6 +23521,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23318
23521
|
<div class="filter-item-wrapper" lazyRender #lazyRenderBranch="lazyRender">
|
|
23319
23522
|
<co-transaction-filter-item *ngIf="lazyRenderBranch.isShowing"
|
|
23320
23523
|
[placeholder]="'BRANCH'"
|
|
23524
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Branch"
|
|
23321
23525
|
[collection]="branches"
|
|
23322
23526
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')">
|
|
23323
23527
|
</co-transaction-filter-item>
|
|
@@ -23327,6 +23531,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23327
23531
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSalesPerson="lazyRender">
|
|
23328
23532
|
<co-transaction-filter-item *ngIf="lazyRenderSalesPerson.isShowing"
|
|
23329
23533
|
[placeholder]="'PURCHASE_PERSON'"
|
|
23534
|
+
[searchCollectionPlaceholder]="searchPlaceholder.PurchasePerson"
|
|
23330
23535
|
[collection]="purchasePersons"
|
|
23331
23536
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')">
|
|
23332
23537
|
</co-transaction-filter-item>
|
|
@@ -23338,7 +23543,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23338
23543
|
[placeholder]="'OWN_REFERENCE'"
|
|
23339
23544
|
[customContent]="true">
|
|
23340
23545
|
<co-input-text [(model)]="searchRequest.userReference"
|
|
23341
|
-
[placeholder]="
|
|
23546
|
+
[placeholder]="searchPlaceholder.OwnReference | localize"></co-input-text>
|
|
23342
23547
|
</co-transaction-filter-item>
|
|
23343
23548
|
</div>
|
|
23344
23549
|
|
|
@@ -23346,6 +23551,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23346
23551
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTags="lazyRender">
|
|
23347
23552
|
<co-transaction-filter-item *ngIf="lazyRenderTags.isShowing"
|
|
23348
23553
|
[placeholder]="'TAGS'"
|
|
23554
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Tags"
|
|
23349
23555
|
[collection]="tags"
|
|
23350
23556
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'tagRange')">
|
|
23351
23557
|
</co-transaction-filter-item>
|
|
@@ -23355,6 +23561,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23355
23561
|
<div class="filter-item-wrapper" lazyRender #lazyRenderOnHold="lazyRender">
|
|
23356
23562
|
<co-transaction-filter-item *ngIf="lazyRenderOnHold.isShowing"
|
|
23357
23563
|
[placeholder]="'ON_HOLD'"
|
|
23564
|
+
[searchCollectionPlaceholder]="searchPlaceholder.OnHold"
|
|
23358
23565
|
[collection]="onHoldCodes"
|
|
23359
23566
|
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event,'rangeOnHoldCodes')">
|
|
23360
23567
|
</co-transaction-filter-item>
|
|
@@ -23364,6 +23571,7 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
|
|
|
23364
23571
|
<div class="filter-item-wrapper" lazyRender #lazyRenderCommissionCode="lazyRender">
|
|
23365
23572
|
<co-transaction-filter-item *ngIf="lazyRenderCommissionCode.isShowing"
|
|
23366
23573
|
[placeholder]="'COMMISSION_CODE'"
|
|
23574
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CommissionCode"
|
|
23367
23575
|
[collection]="commissionCodes"
|
|
23368
23576
|
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')">
|
|
23369
23577
|
</co-transaction-filter-item>
|
|
@@ -24185,47 +24393,52 @@ TransactionSalesOrderFilterContentArticleComponent.decorators = [
|
|
|
24185
24393
|
<!--Artikelnummer-->
|
|
24186
24394
|
<div class="filter-item-wrapper" lazyRender #lazyRenderArticleNr="lazyRender">
|
|
24187
24395
|
<co-transaction-filter-item *ngIf="lazyRenderArticleNr.isShowing"
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24396
|
+
[placeholder]="'ARTICLE_NR'"
|
|
24397
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ArticleNr"
|
|
24398
|
+
[singleSelect]="true"
|
|
24399
|
+
[minSearchCharsToLoadCollection]="3"
|
|
24400
|
+
[collectionLoadFn]="getArticles"
|
|
24401
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'articleNr')">
|
|
24193
24402
|
</co-transaction-filter-item>
|
|
24194
24403
|
</div>
|
|
24195
24404
|
|
|
24196
24405
|
<!--Omzetgroep-->
|
|
24197
24406
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTurnoverGroup="lazyRender">
|
|
24198
24407
|
<co-transaction-filter-item *ngIf="lazyRenderTurnoverGroup.isShowing"
|
|
24199
|
-
|
|
24200
|
-
|
|
24201
|
-
|
|
24408
|
+
[placeholder]="'TURNOVER_GROUP'"
|
|
24409
|
+
[searchCollectionPlaceholder]="searchPlaceholder.TurnoverGroup"
|
|
24410
|
+
[collection]="turnoverGroups"
|
|
24411
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')">
|
|
24202
24412
|
</co-transaction-filter-item>
|
|
24203
24413
|
</div>
|
|
24204
24414
|
|
|
24205
24415
|
<!--Hoofdartikel-->
|
|
24206
24416
|
<div class="filter-item-wrapper" lazyRender #lazyRenderMainArticle="lazyRender">
|
|
24207
24417
|
<co-transaction-filter-item *ngIf="lazyRenderMainArticle.isShowing"
|
|
24208
|
-
|
|
24209
|
-
|
|
24210
|
-
|
|
24418
|
+
[placeholder]="'MAIN_ARTICLE'"
|
|
24419
|
+
[searchCollectionPlaceholder]="searchPlaceholder.MainArticle"
|
|
24420
|
+
[collection]="mainArticles"
|
|
24421
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'mainArticleNrRange')">
|
|
24211
24422
|
</co-transaction-filter-item>
|
|
24212
24423
|
</div>
|
|
24213
24424
|
|
|
24214
24425
|
<!--Uitloopcode -->
|
|
24215
24426
|
<div class="filter-item-wrapper" lazyRender #lazyRenderExceedanceCodes="lazyRender">
|
|
24216
24427
|
<co-transaction-filter-item *ngIf="lazyRenderExceedanceCodes.isShowing"
|
|
24217
|
-
|
|
24218
|
-
|
|
24219
|
-
|
|
24428
|
+
[placeholder]="'EXCEEDENCE_CODE'"
|
|
24429
|
+
[searchCollectionPlaceholder]="searchPlaceholder.ExceedenceCode"
|
|
24430
|
+
[collection]="exceedanceCodes"
|
|
24431
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')">
|
|
24220
24432
|
</co-transaction-filter-item>
|
|
24221
24433
|
</div>
|
|
24222
24434
|
|
|
24223
24435
|
<!--Leverancier-->
|
|
24224
24436
|
<div class="filter-item-wrapper" lazyRender #lazyRenderSupplier="lazyRender">
|
|
24225
24437
|
<co-transaction-filter-item *ngIf="lazyRenderSupplier.isShowing"
|
|
24226
|
-
|
|
24227
|
-
|
|
24228
|
-
|
|
24438
|
+
[placeholder]="'SUPPLIER'"
|
|
24439
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Supplier"
|
|
24440
|
+
[collection]="suppliers"
|
|
24441
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')"
|
|
24229
24442
|
>
|
|
24230
24443
|
</co-transaction-filter-item>
|
|
24231
24444
|
</div>
|
|
@@ -24319,9 +24532,10 @@ TransactionSalesOrderFilterContentLogisticsComponent.decorators = [
|
|
|
24319
24532
|
<!--Levermethode-->
|
|
24320
24533
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryMethod="lazyRender">
|
|
24321
24534
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryMethod.isShowing"
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24535
|
+
[placeholder]="'DELIVERY_METHOD'"
|
|
24536
|
+
[collection]="deliveryMethods"
|
|
24537
|
+
[searchCollectionPlaceholder]="searchPlaceholder.DeliveryMethod"
|
|
24538
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')"
|
|
24325
24539
|
>
|
|
24326
24540
|
</co-transaction-filter-item>
|
|
24327
24541
|
</div>
|
|
@@ -24330,8 +24544,8 @@ TransactionSalesOrderFilterContentLogisticsComponent.decorators = [
|
|
|
24330
24544
|
<!--Leverdatum definitief-->
|
|
24331
24545
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryDateFinal="lazyRender">
|
|
24332
24546
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryDateFinal.isShowing"
|
|
24333
|
-
|
|
24334
|
-
|
|
24547
|
+
[placeholder]="'DELIVERY_DATE_FINAL'"
|
|
24548
|
+
[customContent]="true"
|
|
24335
24549
|
>
|
|
24336
24550
|
<co-input-checkbox
|
|
24337
24551
|
[model]="searchRequest.deliveryDateDefinitive === 'J'"
|
|
@@ -24354,131 +24568,133 @@ TransactionSalesOrderFilterContentLogisticsComponent.decorators = [
|
|
|
24354
24568
|
[label]="'DELIVERED'"
|
|
24355
24569
|
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'quantityDelivered')"
|
|
24356
24570
|
></co-transaction-filter-historic-state>
|
|
24357
|
-
|
|
24358
|
-
|
|
24359
|
-
<!--Gefactureerd-->
|
|
24360
|
-
<div class="filter-item-wrapper" lazyRender #lazyRenderInvoiced="lazyRender">
|
|
24361
|
-
<co-transaction-filter-historic-state *ngIf="lazyRenderInvoiced.isShowing"
|
|
24362
|
-
[label]="'INVOICED'"
|
|
24363
|
-
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'quantityInvoiced')"
|
|
24364
|
-
></co-transaction-filter-historic-state>
|
|
24365
|
-
</div>
|
|
24571
|
+
</div>
|
|
24366
24572
|
|
|
24367
|
-
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
|
|
24371
|
-
|
|
24372
|
-
|
|
24373
|
-
|
|
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>
|
|
24374
24580
|
|
|
24375
|
-
|
|
24376
|
-
|
|
24377
|
-
|
|
24378
|
-
|
|
24379
|
-
|
|
24380
|
-
|
|
24381
|
-
|
|
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>
|
|
24382
24588
|
|
|
24383
|
-
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24387
|
-
|
|
24388
|
-
|
|
24389
|
-
|
|
24390
|
-
[endDate]="confirmedDeliveryEndDate"
|
|
24391
|
-
(dateRangeChange)="onDateRangeChange($event, 'confirmedDeliveryDateRange')"
|
|
24392
|
-
(cleared)="onClearedDateRangeChange('confirmedDeliveryDateRange')"
|
|
24393
|
-
[placeholder]="'SELECT_DATE' | localize">
|
|
24394
|
-
</co-input-date-range>
|
|
24395
|
-
</co-transaction-filter-item>
|
|
24396
|
-
</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>
|
|
24397
24596
|
|
|
24398
|
-
|
|
24399
|
-
|
|
24400
|
-
|
|
24401
|
-
|
|
24402
|
-
|
|
24403
|
-
|
|
24404
|
-
|
|
24405
|
-
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
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>
|
|
24412
24611
|
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
|
|
24422
|
-
|
|
24423
|
-
|
|
24424
|
-
|
|
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>
|
|
24425
24626
|
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
|
|
24431
|
-
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
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>
|
|
24435
24639
|
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
</
|
|
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>
|
|
24445
24650
|
|
|
24446
|
-
|
|
24447
|
-
|
|
24448
|
-
|
|
24449
|
-
|
|
24450
|
-
|
|
24451
|
-
|
|
24452
|
-
|
|
24453
|
-
|
|
24454
|
-
</
|
|
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>
|
|
24455
24661
|
|
|
24456
|
-
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
|
|
24463
|
-
|
|
24464
|
-
|
|
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>
|
|
24465
24671
|
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
>
|
|
24476
|
-
</co-input-checkbox>
|
|
24477
|
-
</co-transaction-filter-item>
|
|
24478
|
-
</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>
|
|
24479
24681
|
|
|
24480
|
-
|
|
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>
|
|
24481
24694
|
</div>
|
|
24695
|
+
|
|
24696
|
+
<!--Levermethode op (regel/header): todo: nog uitzoeken welke filter dit is-->
|
|
24697
|
+
</div>
|
|
24482
24698
|
`
|
|
24483
24699
|
},] }
|
|
24484
24700
|
];
|
|
@@ -24605,8 +24821,8 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24605
24821
|
<!--Orderdatum-->
|
|
24606
24822
|
<div class="filter-item-wrapper" lazyRender #lazyRenderOrderDate="lazyRender">
|
|
24607
24823
|
<co-transaction-filter-item *ngIf="lazyRenderOrderDate.isShowing"
|
|
24608
|
-
|
|
24609
|
-
|
|
24824
|
+
[placeholder]="'ORDER_DATE'"
|
|
24825
|
+
[customContent]="true">
|
|
24610
24826
|
<co-input-date-range
|
|
24611
24827
|
[startDate]="transStartDate"
|
|
24612
24828
|
[endDate]="transEndDate"
|
|
@@ -24620,8 +24836,8 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24620
24836
|
<!--Leverdatum-->
|
|
24621
24837
|
<div class="filter-item-wrapper" lazyRender #lazyRenderDeliveryDate="lazyRender">
|
|
24622
24838
|
<co-transaction-filter-item *ngIf="lazyRenderDeliveryDate.isShowing"
|
|
24623
|
-
|
|
24624
|
-
|
|
24839
|
+
[placeholder]="'DELIVERY_DATE'"
|
|
24840
|
+
[customContent]="true">
|
|
24625
24841
|
<co-input-date-range
|
|
24626
24842
|
[startDate]="deliveryStartDate"
|
|
24627
24843
|
[endDate]="deliveryEndDate"
|
|
@@ -24635,18 +24851,20 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24635
24851
|
<!--Filiaal-->
|
|
24636
24852
|
<div class="filter-item-wrapper" lazyRender #lazyRenderBranch="lazyRender">
|
|
24637
24853
|
<co-transaction-filter-item *ngIf="lazyRenderBranch.isShowing"
|
|
24638
|
-
|
|
24639
|
-
|
|
24640
|
-
|
|
24854
|
+
[placeholder]="'BRANCH'"
|
|
24855
|
+
[searchCollectionPlaceholder]="searchPlaceholder.Branch"
|
|
24856
|
+
[collection]="branches"
|
|
24857
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')">
|
|
24641
24858
|
</co-transaction-filter-item>
|
|
24642
24859
|
</div>
|
|
24643
24860
|
|
|
24644
24861
|
<!--Verkoper-->
|
|
24645
24862
|
<div class="filter-item-wrapper" lazyRender #lazyRenderHandledBy="lazyRender">
|
|
24646
24863
|
<co-transaction-filter-item *ngIf="lazyRenderHandledBy.isShowing"
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24864
|
+
[placeholder]="'HANDLED_BY'"
|
|
24865
|
+
[searchCollectionPlaceholder]="searchPlaceholder.SalesPerson"
|
|
24866
|
+
[collection]="salesPersons"
|
|
24867
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')"
|
|
24650
24868
|
>
|
|
24651
24869
|
</co-transaction-filter-item>
|
|
24652
24870
|
</div>
|
|
@@ -24654,38 +24872,39 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24654
24872
|
<!--Eigen referentie-->
|
|
24655
24873
|
<div class="filter-item-wrapper" lazyRender #lazyRenderUserReference="lazyRender">
|
|
24656
24874
|
<co-transaction-filter-item *ngIf="lazyRenderUserReference.isShowing"
|
|
24657
|
-
|
|
24658
|
-
|
|
24875
|
+
[placeholder]="'OWN_REFERENCE'"
|
|
24876
|
+
[customContent]="true">
|
|
24659
24877
|
<co-input-text [(model)]="searchRequest.userReference"
|
|
24660
|
-
[placeholder]="
|
|
24878
|
+
[placeholder]="searchPlaceholder.OwnReference | localize"></co-input-text>
|
|
24661
24879
|
</co-transaction-filter-item>
|
|
24662
24880
|
</div>
|
|
24663
24881
|
|
|
24664
24882
|
<!--Tags-->
|
|
24665
24883
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTags="lazyRender">
|
|
24666
24884
|
<co-transaction-filter-item *ngIf="lazyRenderTags.isShowing"
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
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>
|
|
24671
24890
|
</co-transaction-filter-item>
|
|
24672
24891
|
</div>
|
|
24673
24892
|
|
|
24674
24893
|
<!--On hold codes-->
|
|
24675
24894
|
<div class="filter-item-wrapper" lazyRender #lazyRenderOnHold="lazyRender">
|
|
24676
24895
|
<co-transaction-filter-item *ngIf="lazyRenderOnHold.isShowing"
|
|
24677
|
-
|
|
24678
|
-
|
|
24679
|
-
|
|
24680
|
-
<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>
|
|
24681
24900
|
</co-transaction-filter-item>
|
|
24682
24901
|
</div>
|
|
24683
24902
|
|
|
24684
24903
|
<!--Order definitief-->
|
|
24685
24904
|
<div class="filter-item-wrapper" lazyRender #lazyRenderTransDef="lazyRender">
|
|
24686
24905
|
<co-transaction-filter-item *ngIf="lazyRenderTransDef.isShowing"
|
|
24687
|
-
|
|
24688
|
-
|
|
24906
|
+
[placeholder]="'ORDER_DEFINITIVE'"
|
|
24907
|
+
[customContent]="true">
|
|
24689
24908
|
<co-input-checkbox
|
|
24690
24909
|
[model]="searchRequest.transactionDefinitive === 'J'"
|
|
24691
24910
|
(modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'transactionDefinitive')"
|
|
@@ -24696,9 +24915,10 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24696
24915
|
<!--Commissiecode-->
|
|
24697
24916
|
<div class="filter-item-wrapper" lazyRender #lazyRenderCommissionCodes="lazyRender">
|
|
24698
24917
|
<co-transaction-filter-item *ngIf="lazyRenderCommissionCodes.isShowing"
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24918
|
+
[placeholder]="'COMMISSION_CODE'"
|
|
24919
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CommissionCode"
|
|
24920
|
+
[collection]="commissionCodes"
|
|
24921
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')"
|
|
24702
24922
|
>
|
|
24703
24923
|
</co-transaction-filter-item>
|
|
24704
24924
|
</div>
|
|
@@ -24706,8 +24926,8 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24706
24926
|
<!--Inactieve transacties-->
|
|
24707
24927
|
<div class="filter-item-wrapper" lazyRender #lazyRenderInactiveTrans="lazyRender">
|
|
24708
24928
|
<co-transaction-filter-item *ngIf="lazyRenderInactiveTrans.isShowing"
|
|
24709
|
-
|
|
24710
|
-
|
|
24929
|
+
[placeholder]="'INACTIVE_TRANSACTIONS'"
|
|
24930
|
+
[customContent]="true">
|
|
24711
24931
|
<co-input-checkbox
|
|
24712
24932
|
[model]="searchRequest.active === false"
|
|
24713
24933
|
(modelChange)="searchRequest.active = !$event"
|
|
@@ -24719,21 +24939,23 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
|
|
|
24719
24939
|
<!--Klantnaam-->
|
|
24720
24940
|
<div class="filter-item-wrapper" lazyRender #lazyRenderRelationName="lazyRender">
|
|
24721
24941
|
<co-transaction-filter-item *ngIf="lazyRenderRelationName.isShowing"
|
|
24722
|
-
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24726
|
-
|
|
24942
|
+
[placeholder]="'CUSTOMER_NAME'"
|
|
24943
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CustomerName"
|
|
24944
|
+
[singleSelect]="true"
|
|
24945
|
+
[minSearchCharsToLoadCollection]="3"
|
|
24946
|
+
[collectionLoadFn]="loadCustomers"
|
|
24947
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'relationName' )">
|
|
24727
24948
|
</co-transaction-filter-item>
|
|
24728
24949
|
</div>
|
|
24729
24950
|
|
|
24730
24951
|
<!--Klantgroep-->
|
|
24731
24952
|
<div class="filter-item-wrapper" lazyRender #lazyRenderCustomerGroup="lazyRender">
|
|
24732
24953
|
<co-transaction-filter-item *ngIf="lazyRenderCustomerGroup.isShowing"
|
|
24733
|
-
|
|
24734
|
-
|
|
24735
|
-
|
|
24736
|
-
|
|
24954
|
+
[placeholder]="'CUSTOMER_GROUP'"
|
|
24955
|
+
[searchCollectionPlaceholder]="searchPlaceholder.CustomerGroup"
|
|
24956
|
+
[singleSelect]="true"
|
|
24957
|
+
[collection]="customerGroups"
|
|
24958
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleSelect($event, 'customerGroupId')">
|
|
24737
24959
|
</co-transaction-filter-item>
|
|
24738
24960
|
</div>
|
|
24739
24961
|
</div>
|