@colijnit/transaction 253.1.6 → 253.1.8

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 = "253.1.6";
37
- this.publishDate = "9-7-2024 22:05:41";
36
+ this.symVer = "253.1.8";
37
+ this.publishDate = "11-7-2024 16:30:15";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -21468,6 +21468,7 @@
21468
21468
  var defaultLayout = _this.printLayouts.find(function (p) { return p.isDefault; });
21469
21469
  if (defaultLayout) {
21470
21470
  _this.reportDocumentPrintRequest.reportId = defaultLayout.reportId;
21471
+ _this.reportDocumentPdfRequest.reportId = defaultLayout.reportId;
21471
21472
  }
21472
21473
  }
21473
21474
  });
@@ -32501,7 +32502,7 @@
32501
32502
  this.iconCacheService = iconCacheService;
32502
32503
  this.icons = Icon;
32503
32504
  this.showKeyPad = true;
32504
- this.remainingPayment = false;
32505
+ this._remainingPayment = false;
32505
32506
  this.payed = new i0.EventEmitter();
32506
32507
  this.paymentMethodIdx = 0;
32507
32508
  this.cashRegisterIdx = 0;
@@ -32638,6 +32639,17 @@
32638
32639
  enumerable: false,
32639
32640
  configurable: true
32640
32641
  });
32642
+ Object.defineProperty(TransactionPaymentBaseComponent.prototype, "remainingPayment", {
32643
+ get: function () {
32644
+ return this._remainingPayment;
32645
+ },
32646
+ set: function (value) {
32647
+ this._remainingPayment = value;
32648
+ this.paymentService.getDepositAmount = !this._remainingPayment;
32649
+ },
32650
+ enumerable: false,
32651
+ configurable: true
32652
+ });
32641
32653
  Object.defineProperty(TransactionPaymentBaseComponent.prototype, "currentPaymentMethod", {
32642
32654
  get: function () {
32643
32655
  return this._currentPaymentMethod;
@@ -32751,7 +32763,7 @@
32751
32763
  { type: TransactionPaymentConnectorService },
32752
32764
  { type: TransactionEventService },
32753
32765
  { type: i0.ChangeDetectorRef },
32754
- { type: TransactionPaymentService, decorators: [{ type: i0.SkipSelf }] },
32766
+ { type: TransactionPaymentService },
32755
32767
  { type: IconCacheService }
32756
32768
  ]; };
32757
32769
  TransactionPaymentBaseComponent.propDecorators = {
@@ -39219,7 +39231,7 @@
39219
39231
 
39220
39232
  var TransactionHeaderPaymentComponent = /** @class */ (function (_super) {
39221
39233
  __extends(TransactionHeaderPaymentComponent, _super);
39222
- function TransactionHeaderPaymentComponent(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _paymentConnectorService, _paymentService) {
39234
+ function TransactionHeaderPaymentComponent(transactionEventService, service, iconCacheService, transactionScreenConfigurationService, dictionaryService, imageService, changeDetector, _paymentConnectorService) {
39223
39235
  var _this = _super.call(this, transactionEventService, iconCacheService, transactionScreenConfigurationService, imageService, dictionaryService, service, changeDetector) || this;
39224
39236
  _this.transactionEventService = transactionEventService;
39225
39237
  _this.service = service;
@@ -39229,7 +39241,6 @@
39229
39241
  _this.imageService = imageService;
39230
39242
  _this.changeDetector = changeDetector;
39231
39243
  _this._paymentConnectorService = _paymentConnectorService;
39232
- _this._paymentService = _paymentService;
39233
39244
  _this.icons = Icon;
39234
39245
  _this.paymentMethods = [];
39235
39246
  _this.depositPayments = [];
@@ -39251,7 +39262,6 @@
39251
39262
  _super.prototype.ngOnInit.call(this);
39252
39263
  this._subs.push(this.transactionEventService.transactionPaymentDone.subscribe(function () { return _this._getDepositPaymentInfo(); }), this.transactionEventService.activeRubricChange.subscribe(function (rubric) {
39253
39264
  _this.showRemainingPayment = rubric === TransactionTypeCategory.SalesOrderDeliveryNote || rubric === TransactionTypeCategory.SalesOrderInvoice;
39254
- _this._paymentService.getDepositAmount = !_this.showRemainingPayment;
39255
39265
  }));
39256
39266
  };
39257
39267
  TransactionHeaderPaymentComponent.prototype.ngOnDestroy = function () {
@@ -39302,7 +39312,6 @@
39302
39312
  selector: "co-transaction-header-payment",
39303
39313
  template: "\n <div class=\"transaction-header-payment-wrapper\">\n <div class=\"transaction-header-payment-wrapper-content\" [class.show-remaining]=\"showRemainingPayment\">\n <co-transaction-header-block\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hiddenBlockTemplate]=\"hiddenBlock\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <co-transaction-header-block *ngIf=\"showRemainingPayment\"\n [firstBlockTemplate]=\"firstBlockRest\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n </div>\n </div>\n <ng-template #firstBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"showDialog = true\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegular)\">\n </co-icon>\n </div>\n <div class=\"header-downpayment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-deposit-amount class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transaction]=\"transaction\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlockRest>\n <div class=\"transaction-header-block-row\">\n <div class=\"transaction-header-icon\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAvatarHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\"\n (click)=\"showPaymentDialog = true\"\n [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n </div>\n <div class=\"header-remaining-payment-amount-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'REMAINING_PAYMENT' | localize\"></div>\n <co-transaction-header-remaining-amount class=\"transaction-header-remaining\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentAmountHeader\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n (remainingAmountChange)=\"remainingToPay = $event\"\n ></co-transaction-header-remaining-amount>\n </div>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"header-downpayment-percentage-wrapper\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\" screenConfigNativeElement>\n <div class=\"header-deposit-label co-transaction-label\" [textContent]=\"'%' | localize\"></div>\n <co-transaction-header-deposit-percentage class=\"transaction-header-deposit\"\n [screenConfigurationObject]=\"cfgNames.HeaderPaymentPercentageHeader\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-deposit-percentage>\n </div>\n </div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"transaction-header-block-row\">\n <div class=\"header-payment-button-wrapper\" (click)=\"openPayment($event)\" [screenConfigurationObject]=\"cfgNames.HeaderPaymentPaymentHeader\" screenConfigNativeElement>\n <co-icon class=\"header-order-icon\" [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\">\n </co-icon>\n <div class=\"spacer\"></div>\n <div class=\"payment-payed-wrapper\">\n <!--div class=\"header-payed-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_DONE' | localize\"></div-->\n <span class=\"payment-paid\" [class.success]=\"paid >= toPay\" [textContent]=\"(paid | coCurrency) || 0\"></span>\n </div>\n <!--co-transaction-header-payment-button *ngIf=\"transactionInfo.transactionKind !== transKind.PurchaseOrder\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-header-payment-button-->\n </div>\n </div>\n </ng-template>\n <ng-template #hiddenBlock>\n <!--div class=\"transaction-header-block-row\">\n <div class=\"header-branch-label co-transaction-label\" [textContent]=\"'BRANCH' | localize\"></div>\n <div class=\"branch-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n </div-->\n </ng-template>\n <co-transaction-header-popup *ngIf=\"showDialog\"\n [activeCategoryDescription]=\"'PAYMENT_INFORMATION'\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (closeClick)=\"showDialog = false\"></co-transaction-header-popup>\n<!--\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <co-deposit-payment [branch]=\"transactionInfo.branch?.relationNr\" [transactionUuid]=\"transactionInfo.uuid\"></co-deposit-payment>\n </div>\n </co-dialog>\n-->\n <co-dialog class=\"payment-dialog\" [modal]=\"true\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showPaymentDialog\" (closeClick)=\"showPaymentDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.CreditCardRegularCheck)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'PAYMENT_METHOD' | localize\"></div>\n </div>\n </ng-template>\n <co-payment\n [transId]=\"transactionInfo.id\"\n [branch]=\"transactionInfo.branch?.relationNr\"\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"showRemainingPayment ? remainingToPay : toPay\"\n [remainingPayment]=\"showRemainingPayment\"\n [currencyId]=\"transactionInfo.currencyId\"\n ></co-payment>\n </co-dialog>\n ",
39304
39314
  providers: [
39305
- TransactionPaymentService,
39306
39315
  { provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return TransactionHeaderPaymentComponent; }) }
39307
39316
  ],
39308
39317
  encapsulation: i0.ViewEncapsulation.None
@@ -39316,8 +39325,7 @@
39316
39325
  { type: DictionaryService },
39317
39326
  { type: TransactionImageService },
39318
39327
  { type: i0.ChangeDetectorRef },
39319
- { type: TransactionPaymentConnectorService },
39320
- { type: TransactionPaymentService }
39328
+ { type: TransactionPaymentConnectorService }
39321
39329
  ]; };
39322
39330
  TransactionHeaderPaymentComponent.propDecorators = {
39323
39331
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-header-payment",] }]