@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.
- package/bundles/hmcts-ccpay-web-component.umd.js +20 -20
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +15 -20
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +7 -2
- package/esm5/lib/components/case-transactions/case-transactions.component.js +15 -20
- package/esm5/lib/components/pba-payment/pba-payment.component.js +7 -2
- package/fesm2015/hmcts-ccpay-web-component.js +20 -20
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +20 -20
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -3944,17 +3944,13 @@
|
|
|
3944
3944
|
}
|
|
3945
3945
|
}));
|
|
3946
3946
|
}
|
|
3947
|
-
|
|
3948
|
-
if (
|
|
3949
|
-
_this.orderStatus =
|
|
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 (
|
|
3953
|
-
_this.orderStatus =
|
|
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
|
-
|
|
4047
|
-
}
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
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
|
-
|
|
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
|