@hmcts/ccpay-web-component 5.0.2-beta74 → 5.0.2-beta77

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,35 +1729,35 @@ var PaymentViewComponent = /** @class */ (function () {
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
+ */
1738
+ function (paymentGroup) {
1739
+ _this.paymentGroup = paymentGroup;
1740
+ _this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
1741
+ * @param {?} paymentGroupObj
1736
1742
  * @return {?}
1737
1743
  */
1738
- function (paymentGroup) {
1739
- _this.paymentGroup = paymentGroup;
1740
- _this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
1741
- * @param {?} paymentGroupObj
1742
- * @return {?}
1743
- */
1744
- function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
1745
- _this.payment = _this.paymentGroup.payments[0];
1746
- _this.remissions = remission;
1747
- _this.remissionFeeAmt = fees.filter((/**
1748
- * @param {?} data
1749
- * @return {?}
1750
- */
1751
- function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
1752
- _this.viewStatus = 'addrefundforremission';
1753
- // const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
1754
- // this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
1755
- }), (/**
1756
- * @param {?} error
1744
+ function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
1745
+ _this.payment = _this.paymentGroup.payments[0];
1746
+ _this.remissions = remission;
1747
+ _this.remissionFeeAmt = fees.filter((/**
1748
+ * @param {?} data
1757
1749
  * @return {?}
1758
1750
  */
1759
- function (error) { return _this.errorMessage = error; }));
1760
- }
1751
+ function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
1752
+ _this.viewStatus = 'addrefundforremission';
1753
+ // const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
1754
+ // this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
1755
+ }), (/**
1756
+ * @param {?} error
1757
+ * @return {?}
1758
+ */
1759
+ function (error) { return _this.errorMessage = error; }));
1760
+ //}
1761
1761
  };
1762
1762
  /**
1763
1763
  * @param {?} paymentgrp