@colijnit/transaction 255.1.17 → 255.1.18

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.
Files changed (25) hide show
  1. package/bundles/colijnit-transaction.umd.js +89 -21
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.js +3 -3
  5. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.component.js +5 -2
  6. package/esm2015/lib/component/transaction-search/transaction-filter-content/enum/search-placeholder.enum.js +2 -1
  7. 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 +20 -1
  8. 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 +21 -2
  9. package/esm2015/lib/component/transaction-search/transaction-filter-content/sales-quotation-filter-content/transaction-sales-quotation-filter-content-order/transaction-sales-quotation-filter-content-order.component.js +20 -1
  10. package/esm2015/lib/component/transaction-search/transaction-filter-content/service-order-filter-content/transaction-service-order-filter-content-order/transaction-service-order-filter-content-order.component.js +20 -1
  11. package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
  12. package/esm2015/lib/service/transaction-connector.service.js +6 -1
  13. package/esm2015/lib/service/transaction.service.js +6 -1
  14. package/esm2015/lib/transaction-version.js +3 -3
  15. package/fesm2015/colijnit-transaction.js +108 -6
  16. package/fesm2015/colijnit-transaction.js.map +1 -1
  17. package/lib/component/transaction-search/transaction-filter-content/enum/search-placeholder.enum.d.ts +2 -1
  18. package/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-order/transaction-purchase-order-filter-content-order.component.d.ts +6 -0
  19. package/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-order/transaction-sales-order-filter-content-order.component.d.ts +6 -0
  20. package/lib/component/transaction-search/transaction-filter-content/sales-quotation-filter-content/transaction-sales-quotation-filter-content-order/transaction-sales-quotation-filter-content-order.component.d.ts +6 -0
  21. package/lib/component/transaction-search/transaction-filter-content/service-order-filter-content/transaction-service-order-filter-content-order/transaction-service-order-filter-content-order.component.d.ts +6 -0
  22. package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
  23. package/lib/service/transaction-connector.service.d.ts +1 -0
  24. package/lib/service/transaction.service.d.ts +1 -0
  25. package/package.json +2 -2
@@ -3,8 +3,8 @@ export class Version {
3
3
  constructor() {
4
4
  this.name = "@colijnit/transaction";
5
5
  this.description = "Colijn IT transaction package";
6
- this.symVer = "255.1.17";
7
- this.publishDate = "21-8-2024 13:01:28";
6
+ this.symVer = "255.1.18";
7
+ this.publishDate = "22-8-2024 17:36:35";
8
8
  }
9
9
  }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2U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FwiMjU1LjEuMThcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMi04LTIwMjQgMTc6MzY6MzVcIjtcbn0iXX0=
@@ -265,8 +265,8 @@ class Version {
265
265
  constructor() {
266
266
  this.name = "@colijnit/transaction";
267
267
  this.description = "Colijn IT transaction package";
268
- this.symVer = "255.1.17";
269
- this.publishDate = "21-8-2024 13:01:28";
268
+ this.symVer = "255.1.18";
269
+ this.publishDate = "22-8-2024 17:36:35";
270
270
  }
271
271
  }
272
272
 
@@ -5305,6 +5305,18 @@ class TransactionConnectorAdapterService {
5305
5305
  }
5306
5306
  });
5307
5307
  }
5308
+ getAllProjectCodes() {
5309
+ return __awaiter(this, void 0, void 0, function* () {
5310
+ const response = yield this.connector.getAllProjectCodes();
5311
+ if (response && response.validationResult && response.validationResult.success) {
5312
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(ProjectCode, response.resultObjects);
5313
+ }
5314
+ else {
5315
+ this._handleExceptionFromResponse(response);
5316
+ return [];
5317
+ }
5318
+ });
5319
+ }
5308
5320
  getPaymentConditions(name) {
5309
5321
  return __awaiter(this, void 0, void 0, function* () {
5310
5322
  const response = yield this.mainConnector.getPaymentConditions(name);
@@ -7223,6 +7235,11 @@ class TransactionConnectorService {
7223
7235
  return yield this._adapterService.getProjectCodes(date);
7224
7236
  });
7225
7237
  }
7238
+ getAllProjectCodes() {
7239
+ return __awaiter(this, void 0, void 0, function* () {
7240
+ return yield this._adapterService.getAllProjectCodes();
7241
+ });
7242
+ }
7226
7243
  getPaymentConditions(name) {
7227
7244
  return __awaiter(this, void 0, void 0, function* () {
7228
7245
  return yield this._adapterService.getPaymentConditions(name);
@@ -11588,6 +11605,11 @@ class TransactionService extends PendingReasonService {
11588
11605
  return yield this.connector.getProjectCodes(date);
11589
11606
  });
11590
11607
  }
11608
+ getAllProjectCodes() {
11609
+ return __awaiter(this, void 0, void 0, function* () {
11610
+ return yield this.connector.getAllProjectCodes();
11611
+ });
11612
+ }
11591
11613
  getPaymentConditions(name) {
11592
11614
  return __awaiter(this, void 0, void 0, function* () {
11593
11615
  return yield this.connector.getPaymentConditions(name);
@@ -22044,8 +22066,11 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
22044
22066
  request.transactionRelationId = this.transactionInfo.relation.relationId;
22045
22067
  request.handledByRelationId = this.transactionInfo.handledBy;
22046
22068
  this.creatingSalesOrder = true;
22047
- yield this.transactionCreationService.createSalesOrderThroughQuotation(request);
22069
+ //const salesOrderCreated: boolean = await this.transactionCreationService.createSalesOrderThroughQuotation(request);
22048
22070
  this.creatingSalesOrder = false;
22071
+ /*if (salesOrderCreated) {
22072
+
22073
+ }*/
22049
22074
  });
22050
22075
  }
22051
22076
  handleSalesOrderNavigation(transNr) {
@@ -34896,8 +34921,8 @@ TransactionHeaderDepositAmountComponent.decorators = [
34896
34921
  { type: Component, args: [{
34897
34922
  selector: "co-transaction-header-deposit-amount",
34898
34923
  template: `
34899
- <span *ngIf="!editMode || headerReadonly" [textContent]="(transactionInfo.depositAmount | coCurrency) || '...'" [tooltip]="tooltipMessage"></span>
34900
- <co-input-text #input *ngIf="editMode"
34924
+ <span *ngIf="(!editMode || headerReadonly) && !defaultEditMode" [textContent]="(transactionInfo.depositAmount | coCurrency) || '...'" [tooltip]="tooltipMessage"></span>
34925
+ <co-input-text #input *ngIf="editMode || defaultEditMode"
34901
34926
  [type]="'number'"
34902
34927
  [placeholder]="showLabel ? ('DOWNPAYMENT' | localize) : ''"
34903
34928
  [showSaveCancel]="!headerReadonly"
@@ -43443,6 +43468,7 @@ var SearchPlaceholder;
43443
43468
  SearchPlaceholder["Tags"] = "SEARCH_TAGS";
43444
43469
  SearchPlaceholder["TurnoverGroup"] = "SEARCH_TURNOVER_GROUP";
43445
43470
  SearchPlaceholder["Warehouse"] = "SEARCH_WAREHOUSE";
43471
+ SearchPlaceholder["SearchProjectCode"] = "SEARCH_PROJECT_CODE";
43446
43472
  })(SearchPlaceholder || (SearchPlaceholder = {}));
43447
43473
 
43448
43474
  class TransactionFilterContentBaseComponent {
@@ -43954,6 +43980,7 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
43954
43980
  this.orderDepositFullyPaidFields = { text: "description", value: "code" };
43955
43981
  this.commissionCodeFields = { text: "description", value: "code" };
43956
43982
  this.workflowStatusFields = { text: "name", value: "name" };
43983
+ this.projectCodeFields = { text: "description", value: "id" };
43957
43984
  }
43958
43985
  showClass() {
43959
43986
  return true;
@@ -43969,6 +43996,7 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
43969
43996
  this._setOrderFullyPaid();
43970
43997
  this._setOrderDepositFullyPaid();
43971
43998
  this._setWorkFlowStatuses();
43999
+ this._setAllProjectCodes();
43972
44000
  }
43973
44001
  //Inkoper
43974
44002
  _setPurchasePersons() {
@@ -44027,6 +44055,11 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
44027
44055
  this.workflowStatuses = new FilterViewmodel(workflowStatuses, this.workflowStatusFields).filterItems;
44028
44056
  });
44029
44057
  }
44058
+ _setAllProjectCodes() {
44059
+ this.transactionService.getAllProjectCodes().then((projectCodes) => {
44060
+ this.projectCodes = new FilterViewmodel(projectCodes, this.projectCodeFields).filterItems;
44061
+ });
44062
+ }
44030
44063
  }
44031
44064
  TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
44032
44065
  { type: Component, args: [{
@@ -44102,6 +44135,18 @@ TransactionPurchaseOrderFilterContentOrderComponent.decorators = [
44102
44135
  </co-transaction-filter-item>
44103
44136
  </div>
44104
44137
 
44138
+ <!--Project Code-->
44139
+ <div class="filter-item-wrapper">
44140
+ <co-transaction-filter-item [placeholder]="'PROJECT_CODE'"
44141
+ [searchCollectionPlaceholder]="searchPlaceholder.SearchProjectCode"
44142
+ [(model)]="searchService.searchRequest.projectCode"
44143
+ [mode]="modes.SingleSelectList"
44144
+ [minSearchCharsToLoadCollection]="3"
44145
+ [collection]="projectCodes"
44146
+ >
44147
+ </co-transaction-filter-item>
44148
+ </div>
44149
+
44105
44150
  <!--Tags-->
44106
44151
  <div class="filter-item-wrapper">
44107
44152
  <co-transaction-filter-item [placeholder]="'TAGS'"
@@ -44639,6 +44684,7 @@ class TransactionSalesOrderFilterContentOrderComponent extends TransactionFilter
44639
44684
  this.orderDepositFullyPaidFields = { text: "description", value: "code" };
44640
44685
  this.orderActiveFields = { text: "description", value: "code" };
44641
44686
  this.customerGroupFields = { text: "naam", value: "groepsnummer" };
44687
+ this.projectCodeFields = { text: "description", value: "id" };
44642
44688
  this.workflowStatusFields = { text: "name", value: "name" };
44643
44689
  this.loadCustomers = (nameFilter) => __awaiter(this, void 0, void 0, function* () {
44644
44690
  const request = new RelationRequest();
@@ -44667,6 +44713,7 @@ class TransactionSalesOrderFilterContentOrderComponent extends TransactionFilter
44667
44713
  this._setOrderActive();
44668
44714
  this._setCustomerGroups();
44669
44715
  this._setWorkFlowStatuses();
44716
+ this._setAllProjectCodes();
44670
44717
  }
44671
44718
  //Verkoper
44672
44719
  _setSalesPersons() {
@@ -44736,6 +44783,11 @@ class TransactionSalesOrderFilterContentOrderComponent extends TransactionFilter
44736
44783
  this.workflowStatuses = new FilterViewmodel(workflowStatuses, this.workflowStatusFields).filterItems;
44737
44784
  });
44738
44785
  }
44786
+ _setAllProjectCodes() {
44787
+ this.transactionService.getAllProjectCodes().then((projectCodes) => {
44788
+ this.projectCodes = new FilterViewmodel(projectCodes, this.projectCodeFields).filterItems;
44789
+ });
44790
+ }
44739
44791
  }
44740
44792
  TransactionSalesOrderFilterContentOrderComponent.decorators = [
44741
44793
  { type: Component, args: [{
@@ -44802,6 +44854,18 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
44802
44854
  </co-transaction-filter-item>
44803
44855
  </div>
44804
44856
 
44857
+ <!--Project Code-->
44858
+ <div class="filter-item-wrapper">
44859
+ <co-transaction-filter-item [placeholder]="'PROJECT_CODE'"
44860
+ [searchCollectionPlaceholder]="searchPlaceholder.SearchProjectCode"
44861
+ [(model)]="searchService.searchRequest.projectCode"
44862
+ [mode]="modes.SingleSelectList"
44863
+ [minSearchCharsToLoadCollection]="3"
44864
+ [collection]="projectCodes"
44865
+ >
44866
+ </co-transaction-filter-item>
44867
+ </div>
44868
+
44805
44869
  <!--Tags-->
44806
44870
  <div class="filter-item-wrapper">
44807
44871
  <co-transaction-filter-item [placeholder]="'TAGS'"
@@ -44876,7 +44940,7 @@ TransactionSalesOrderFilterContentOrderComponent.decorators = [
44876
44940
  [mode]="modes.SingleSelectList"
44877
44941
  [(model)]="searchService.searchRequest.relationName"
44878
44942
  [minSearchCharsToLoadCollection]="3"
44879
- [collectionLoadFn]="loadCustomers">
44943
+ [collection]="customerGroups">
44880
44944
  </co-transaction-filter-item>
44881
44945
  </div>
44882
44946
 
@@ -45647,6 +45711,7 @@ class TransactionSalesQuotationFilterContentOrderComponent extends TransactionFi
45647
45711
  this.isQuotationProcessedToSalesOrderFields = { text: "description", value: "code" };
45648
45712
  this.customerGroupFields = { text: "naam", value: "groepsnummer" };
45649
45713
  this.retailStadiumFields = { text: "retailStadium", value: "retailStadium" };
45714
+ this.projectCodeFields = { text: "description", value: "id" };
45650
45715
  this.loadCustomers = (nameFilter) => __awaiter(this, void 0, void 0, function* () {
45651
45716
  const request = new RelationRequest();
45652
45717
  request.familyName = nameFilter;
@@ -45670,6 +45735,7 @@ class TransactionSalesQuotationFilterContentOrderComponent extends TransactionFi
45670
45735
  this._setCustomerGroups();
45671
45736
  this._setRetailStadiums();
45672
45737
  this._setIsQuotationProcessedToSales();
45738
+ this._setAllProjectCodes();
45673
45739
  }
45674
45740
  //Verkoper
45675
45741
  _setSalesPersons() {
@@ -45733,6 +45799,11 @@ class TransactionSalesQuotationFilterContentOrderComponent extends TransactionFi
45733
45799
  this.isQuotationProcessedToSalesOrder = new FilterViewmodel(isQuotationProcessedToSalesOrder, this.isQuotationProcessedToSalesOrderFields).filterItems;
45734
45800
  });
45735
45801
  }
45802
+ _setAllProjectCodes() {
45803
+ this.transactionService.getAllProjectCodes().then((projectCodes) => {
45804
+ this.projectCodes = new FilterViewmodel(projectCodes, this.projectCodeFields).filterItems;
45805
+ });
45806
+ }
45736
45807
  }
45737
45808
  TransactionSalesQuotationFilterContentOrderComponent.decorators = [
45738
45809
  { type: Component, args: [{
@@ -45821,6 +45892,18 @@ TransactionSalesQuotationFilterContentOrderComponent.decorators = [
45821
45892
  </co-transaction-filter-item>
45822
45893
  </div>
45823
45894
 
45895
+ <!--Project Code-->
45896
+ <div class="filter-item-wrapper">
45897
+ <co-transaction-filter-item [placeholder]="'PROJECT_CODE'"
45898
+ [searchCollectionPlaceholder]="searchPlaceholder.SearchProjectCode"
45899
+ [(model)]="searchService.searchRequest.projectCode"
45900
+ [mode]="modes.SingleSelectList"
45901
+ [minSearchCharsToLoadCollection]="3"
45902
+ [collection]="projectCodes"
45903
+ >
45904
+ </co-transaction-filter-item>
45905
+ </div>
45906
+
45824
45907
  <!--Tags-->
45825
45908
  <div class="filter-item-wrapper">
45826
45909
  <co-transaction-filter-item [placeholder]="'TAGS'"
@@ -46914,6 +46997,7 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
46914
46997
  this.orderActiveFields = { text: "description", value: "code" };
46915
46998
  this.customerGroupFields = { text: "naam", value: "groepsnummer" };
46916
46999
  this.workflowStatusFields = { text: "name", value: "name" };
47000
+ this.projectCodeFields = { text: "description", value: "id" };
46917
47001
  this.loadCustomers = (nameFilter) => __awaiter(this, void 0, void 0, function* () {
46918
47002
  const request = new RelationRequest();
46919
47003
  request.familyName = nameFilter;
@@ -46941,6 +47025,7 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
46941
47025
  this._setOrderActive();
46942
47026
  this._setCustomerGroups();
46943
47027
  this._setWorkFlowStatuses();
47028
+ this._setAllProjectCodes();
46944
47029
  }
46945
47030
  //Verkoper
46946
47031
  _setSalesPersons() {
@@ -47010,6 +47095,11 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
47010
47095
  this.workflowStatuses = new FilterViewmodel(workflowStatuses, this.workflowStatusFields).filterItems;
47011
47096
  });
47012
47097
  }
47098
+ _setAllProjectCodes() {
47099
+ this.transactionService.getAllProjectCodes().then((projectCodes) => {
47100
+ this.projectCodes = new FilterViewmodel(projectCodes, this.projectCodeFields).filterItems;
47101
+ });
47102
+ }
47013
47103
  }
47014
47104
  TransactionServiceOrderFilterContentOrderComponent.decorators = [
47015
47105
  { type: Component, args: [{
@@ -47076,6 +47166,18 @@ TransactionServiceOrderFilterContentOrderComponent.decorators = [
47076
47166
  </co-transaction-filter-item>
47077
47167
  </div>
47078
47168
 
47169
+ <!--Project Code-->
47170
+ <div class="filter-item-wrapper">
47171
+ <co-transaction-filter-item [placeholder]="'PROJECT_CODE'"
47172
+ [searchCollectionPlaceholder]="searchPlaceholder.SearchProjectCode"
47173
+ [(model)]="searchService.searchRequest.projectCode"
47174
+ [mode]="modes.SingleSelectList"
47175
+ [minSearchCharsToLoadCollection]="3"
47176
+ [collection]="projectCodes"
47177
+ >
47178
+ </co-transaction-filter-item>
47179
+ </div>
47180
+
47079
47181
  <!--Tags-->
47080
47182
  <div class="filter-item-wrapper">
47081
47183
  <co-transaction-filter-item [placeholder]="'TAGS'"