@hmcts/ccpay-web-component 5.0.2-beta46 → 5.0.2-beta47
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 +1 -21
- 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/payment-view/payment-view.component.js +2 -18
- package/esm2015/lib/interfaces/IPayment.js +3 -1
- package/esm5/lib/components/payment-view/payment-view.component.js +2 -23
- package/esm5/lib/interfaces/IPayment.js +3 -1
- package/fesm2015/hmcts-ccpay-web-component.js +1 -17
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +1 -22
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/payment-view/payment-view.component.d.ts +0 -1
- package/lib/interfaces/IPayment.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1775,7 +1775,7 @@
|
|
|
1775
1775
|
function (paymentgrp) {
|
|
1776
1776
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1777
1777
|
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1778
|
-
if (
|
|
1778
|
+
if (paymentgrp.payments[0].over_payment > 0) {
|
|
1779
1779
|
this.viewCompStatus = 'overpayment';
|
|
1780
1780
|
}
|
|
1781
1781
|
else {
|
|
@@ -1789,26 +1789,6 @@
|
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
};
|
|
1792
|
-
/**
|
|
1793
|
-
* @param {?} payments
|
|
1794
|
-
* @return {?}
|
|
1795
|
-
*/
|
|
1796
|
-
PaymentViewComponent.prototype.checkIsOverPayment = /**
|
|
1797
|
-
* @param {?} payments
|
|
1798
|
-
* @return {?}
|
|
1799
|
-
*/
|
|
1800
|
-
function (payments) {
|
|
1801
|
-
var _this = this;
|
|
1802
|
-
/** @type {?} */
|
|
1803
|
-
var isOverpaymentAvailable = false;
|
|
1804
|
-
payments.forEach(( /**
|
|
1805
|
-
* @param {?} payment
|
|
1806
|
-
* @return {?}
|
|
1807
|
-
*/function (payment) {
|
|
1808
|
-
isOverpaymentAvailable = payment.reference === _this.payment.reference && payment.over_payment > 0;
|
|
1809
|
-
}));
|
|
1810
|
-
return isOverpaymentAvailable;
|
|
1811
|
-
};
|
|
1812
1792
|
/**
|
|
1813
1793
|
* @param {?} feeCode
|
|
1814
1794
|
* @param {?} remissions
|