@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.
@@ -7852,6 +7852,13 @@ var AddRemissionComponent = /** @class */ (function () {
7852
7852
  */
7853
7853
  function (payment) {
7854
7854
  if (this.isFromCheckAnsPage) {
7855
+ this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
7856
+ * @param {?} a
7857
+ * @param {?} c
7858
+ * @return {?}
7859
+ */
7860
+ function (a, c) { return a + c.amounttorefund * c.selected; }), 0);
7861
+ this.isFromCheckAnsPage = false;
7855
7862
  this.viewStatus = 'checkissuerefundpage';
7856
7863
  this.viewCompStatus = '';
7857
7864
  return;
@@ -7923,6 +7930,13 @@ var AddRemissionComponent = /** @class */ (function () {
7923
7930
  */
7924
7931
  function () {
7925
7932
  if (this.isFromCheckAnsPage) {
7933
+ this.isFromCheckAnsPage = false;
7934
+ this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
7935
+ * @param {?} a
7936
+ * @param {?} c
7937
+ * @return {?}
7938
+ */
7939
+ function (a, c) { return a + c.amounttorefund * c.selected; }), 0);
7926
7940
  this.viewStatus = 'checkissuerefundpage';
7927
7941
  this.viewCompStatus = '';
7928
7942
  return;
@@ -7949,10 +7963,10 @@ var AddRemissionComponent = /** @class */ (function () {
7949
7963
  /** @type {?} */
7950
7964
  var calculatedAmount = +((/** @type {?} */ (document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
7951
7965
  this.remissionForm.value.feesList.find((/**
7952
- * @param {?} x
7966
+ * @param {?} id
7953
7967
  * @return {?}
7954
7968
  */
7955
- function (x) { return x.id = j; }))['amounttorefund'] = apportionAmount;
7969
+ function (id) { return id = checkboxs[j].value; }))['amounttorefund'] = apportionAmount;
7956
7970
  if (amountToRefund === apportionAmount) {
7957
7971
  this.fullRefund = true;
7958
7972
  }