@hmcts/ccpay-web-component 5.0.2-beta81 → 5.0.2-beta84

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.
@@ -4556,7 +4556,7 @@
4556
4556
  _this.paymentGroup.payments = paymentGroup.payments.filter(( /**
4557
4557
  * @param {?} paymentGroupObj
4558
4558
  * @return {?}
4559
- */function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
4559
+ */function (paymentGroupObj) { return paymentGroupObj.reference === payment.reference; }));
4560
4560
  _this.payment = _this.paymentGroup.payments[0];
4561
4561
  _this.remissions = remission;
4562
4562
  _this.remissionFeeAmt = fees.filter(( /**
@@ -7274,6 +7274,7 @@
7274
7274
  */
7275
7275
  function () {
7276
7276
  var _this = this;
7277
+ console.log(this.viewCompStatus);
7277
7278
  this.errorMessage = '';
7278
7279
  this.errorMsg = [];
7279
7280
  this.default = 'Select a different reason';
@@ -10485,12 +10486,15 @@
10485
10486
  * @param {?} paymentGroup
10486
10487
  * @return {?}
10487
10488
  */function (paymentGroup) {
10488
- // this.paymentGroup = paymentGroup;
10489
+ //this.paymentGroup = paymentGroup;
10489
10490
  // this.paymentGroup.payments = this.paymentGroup.payments.filter
10490
- // (paymentGroupObj => paymentGroupObj['reference'].includes(payment.reference));
10491
- // this.payment = this.paymentGroup.payments[0];
10492
- // this.remissions = remission;
10493
- // this.remissionFeeAmt = fees.filter(data=>data.code === this.remissions['fee_code'])[0].net_amount;
10491
+ //(paymentGroupObj => paymentGroupObj.reference === payment.reference);
10492
+ _this.payment = paymentGroup.payments[0];
10493
+ _this.remissions = remission;
10494
+ _this.remissionFeeAmt = fees.filter(( /**
10495
+ * @param {?} data
10496
+ * @return {?}
10497
+ */function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
10494
10498
  _this.viewStatus = 'addrefundforremission';
10495
10499
  // const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
10496
10500
  // this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;