@colijnit/transaction 255.1.58 → 255.1.60

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.
@@ -33,8 +33,8 @@
33
33
  function Version() {
34
34
  this.name = "@colijnit/transaction";
35
35
  this.description = "Colijn IT transaction package";
36
- this.symVer = "255.1.58";
37
- this.publishDate = "5-11-2024 16:38:37";
36
+ this.symVer = "255.1.60";
37
+ this.publishDate = "8-11-2024 15:04:24";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -11689,6 +11689,7 @@
11689
11689
  TransactionCfgName["MarketingCode"] = "marketingCode";
11690
11690
  TransactionCfgName["ProjectCode"] = "projectCode";
11691
11691
  TransactionCfgName["TransactionType"] = "transactionType";
11692
+ TransactionCfgName["TransTypeField"] = "transTypeField";
11692
11693
  TransactionCfgName["HeaderPaymentAvatarHeader"] = "headerPaymentAvatarHeader";
11693
11694
  TransactionCfgName["HeaderPaymentPercentageHeader"] = "headerPaymentPercentageHeader";
11694
11695
  TransactionCfgName["HeaderPaymentAmountHeader"] = "headerPaymentAmountHeader";
@@ -13432,6 +13433,9 @@
13432
13433
  configurable: true
13433
13434
  });
13434
13435
  Object.defineProperty(TransactionBaseService.prototype, "cashRegistersDirty", {
13436
+ get: function () {
13437
+ return this._cashRegistersDirty;
13438
+ },
13435
13439
  set: function (value) {
13436
13440
  this._cashRegistersDirty = value;
13437
13441
  },
@@ -37504,7 +37508,7 @@
37504
37508
  TransactionHeaderPopupOrderComponent.decorators = [
37505
37509
  { type: i0.Component, args: [{
37506
37510
  selector: 'co-transaction-header-popup-order',
37507
- template: "\n <div class=\"transaction-header-popup-category-wrapper co-small-scrollbar\">\n <co-form>\n <div class=\"transaction-header-popup-section\">\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'BASE_INFO1' | localize\"></div>\n <co-transaction-header-definitive class=\"header-definitive-checkbox\" [screenConfigurationObject]=\"cfgNames.Definitive\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-definitive>\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-hold-codes *ngIf=\"transactionInfo.transactionKind !== transKind.SalesQuotation\" [screenConfigurationObject]=\"cfgNames.OnHoldCodes\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-hold-codes>\n <co-transaction-header-payment-condition [screenConfigurationObject]=\"cfgNames.PaymentCondition\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-payment-condition>\n <co-transaction-header-branch [simple]=\"true\" [screenConfigurationObject]=\"cfgNames.Branch\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-branch>\n <co-transaction-header-administrative-relation [screenConfigurationObject]=\"cfgNames.AdministrativeManager\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-administrative-relation>\n <co-transaction-header-price-kind [screenConfigurationObject]=\"cfgNames.PriceKind\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-price-kind>\n <co-transaction-header-sales-person *ngIf=\"transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.SalesPerson\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-sales-person>\n <co-transaction-header-sales-person *ngIf=\"transactionKind === transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.Buyer\" [label]=\"'PURCHASE_PERSON'\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-sales-person>\n <co-transaction-header-currency [screenConfigurationObject]=\"cfgNames.Currency\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-currency>\n <co-transaction-header-type\n [screenConfigurationObject]=\"cfgNames.TransactionType\"\n [transactionInfo]=\"transactionInfo\"\n [lockAndSave]=\"false\">\n </co-transaction-header-type>\n </div>\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-project-code [screenConfigurationObject]=\"cfgNames.ProjectCode\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-project-code>\n <div class=\"cash-on-delivery-row\">\n <co-button\n class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\"\n (click)=\"addProjectCodeModalVisible = true\"\n >\n </co-button>\n </div>\n </div>\n </div>\n <div class=\"transaction-header-popup-section\" *ngIf=\"transactionInfo.transactionKind === transKind.SalesQuotation\">\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'STATUS' | localize\"></div>\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-scoring-chance [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-scoring-chance>\n <co-transaction-header-retail-stadium [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-retail-stadium>\n <co-transaction-header-scoring-date [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-scoring-date>\n </div>\n </div>\n <div class=\"transaction-header-popup-section\" [screenConfigurationObject]=\"cfgNames.MarketingCode\" screenConfigNativeElement>\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'MARKETING_CODE' | localize\"></div>\n <co-transaction-header-marketing [screenConfigurationObject]=\"cfgNames.MarketingCode\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-marketing>\n </div>\n </co-form>\n <co-project-code-modal\n *ngIf=\"addProjectCodeModalVisible\"\n (showProjectCodeModal)=\"showProjectCodeModal($event)\">\n </co-project-code-modal>\n </div>\n ",
37511
+ template: "\n <div class=\"transaction-header-popup-category-wrapper co-small-scrollbar\">\n <co-form>\n <div class=\"transaction-header-popup-section\">\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'BASE_INFO1' | localize\"></div>\n <co-transaction-header-definitive class=\"header-definitive-checkbox\" [screenConfigurationObject]=\"cfgNames.Definitive\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-definitive>\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-hold-codes *ngIf=\"transactionInfo.transactionKind !== transKind.SalesQuotation\" [screenConfigurationObject]=\"cfgNames.OnHoldCodes\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-hold-codes>\n <co-transaction-header-payment-condition [screenConfigurationObject]=\"cfgNames.PaymentCondition\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-payment-condition>\n <co-transaction-header-branch [simple]=\"true\" [screenConfigurationObject]=\"cfgNames.Branch\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-branch>\n <co-transaction-header-administrative-relation [screenConfigurationObject]=\"cfgNames.AdministrativeManager\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-administrative-relation>\n <co-transaction-header-price-kind [screenConfigurationObject]=\"cfgNames.PriceKind\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-price-kind>\n <co-transaction-header-sales-person *ngIf=\"transactionKind !== transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.SalesPerson\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-sales-person>\n <co-transaction-header-sales-person *ngIf=\"transactionKind === transKind.PurchaseOrder\"\n [screenConfigurationObject]=\"cfgNames.Buyer\" [label]=\"'PURCHASE_PERSON'\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-sales-person>\n <co-transaction-header-currency [screenConfigurationObject]=\"cfgNames.Currency\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-currency>\n <co-transaction-header-type\n [screenConfigurationObject]=\"cfgNames.TransTypeField\"\n [transactionInfo]=\"transactionInfo\"\n [lockAndSave]=\"false\">\n </co-transaction-header-type>\n </div>\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-project-code [screenConfigurationObject]=\"cfgNames.ProjectCode\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-project-code>\n <div class=\"cash-on-delivery-row\">\n <co-button\n class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\"\n (click)=\"addProjectCodeModalVisible = true\"\n >\n </co-button>\n </div>\n </div>\n </div>\n <div class=\"transaction-header-popup-section\" *ngIf=\"transactionInfo.transactionKind === transKind.SalesQuotation\">\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'STATUS' | localize\"></div>\n <div class=\"transaction-header-popup-two-column-grid\">\n <co-transaction-header-scoring-chance [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-scoring-chance>\n <co-transaction-header-retail-stadium [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-retail-stadium>\n <co-transaction-header-scoring-date [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-scoring-date>\n </div>\n </div>\n <div class=\"transaction-header-popup-section\" [screenConfigurationObject]=\"cfgNames.MarketingCode\" screenConfigNativeElement>\n <div class=\"transaction-header-popup-section-label\" [textContent]=\"'MARKETING_CODE' | localize\"></div>\n <co-transaction-header-marketing [screenConfigurationObject]=\"cfgNames.MarketingCode\" [transactionInfo]=\"transactionInfo\" [lockAndSave]=\"false\"></co-transaction-header-marketing>\n </div>\n </co-form>\n <co-project-code-modal\n *ngIf=\"addProjectCodeModalVisible\"\n (showProjectCodeModal)=\"showProjectCodeModal($event)\">\n </co-project-code-modal>\n </div>\n ",
37508
37512
  providers: [{
37509
37513
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
37510
37514
  useExisting: i0.forwardRef(function () { return TransactionHeaderPopupOrderComponent; })
@@ -38254,8 +38258,8 @@
38254
38258
  }
38255
38259
  TransactionHeaderTypeComponent.prototype.ngOnInit = function () {
38256
38260
  var _this = this;
38257
- this.transactionService.getEntryTypes("NL").then(function (transTypes) {
38258
- _this.collection = transTypes;
38261
+ this.transactionService.getDomainTypes("NL").then(function (transTypes) {
38262
+ _this.collection = _this._filterDomainTypes(transTypes);
38259
38263
  _this._setTypeModel();
38260
38264
  });
38261
38265
  };
@@ -38286,6 +38290,12 @@
38286
38290
  var _this = this;
38287
38291
  this.typeModel = this.collection.find(function (t) { return t.code === _this.transactionInfo.transactionType; });
38288
38292
  };
38293
+ TransactionHeaderTypeComponent.prototype._filterDomainTypes = function (transTypes) {
38294
+ var _this = this;
38295
+ var filteredTypes = transTypes.filter(function (type) { return type.code !== "L"; });
38296
+ filteredTypes = filteredTypes.filter(function (type) { return _this.transactionInfo.transactionKind === "I" ? type.code === "B" : type.code !== "B"; });
38297
+ return filteredTypes;
38298
+ };
38289
38299
  return TransactionHeaderTypeComponent;
38290
38300
  }(TransactionFilterPopupBaseComponent));
38291
38301
  TransactionHeaderTypeComponent.decorators = [
@@ -42394,7 +42404,6 @@
42394
42404
  this.showHeader = true;
42395
42405
  this.showViewModeButtons = true;
42396
42406
  this.transactionPlanning = false;
42397
- this.cashRegistersDirty = false;
42398
42407
  this.relationChange = new i0.EventEmitter();
42399
42408
  this.showQuickAccess = true;
42400
42409
  this.showButtonBar = true;
@@ -42819,7 +42828,6 @@
42819
42828
  showHeader: [{ type: i0.Input }],
42820
42829
  showViewModeButtons: [{ type: i0.Input }],
42821
42830
  transactionPlanning: [{ type: i0.Input }],
42822
- cashRegistersDirty: [{ type: i0.Input }],
42823
42831
  relationChange: [{ type: i0.Output }],
42824
42832
  showQuickAccess: [{ type: i0.HostBinding, args: ['class.show-quick-access',] }, { type: i0.Input }],
42825
42833
  showButtonBar: [{ type: i0.HostBinding, args: ['class.show-button-bar',] }, { type: i0.Input }],
@@ -55176,7 +55184,6 @@
55176
55184
  this.transactionPlanning = false;
55177
55185
  //This output exists for bundle purposes.
55178
55186
  this.serviceRequested = new i0.EventEmitter();
55179
- this.cashRegistersDirty = false;
55180
55187
  this.screenConfigLoaded = false;
55181
55188
  }
55182
55189
  Object.defineProperty(TransactionComponent.prototype, "confirmationAnalysisId", {
@@ -55274,7 +55281,7 @@
55274
55281
  TransactionComponent.decorators = [
55275
55282
  { type: i0.Component, args: [{
55276
55283
  selector: 'co-transaction',
55277
- template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [cashRegistersDirty] = cashRegistersDirty\n ></co-transaction-internal>\n ",
55284
+ template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n ></co-transaction-internal>\n ",
55278
55285
  providers: [
55279
55286
  { provide: corecomponents_v12.BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
55280
55287
  ],
@@ -55306,7 +55313,6 @@
55306
55313
  saveCancelMovable: [{ type: i0.Input }],
55307
55314
  transactionPlanning: [{ type: i0.Input }],
55308
55315
  serviceRequested: [{ type: i0.Output }],
55309
- cashRegistersDirty: [{ type: i0.Input }],
55310
55316
  showClass: [{ type: i0.HostBinding, args: ['class.co-transaction',] }],
55311
55317
  checkTransaction: [{ type: i0.HostListener, args: ['window:beforeunload',] }],
55312
55318
  checkRollBack: [{ type: i0.HostListener, args: ['window:unload',] }]