@hmcts/ccpay-web-component 6.2.10 → 6.2.12-beta1

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.
@@ -3694,7 +3694,7 @@ class AddRemissionComponent {
3694
3694
  }
3695
3695
  confirmRemission() {
3696
3696
  this.isConfirmationBtnDisabled = true;
3697
- const newNetAmount = this.remissionForm.controls.amount.value, remissionAmount = this.fee.net_amount - newNetAmount, requestBody = new AddRemissionRequest(this.ccdCaseNumber, this.fee, remissionAmount, this.remissionForm.controls.remissionCode.value, this.caseType);
3697
+ const newNetAmount = this.remissionForm.controls.amount.value, remissionAmount = parseFloat((this.fee.net_amount - newNetAmount).toFixed(2)), requestBody = new AddRemissionRequest(this.ccdCaseNumber, this.fee, remissionAmount, this.remissionForm.controls.remissionCode.value, this.caseType);
3698
3698
  this.paymentViewService.postPaymentGroupWithRemissions(decodeURIComponent(this.paymentGroupRef).trim(), this.fee.id, requestBody).subscribe(response => {
3699
3699
  if (JSON.parse(response).success) {
3700
3700
  let LDUrl = this.isTurnOff ? '&isTurnOff=Enable' : '&isTurnOff=Disable';