@hmcts/ccpay-web-component 5.0.1-beta136 → 5.0.1-beta137

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.
@@ -7727,6 +7727,12 @@
7727
7727
  */
7728
7728
  function (payment) {
7729
7729
  if (this.isFromCheckAnsPage) {
7730
+ this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
7731
+ * @param {?} a
7732
+ * @param {?} c
7733
+ * @return {?}
7734
+ */function (a, c) { return a + c.amounttorefund * c.selected; }), 0);
7735
+ this.isFromCheckAnsPage = false;
7730
7736
  this.viewStatus = 'checkissuerefundpage';
7731
7737
  this.viewCompStatus = '';
7732
7738
  return;
@@ -7797,6 +7803,12 @@
7797
7803
  */
7798
7804
  function () {
7799
7805
  if (this.isFromCheckAnsPage) {
7806
+ this.isFromCheckAnsPage = false;
7807
+ this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
7808
+ * @param {?} a
7809
+ * @param {?} c
7810
+ * @return {?}
7811
+ */function (a, c) { return a + c.amounttorefund * c.selected; }), 0);
7800
7812
  this.viewStatus = 'checkissuerefundpage';
7801
7813
  this.viewCompStatus = '';
7802
7814
  return;
@@ -7822,9 +7834,9 @@
7822
7834
  /** @type {?} */
7823
7835
  var calculatedAmount = +(( /** @type {?} */(document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
7824
7836
  this.remissionForm.value.feesList.find(( /**
7825
- * @param {?} x
7837
+ * @param {?} id
7826
7838
  * @return {?}
7827
- */function (x) { return x.id = j; }))['amounttorefund'] = apportionAmount;
7839
+ */function (id) { return id = checkboxs[j].value; }))['amounttorefund'] = apportionAmount;
7828
7840
  if (amountToRefund === apportionAmount) {
7829
7841
  this.fullRefund = true;
7830
7842
  }