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

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,31 @@
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.payment = payment;
1734
+ this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
1735
+ * @param {?} paymentGroup
1736
+ * @return {?}
1737
+ */function (paymentGroup) {
1738
+ _this.paymentGroup = paymentGroup;
1739
+ _this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
1740
+ * @param {?} paymentGroupObj
1736
1741
  * @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
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
1754
1747
  * @return {?}
1755
- */function (error) { return _this.errorMessage = error; }));
1756
- }
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
1754
+ * @return {?}
1755
+ */function (error) { return _this.errorMessage = error; }));
1756
+ //}
1757
1757
  };
1758
1758
  /**
1759
1759
  * @param {?} paymentgrp