@hmcts/ccpay-web-component 5.0.1-beta151 → 5.0.1-beta152

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.
@@ -3944,17 +3944,13 @@
3944
3944
  }
3945
3945
  }));
3946
3946
  }
3947
- _this.orderPendingPayments = (_this.orderFeesTotal - _this.orderRemissionTotal) - _this.orderTotalPayments;
3948
- if (_this.orderPendingPayments <= 0.00) {
3949
- _this.orderStatus = 'Paid';
3947
+ // this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
3948
+ if (paymentGroup.service_request_status === 'Paid') {
3949
+ _this.orderStatus = paymentGroup.service_request_status;
3950
3950
  _this.orderAddBtnEnable = false;
3951
3951
  }
3952
- else if (_this.orderFeesTotal > 0 && (_this.orderTotalPayments > 0 || _this.orderRemissionTotal > 0) && (_this.orderTotalPayments < _this.orderPendingPayments)) {
3953
- _this.orderStatus = 'Partially paid';
3954
- _this.orderAddBtnEnable = true;
3955
- }
3956
- else {
3957
- _this.orderStatus = 'Not paid';
3952
+ else if (paymentGroup.service_request_status === '' || paymentGroup.service_request_status === '') {
3953
+ _this.orderStatus = paymentGroup.service_request_status;
3958
3954
  _this.orderAddBtnEnable = true;
3959
3955
  }
3960
3956
  //this.orderLevelFees.push({orderRefId:paymentGroup['payment_group_reference'],orderTotalFees: this.orderFeesTotal,orderStatus: this.orderStatus,orderParty:'Santosh', orderCCDEvent:'Case Creation',orderCreated: new Date(), orderAddBtnEnable: this.orderAddBtnEnable}); this.cpoDetails['createdTimestamp']
@@ -4039,18 +4035,17 @@
4039
4035
  }));
4040
4036
  }
4041
4037
  }
4038
+ _this.orderStatus = orderDetail.service_request_status;
4042
4039
  }));
4043
- this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
4040
+ //this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
4044
4041
  // this.orderRef = orderReferenceObj.orderRefId;
4045
- if (this.orderPendingPayments <= 0.00) {
4046
- this.orderStatus = 'Paid';
4047
- }
4048
- else if (this.orderFeesTotal > 0 && (this.orderTotalPayments > 0 || this.orderRemissionTotal > 0) && (this.orderTotalPayments < this.orderPendingPayments)) {
4049
- this.orderStatus = 'Partially paid';
4050
- }
4051
- else {
4052
- this.orderStatus = 'Not paid';
4053
- }
4042
+ // if (this.orderPendingPayments <= 0.00) {
4043
+ // this.orderStatus = 'Paid';
4044
+ // } else if (this.orderFeesTotal > 0 && (this.orderTotalPayments > 0 || this.orderRemissionTotal > 0) && (this.orderTotalPayments < this.orderPendingPayments)) {
4045
+ // this.orderStatus = 'Partially paid'
4046
+ // } else {
4047
+ // this.orderStatus = 'Not paid'
4048
+ // }
4054
4049
  if (this.cpoDetails !== null) {
4055
4050
  this.orderParty = this.cpoDetails['responsibleParty'];
4056
4051
  this.orderCreated = this.cpoDetails['createdTimestamp'];
@@ -10689,7 +10684,12 @@
10689
10684
  * @param {?} r
10690
10685
  * @return {?}
10691
10686
  */function (r) {
10692
- _this.pbaAccountrPaymentResult = JSON.parse(r).data;
10687
+ try {
10688
+ _this.pbaAccountrPaymentResult = JSON.parse(r);
10689
+ }
10690
+ catch (e) {
10691
+ _this.pbaAccountrPaymentResult = r;
10692
+ }
10693
10693
  _this.isPBAAccountPaymentSuccess = true;
10694
10694
  }), ( /**
10695
10695
  * @param {?} e