@hmcts/ccpay-web-component 4.0.0-beta542 → 4.0.0-beta543
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 +18 -9
- 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 +16 -10
- package/esm5/lib/components/case-transactions/case-transactions.component.js +19 -10
- package/fesm2015/hmcts-ccpay-web-component.js +15 -9
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +18 -9
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -2791,9 +2791,9 @@
|
|
|
2791
2791
|
*/function (paymentGroups) {
|
|
2792
2792
|
_this.isAnyFeeGroupAvilable = true;
|
|
2793
2793
|
_this.paymentGroups = paymentGroups['payment_groups'];
|
|
2794
|
-
_this.calculateAmounts();
|
|
2795
|
-
_this.calculateOrderFeesAmounts();
|
|
2796
|
-
_this.calculateRefundAmount();
|
|
2794
|
+
_this.calculateAmounts(Event);
|
|
2795
|
+
_this.calculateOrderFeesAmounts(Event);
|
|
2796
|
+
_this.calculateRefundAmount(Event);
|
|
2797
2797
|
if (_this.isFromServiceRequestPage) {
|
|
2798
2798
|
_this.OrderslistService.getSelectedOrderRefId().subscribe(( /**
|
|
2799
2799
|
* @param {?} data
|
|
@@ -2830,9 +2830,9 @@
|
|
|
2830
2830
|
*/function (paymentGroups) {
|
|
2831
2831
|
_this.isAnyFeeGroupAvilable = true;
|
|
2832
2832
|
_this.paymentGroups = paymentGroups['payment_groups'];
|
|
2833
|
-
_this.calculateAmounts();
|
|
2834
|
-
_this.calculateOrderFeesAmounts();
|
|
2835
|
-
_this.totalRefundAmount = _this.calculateRefundAmount();
|
|
2833
|
+
_this.calculateAmounts(Event);
|
|
2834
|
+
_this.calculateOrderFeesAmounts(Event);
|
|
2835
|
+
_this.totalRefundAmount = _this.calculateRefundAmount(Event);
|
|
2836
2836
|
_this.paymentViewService.getPartyDetails(_this.ccdCaseNumber).subscribe(( /**
|
|
2837
2837
|
* @param {?} response
|
|
2838
2838
|
* @return {?}
|
|
@@ -2958,13 +2958,16 @@
|
|
|
2958
2958
|
}));
|
|
2959
2959
|
};
|
|
2960
2960
|
/**
|
|
2961
|
+
* @param {?} event
|
|
2961
2962
|
* @return {?}
|
|
2962
2963
|
*/
|
|
2963
2964
|
CaseTransactionsComponent.prototype.calculateOrderFeesAmounts = /**
|
|
2965
|
+
* @param {?} event
|
|
2964
2966
|
* @return {?}
|
|
2965
2967
|
*/
|
|
2966
|
-
function () {
|
|
2968
|
+
function (event) {
|
|
2967
2969
|
var _this = this;
|
|
2970
|
+
event.preventDefault();
|
|
2968
2971
|
this.paymentGroups.forEach(( /**
|
|
2969
2972
|
* @param {?} paymentGroup
|
|
2970
2973
|
* @return {?}
|
|
@@ -3149,13 +3152,16 @@
|
|
|
3149
3152
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
3150
3153
|
};
|
|
3151
3154
|
/**
|
|
3155
|
+
* @param {?} event
|
|
3152
3156
|
* @return {?}
|
|
3153
3157
|
*/
|
|
3154
3158
|
CaseTransactionsComponent.prototype.calculateAmounts = /**
|
|
3159
|
+
* @param {?} event
|
|
3155
3160
|
* @return {?}
|
|
3156
3161
|
*/
|
|
3157
|
-
function () {
|
|
3162
|
+
function (event) {
|
|
3158
3163
|
var _this = this;
|
|
3164
|
+
event.preventDefault();
|
|
3159
3165
|
/** @type {?} */
|
|
3160
3166
|
var feesTotal = 0.00;
|
|
3161
3167
|
/** @type {?} */
|
|
@@ -3246,13 +3252,16 @@
|
|
|
3246
3252
|
}));
|
|
3247
3253
|
};
|
|
3248
3254
|
/**
|
|
3255
|
+
* @param {?} event
|
|
3249
3256
|
* @return {?}
|
|
3250
3257
|
*/
|
|
3251
3258
|
CaseTransactionsComponent.prototype.calculateRefundAmount = /**
|
|
3259
|
+
* @param {?} event
|
|
3252
3260
|
* @return {?}
|
|
3253
3261
|
*/
|
|
3254
|
-
function () {
|
|
3262
|
+
function (event) {
|
|
3255
3263
|
var _this = this;
|
|
3264
|
+
event.preventDefault();
|
|
3256
3265
|
if (!this.isTurnOff) {
|
|
3257
3266
|
/** @type {?} */
|
|
3258
3267
|
var isNewPaymentGroup_1 = false;
|