@hmcts/ccpay-web-component 4.0.0-beta542 → 4.0.0-beta543

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.
@@ -2790,9 +2790,9 @@ var CaseTransactionsComponent = /** @class */ (function () {
2790
2790
  function (paymentGroups) {
2791
2791
  _this.isAnyFeeGroupAvilable = true;
2792
2792
  _this.paymentGroups = paymentGroups['payment_groups'];
2793
- _this.calculateAmounts();
2794
- _this.calculateOrderFeesAmounts();
2795
- _this.calculateRefundAmount();
2793
+ _this.calculateAmounts(Event);
2794
+ _this.calculateOrderFeesAmounts(Event);
2795
+ _this.calculateRefundAmount(Event);
2796
2796
  if (_this.isFromServiceRequestPage) {
2797
2797
  _this.OrderslistService.getSelectedOrderRefId().subscribe((/**
2798
2798
  * @param {?} data
@@ -2834,9 +2834,9 @@ var CaseTransactionsComponent = /** @class */ (function () {
2834
2834
  function (paymentGroups) {
2835
2835
  _this.isAnyFeeGroupAvilable = true;
2836
2836
  _this.paymentGroups = paymentGroups['payment_groups'];
2837
- _this.calculateAmounts();
2838
- _this.calculateOrderFeesAmounts();
2839
- _this.totalRefundAmount = _this.calculateRefundAmount();
2837
+ _this.calculateAmounts(Event);
2838
+ _this.calculateOrderFeesAmounts(Event);
2839
+ _this.totalRefundAmount = _this.calculateRefundAmount(Event);
2840
2840
  _this.paymentViewService.getPartyDetails(_this.ccdCaseNumber).subscribe((/**
2841
2841
  * @param {?} response
2842
2842
  * @return {?}
@@ -2969,13 +2969,16 @@ var CaseTransactionsComponent = /** @class */ (function () {
2969
2969
  }));
2970
2970
  };
2971
2971
  /**
2972
+ * @param {?} event
2972
2973
  * @return {?}
2973
2974
  */
2974
2975
  CaseTransactionsComponent.prototype.calculateOrderFeesAmounts = /**
2976
+ * @param {?} event
2975
2977
  * @return {?}
2976
2978
  */
2977
- function () {
2979
+ function (event) {
2978
2980
  var _this = this;
2981
+ event.preventDefault();
2979
2982
  this.paymentGroups.forEach((/**
2980
2983
  * @param {?} paymentGroup
2981
2984
  * @return {?}
@@ -3169,13 +3172,16 @@ var CaseTransactionsComponent = /** @class */ (function () {
3169
3172
  this.paymentLibComponent.viewName = 'case-transactions';
3170
3173
  };
3171
3174
  /**
3175
+ * @param {?} event
3172
3176
  * @return {?}
3173
3177
  */
3174
3178
  CaseTransactionsComponent.prototype.calculateAmounts = /**
3179
+ * @param {?} event
3175
3180
  * @return {?}
3176
3181
  */
3177
- function () {
3182
+ function (event) {
3178
3183
  var _this = this;
3184
+ event.preventDefault();
3179
3185
  /** @type {?} */
3180
3186
  var feesTotal = 0.00;
3181
3187
  /** @type {?} */
@@ -3270,13 +3276,16 @@ var CaseTransactionsComponent = /** @class */ (function () {
3270
3276
  }));
3271
3277
  };
3272
3278
  /**
3279
+ * @param {?} event
3273
3280
  * @return {?}
3274
3281
  */
3275
3282
  CaseTransactionsComponent.prototype.calculateRefundAmount = /**
3283
+ * @param {?} event
3276
3284
  * @return {?}
3277
3285
  */
3278
- function () {
3286
+ function (event) {
3279
3287
  var _this = this;
3288
+ event.preventDefault();
3280
3289
  if (!this.isTurnOff) {
3281
3290
  /** @type {?} */
3282
3291
  var isNewPaymentGroup_1 = false;