@hmcts/ccpay-web-component 6.0.0-beta16 → 6.0.0-beta17
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
|
@@ -3461,17 +3461,13 @@
|
|
|
3461
3461
|
}
|
|
3462
3462
|
}));
|
|
3463
3463
|
}
|
|
3464
|
-
|
|
3465
|
-
if (
|
|
3466
|
-
_this.orderStatus =
|
|
3464
|
+
// this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3465
|
+
if (paymentGroup.service_request_status === 'Paid') {
|
|
3466
|
+
_this.orderStatus = paymentGroup.service_request_status;
|
|
3467
3467
|
_this.orderAddBtnEnable = false;
|
|
3468
3468
|
}
|
|
3469
|
-
else if (
|
|
3470
|
-
_this.orderStatus =
|
|
3471
|
-
_this.orderAddBtnEnable = true;
|
|
3472
|
-
}
|
|
3473
|
-
else {
|
|
3474
|
-
_this.orderStatus = 'Not paid';
|
|
3469
|
+
else if (paymentGroup.service_request_status === 'Partially paid' || paymentGroup.service_request_status === 'Not paid') {
|
|
3470
|
+
_this.orderStatus = paymentGroup.service_request_status;
|
|
3475
3471
|
_this.orderAddBtnEnable = true;
|
|
3476
3472
|
}
|
|
3477
3473
|
//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']
|
|
@@ -3556,18 +3552,17 @@
|
|
|
3556
3552
|
}));
|
|
3557
3553
|
}
|
|
3558
3554
|
}
|
|
3555
|
+
_this.orderStatus = orderDetail.service_request_status;
|
|
3559
3556
|
}));
|
|
3560
|
-
this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3557
|
+
//this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3561
3558
|
// this.orderRef = orderReferenceObj.orderRefId;
|
|
3562
|
-
if (this.orderPendingPayments <= 0.00) {
|
|
3563
|
-
|
|
3564
|
-
}
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
this.orderStatus = 'Not paid';
|
|
3570
|
-
}
|
|
3559
|
+
// if (this.orderPendingPayments <= 0.00) {
|
|
3560
|
+
// this.orderStatus = 'Paid';
|
|
3561
|
+
// } else if (this.orderFeesTotal > 0 && (this.orderTotalPayments > 0 || this.orderRemissionTotal > 0) && (this.orderTotalPayments < this.orderPendingPayments)) {
|
|
3562
|
+
// this.orderStatus = 'Partially paid'
|
|
3563
|
+
// } else {
|
|
3564
|
+
// this.orderStatus = 'Not paid'
|
|
3565
|
+
// }
|
|
3571
3566
|
if (this.cpoDetails !== null) {
|
|
3572
3567
|
this.orderParty = this.cpoDetails['responsibleParty'];
|
|
3573
3568
|
this.orderCreated = this.cpoDetails['createdTimestamp'];
|
|
@@ -9471,7 +9466,12 @@
|
|
|
9471
9466
|
* @param {?} r
|
|
9472
9467
|
* @return {?}
|
|
9473
9468
|
*/function (r) {
|
|
9474
|
-
|
|
9469
|
+
try {
|
|
9470
|
+
_this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
9471
|
+
}
|
|
9472
|
+
catch (e) {
|
|
9473
|
+
_this.pbaAccountrPaymentResult = r;
|
|
9474
|
+
}
|
|
9475
9475
|
_this.isPBAAccountPaymentSuccess = true;
|
|
9476
9476
|
}), ( /**
|
|
9477
9477
|
* @param {?} e
|