@hmcts/ccpay-web-component 5.0.2-beta75 → 5.0.2-beta78

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.
@@ -1729,31 +1729,30 @@
1729
1729
  */
1730
1730
  function (payment, remission, fees) {
1731
1731
  var _this = this;
1732
- if (this.chkIsIssueRefundBtnEnable(payment)) {
1733
- this.payment = payment;
1734
- this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
1735
- * @param {?} paymentGroup
1732
+ //if(!this.chkIsIssueRefundBtnEnable(payment)) {
1733
+ this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
1734
+ * @param {?} paymentGroup
1735
+ * @return {?}
1736
+ */function (paymentGroup) {
1737
+ _this.paymentGroup = paymentGroup;
1738
+ _this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
1739
+ * @param {?} paymentGroupObj
1736
1740
  * @return {?}
1737
- */function (paymentGroup) {
1738
- _this.paymentGroup = paymentGroup;
1739
- _this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
1740
- * @param {?} paymentGroupObj
1741
- * @return {?}
1742
- */function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
1743
- _this.payment = _this.paymentGroup.payments[0];
1744
- _this.remissions = remission;
1745
- _this.remissionFeeAmt = fees.filter(( /**
1746
- * @param {?} data
1747
- * @return {?}
1748
- */function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
1749
- _this.viewStatus = 'addrefundforremission';
1750
- // const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
1751
- // this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
1752
- }), ( /**
1753
- * @param {?} error
1741
+ */function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
1742
+ _this.payment = _this.paymentGroup.payments[0];
1743
+ _this.remissions = remission;
1744
+ _this.remissionFeeAmt = fees.filter(( /**
1745
+ * @param {?} data
1754
1746
  * @return {?}
1755
- */function (error) { return _this.errorMessage = error; }));
1756
- }
1747
+ */function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
1748
+ _this.viewStatus = 'addrefundforremission';
1749
+ // const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
1750
+ // this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
1751
+ }), ( /**
1752
+ * @param {?} error
1753
+ * @return {?}
1754
+ */function (error) { return _this.errorMessage = error; }));
1755
+ //}
1757
1756
  };
1758
1757
  /**
1759
1758
  * @param {?} paymentgrp
@@ -4550,16 +4549,15 @@
4550
4549
  function (payment, remission, fees) {
4551
4550
  var _this = this;
4552
4551
  this.viewStatus = 'addrefundforremission';
4553
- this.payment = payment;
4554
- this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
4552
+ this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
4555
4553
  * @param {?} paymentGroup
4556
4554
  * @return {?}
4557
4555
  */function (paymentGroup) {
4558
4556
  _this.paymentGroup = paymentGroup;
4559
- _this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
4557
+ _this.paymentGroup.payments = paymentGroup.payments.filter(( /**
4560
4558
  * @param {?} paymentGroupObj
4561
4559
  * @return {?}
4562
- */function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
4560
+ */function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
4563
4561
  _this.payment = _this.paymentGroup.payments[0];
4564
4562
  _this.remissions = remission;
4565
4563
  _this.remissionFeeAmt = fees.filter(( /**
@@ -10484,8 +10482,7 @@
10484
10482
  var _this = this;
10485
10483
  this.viewStatus = 'addrefundforremission';
10486
10484
  this.paymentLibComponent.isFromServiceRequestPage = true;
10487
- this.payment = payment;
10488
- this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
10485
+ this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
10489
10486
  * @param {?} paymentGroup
10490
10487
  * @return {?}
10491
10488
  */function (paymentGroup) {
@@ -10493,7 +10490,7 @@
10493
10490
  _this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
10494
10491
  * @param {?} paymentGroupObj
10495
10492
  * @return {?}
10496
- */function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
10493
+ */function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
10497
10494
  _this.payment = _this.paymentGroup.payments[0];
10498
10495
  _this.remissions = remission;
10499
10496
  _this.remissionFeeAmt = fees.filter(( /**