@hmcts/ccpay-web-component 5.0.3 → 5.0.4-beta03
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 +2977 -1157
- 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/hmcts-ccpay-web-component.js +34 -31
- package/esm2015/lib/components/add-remission/add-remission.component.js +697 -126
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +115 -59
- package/esm2015/lib/components/contact-details/contact-details.component.js +447 -0
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +17 -12
- package/esm2015/lib/components/payment-view/payment-view.component.js +202 -107
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +248 -0
- package/esm2015/lib/components/process-refund/process-refund.component.js +49 -28
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +210 -31
- package/esm2015/lib/components/service-request/service-request.component.js +258 -153
- package/esm2015/lib/components/table/table.component.js +24 -9
- package/esm2015/lib/interfaces/IFee.js +13 -1
- package/esm2015/lib/interfaces/IPayment.js +7 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundFee.js +21 -0
- package/esm2015/lib/interfaces/IRefundList.js +7 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IRemission.js +7 -1
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +32 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +20 -2
- package/esm2015/lib/payment-lib.component.js +18 -5
- package/esm2015/lib/payment-lib.module.js +5 -3
- package/esm2015/lib/payment-lib.service.js +31 -1
- package/esm2015/lib/services/notification/notification.service.js +85 -0
- package/esm2015/lib/services/payment-view/payment-view.service.js +35 -1
- package/esm2015/lib/services/refunds/refunds.service.js +11 -2
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
- package/esm5/hmcts-ccpay-web-component.js +34 -31
- package/esm5/lib/components/add-remission/add-remission.component.js +819 -131
- package/esm5/lib/components/case-transactions/case-transactions.component.js +124 -59
- package/esm5/lib/components/contact-details/contact-details.component.js +472 -0
- package/esm5/lib/components/fee-summary/fee-summary.component.js +17 -12
- package/esm5/lib/components/payment-view/payment-view.component.js +236 -125
- package/esm5/lib/components/pba-payment/pba-payment.component.js +269 -0
- package/esm5/lib/components/process-refund/process-refund.component.js +52 -78
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +246 -29
- package/esm5/lib/components/service-request/service-request.component.js +302 -183
- package/esm5/lib/components/table/table.component.js +27 -9
- package/esm5/lib/interfaces/IFee.js +13 -1
- package/esm5/lib/interfaces/IPayment.js +7 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundFee.js +21 -0
- package/esm5/lib/interfaces/IRefundList.js +7 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IRemission.js +7 -1
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +16 -2
- package/esm5/lib/payment-lib.component.js +15 -3
- package/esm5/lib/payment-lib.module.js +5 -3
- package/esm5/lib/payment-lib.service.js +45 -1
- package/esm5/lib/services/notification/notification.service.js +89 -0
- package/esm5/lib/services/payment-view/payment-view.service.js +48 -1
- package/esm5/lib/services/refunds/refunds.service.js +17 -2
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
- package/fesm2015/hmcts-ccpay-web-component.js +2231 -578
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +2974 -1108
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +33 -30
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +45 -3
- package/lib/components/case-transactions/case-transactions.component.d.ts +8 -1
- package/lib/components/contact-details/contact-details.component.d.ts +49 -0
- package/lib/components/payment-view/payment-view.component.d.ts +25 -6
- package/lib/components/pba-payment/pba-payment.component.d.ts +33 -0
- package/lib/components/process-refund/process-refund.component.d.ts +6 -1
- package/lib/components/refund-status/refund-status.component.d.ts +33 -6
- package/lib/components/service-request/service-request.component.d.ts +31 -9
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts +6 -0
- package/lib/interfaces/IPayment.d.ts +3 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundFee.d.ts +7 -0
- package/lib/interfaces/IRefundList.d.ts +4 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IRemission.d.ts +3 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +8 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +7 -1
- package/lib/payment-lib.component.d.ts +5 -0
- package/lib/payment-lib.service.d.ts +6 -0
- package/lib/services/notification/notification.service.d.ts +15 -0
- package/lib/services/payment-view/payment-view.service.d.ts +5 -0
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +5 -1
|
@@ -12,8 +12,8 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
|
12
12
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
13
13
|
import { MatInputModule } from '@angular/material/input';
|
|
14
14
|
import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
15
|
-
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
16
15
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
16
|
+
import { Injectable, Component, Input, Output, EventEmitter, ChangeDetectorRef, ViewChild, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @fileoverview added by tsickle
|
|
@@ -60,6 +60,32 @@ class PaymentLibService {
|
|
|
60
60
|
getRefundsApiRootUrl() {
|
|
61
61
|
return this.REFUNDS_API_ROOT;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* @param {?} notificationapiRoot
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
setNoticationApiRootUrl(notificationapiRoot) {
|
|
68
|
+
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @return {?}
|
|
72
|
+
*/
|
|
73
|
+
getNoticationApiRootUrl() {
|
|
74
|
+
return this.NOTIFICATION_API_ROOT;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @param {?} cardPaymentReturnUrl
|
|
78
|
+
* @return {?}
|
|
79
|
+
*/
|
|
80
|
+
setCardPaymentReturnUrl(cardPaymentReturnUrl) {
|
|
81
|
+
this.CARDPAYMENTRETURNURL = cardPaymentReturnUrl;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @return {?}
|
|
85
|
+
*/
|
|
86
|
+
getCardPaymentReturnUrl() {
|
|
87
|
+
return this.CARDPAYMENTRETURNURL;
|
|
88
|
+
}
|
|
63
89
|
}
|
|
64
90
|
PaymentLibService.decorators = [
|
|
65
91
|
{ type: Injectable, args: [{
|
|
@@ -356,7 +382,6 @@ OrderslistService.ctorParameters = () => [];
|
|
|
356
382
|
* @fileoverview added by tsickle
|
|
357
383
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
358
384
|
*/
|
|
359
|
-
// import { IPayment } from './interfaces/IPayment';
|
|
360
385
|
class PaymentLibComponent {
|
|
361
386
|
/**
|
|
362
387
|
* @param {?} paymentLibService
|
|
@@ -368,6 +393,7 @@ class PaymentLibComponent {
|
|
|
368
393
|
this.cd = cd;
|
|
369
394
|
this.OrderslistService = OrderslistService$$1;
|
|
370
395
|
this.unProcessedPaymentServiceId = null;
|
|
396
|
+
this.isFromPayBubble = false;
|
|
371
397
|
this.unProcessedPayment = null;
|
|
372
398
|
this.orderFeesTotal = 0.00;
|
|
373
399
|
this.orderRemissionTotal = 0.00;
|
|
@@ -387,6 +413,8 @@ class PaymentLibComponent {
|
|
|
387
413
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
388
414
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
389
415
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
416
|
+
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
417
|
+
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
390
418
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
391
419
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
392
420
|
}
|
|
@@ -430,9 +458,10 @@ PaymentLibComponent.decorators = [
|
|
|
430
458
|
[refundReference]="refundReference"
|
|
431
459
|
[refundlistsource]="refundlistsource"
|
|
432
460
|
></ccpay-process-refund>
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
461
|
+
<ccpay-pba-payment *ngIf="viewName === 'pba-payment'"
|
|
462
|
+
[pbaPayOrderRef]="pbaPayOrderRef"
|
|
463
|
+
></ccpay-pba-payment>
|
|
464
|
+
<ccpay-case-transactions [isTakePayment]="isTakePayment" [isFromServiceRequestPage]="isFromServiceRequestPage" [LOGGEDINUSERROLES]="LOGGEDINUSERROLES" *ngIf="viewName === 'case-transactions'"></ccpay-case-transactions>
|
|
436
465
|
<app-mark-unidentified-payment *ngIf="viewName === 'unidentifiedPage'"
|
|
437
466
|
[caseType]="CASETYPE"></app-mark-unidentified-payment>
|
|
438
467
|
<app-mark-unsolicited-payment *ngIf="viewName === 'unsolicitedPage'"
|
|
@@ -463,6 +492,8 @@ PaymentLibComponent.propDecorators = {
|
|
|
463
492
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
464
493
|
BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
465
494
|
REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
|
|
495
|
+
NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
496
|
+
CARDPAYMENTRETURNURL: [{ type: Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
466
497
|
CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
|
|
467
498
|
EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
|
|
468
499
|
PAYMENT_METHOD: [{ type: Input, args: ['PAYMENT_METHOD',] }],
|
|
@@ -799,7 +830,7 @@ class WebComponentHttpClient {
|
|
|
799
830
|
* @param {?} row
|
|
800
831
|
* @return {?}
|
|
801
832
|
*/
|
|
802
|
-
row => row.startsWith('XSRF-TOKEN')))
|
|
833
|
+
row => row.startsWith('XSRF-TOKEN'))) !== undefined) {
|
|
803
834
|
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
804
835
|
* @param {?} row
|
|
805
836
|
* @return {?}
|
|
@@ -887,6 +918,40 @@ class PaymentViewService {
|
|
|
887
918
|
})
|
|
888
919
|
.pipe(catchError(this.errorHandlerService.handleError));
|
|
889
920
|
}
|
|
921
|
+
/**
|
|
922
|
+
* @return {?}
|
|
923
|
+
*/
|
|
924
|
+
getPBAaccountDetails() {
|
|
925
|
+
/** @type {?} */
|
|
926
|
+
const url = `${this.paymentLibService.API_ROOT}/pba-accounts`;
|
|
927
|
+
return this.http.get(url, { withCredentials: true }).pipe(catchError(this.errorHandlerService.handleError));
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* @param {?} serviceRef
|
|
931
|
+
* @param {?} body
|
|
932
|
+
* @return {?}
|
|
933
|
+
*/
|
|
934
|
+
postWays2PayCardPayment(serviceRef, body) {
|
|
935
|
+
/** @type {?} */
|
|
936
|
+
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/card-payments`;
|
|
937
|
+
/** @type {?} */
|
|
938
|
+
const rurl = this.paymentLibService.CARDPAYMENTRETURNURL.replace('.prod', '');
|
|
939
|
+
body['return-url'] = `${rurl}/payment`;
|
|
940
|
+
return this.https.post(url, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* @param {?} serviceRef
|
|
944
|
+
* @param {?} body
|
|
945
|
+
* @return {?}
|
|
946
|
+
*/
|
|
947
|
+
postPBAaccountPayment(serviceRef, body) {
|
|
948
|
+
/** @type {?} */
|
|
949
|
+
let randomKey = 'idam-key-' + Math.random().toString().split('.').join('-');
|
|
950
|
+
body['idempotency_key'] = randomKey;
|
|
951
|
+
/** @type {?} */
|
|
952
|
+
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/pba-payments`;
|
|
953
|
+
return this.https.post(url, body);
|
|
954
|
+
}
|
|
890
955
|
/**
|
|
891
956
|
* @param {?} body
|
|
892
957
|
* @return {?}
|
|
@@ -1034,6 +1099,29 @@ PaymentViewService.ctorParameters = () => [
|
|
|
1034
1099
|
];
|
|
1035
1100
|
/** @nocollapse */ PaymentViewService.ngInjectableDef = defineInjectable({ factory: function PaymentViewService_Factory() { return new PaymentViewService(inject(HttpClient), inject(WebComponentHttpClient), inject(LoggerService), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: PaymentViewService, providedIn: "root" });
|
|
1036
1101
|
|
|
1102
|
+
/**
|
|
1103
|
+
* @fileoverview added by tsickle
|
|
1104
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1105
|
+
*/
|
|
1106
|
+
class PostRefundRetroRemission {
|
|
1107
|
+
/**
|
|
1108
|
+
* @param {?} contact_details
|
|
1109
|
+
* @param {?} fees
|
|
1110
|
+
* @param {?} payment_reference
|
|
1111
|
+
* @param {?} refund_reason
|
|
1112
|
+
* @param {?} total_refund_amount
|
|
1113
|
+
* @param {?} is_over_payment
|
|
1114
|
+
*/
|
|
1115
|
+
constructor(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1116
|
+
this.contact_details = contact_details;
|
|
1117
|
+
this.fees = fees;
|
|
1118
|
+
this.payment_reference = payment_reference;
|
|
1119
|
+
this.refund_reason = refund_reason;
|
|
1120
|
+
this.total_refund_amount = total_refund_amount;
|
|
1121
|
+
this.is_over_payment = is_over_payment === 'op';
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1037
1125
|
/**
|
|
1038
1126
|
* @fileoverview added by tsickle
|
|
1039
1127
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -1055,28 +1143,7 @@ class PaymentViewComponent {
|
|
|
1055
1143
|
this.isIssueRefunfBtnEnable = false;
|
|
1056
1144
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1057
1145
|
this.remissions = [];
|
|
1058
|
-
this.
|
|
1059
|
-
* @return {?}
|
|
1060
|
-
*/
|
|
1061
|
-
() => {
|
|
1062
|
-
return this.allowedRolesToAccessRefund.some((/**
|
|
1063
|
-
* @param {?} role
|
|
1064
|
-
* @return {?}
|
|
1065
|
-
*/
|
|
1066
|
-
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
1067
|
-
});
|
|
1068
|
-
this.allowFurtherAccessAfter4Days = (/**
|
|
1069
|
-
* @param {?} payment
|
|
1070
|
-
* @return {?}
|
|
1071
|
-
*/
|
|
1072
|
-
(payment) => {
|
|
1073
|
-
if (payment !== null && payment !== undefined) {
|
|
1074
|
-
/** @type {?} */
|
|
1075
|
-
let tmp4DayAgo = new Date();
|
|
1076
|
-
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1077
|
-
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1078
|
-
}
|
|
1079
|
-
});
|
|
1146
|
+
this.isContinueBtnDisabled = true;
|
|
1080
1147
|
}
|
|
1081
1148
|
/**
|
|
1082
1149
|
* @return {?}
|
|
@@ -1123,6 +1190,7 @@ class PaymentViewComponent {
|
|
|
1123
1190
|
}
|
|
1124
1191
|
}));
|
|
1125
1192
|
paymentGroup.fees = fees;
|
|
1193
|
+
this.paymentFees = fees;
|
|
1126
1194
|
this.paymentGroup = paymentGroup;
|
|
1127
1195
|
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
1128
1196
|
* @param {?} paymentGroupObj
|
|
@@ -1156,6 +1224,31 @@ class PaymentViewComponent {
|
|
|
1156
1224
|
goToPaymentList() {
|
|
1157
1225
|
this.paymentLibComponent.viewName = 'payment-list';
|
|
1158
1226
|
}
|
|
1227
|
+
/**
|
|
1228
|
+
* @return {?}
|
|
1229
|
+
*/
|
|
1230
|
+
getOverPaymentValue() {
|
|
1231
|
+
/** @type {?} */
|
|
1232
|
+
let feesOverPayment = 0;
|
|
1233
|
+
this.paymentGroup.fees.forEach((/**
|
|
1234
|
+
* @param {?} fee
|
|
1235
|
+
* @return {?}
|
|
1236
|
+
*/
|
|
1237
|
+
fee => {
|
|
1238
|
+
feesOverPayment += fee.over_payment;
|
|
1239
|
+
}));
|
|
1240
|
+
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* @return {?}
|
|
1244
|
+
*/
|
|
1245
|
+
goToServiceRequestPage() {
|
|
1246
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
1247
|
+
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
1248
|
+
this.paymentLibComponent.SERVICEREQUEST = 'true';
|
|
1249
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
1250
|
+
window.location.reload();
|
|
1251
|
+
}
|
|
1159
1252
|
/**
|
|
1160
1253
|
* @param {?} event
|
|
1161
1254
|
* @return {?}
|
|
@@ -1218,7 +1311,7 @@ class PaymentViewComponent {
|
|
|
1218
1311
|
* @return {?}
|
|
1219
1312
|
*/
|
|
1220
1313
|
addRemission(fee) {
|
|
1221
|
-
if (this.
|
|
1314
|
+
if (this.chkIsAddRemissionBtnEnable(fee)) {
|
|
1222
1315
|
this.feeId = fee;
|
|
1223
1316
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe((/**
|
|
1224
1317
|
* @param {?} paymentGroup
|
|
@@ -1255,6 +1348,56 @@ class PaymentViewComponent {
|
|
|
1255
1348
|
}
|
|
1256
1349
|
return false;
|
|
1257
1350
|
}
|
|
1351
|
+
/**
|
|
1352
|
+
* @return {?}
|
|
1353
|
+
*/
|
|
1354
|
+
processRefund() {
|
|
1355
|
+
this.isConfirmationBtnDisabled = true;
|
|
1356
|
+
this.errorMessage = '';
|
|
1357
|
+
/** @type {?} */
|
|
1358
|
+
const obj = this.paymentGroup.fees[0];
|
|
1359
|
+
this.fees = [{ id: obj.id,
|
|
1360
|
+
code: obj.code,
|
|
1361
|
+
version: obj.version,
|
|
1362
|
+
apportion_amount: obj.apportion_amount,
|
|
1363
|
+
calculated_amount: obj.calculated_amount,
|
|
1364
|
+
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1365
|
+
volume: obj.volume,
|
|
1366
|
+
refund_amount: this.getOverPaymentValue() }];
|
|
1367
|
+
/** @type {?} */
|
|
1368
|
+
const requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1369
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
1370
|
+
* @param {?} response
|
|
1371
|
+
* @return {?}
|
|
1372
|
+
*/
|
|
1373
|
+
response => {
|
|
1374
|
+
if (JSON.parse(response)) {
|
|
1375
|
+
this.viewCompStatus = '';
|
|
1376
|
+
this.viewStatus = 'refundconfirmationpage';
|
|
1377
|
+
this.refundReference = JSON.parse(response).refund_reference;
|
|
1378
|
+
this.refundAmount = JSON.parse(response).refund_amount;
|
|
1379
|
+
}
|
|
1380
|
+
}), (/**
|
|
1381
|
+
* @param {?} error
|
|
1382
|
+
* @return {?}
|
|
1383
|
+
*/
|
|
1384
|
+
(error) => {
|
|
1385
|
+
this.errorMessage = error;
|
|
1386
|
+
this.isConfirmationBtnDisabled = false;
|
|
1387
|
+
this.cd.detectChanges();
|
|
1388
|
+
}));
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* @param {?=} note
|
|
1392
|
+
* @return {?}
|
|
1393
|
+
*/
|
|
1394
|
+
gotoAddressPage(note) {
|
|
1395
|
+
if (note) {
|
|
1396
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1397
|
+
}
|
|
1398
|
+
this.errorMessage = '';
|
|
1399
|
+
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1400
|
+
}
|
|
1258
1401
|
/**
|
|
1259
1402
|
* @param {?} payment
|
|
1260
1403
|
* @param {?} remission
|
|
@@ -1262,57 +1405,41 @@ class PaymentViewComponent {
|
|
|
1262
1405
|
* @return {?}
|
|
1263
1406
|
*/
|
|
1264
1407
|
addRefundForRemission(payment, remission, fees) {
|
|
1265
|
-
if
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1408
|
+
//if(!this.chkIsIssueRefundBtnEnable(payment)) {
|
|
1409
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe((/**
|
|
1410
|
+
* @param {?} paymentGroup
|
|
1411
|
+
* @return {?}
|
|
1412
|
+
*/
|
|
1413
|
+
paymentGroup => {
|
|
1414
|
+
this.paymentGroup = paymentGroup;
|
|
1415
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
1416
|
+
* @param {?} paymentGroupObj
|
|
1269
1417
|
* @return {?}
|
|
1270
1418
|
*/
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
*/
|
|
1277
|
-
paymentGroupObj => paymentGroupObj['reference'].includes(this.payment.reference)));
|
|
1278
|
-
this.payment = this.paymentGroup.payments[0];
|
|
1279
|
-
this.remissions = remission;
|
|
1280
|
-
this.remissionFeeAmt = fees.filter((/**
|
|
1281
|
-
* @param {?} data
|
|
1282
|
-
* @return {?}
|
|
1283
|
-
*/
|
|
1284
|
-
data => data.code === this.remissions['fee_code']))[0].net_amount;
|
|
1285
|
-
this.viewStatus = 'addrefundforremission';
|
|
1286
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1287
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1288
|
-
}), (/**
|
|
1289
|
-
* @param {?} error
|
|
1419
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(payment.reference)));
|
|
1420
|
+
this.payment = this.paymentGroup.payments[0];
|
|
1421
|
+
this.remissions = remission;
|
|
1422
|
+
this.remissionFeeAmt = fees.filter((/**
|
|
1423
|
+
* @param {?} data
|
|
1290
1424
|
* @return {?}
|
|
1291
1425
|
*/
|
|
1292
|
-
|
|
1293
|
-
|
|
1426
|
+
data => data.code === this.remissions['fee_code']))[0].net_amount;
|
|
1427
|
+
this.viewStatus = 'addrefundforremission';
|
|
1428
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1429
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1430
|
+
}), (/**
|
|
1431
|
+
* @param {?} error
|
|
1432
|
+
* @return {?}
|
|
1433
|
+
*/
|
|
1434
|
+
(error) => this.errorMessage = error));
|
|
1435
|
+
//}
|
|
1294
1436
|
}
|
|
1295
1437
|
/**
|
|
1296
1438
|
* @return {?}
|
|
1297
1439
|
*/
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
* @param {?} payment
|
|
1302
|
-
* @return {?}
|
|
1303
|
-
*/
|
|
1304
|
-
payment => {
|
|
1305
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1306
|
-
this.isRefundRemissionBtnEnable = true;
|
|
1307
|
-
}
|
|
1308
|
-
}));
|
|
1309
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
1310
|
-
return true;
|
|
1311
|
-
}
|
|
1312
|
-
else {
|
|
1313
|
-
return false;
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1440
|
+
goToPaymentViewComponent() {
|
|
1441
|
+
this.viewCompStatus = '';
|
|
1442
|
+
this.viewStatus = 'paymentview';
|
|
1316
1443
|
}
|
|
1317
1444
|
/**
|
|
1318
1445
|
* @param {?} paymentgrp
|
|
@@ -1320,13 +1447,18 @@ class PaymentViewComponent {
|
|
|
1320
1447
|
*/
|
|
1321
1448
|
issueRefund(paymentgrp) {
|
|
1322
1449
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1323
|
-
if (this.
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1450
|
+
if (this.chkIsIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1451
|
+
if (paymentgrp.payments[0].over_payment > 0) {
|
|
1452
|
+
this.viewCompStatus = 'overpayment';
|
|
1453
|
+
}
|
|
1454
|
+
else {
|
|
1455
|
+
this.paymentGroup = paymentgrp;
|
|
1456
|
+
this.viewStatus = 'issuerefund';
|
|
1457
|
+
this.isRefundRemission = true;
|
|
1458
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1459
|
+
this.isFromPaymentDetailPage = true;
|
|
1460
|
+
this.isFromServiceRequestPage = false;
|
|
1461
|
+
}
|
|
1330
1462
|
}
|
|
1331
1463
|
}
|
|
1332
1464
|
}
|
|
@@ -1349,51 +1481,82 @@ class PaymentViewComponent {
|
|
|
1349
1481
|
* @param {?} payment
|
|
1350
1482
|
* @return {?}
|
|
1351
1483
|
*/
|
|
1352
|
-
|
|
1353
|
-
if (
|
|
1354
|
-
payment.
|
|
1355
|
-
this.isIssueRefunfBtnEnable = true;
|
|
1356
|
-
}
|
|
1357
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
1358
|
-
return true;
|
|
1484
|
+
chkIsIssueRefundBtnEnable(payment) {
|
|
1485
|
+
if (payment !== null && payment !== undefined) {
|
|
1486
|
+
return payment.issue_refund && payment.refund_enable;
|
|
1359
1487
|
}
|
|
1360
1488
|
else {
|
|
1361
1489
|
return false;
|
|
1362
1490
|
}
|
|
1363
1491
|
}
|
|
1364
1492
|
/**
|
|
1493
|
+
* @param {?} remission
|
|
1365
1494
|
* @return {?}
|
|
1366
1495
|
*/
|
|
1367
|
-
|
|
1368
|
-
if (
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
return true;
|
|
1373
|
-
}
|
|
1496
|
+
chkIsAddRefundBtnEnable(remission) {
|
|
1497
|
+
if (remission !== null && remission !== undefined) {
|
|
1498
|
+
return remission.add_refund;
|
|
1499
|
+
}
|
|
1500
|
+
else {
|
|
1374
1501
|
return false;
|
|
1375
1502
|
}
|
|
1376
1503
|
}
|
|
1377
1504
|
/**
|
|
1378
|
-
* @param {?}
|
|
1505
|
+
* @param {?} fee
|
|
1379
1506
|
* @return {?}
|
|
1380
1507
|
*/
|
|
1381
|
-
|
|
1382
|
-
if (
|
|
1383
|
-
|
|
1384
|
-
for (const remission of this.paymentGroup.remissions) {
|
|
1385
|
-
if (remission.fee_code === feeCode) {
|
|
1386
|
-
return false;
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
return true;
|
|
1390
|
-
}
|
|
1391
|
-
return true;
|
|
1508
|
+
chkIsAddRemissionBtnEnable(fee) {
|
|
1509
|
+
if (fee !== null && fee !== undefined) {
|
|
1510
|
+
return fee.add_remission && fee.remission_enable;
|
|
1392
1511
|
}
|
|
1393
1512
|
else {
|
|
1394
1513
|
return false;
|
|
1395
1514
|
}
|
|
1396
1515
|
}
|
|
1516
|
+
/**
|
|
1517
|
+
* @param {?} paymentType
|
|
1518
|
+
* @return {?}
|
|
1519
|
+
*/
|
|
1520
|
+
selectPymentOption(paymentType) {
|
|
1521
|
+
this.paymentType = paymentType;
|
|
1522
|
+
this.isContinueBtnDisabled = false;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* @param {?} paymentgrp
|
|
1526
|
+
* @return {?}
|
|
1527
|
+
*/
|
|
1528
|
+
continuePayment(paymentgrp) {
|
|
1529
|
+
if (this.paymentType === 'op') {
|
|
1530
|
+
this.isFullyRefund = false;
|
|
1531
|
+
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1532
|
+
}
|
|
1533
|
+
else if (this.paymentType === 'fp') {
|
|
1534
|
+
this.isFullyRefund = true;
|
|
1535
|
+
this.paymentGroup = paymentgrp;
|
|
1536
|
+
this.viewStatus = 'issuerefund';
|
|
1537
|
+
this.viewCompStatus = "";
|
|
1538
|
+
this.isRefundRemission = true;
|
|
1539
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1540
|
+
this.isFromPaymentDetailPage = true;
|
|
1541
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* @param {?} event
|
|
1546
|
+
* @return {?}
|
|
1547
|
+
*/
|
|
1548
|
+
gotoPaymentSelectPage(event) {
|
|
1549
|
+
event.preventDefault();
|
|
1550
|
+
this.viewCompStatus = 'overpayment';
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* @param {?} obj
|
|
1554
|
+
* @return {?}
|
|
1555
|
+
*/
|
|
1556
|
+
getContactDetails(obj) {
|
|
1557
|
+
this.contactDetailsObj = obj;
|
|
1558
|
+
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1559
|
+
}
|
|
1397
1560
|
/**
|
|
1398
1561
|
* @return {?}
|
|
1399
1562
|
*/
|
|
@@ -1411,8 +1574,8 @@ class PaymentViewComponent {
|
|
|
1411
1574
|
PaymentViewComponent.decorators = [
|
|
1412
1575
|
{ type: Component, args: [{
|
|
1413
1576
|
selector: 'ccpay-payment-view',
|
|
1414
|
-
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n \n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n \n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n \n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n \n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n \n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n \n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n \n </div>\n \n </main>\n </div> -->\n<!-- </ng-container> --> \n",
|
|
1415
|
-
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}.text-transform::first-letter{text-transform:capitalize}.govuk-link{cursor:pointer}.mar-17{font-size:19px!important}"]
|
|
1577
|
+
template: "<div class=\"payment-view-section\">\n<ng-container *ngIf=\"viewStatus === 'paymentview' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.over_payment > 0\">\n <td class=\"bold tb-col-w\">Over payment</td>\n <td class=\"tb-col-w\">\u00A3{{ getOverPaymentValue() | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [fees] =\"paymentFees\"\n [isFullyRefund] = \"isFullyRefund\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n \n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n\n\n\n</ng-container>\n</div>\n<div class=\"over-payment\">\n<ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroup?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComponent()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroup)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event)\"\n(redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroup.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n\n</ng-container>\n</div>",
|
|
1578
|
+
styles: [".payment-view-section .tb-col-w{width:330px}.payment-view-section .tr-border{border-bottom:2px solid}.payment-view-section .payment-view-alignment{margin-left:30px}.payment-view-section .govuk-button{font-size:19px;float:left;margin-top:2em}.payment-view-section .remission{margin-bottom:7em}.payment-view-section .govuk-error-summary__title{font-size:24px!important}.payment-view-section .govuk-table__cell,.payment-view-section .govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.payment-view-section .govuk-table__row{line-height:1.3}.payment-view-section .govuk-table__cell:last-child{text-align:right}.payment-view-section .text-transform::first-letter{text-transform:capitalize}.payment-view-section .govuk-link{cursor:pointer}.payment-view-section .mar-17{font-size:19px!important}.over-payment .contactDetails-width{width:70%}.over-payment .margin-top10px{margin-top:20px}.over-payment .govuk-font19px{font-size:19px!important}.over-payment .margin-top--size{margin-top:-30px}.over-payment .over-payment-alignment{margin-right:10px}.over-payment .govuk-button{font-size:19px;float:left;margin-top:2em}.over-payment td.govuk-table__cell{width:50%}.over-payment .govuk-label--s,.over-payment .govuk-warning-text__text,.over-payment .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.over-payment .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.over-payment .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.over-payment .govuk-button-group{padding-top:2em}.over-payment .heading-medium{margin-top:.875em}.over-payment .heading-large{margin-top:.25em}.over-payment .govuk-panel--confirmation{color:#fff;background:#00703c}.over-payment .govuk-panel__title{font-size:5rem}.over-payment .govuk-body,.over-payment .govuk-body-m{font-size:2.1875rem}.over-payment .govuk-link{cursor:pointer}.over-payment .govuk-radios__conditional{padding-top:12px!important}.over-payment .right{float:right;cursor:pointer}.over-payment .radio{float:right}.over-payment .white{color:#fff}"]
|
|
1416
1579
|
}] }
|
|
1417
1580
|
];
|
|
1418
1581
|
/** @nocollapse */
|
|
@@ -1438,7 +1601,8 @@ PaymentViewComponent.propDecorators = {
|
|
|
1438
1601
|
orderCCDEvent: [{ type: Input }],
|
|
1439
1602
|
orderFeesTotal: [{ type: Input }],
|
|
1440
1603
|
orderRemissionTotal: [{ type: Input }],
|
|
1441
|
-
orderDetail: [{ type: Input }]
|
|
1604
|
+
orderDetail: [{ type: Input }],
|
|
1605
|
+
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }]
|
|
1442
1606
|
};
|
|
1443
1607
|
|
|
1444
1608
|
/**
|
|
@@ -1546,6 +1710,15 @@ class RefundsService {
|
|
|
1546
1710
|
postIssueRefund(body) {
|
|
1547
1711
|
return this.https.post(`${this.paymentLibService.REFUNDS_API_ROOT}/refund`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1548
1712
|
}
|
|
1713
|
+
/**
|
|
1714
|
+
* @param {?} body
|
|
1715
|
+
* @param {?} refundRef
|
|
1716
|
+
* @param {?} notificationType
|
|
1717
|
+
* @return {?}
|
|
1718
|
+
*/
|
|
1719
|
+
putResendOrEdit(body, refundRef, notificationType) {
|
|
1720
|
+
return this.https.put(`${this.paymentLibService.REFUNDS_API_ROOT}/resend/notification/${refundRef}?notificationType=${notificationType}`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1721
|
+
}
|
|
1549
1722
|
/**
|
|
1550
1723
|
* @param {?} body
|
|
1551
1724
|
* @param {?} refund_reference
|
|
@@ -1579,7 +1752,7 @@ class RefundsService {
|
|
|
1579
1752
|
* @param {?} row
|
|
1580
1753
|
* @return {?}
|
|
1581
1754
|
*/
|
|
1582
|
-
row => row.startsWith('XSRF-TOKEN')))
|
|
1755
|
+
row => row.startsWith('XSRF-TOKEN'))) !== undefined) {
|
|
1583
1756
|
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
1584
1757
|
* @param {?} row
|
|
1585
1758
|
* @return {?}
|
|
@@ -1624,14 +1797,16 @@ RefundsService.ctorParameters = () => [
|
|
|
1624
1797
|
class ProcessRefundComponent {
|
|
1625
1798
|
/**
|
|
1626
1799
|
* @param {?} RefundsService
|
|
1800
|
+
* @param {?} paymentViewService
|
|
1627
1801
|
* @param {?} formBuilder
|
|
1628
1802
|
* @param {?} OrderslistService
|
|
1629
1803
|
* @param {?} paymentLibComponent
|
|
1630
1804
|
* @param {?} router
|
|
1631
1805
|
* @param {?} activeRoute
|
|
1632
1806
|
*/
|
|
1633
|
-
constructor(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
1807
|
+
constructor(RefundsService$$1, paymentViewService, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
1634
1808
|
this.RefundsService = RefundsService$$1;
|
|
1809
|
+
this.paymentViewService = paymentViewService;
|
|
1635
1810
|
this.formBuilder = formBuilder;
|
|
1636
1811
|
this.OrderslistService = OrderslistService$$1;
|
|
1637
1812
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -1654,6 +1829,7 @@ class ProcessRefundComponent {
|
|
|
1654
1829
|
this.isReasonEmpty = false;
|
|
1655
1830
|
this.isReasonInvalid = false;
|
|
1656
1831
|
this.successMsg = null;
|
|
1832
|
+
this.cpoDetails = null;
|
|
1657
1833
|
this.isConfirmButtondisabled = true;
|
|
1658
1834
|
}
|
|
1659
1835
|
/**
|
|
@@ -1697,6 +1873,20 @@ class ProcessRefundComponent {
|
|
|
1697
1873
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
1698
1874
|
this.isFromRefundListPage = true;
|
|
1699
1875
|
}
|
|
1876
|
+
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
1877
|
+
* @param {?} response
|
|
1878
|
+
* @return {?}
|
|
1879
|
+
*/
|
|
1880
|
+
response => {
|
|
1881
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
1882
|
+
}), (/**
|
|
1883
|
+
* @param {?} error
|
|
1884
|
+
* @return {?}
|
|
1885
|
+
*/
|
|
1886
|
+
(error) => {
|
|
1887
|
+
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
1888
|
+
this.isCPODown = true;
|
|
1889
|
+
}));
|
|
1700
1890
|
}
|
|
1701
1891
|
/**
|
|
1702
1892
|
* @param {?} code
|
|
@@ -1909,30 +2099,16 @@ class ProcessRefundComponent {
|
|
|
1909
2099
|
this.loadRefundListPage();
|
|
1910
2100
|
}
|
|
1911
2101
|
}
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
1923
|
-
// }
|
|
1924
|
-
// );
|
|
1925
|
-
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
1926
|
-
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
1927
|
-
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
1928
|
-
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
1929
|
-
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
1930
|
-
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
1931
|
-
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
1932
|
-
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
1933
|
-
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
1934
|
-
// this.router.navigateByUrl(url);
|
|
1935
|
-
// }
|
|
2102
|
+
/**
|
|
2103
|
+
* @return {?}
|
|
2104
|
+
*/
|
|
2105
|
+
loadCaseTransactionPage() {
|
|
2106
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
2107
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
2108
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
2109
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
2110
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
2111
|
+
}
|
|
1936
2112
|
/**
|
|
1937
2113
|
* @param {?} vals
|
|
1938
2114
|
* @param {?} field
|
|
@@ -1960,19 +2136,27 @@ class ProcessRefundComponent {
|
|
|
1960
2136
|
* @return {?}
|
|
1961
2137
|
*/
|
|
1962
2138
|
goToCaseReview() {
|
|
1963
|
-
|
|
2139
|
+
/** @type {?} */
|
|
2140
|
+
const isPayBubble = this.paymentLibComponent.isFromPayBubble;
|
|
2141
|
+
if (isPayBubble) {
|
|
2142
|
+
this.loadCaseTransactionPage();
|
|
2143
|
+
}
|
|
2144
|
+
else {
|
|
2145
|
+
this.router.navigate([`/cases/case-details/${this.ccdCaseNumber}`], { relativeTo: this.activeRoute });
|
|
2146
|
+
}
|
|
1964
2147
|
}
|
|
1965
2148
|
}
|
|
1966
2149
|
ProcessRefundComponent.decorators = [
|
|
1967
2150
|
{ type: Component, args: [{
|
|
1968
2151
|
selector: 'ccpay-process-refund',
|
|
1969
|
-
template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third reason-font\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n <input class=\"govuk-input govuk-!-width-one-third reason-font\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div *ngIf=\"!isFromRefundListPage\" class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundsHomePage()\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n</div>\n</form>\n </div>\n \n\n </main>\n \n <main class=\"govuk-main-wrapper govuk-main-wrapper--l success-page-padding--top25\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSuccesspageEnable}\" id=\"main-content\" role=\"main\" >\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel-refund--confirmation\">\n <h1 class=\"heading-xlarge\">\n {{successMsg}}\n </h1>\n </div>\n <p class=\"govuk-body process-refund-font\">\n <a (
|
|
2152
|
+
template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent to</td>\n <td>{{cpoDetails?.responsibleParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent via</td>\n <td>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlistsource?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlistsource?.contact_details?.address_line}} {{refundlistsource?.contact_details?.city}} {{refundlistsource?.contact_details?.county}} {{refundlistsource?.contact_details?.country}} {{refundlistsource?.contact_details?.postal_code}}\n </div> \n </td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third reason-font\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n <input class=\"govuk-input govuk-!-width-one-third reason-font\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div *ngIf=\"!isFromRefundListPage\" class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundsHomePage()\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n</div>\n</form>\n </div>\n \n\n </main>\n \n <main class=\"govuk-main-wrapper govuk-main-wrapper--l success-page-padding--top25\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSuccesspageEnable}\" id=\"main-content\" role=\"main\" >\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel-refund--confirmation\">\n <h1 class=\"heading-xlarge\">\n {{successMsg}}\n </h1>\n </div>\n <p class=\"govuk-body process-refund-font\">\n <a href=\"Javascript:void(0)\" (click)=\"goToCaseReview()\" class=\"govuk-link pointer\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
|
|
1970
2153
|
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{float:left!important;font-size:19px;margin-top:2em!important}.remission{margin-bottom:7em}.process-refund-font{font-size:19px!important}.govuk-radios__conditional--hidden{display:none}.inline-error-message{color:#c11717;font-weight:700;margin-top:10px;border-color:#c11717}.inline-error-class{outline:#c11717 solid 3px;outline-offset:0;border-color:#c11717}.form-group-error{border-left:5px solid #c11717;padding-left:15px}.govuk-panel-refund--confirmation{color:#fff;background:#00703c}.process-refund__panel{display:flex;flex-direction:column;margin-left:25px;margin-top:30px}.button-margin--left25{margin-left:25px}.success-page-padding--top25{padding-top:25px}.margin{margin-top:5em}.marginright{margin-right:1.5em}.govuk-textarea{line-height:2.25}.reason-font{font-size:19px!important}.pointer{cursor:pointer}"]
|
|
1971
2154
|
}] }
|
|
1972
2155
|
];
|
|
1973
2156
|
/** @nocollapse */
|
|
1974
2157
|
ProcessRefundComponent.ctorParameters = () => [
|
|
1975
2158
|
{ type: RefundsService },
|
|
2159
|
+
{ type: PaymentViewService },
|
|
1976
2160
|
{ type: FormBuilder },
|
|
1977
2161
|
{ type: OrderslistService },
|
|
1978
2162
|
{ type: PaymentLibComponent },
|
|
@@ -1996,10 +2180,10 @@ class RefundListComponent {
|
|
|
1996
2180
|
this.refundService = refundService;
|
|
1997
2181
|
this.submittedRefundList = [];
|
|
1998
2182
|
this.rejectedRefundList = [];
|
|
2183
|
+
// approvalStatus = 'Sent for approval';
|
|
2184
|
+
// rejectStatus = 'Update required';
|
|
1999
2185
|
this.approvalStatus = 'Sent for approval';
|
|
2000
2186
|
this.rejectStatus = 'Update required';
|
|
2001
|
-
// approvalStatus = 'sent for approval';
|
|
2002
|
-
// rejectStatus = 'sent back';
|
|
2003
2187
|
this.errorMessage = null;
|
|
2004
2188
|
this.isAuthorized = true;
|
|
2005
2189
|
}
|
|
@@ -2268,6 +2452,420 @@ StatusHistoryComponent.propDecorators = {
|
|
|
2268
2452
|
isTakePayment: [{ type: Input }]
|
|
2269
2453
|
};
|
|
2270
2454
|
|
|
2455
|
+
/**
|
|
2456
|
+
* @fileoverview added by tsickle
|
|
2457
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2458
|
+
*/
|
|
2459
|
+
class NotificationService {
|
|
2460
|
+
/**
|
|
2461
|
+
* @param {?} http
|
|
2462
|
+
* @param {?} https
|
|
2463
|
+
* @param {?} errorHandlerService
|
|
2464
|
+
* @param {?} paymentLibService
|
|
2465
|
+
*/
|
|
2466
|
+
constructor(http, https, errorHandlerService, paymentLibService) {
|
|
2467
|
+
this.http = http;
|
|
2468
|
+
this.https = https;
|
|
2469
|
+
this.errorHandlerService = errorHandlerService;
|
|
2470
|
+
this.paymentLibService = paymentLibService;
|
|
2471
|
+
}
|
|
2472
|
+
/**
|
|
2473
|
+
* @param {?} reference
|
|
2474
|
+
* @return {?}
|
|
2475
|
+
*/
|
|
2476
|
+
getRefundNotification(reference) {
|
|
2477
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/notifications/${reference}`, {
|
|
2478
|
+
withCredentials: true
|
|
2479
|
+
})
|
|
2480
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2481
|
+
}
|
|
2482
|
+
/**
|
|
2483
|
+
* @param {?} postcode
|
|
2484
|
+
* @return {?}
|
|
2485
|
+
*/
|
|
2486
|
+
getAddressByPostcode(postcode) {
|
|
2487
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/search/places/v1/postcode?postcode=${postcode}`, {
|
|
2488
|
+
withCredentials: true
|
|
2489
|
+
})
|
|
2490
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
NotificationService.decorators = [
|
|
2494
|
+
{ type: Injectable, args: [{
|
|
2495
|
+
providedIn: 'root'
|
|
2496
|
+
},] }
|
|
2497
|
+
];
|
|
2498
|
+
/** @nocollapse */
|
|
2499
|
+
NotificationService.ctorParameters = () => [
|
|
2500
|
+
{ type: HttpClient },
|
|
2501
|
+
{ type: WebComponentHttpClient },
|
|
2502
|
+
{ type: ErrorHandlerService },
|
|
2503
|
+
{ type: PaymentLibService }
|
|
2504
|
+
];
|
|
2505
|
+
/** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* @fileoverview added by tsickle
|
|
2509
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2510
|
+
*/
|
|
2511
|
+
class ContactDetailsComponent {
|
|
2512
|
+
/**
|
|
2513
|
+
* @param {?} formBuilder
|
|
2514
|
+
* @param {?} notificationService
|
|
2515
|
+
* @param {?} paymentLibComponent
|
|
2516
|
+
*/
|
|
2517
|
+
constructor(formBuilder, notificationService, paymentLibComponent) {
|
|
2518
|
+
this.formBuilder = formBuilder;
|
|
2519
|
+
this.notificationService = notificationService;
|
|
2520
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
2521
|
+
this.assignContactDetails = new EventEmitter();
|
|
2522
|
+
this.assignContactDetailsInFefundsList = new EventEmitter();
|
|
2523
|
+
this.redirectToIssueRefund = new EventEmitter();
|
|
2524
|
+
this.pageTitle = 'Payment status history';
|
|
2525
|
+
this.isEmailSAddressClicked = true;
|
|
2526
|
+
this.isShowPickAddress = false;
|
|
2527
|
+
this.isPostcodeClicked = false;
|
|
2528
|
+
this.isManualAddressClicked = false;
|
|
2529
|
+
this.addressPostcodeList = [];
|
|
2530
|
+
this.isAddressBoxEmpty = false;
|
|
2531
|
+
this.isEmailEmpty = false;
|
|
2532
|
+
this.emailHasError = false;
|
|
2533
|
+
this.isPostcodeEmpty = false;
|
|
2534
|
+
this.postcodeHasError = false;
|
|
2535
|
+
this.isaddressLine1Empty = false;
|
|
2536
|
+
this.addressLine1HasError = false;
|
|
2537
|
+
this.addressLine2HasError = false;
|
|
2538
|
+
this.isTownOrCityEmpty = false;
|
|
2539
|
+
this.townOrCityHasError = false;
|
|
2540
|
+
this.isCountyEmpty = false;
|
|
2541
|
+
this.countyHasError = false;
|
|
2542
|
+
this.isMPostcodeEmpty = false;
|
|
2543
|
+
this.mpostcodeHasError = false;
|
|
2544
|
+
this.isCountryEmpty = false;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* @return {?}
|
|
2548
|
+
*/
|
|
2549
|
+
ngOnInit() {
|
|
2550
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2551
|
+
this.emailAddressForm = this.formBuilder.group({
|
|
2552
|
+
email: new FormControl('', Validators.compose([
|
|
2553
|
+
Validators.required,
|
|
2554
|
+
Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
2555
|
+
]))
|
|
2556
|
+
});
|
|
2557
|
+
this.postCodeForm = this.formBuilder.group({
|
|
2558
|
+
postcode: new FormControl('', Validators.compose([
|
|
2559
|
+
Validators.required,
|
|
2560
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
2561
|
+
]))
|
|
2562
|
+
});
|
|
2563
|
+
this.manualAddressForm = this.formBuilder.group({
|
|
2564
|
+
addressl1: new FormControl('', Validators.compose([
|
|
2565
|
+
Validators.required,
|
|
2566
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2567
|
+
])),
|
|
2568
|
+
addressl2: new FormControl('', Validators.compose([
|
|
2569
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2570
|
+
])),
|
|
2571
|
+
townorcity: new FormControl('', Validators.compose([
|
|
2572
|
+
Validators.required,
|
|
2573
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2574
|
+
])),
|
|
2575
|
+
county: new FormControl('', Validators.compose([
|
|
2576
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2577
|
+
])),
|
|
2578
|
+
mpostcode: new FormControl('', Validators.compose([
|
|
2579
|
+
Validators.required,
|
|
2580
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
2581
|
+
])),
|
|
2582
|
+
country: new FormControl('', Validators.compose([
|
|
2583
|
+
Validators.required
|
|
2584
|
+
]))
|
|
2585
|
+
});
|
|
2586
|
+
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
2587
|
+
this.setEditDetails();
|
|
2588
|
+
}
|
|
2589
|
+
if (this.isEditOperationInRefundList === undefined) {
|
|
2590
|
+
this.isEditOperationInRefundList = false;
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
/**
|
|
2594
|
+
* @return {?}
|
|
2595
|
+
*/
|
|
2596
|
+
setEditDetails() {
|
|
2597
|
+
if (this.addressObj.notification_type === 'EMAIL') {
|
|
2598
|
+
this.isEmailSAddressClicked = true;
|
|
2599
|
+
this.isPostcodeClicked = false;
|
|
2600
|
+
this.isManualAddressClicked = false;
|
|
2601
|
+
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
2602
|
+
}
|
|
2603
|
+
else if (this.addressObj.notification_type === 'LETTER') {
|
|
2604
|
+
this.isEmailSAddressClicked = false;
|
|
2605
|
+
this.isPostcodeClicked = true;
|
|
2606
|
+
this.isManualAddressClicked = true;
|
|
2607
|
+
this.manualAddressForm.patchValue({
|
|
2608
|
+
addressl1: this.addressObj.contact_details.address_line,
|
|
2609
|
+
townorcity: this.addressObj.contact_details.city,
|
|
2610
|
+
county: this.addressObj.contact_details.county,
|
|
2611
|
+
country: this.addressObj.contact_details.country,
|
|
2612
|
+
mpostcode: this.addressObj.contact_details.postal_code
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
/**
|
|
2617
|
+
* @param {?} type
|
|
2618
|
+
* @param {?} isLinkedClied
|
|
2619
|
+
* @return {?}
|
|
2620
|
+
*/
|
|
2621
|
+
selectContactOption(type, isLinkedClied) {
|
|
2622
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2623
|
+
if (type === 'Email' && isLinkedClied === 'false') {
|
|
2624
|
+
this.isEmailSAddressClicked = true;
|
|
2625
|
+
this.isPostcodeClicked = false;
|
|
2626
|
+
this.isManualAddressClicked = false;
|
|
2627
|
+
}
|
|
2628
|
+
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
2629
|
+
this.isEmailSAddressClicked = false;
|
|
2630
|
+
this.isPostcodeClicked = true;
|
|
2631
|
+
this.isManualAddressClicked = false;
|
|
2632
|
+
}
|
|
2633
|
+
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
2634
|
+
this.isEmailSAddressClicked = false;
|
|
2635
|
+
this.isPostcodeClicked = true;
|
|
2636
|
+
this.isManualAddressClicked = true;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
/**
|
|
2640
|
+
* @return {?}
|
|
2641
|
+
*/
|
|
2642
|
+
finalFormSubmit() {
|
|
2643
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2644
|
+
if (this.isEmailSAddressClicked) {
|
|
2645
|
+
/** @type {?} */
|
|
2646
|
+
const emailField = this.emailAddressForm.controls.email;
|
|
2647
|
+
if (this.emailAddressForm.valid) {
|
|
2648
|
+
if (!this.isEditOperationInRefundList) {
|
|
2649
|
+
this.assignContactDetails.emit({
|
|
2650
|
+
email: emailField.value,
|
|
2651
|
+
notification_type: 'EMAIL'
|
|
2652
|
+
});
|
|
2653
|
+
}
|
|
2654
|
+
else {
|
|
2655
|
+
this.assignContactDetailsInFefundsList.emit({
|
|
2656
|
+
email: emailField.value,
|
|
2657
|
+
notification_type: 'EMAIL'
|
|
2658
|
+
});
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
else {
|
|
2662
|
+
if (emailField.value == '') {
|
|
2663
|
+
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2664
|
+
}
|
|
2665
|
+
if (emailField.value != '' && emailField.invalid) {
|
|
2666
|
+
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
2671
|
+
this.postcodeValidation('FS');
|
|
2672
|
+
}
|
|
2673
|
+
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
2674
|
+
/** @type {?} */
|
|
2675
|
+
const fieldCtrls = this.manualAddressForm.controls;
|
|
2676
|
+
if (this.manualAddressForm.valid) {
|
|
2677
|
+
if (!this.isEditOperationInRefundList) {
|
|
2678
|
+
this.assignContactDetails.emit({
|
|
2679
|
+
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
2680
|
+
city: fieldCtrls.townorcity.value,
|
|
2681
|
+
county: fieldCtrls.county.value,
|
|
2682
|
+
postal_code: fieldCtrls.mpostcode.value,
|
|
2683
|
+
country: fieldCtrls.country.value,
|
|
2684
|
+
notification_type: 'LETTER'
|
|
2685
|
+
});
|
|
2686
|
+
}
|
|
2687
|
+
else {
|
|
2688
|
+
this.assignContactDetailsInFefundsList.emit({
|
|
2689
|
+
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
2690
|
+
city: fieldCtrls.townorcity.value,
|
|
2691
|
+
county: fieldCtrls.county.value,
|
|
2692
|
+
postal_code: fieldCtrls.mpostcode.value,
|
|
2693
|
+
country: fieldCtrls.country.value,
|
|
2694
|
+
notification_type: 'LETTER'
|
|
2695
|
+
});
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
else {
|
|
2699
|
+
if (fieldCtrls.addressl1.value == '') {
|
|
2700
|
+
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
2701
|
+
}
|
|
2702
|
+
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
2703
|
+
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
2704
|
+
}
|
|
2705
|
+
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
2706
|
+
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
2707
|
+
}
|
|
2708
|
+
if (fieldCtrls.townorcity.value == '') {
|
|
2709
|
+
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
2710
|
+
}
|
|
2711
|
+
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
2712
|
+
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
2713
|
+
}
|
|
2714
|
+
if (fieldCtrls.county.value == '') {
|
|
2715
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
2716
|
+
}
|
|
2717
|
+
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
2718
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
2719
|
+
}
|
|
2720
|
+
if (fieldCtrls.mpostcode.value == '') {
|
|
2721
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
2722
|
+
}
|
|
2723
|
+
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
2724
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
2725
|
+
}
|
|
2726
|
+
if (fieldCtrls.country.value == '') {
|
|
2727
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
/**
|
|
2733
|
+
* @param {?} str
|
|
2734
|
+
* @return {?}
|
|
2735
|
+
*/
|
|
2736
|
+
postcodeValidation(str) {
|
|
2737
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2738
|
+
/** @type {?} */
|
|
2739
|
+
const postcodeField = this.postCodeForm.controls.postcode;
|
|
2740
|
+
if (this.postCodeForm.valid) {
|
|
2741
|
+
if (str === 'FA') {
|
|
2742
|
+
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe((/**
|
|
2743
|
+
* @param {?} refundsNotification
|
|
2744
|
+
* @return {?}
|
|
2745
|
+
*/
|
|
2746
|
+
refundsNotification => {
|
|
2747
|
+
this.addressPostcodeList = refundsNotification['data']['results'];
|
|
2748
|
+
this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
2749
|
+
if (!this.isShowPickAddress) {
|
|
2750
|
+
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2751
|
+
}
|
|
2752
|
+
})),
|
|
2753
|
+
(/**
|
|
2754
|
+
* @param {?} error
|
|
2755
|
+
* @return {?}
|
|
2756
|
+
*/
|
|
2757
|
+
(error) => {
|
|
2758
|
+
this.isShowPickAddress = false;
|
|
2759
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
2760
|
+
});
|
|
2761
|
+
}
|
|
2762
|
+
else if (str === 'FS') {
|
|
2763
|
+
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
2764
|
+
this.isAddressBoxEmpty = false;
|
|
2765
|
+
/** @type {?} */
|
|
2766
|
+
let addressLine = "";
|
|
2767
|
+
/** @type {?} */
|
|
2768
|
+
let addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
2769
|
+
for (let i = 0; i < addressArray.length - 2; i++) {
|
|
2770
|
+
addressLine += addressArray[i];
|
|
2771
|
+
}
|
|
2772
|
+
/** @type {?} */
|
|
2773
|
+
const addressObject = {
|
|
2774
|
+
address_line: addressLine,
|
|
2775
|
+
city: this.postcodeAddress.POST_TOWN,
|
|
2776
|
+
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
2777
|
+
postal_code: this.postcodeAddress.POSTCODE,
|
|
2778
|
+
country: 'United Kingdom',
|
|
2779
|
+
notification_type: 'LETTER'
|
|
2780
|
+
};
|
|
2781
|
+
if (!this.isEditOperationInRefundList) {
|
|
2782
|
+
this.assignContactDetails.emit(addressObject);
|
|
2783
|
+
}
|
|
2784
|
+
else {
|
|
2785
|
+
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
else {
|
|
2789
|
+
this.isAddressBoxEmpty = true;
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
else {
|
|
2794
|
+
if (postcodeField.value == '') {
|
|
2795
|
+
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2796
|
+
}
|
|
2797
|
+
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
2798
|
+
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
/**
|
|
2803
|
+
* @param {?} event
|
|
2804
|
+
* @return {?}
|
|
2805
|
+
*/
|
|
2806
|
+
redirection(event) {
|
|
2807
|
+
this.redirectToIssueRefund.emit(event);
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* @param {?} val
|
|
2811
|
+
* @param {?} field
|
|
2812
|
+
* @return {?}
|
|
2813
|
+
*/
|
|
2814
|
+
resetForm(val, field) {
|
|
2815
|
+
if (field === 'email' || field === 'all') {
|
|
2816
|
+
this.isEmailEmpty = val[0];
|
|
2817
|
+
this.emailHasError = val[1];
|
|
2818
|
+
}
|
|
2819
|
+
if (field === 'postcode' || field === 'all') {
|
|
2820
|
+
this.isPostcodeEmpty = val[2];
|
|
2821
|
+
this.postcodeHasError = val[3];
|
|
2822
|
+
}
|
|
2823
|
+
if (field === 'address1' || field === 'all') {
|
|
2824
|
+
this.isaddressLine1Empty = val[4];
|
|
2825
|
+
this.addressLine1HasError = val[5];
|
|
2826
|
+
}
|
|
2827
|
+
if (field === 'address2' || field === 'all') {
|
|
2828
|
+
this.addressLine2HasError = val[6];
|
|
2829
|
+
}
|
|
2830
|
+
if (field === 'town' || field === 'all') {
|
|
2831
|
+
this.isTownOrCityEmpty = val[7];
|
|
2832
|
+
this.townOrCityHasError = val[8];
|
|
2833
|
+
}
|
|
2834
|
+
if (field === 'county' || field === 'all') {
|
|
2835
|
+
this.isCountyEmpty = val[9];
|
|
2836
|
+
this.countyHasError = val[10];
|
|
2837
|
+
}
|
|
2838
|
+
if (field === 'mpostcode' || field === 'all') {
|
|
2839
|
+
this.isMPostcodeEmpty = val[11];
|
|
2840
|
+
this.mpostcodeHasError = val[12];
|
|
2841
|
+
}
|
|
2842
|
+
if (field === 'country' || field === 'all') {
|
|
2843
|
+
this.isCountryEmpty = val[13];
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
ContactDetailsComponent.decorators = [
|
|
2848
|
+
{ type: Component, args: [{
|
|
2849
|
+
selector: 'ccpay-contact-details',
|
|
2850
|
+
template: "<fieldset class=\"govuk-fieldset contact-details--size\">\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n <div class=\"govuk-form-group\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s govuk-font19px\">\n {{ isEditOperation ? 'Edit contact information' : 'Contact information' }}\n </legend>\n <div id=\"contact-hint\" class=\"govuk-hint govuk-font19px\">\n Notifications will be sent via email or post when this refund is issued or rejected. You can only choose one option.\n </div>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact\" name=\"contact\" (click)=\"selectContactOption('Email', 'false')\" type=\"radio\" value=\"email\" [checked]=\"isEmailSAddressClicked\" aria-controls=\"conditional-contact\" aria-expanded=\"true\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact\">\n Email\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-email\" *ngIf=\"isEmailSAddressClicked\">\n <form [formGroup]=\"emailAddressForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label \" for=\"email\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this email address.</span>\n </label>\n\n <div id=\"email-hint\" class=\"govuk-hint\">\n </div>\n <input class=\"govuk-input govuk-font19px\" id=\"email\" name=\"\" type=\"email\" [ngClass]=\"{ 'inline-error-class': isEmailEmpty || emailHasError }\" value=\"{{addressObj?.contact_details?.email}}\" formControlName=\"email\" aria-describedby=\"email-hint\">\n <p class=\"inline-error-message\" *ngIf=\"isEmailEmpty || emailHasError\">\n <span *ngIf=\"isEmailEmpty\">Enter a email address.</span>\n <span *ngIf=\"emailHasError\">Enter a valid email address.</span>\n </p>\n </div>\n </form>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact-2\" name=\"contact\" (click)=\"selectContactOption('Postcode', 'false')\" type=\"radio\" [checked]=\"isPostcodeClicked\" value=\"post\" aria-controls=\"conditional-contact-2\" aria-expanded=\"false\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact-2\">\n Post\n </label>\n </div>\n <div class=\"govuk-radios__conditional govuk-radios__conditional--hidden\" id=\"conditional-contact-postcode\" *ngIf=\"isPostcodeClicked && !isManualAddressClicked\">\n <form [formGroup]=\"postCodeForm\" novalidate>\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Postcode\n </label>\n <div class=\"postcode-align-css\">\n <div class=\"govuk-form-group govuk-margin-right-10px\">\n <input class=\"govuk-input govuk-input--width-10\" id=\"address-postcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isPostcodeEmpty || postcodeHasError }\" formControlName=\"postcode\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isPostcodeEmpty || postcodeHasError\">\n <span *ngIf=\"isPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"postcodeHasError\">Enter a valid postcode.</span>\n </p>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-button--secondary govuk-font19px\" (click)=\"postcodeValidation('FA')\" data-module=\"govuk-button\">\n Find address\n </button>\n </div>\n </div>\n </form>\n <div class=\"govuk-form-group govuk-margin-btm-20px\" *ngIf=\"isShowPickAddress\">\n <label class=\"govuk-label govuk-font19px\" for=\"country\">\n Pick an address\n </label>\n <select class=\"govuk-select govuk-font19px\" [(ngModel)]=\"postcodeAddress\" id=\"postcodeAddress\" [ngClass]=\"{ 'inline-error-class': isAddressBoxEmpty }\" name=\"postcodeAddress\">\n <option *ngFor=\"let address of addressPostcodeList;\" [ngValue]=\"address.DPA\" > {{address.DPA.ADDRESS}}</option>\n </select> \n <p class=\"inline-error-message\" *ngIf=\"isAddressBoxEmpty\">\n <span *ngIf=\"isAddressBoxEmpty\">Please select an address.</span>\n </p>\n </div>\n <details class=\"govuk-details\" data-module=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span class=\"govuk-details__summary-text govuk-font19px\">\n <a href=\"Javascript:void(0);\" (click)=\"selectContactOption('Postcode', 'true')\"> Enter address manually</a>\n </span>\n </summary>\n </details>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-manual\" *ngIf=\"isPostcodeClicked && isManualAddressClicked\">\n <form [formGroup]=\"manualAddressForm\" novalidate>\n\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-line-1\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Building and street <span class=\"govuk-visually-hidden\">line 1 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-1\" name=\"address-line-1\" [ngClass]=\"{ 'inline-error-class': isaddressLine1Empty || addressLine1HasError }\" value=\"{{addressObj?.contact_details?.address_line}}\" formControlName=\"addressl1\" type=\"text\" autocomplete=\"address-line1\">\n <p class=\"inline-error-message\" *ngIf=\"isaddressLine1Empty || addressLine1HasError\">\n <span *ngIf=\"isaddressLine1Empty\">Enter a Building and street.</span>\n <span *ngIf=\"addressLine1HasError\">Enter a valid Building and street.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"address-line-2\">\n <span class=\"govuk-visually-hidden govuk-font19px\">Building and street line 2 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-2\" name=\"address-line-2\" [ngClass]=\"{ 'inline-error-class': addressLine2HasError}\" formControlName=\"addressl2\" type=\"text\" autocomplete=\"address-line2\">\n <p class=\"inline-error-message\" *ngIf=\"addressLine2HasError\">\n <span *ngIf=\"addressLine2HasError\">Enter a valid Building and street line 2 of 2.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-town\">\n Town or city\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-town\" name=\"address-town\" [ngClass]=\"{ 'inline-error-class': isTownOrCityEmpty || townOrCityHasError}\" value=\"{{addressObj?.contact_details?.city}}\" formControlName=\"townorcity\" type=\"text\" autocomplete=\"address-level2\">\n <p class=\"inline-error-message\" *ngIf=\"isTownOrCityEmpty || townOrCityHasError\">\n <span *ngIf=\"isTownOrCityEmpty\">Enter a town or city.</span>\n <span *ngIf=\"townOrCityHasError\">Enter a town or city.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-county\">\n County\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-county\" [ngClass]=\"{ 'inline-error-class': isCountyEmpty || countyHasError}\" value=\"{{addressObj?.contact_details?.county}}\" formControlName=\"county\" name=\"address-county\" type=\"text\">\n <p class=\"inline-error-message\" *ngIf=\"isCountyEmpty || countyHasError\">\n <span *ngIf=\"isCountyEmpty\">Enter a County.</span>\n <span *ngIf=\"countyHasError\">Enter a valid County.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n Postcode\n </label>\n <input class=\"govuk-input govuk-input--width-10 govuk-font19px\" id=\"address-postcode\" formControlName=\"mpostcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isMPostcodeEmpty || mpostcodeHasError}\" value=\"{{addressObj?.contact_details?.postal_code}}\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isMPostcodeEmpty || mpostcodeHasError\">\n <span *ngIf=\"isMPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"mpostcodeHasError\">Enter a valid postcode.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"country\">\n Country\n </label>\n <select class=\"govuk-select govuk-font19px\" id=\"country\" name=\"country\" [ngClass]=\"{'inline-error-class': isCountryEmpty}\" formControlName=\"country\">\n <option value=\"\" selected=\"selected\">Please select</option>\n <option value=\"United Kingdom\" selected=\"{{ addressObj?.contact_details?.country ? 'selected' : '' }}\">United Kingdom</option>\n </select>\n <p class=\"inline-error-message\" *ngIf=\"isCountryEmpty\">\n <span *ngIf=\"isCountryEmpty\">Select a Country.</span>\n </p> \n </div>\n </form>\n </div>\n </div>\n </fieldset>\n </div>\n <!---FORM--->\n </div>\n\n<hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n</fieldset>\n<div class=\"govuk-button-group\">\n<button type=\"submit\" class=\"button govuk-button--secondary govuk-font19px\" (click)=\"redirection($event)\"> Previous </button>\n \n<button type=\"submit\" class=\"button govuk-button govuk-font19px\" (click)=\"finalFormSubmit()\">\n Continue\n</button>\n</div>",
|
|
2851
|
+
styles: [".govuk-font19px{font-size:19px}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px}.contact-details--size{width:50%}.postcode-align-css{display:flex;flex-direction:row}.govuk-margin-right-10px{margin-right:10px}.govuk-margin-btm-20px{margin-bottom:20px!important}"]
|
|
2852
|
+
}] }
|
|
2853
|
+
];
|
|
2854
|
+
/** @nocollapse */
|
|
2855
|
+
ContactDetailsComponent.ctorParameters = () => [
|
|
2856
|
+
{ type: FormBuilder },
|
|
2857
|
+
{ type: NotificationService },
|
|
2858
|
+
{ type: PaymentLibComponent }
|
|
2859
|
+
];
|
|
2860
|
+
ContactDetailsComponent.propDecorators = {
|
|
2861
|
+
isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
|
|
2862
|
+
isEditOperationInRefundList: [{ type: Input, args: ['isEditOperationInRefundList',] }],
|
|
2863
|
+
addressObj: [{ type: Input, args: ['addressObj',] }],
|
|
2864
|
+
assignContactDetails: [{ type: Output }],
|
|
2865
|
+
assignContactDetailsInFefundsList: [{ type: Output }],
|
|
2866
|
+
redirectToIssueRefund: [{ type: Output }]
|
|
2867
|
+
};
|
|
2868
|
+
|
|
2271
2869
|
/**
|
|
2272
2870
|
* @fileoverview added by tsickle
|
|
2273
2871
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -2570,6 +3168,7 @@ class CaseTransactionsComponent {
|
|
|
2570
3168
|
this.viewStatus = 'main';
|
|
2571
3169
|
this.isRemoveBtnDisabled = false;
|
|
2572
3170
|
this.clAmountDue = 0;
|
|
3171
|
+
this.overPaymentAmount = 0;
|
|
2573
3172
|
this.isFeeRecordsExist = false;
|
|
2574
3173
|
this.isGrpOutstandingAmtPositive = false;
|
|
2575
3174
|
//Order changes
|
|
@@ -2577,6 +3176,7 @@ class CaseTransactionsComponent {
|
|
|
2577
3176
|
this.isAddRemissionEnable = false;
|
|
2578
3177
|
this.orderRemissionDetails = [];
|
|
2579
3178
|
this.orderLevelFees = [];
|
|
3179
|
+
this.ispaymentGroupApisuccess = false;
|
|
2580
3180
|
this.cpoDetails = null;
|
|
2581
3181
|
this.orderFeesTotal = 0.00;
|
|
2582
3182
|
this.orderRemissionTotal = 0.00;
|
|
@@ -2587,6 +3187,8 @@ class CaseTransactionsComponent {
|
|
|
2587
3187
|
this.isAddRemissionBtnEnabled = false;
|
|
2588
3188
|
this.isRefundRemissionBtnEnable = false;
|
|
2589
3189
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
3190
|
+
this.isEligible4PBAPayment = ['pui-finance-manager', 'pui-user-manager', 'pui-organisation-manager', 'pui-case-manager'];
|
|
3191
|
+
this.currentDate = new Date();
|
|
2590
3192
|
this.check4AllowedRoles2AccessRefund = (/**
|
|
2591
3193
|
* @return {?}
|
|
2592
3194
|
*/
|
|
@@ -2597,6 +3199,16 @@ class CaseTransactionsComponent {
|
|
|
2597
3199
|
*/
|
|
2598
3200
|
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
2599
3201
|
});
|
|
3202
|
+
this.check4AllowedRoles2AccessPBApayment = (/**
|
|
3203
|
+
* @return {?}
|
|
3204
|
+
*/
|
|
3205
|
+
() => {
|
|
3206
|
+
return this.isEligible4PBAPayment.some((/**
|
|
3207
|
+
* @param {?} role
|
|
3208
|
+
* @return {?}
|
|
3209
|
+
*/
|
|
3210
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
3211
|
+
});
|
|
2600
3212
|
this.allowFurtherAccessAfter4Days = (/**
|
|
2601
3213
|
* @param {?} payment
|
|
2602
3214
|
* @return {?}
|
|
@@ -2647,12 +3259,20 @@ class CaseTransactionsComponent {
|
|
|
2647
3259
|
}
|
|
2648
3260
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
2649
3261
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
this.
|
|
3262
|
+
if (this.paymentLibComponent.SERVICEREQUEST !== undefined) {
|
|
3263
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
|
|
3264
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3265
|
+
this.serviceRequestValue = 'true';
|
|
3266
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3267
|
+
}
|
|
3268
|
+
else {
|
|
3269
|
+
this.serviceRequestValue = 'false';
|
|
3270
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3271
|
+
}
|
|
2653
3272
|
}
|
|
2654
3273
|
else {
|
|
2655
3274
|
this.serviceRequestValue = 'false';
|
|
3275
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
2656
3276
|
}
|
|
2657
3277
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
2658
3278
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -2695,7 +3315,7 @@ class CaseTransactionsComponent {
|
|
|
2695
3315
|
* @return {?}
|
|
2696
3316
|
*/
|
|
2697
3317
|
(error) => {
|
|
2698
|
-
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")
|
|
3318
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
2699
3319
|
this.isCPODown = true;
|
|
2700
3320
|
}));
|
|
2701
3321
|
}
|
|
@@ -2704,7 +3324,7 @@ class CaseTransactionsComponent {
|
|
|
2704
3324
|
* @return {?}
|
|
2705
3325
|
*/
|
|
2706
3326
|
(error) => {
|
|
2707
|
-
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")
|
|
3327
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
2708
3328
|
this.isAnyFeeGroupAvilable = false;
|
|
2709
3329
|
this.setDefaults();
|
|
2710
3330
|
}));
|
|
@@ -2731,7 +3351,7 @@ class CaseTransactionsComponent {
|
|
|
2731
3351
|
* @return {?}
|
|
2732
3352
|
*/
|
|
2733
3353
|
(error) => {
|
|
2734
|
-
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")
|
|
3354
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
2735
3355
|
this.setDefaults();
|
|
2736
3356
|
this.isCPODown = true;
|
|
2737
3357
|
}));
|
|
@@ -2740,7 +3360,7 @@ class CaseTransactionsComponent {
|
|
|
2740
3360
|
* @return {?}
|
|
2741
3361
|
*/
|
|
2742
3362
|
(error) => {
|
|
2743
|
-
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")
|
|
3363
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
2744
3364
|
this.isAnyFeeGroupAvilable = false;
|
|
2745
3365
|
this.setDefaults();
|
|
2746
3366
|
}));
|
|
@@ -2856,6 +3476,7 @@ class CaseTransactionsComponent {
|
|
|
2856
3476
|
*/
|
|
2857
3477
|
fee => {
|
|
2858
3478
|
this.orderFeesTotal = this.orderFeesTotal + fee.calculated_amount;
|
|
3479
|
+
this.overPaymentAmount = this.overPaymentAmount + fee.over_payment;
|
|
2859
3480
|
}));
|
|
2860
3481
|
}
|
|
2861
3482
|
if (paymentGroup.remissions) {
|
|
@@ -2868,27 +3489,28 @@ class CaseTransactionsComponent {
|
|
|
2868
3489
|
}));
|
|
2869
3490
|
}
|
|
2870
3491
|
if (paymentGroup.payments) {
|
|
3492
|
+
/** @type {?} */
|
|
3493
|
+
const isFeeOverPaymentExist = this.overPaymentAmount === 0;
|
|
2871
3494
|
paymentGroup.payments.forEach((/**
|
|
2872
3495
|
* @param {?} payment
|
|
2873
3496
|
* @return {?}
|
|
2874
3497
|
*/
|
|
2875
3498
|
payment => {
|
|
3499
|
+
if (isFeeOverPaymentExist) {
|
|
3500
|
+
this.overPaymentAmount = this.overPaymentAmount + payment.over_payment;
|
|
3501
|
+
}
|
|
2876
3502
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
2877
3503
|
this.orderTotalPayments = this.orderTotalPayments + payment.amount;
|
|
2878
3504
|
}
|
|
2879
3505
|
}));
|
|
2880
3506
|
}
|
|
2881
|
-
this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
2882
|
-
if (
|
|
2883
|
-
this.orderStatus =
|
|
3507
|
+
// this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3508
|
+
if (paymentGroup.service_request_status === 'Paid') {
|
|
3509
|
+
this.orderStatus = paymentGroup.service_request_status;
|
|
2884
3510
|
this.orderAddBtnEnable = false;
|
|
2885
3511
|
}
|
|
2886
|
-
else if (
|
|
2887
|
-
this.orderStatus =
|
|
2888
|
-
this.orderAddBtnEnable = true;
|
|
2889
|
-
}
|
|
2890
|
-
else {
|
|
2891
|
-
this.orderStatus = 'Not paid';
|
|
3512
|
+
else if (paymentGroup.service_request_status === 'Partially paid' || paymentGroup.service_request_status === 'Not paid') {
|
|
3513
|
+
this.orderStatus = paymentGroup.service_request_status;
|
|
2892
3514
|
this.orderAddBtnEnable = true;
|
|
2893
3515
|
}
|
|
2894
3516
|
//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']
|
|
@@ -2972,18 +3594,17 @@ class CaseTransactionsComponent {
|
|
|
2972
3594
|
}));
|
|
2973
3595
|
}
|
|
2974
3596
|
}
|
|
3597
|
+
this.orderStatus = orderDetail.service_request_status;
|
|
2975
3598
|
}));
|
|
2976
|
-
this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3599
|
+
//this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
2977
3600
|
// this.orderRef = orderReferenceObj.orderRefId;
|
|
2978
|
-
if (this.orderPendingPayments <= 0.00) {
|
|
2979
|
-
|
|
2980
|
-
}
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
this.orderStatus = 'Not paid';
|
|
2986
|
-
}
|
|
3601
|
+
// if (this.orderPendingPayments <= 0.00) {
|
|
3602
|
+
// this.orderStatus = 'Paid';
|
|
3603
|
+
// } else if (this.orderFeesTotal > 0 && (this.orderTotalPayments > 0 || this.orderRemissionTotal > 0) && (this.orderTotalPayments < this.orderPendingPayments)) {
|
|
3604
|
+
// this.orderStatus = 'Partially paid'
|
|
3605
|
+
// } else {
|
|
3606
|
+
// this.orderStatus = 'Not paid'
|
|
3607
|
+
// }
|
|
2987
3608
|
if (this.cpoDetails !== null) {
|
|
2988
3609
|
this.orderParty = this.cpoDetails['responsibleParty'];
|
|
2989
3610
|
this.orderCreated = this.cpoDetails['createdTimestamp'];
|
|
@@ -3139,20 +3760,22 @@ class CaseTransactionsComponent {
|
|
|
3139
3760
|
fee => {
|
|
3140
3761
|
feesTotal = feesTotal + fee.calculated_amount;
|
|
3141
3762
|
this.isRemissionsMatch = false;
|
|
3142
|
-
paymentGroup.remissions
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3763
|
+
if (paymentGroup.remissions) {
|
|
3764
|
+
paymentGroup.remissions.forEach((/**
|
|
3765
|
+
* @param {?} rem
|
|
3766
|
+
* @return {?}
|
|
3767
|
+
*/
|
|
3768
|
+
rem => {
|
|
3769
|
+
if (rem.fee_code === fee.code) {
|
|
3770
|
+
this.isRemissionsMatch = true;
|
|
3771
|
+
fee['remissions'] = rem;
|
|
3772
|
+
// if(!fees.find(k => k.code=fee.code))
|
|
3773
|
+
// {
|
|
3774
|
+
fees.push(fee);
|
|
3775
|
+
//}
|
|
3776
|
+
}
|
|
3777
|
+
}));
|
|
3778
|
+
}
|
|
3156
3779
|
if (!this.isRemissionsMatch) {
|
|
3157
3780
|
fees.push(fee);
|
|
3158
3781
|
}
|
|
@@ -3315,7 +3938,7 @@ class CaseTransactionsComponent {
|
|
|
3315
3938
|
* @param {?} error
|
|
3316
3939
|
* @return {?}
|
|
3317
3940
|
*/
|
|
3318
|
-
(error) => this.errorMessage = error.replace(/"/g, "")));
|
|
3941
|
+
(error) => this.errorMessage = error ? error.replace(/"/g, "") : ""));
|
|
3319
3942
|
}
|
|
3320
3943
|
}
|
|
3321
3944
|
/**
|
|
@@ -3325,19 +3948,17 @@ class CaseTransactionsComponent {
|
|
|
3325
3948
|
* @return {?}
|
|
3326
3949
|
*/
|
|
3327
3950
|
addRefundForRemission(payment, remission, fees) {
|
|
3328
|
-
this.
|
|
3329
|
-
this.payment = payment;
|
|
3330
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
3951
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe((/**
|
|
3331
3952
|
* @param {?} paymentGroup
|
|
3332
3953
|
* @return {?}
|
|
3333
3954
|
*/
|
|
3334
3955
|
paymentGroup => {
|
|
3335
3956
|
this.paymentGroup = paymentGroup;
|
|
3336
|
-
this.paymentGroup.payments =
|
|
3957
|
+
this.paymentGroup.payments = paymentGroup.payments.filter((/**
|
|
3337
3958
|
* @param {?} paymentGroupObj
|
|
3338
3959
|
* @return {?}
|
|
3339
3960
|
*/
|
|
3340
|
-
paymentGroupObj => paymentGroupObj
|
|
3961
|
+
paymentGroupObj => paymentGroupObj.reference === payment.reference));
|
|
3341
3962
|
this.payment = this.paymentGroup.payments[0];
|
|
3342
3963
|
this.remissions = remission;
|
|
3343
3964
|
this.remissionFeeAmt = fees.filter((/**
|
|
@@ -3345,6 +3966,7 @@ class CaseTransactionsComponent {
|
|
|
3345
3966
|
* @return {?}
|
|
3346
3967
|
*/
|
|
3347
3968
|
data => data.code === this.remissions['fee_code']))[0].net_amount;
|
|
3969
|
+
this.viewStatus = 'addrefundforremission';
|
|
3348
3970
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
3349
3971
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
3350
3972
|
}), (/**
|
|
@@ -3361,6 +3983,16 @@ class CaseTransactionsComponent {
|
|
|
3361
3983
|
event.preventDefault();
|
|
3362
3984
|
this.paymentLibComponent.viewName = 'remission';
|
|
3363
3985
|
}
|
|
3986
|
+
/**
|
|
3987
|
+
* @return {?}
|
|
3988
|
+
*/
|
|
3989
|
+
goToServiceRequestPage() {
|
|
3990
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
3991
|
+
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
3992
|
+
this.paymentLibComponent.SERVICEREQUEST = 'true';
|
|
3993
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3994
|
+
window.location.reload();
|
|
3995
|
+
}
|
|
3364
3996
|
/**
|
|
3365
3997
|
* @param {?} event
|
|
3366
3998
|
* @return {?}
|
|
@@ -3546,16 +4178,21 @@ class CaseTransactionsComponent {
|
|
|
3546
4178
|
* @return {?}
|
|
3547
4179
|
*/
|
|
3548
4180
|
chkIssueRefundBtnEnable(payment) {
|
|
3549
|
-
if (
|
|
3550
|
-
payment.
|
|
3551
|
-
this.isIssueRefunfBtnEnable = true;
|
|
3552
|
-
}
|
|
3553
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
3554
|
-
return true;
|
|
4181
|
+
if (payment !== null && payment !== undefined) {
|
|
4182
|
+
return payment.issue_refund && payment.refund_enable;
|
|
3555
4183
|
}
|
|
3556
4184
|
else {
|
|
3557
4185
|
return false;
|
|
3558
4186
|
}
|
|
4187
|
+
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4188
|
+
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4189
|
+
// this.isIssueRefunfBtnEnable = true;
|
|
4190
|
+
// }
|
|
4191
|
+
// if (this.isIssueRefunfBtnEnable) {
|
|
4192
|
+
// return true;
|
|
4193
|
+
// } else {
|
|
4194
|
+
// return false;
|
|
4195
|
+
// };
|
|
3559
4196
|
}
|
|
3560
4197
|
/**
|
|
3561
4198
|
* @return {?}
|
|
@@ -3588,12 +4225,20 @@ class CaseTransactionsComponent {
|
|
|
3588
4225
|
}
|
|
3589
4226
|
}
|
|
3590
4227
|
}
|
|
4228
|
+
/**
|
|
4229
|
+
* @param {?} orderRef
|
|
4230
|
+
* @return {?}
|
|
4231
|
+
*/
|
|
4232
|
+
loadPBAAccountPage(orderRef) {
|
|
4233
|
+
this.paymentLibComponent.pbaPayOrderRef = orderRef;
|
|
4234
|
+
this.paymentLibComponent.viewName = 'pba-payment';
|
|
4235
|
+
}
|
|
3591
4236
|
}
|
|
3592
4237
|
CaseTransactionsComponent.decorators = [
|
|
3593
4238
|
{ type: Component, args: [{
|
|
3594
4239
|
selector: 'ccpay-case-transactions',
|
|
3595
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n \n <div class=\"govuk-grid-row\">\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div class=\"govuk-grid-row\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div>\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\">\n <span *ngIf=\"serviceRequestValue !== 'false'\" class=\"heading-medium\">Service requests</span>\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference\t</td>\n \n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status [ccdCaseNumber]=\"ccdCaseNumber\" ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n\n</main>\n</div>\n\n\n",
|
|
3596
|
-
styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}"]
|
|
4240
|
+
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Over payment</td>\n\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ overPaymentAmount | currency :'GBP':'symbol':'1.2-2'}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [paymentGroupList] = \"paymentGroups\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n</main>\n</div>\n\n\n",
|
|
4241
|
+
styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.govuk-heading-lw{width:70%}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.of-visible{overflow:visible!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}.govuk-padding-btm{padding-bottom:50px}.govuk-margin-btm-20px{margin-bottom:20px}"]
|
|
3597
4242
|
}] }
|
|
3598
4243
|
];
|
|
3599
4244
|
/** @nocollapse */
|
|
@@ -3607,7 +4252,8 @@ CaseTransactionsComponent.ctorParameters = () => [
|
|
|
3607
4252
|
];
|
|
3608
4253
|
CaseTransactionsComponent.propDecorators = {
|
|
3609
4254
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
3610
|
-
isTakePayment: [{ type: Input }]
|
|
4255
|
+
isTakePayment: [{ type: Input }],
|
|
4256
|
+
isFromServiceRequestPage: [{ type: Input }]
|
|
3611
4257
|
};
|
|
3612
4258
|
|
|
3613
4259
|
/**
|
|
@@ -3813,19 +4459,24 @@ class FeeSummaryComponent {
|
|
|
3813
4459
|
if (fee.calculated_amount === 0) {
|
|
3814
4460
|
this.isFeeAmountZero = true;
|
|
3815
4461
|
}
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
4462
|
+
if (paymentGroup.remissions) {
|
|
4463
|
+
this.isRemissionsMatch = false;
|
|
4464
|
+
paymentGroup.remissions.forEach((/**
|
|
4465
|
+
* @param {?} rem
|
|
4466
|
+
* @return {?}
|
|
4467
|
+
*/
|
|
4468
|
+
rem => {
|
|
4469
|
+
if (rem.fee_code === fee.code) {
|
|
4470
|
+
this.isRemissionsMatch = true;
|
|
4471
|
+
fee['remissions'] = rem;
|
|
4472
|
+
fees.push(fee);
|
|
4473
|
+
}
|
|
4474
|
+
}));
|
|
4475
|
+
if (!this.isRemissionsMatch) {
|
|
3825
4476
|
fees.push(fee);
|
|
3826
4477
|
}
|
|
3827
|
-
}
|
|
3828
|
-
|
|
4478
|
+
}
|
|
4479
|
+
else {
|
|
3829
4480
|
fees.push(fee);
|
|
3830
4481
|
}
|
|
3831
4482
|
}));
|
|
@@ -5730,21 +6381,6 @@ class AddRetroRemissionRequest {
|
|
|
5730
6381
|
}
|
|
5731
6382
|
}
|
|
5732
6383
|
|
|
5733
|
-
/**
|
|
5734
|
-
* @fileoverview added by tsickle
|
|
5735
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5736
|
-
*/
|
|
5737
|
-
class PostRefundRetroRemission {
|
|
5738
|
-
/**
|
|
5739
|
-
* @param {?} payment_reference
|
|
5740
|
-
* @param {?} refund_reason
|
|
5741
|
-
*/
|
|
5742
|
-
constructor(payment_reference, refund_reason) {
|
|
5743
|
-
this.payment_reference = payment_reference;
|
|
5744
|
-
this.refund_reason = refund_reason;
|
|
5745
|
-
}
|
|
5746
|
-
}
|
|
5747
|
-
|
|
5748
6384
|
/**
|
|
5749
6385
|
* @fileoverview added by tsickle
|
|
5750
6386
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -5752,9 +6388,11 @@ class PostRefundRetroRemission {
|
|
|
5752
6388
|
class PostIssueRefundRetroRemission {
|
|
5753
6389
|
/**
|
|
5754
6390
|
* @param {?} remissionReference
|
|
6391
|
+
* @param {?} contactDeatils
|
|
5755
6392
|
*/
|
|
5756
|
-
constructor(remissionReference) {
|
|
6393
|
+
constructor(remissionReference, contactDeatils) {
|
|
5757
6394
|
this.remissionReference = remissionReference;
|
|
6395
|
+
this.contact_details = contactDeatils;
|
|
5758
6396
|
}
|
|
5759
6397
|
}
|
|
5760
6398
|
|
|
@@ -5784,6 +6422,7 @@ class AddRemissionComponent {
|
|
|
5784
6422
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
5785
6423
|
this.refundListReason = new EventEmitter();
|
|
5786
6424
|
this.refundListAmount = new EventEmitter();
|
|
6425
|
+
this.refundFees = new EventEmitter();
|
|
5787
6426
|
this.refund = {
|
|
5788
6427
|
reason: {
|
|
5789
6428
|
duplicate: 'Duplicate payment',
|
|
@@ -5812,11 +6451,15 @@ class AddRemissionComponent {
|
|
|
5812
6451
|
this.isRemissionApplied = false;
|
|
5813
6452
|
// refundReasons: any[] = [];
|
|
5814
6453
|
this.commonRefundReasons = [];
|
|
6454
|
+
this.class = '';
|
|
6455
|
+
this.errorMsg = new Array();
|
|
5815
6456
|
}
|
|
5816
6457
|
/**
|
|
5817
6458
|
* @return {?}
|
|
5818
6459
|
*/
|
|
5819
6460
|
ngOnInit() {
|
|
6461
|
+
this.errorMessage = '';
|
|
6462
|
+
this.errorMsg = [];
|
|
5820
6463
|
this.default = 'Select a different reason';
|
|
5821
6464
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
5822
6465
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -5828,6 +6471,7 @@ class AddRemissionComponent {
|
|
|
5828
6471
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
5829
6472
|
}
|
|
5830
6473
|
if (this.payment) {
|
|
6474
|
+
this.paymentReference = this.payment.reference;
|
|
5831
6475
|
this.remessionPayment = this.payment;
|
|
5832
6476
|
if (this.payment.status === 'Success') {
|
|
5833
6477
|
this.isPaymentSuccess = true;
|
|
@@ -5846,15 +6490,73 @@ class AddRemissionComponent {
|
|
|
5846
6490
|
])),
|
|
5847
6491
|
refundReason: new FormControl('', Validators.compose([Validators.required])),
|
|
5848
6492
|
refundDDReason: new FormControl('', Validators.compose([Validators.required])),
|
|
5849
|
-
reason: new FormControl()
|
|
6493
|
+
reason: new FormControl(),
|
|
6494
|
+
feeAmount: new FormControl(),
|
|
6495
|
+
feesList: this.formBuilder.array([])
|
|
5850
6496
|
});
|
|
5851
6497
|
/** @type {?} */
|
|
5852
6498
|
const remissionctrls = this.remissionForm.controls;
|
|
5853
6499
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
6500
|
+
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
6501
|
+
this.paymentReference = this.refundPaymentReference;
|
|
6502
|
+
}
|
|
6503
|
+
else {
|
|
6504
|
+
this.paymentReference = this.payment.reference;
|
|
6505
|
+
}
|
|
6506
|
+
if (this.isFromServiceRequestPage) {
|
|
6507
|
+
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe((/**
|
|
6508
|
+
* @param {?} paymentGroup
|
|
6509
|
+
* @return {?}
|
|
6510
|
+
*/
|
|
6511
|
+
paymentGroup => {
|
|
6512
|
+
/** @type {?} */
|
|
6513
|
+
let fees = [];
|
|
6514
|
+
paymentGroup.fees.forEach((/**
|
|
6515
|
+
* @param {?} fee
|
|
6516
|
+
* @return {?}
|
|
6517
|
+
*/
|
|
6518
|
+
fee => {
|
|
6519
|
+
this.isRemissionsMatch = false;
|
|
6520
|
+
paymentGroup.remissions.forEach((/**
|
|
6521
|
+
* @param {?} rem
|
|
6522
|
+
* @return {?}
|
|
6523
|
+
*/
|
|
6524
|
+
rem => {
|
|
6525
|
+
if (rem.fee_code === fee.code) {
|
|
6526
|
+
this.isRemissionsMatch = true;
|
|
6527
|
+
fee['remissions'] = rem;
|
|
6528
|
+
fees.push(fee);
|
|
6529
|
+
}
|
|
6530
|
+
}));
|
|
6531
|
+
if (!this.isRemissionsMatch) {
|
|
6532
|
+
fees.push(fee);
|
|
6533
|
+
}
|
|
6534
|
+
}));
|
|
6535
|
+
paymentGroup.fees = fees;
|
|
6536
|
+
this.paymentFees = fees;
|
|
6537
|
+
this.fees = fees;
|
|
6538
|
+
this.paymentGroup = paymentGroup;
|
|
6539
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
6540
|
+
* @param {?} paymentGroupObj
|
|
6541
|
+
* @return {?}
|
|
6542
|
+
*/
|
|
6543
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
|
|
6544
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
6545
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
6546
|
+
this.refundFeesList();
|
|
6547
|
+
}), (/**
|
|
6548
|
+
* @param {?} error
|
|
6549
|
+
* @return {?}
|
|
6550
|
+
*/
|
|
6551
|
+
(error) => this.errorMessage = error));
|
|
6552
|
+
}
|
|
6553
|
+
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
6554
|
+
this.refundFeesList();
|
|
6555
|
+
}
|
|
5854
6556
|
if (this.viewCompStatus === '') {
|
|
5855
6557
|
this.viewStatus = 'main';
|
|
5856
6558
|
}
|
|
5857
|
-
if (this.viewCompStatus === '
|
|
6559
|
+
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
5858
6560
|
this.refundService.getRefundReasons().subscribe((/**
|
|
5859
6561
|
* @param {?} refundReasons
|
|
5860
6562
|
* @return {?}
|
|
@@ -5869,7 +6571,7 @@ class AddRemissionComponent {
|
|
|
5869
6571
|
* @param {?} data
|
|
5870
6572
|
* @return {?}
|
|
5871
6573
|
*/
|
|
5872
|
-
(data) => data.name !== 'Retrospective remission'));
|
|
6574
|
+
(data) => data.name !== 'Retrospective remission' && data.name !== 'Overpayment'));
|
|
5873
6575
|
this.cd.detectChanges();
|
|
5874
6576
|
this.commonRefundReasons = refundReasons.filter((/**
|
|
5875
6577
|
* @param {?} data
|
|
@@ -5884,10 +6586,146 @@ class AddRemissionComponent {
|
|
|
5884
6586
|
(a, b) => a.toString().localeCompare(b)));
|
|
5885
6587
|
this.cd.detectChanges();
|
|
5886
6588
|
}));
|
|
6589
|
+
this.refundReason = this.changeRefundReason;
|
|
5887
6590
|
}
|
|
5888
6591
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
5889
6592
|
this.viewStatus = 'processretroremissonpage';
|
|
5890
6593
|
}
|
|
6594
|
+
if (this.orderDetail !== undefined) {
|
|
6595
|
+
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
|
|
6596
|
+
* @param {?} paymentGroup
|
|
6597
|
+
* @return {?}
|
|
6598
|
+
*/
|
|
6599
|
+
paymentGroup => {
|
|
6600
|
+
this.fees = paymentGroup.fees;
|
|
6601
|
+
this.paymentReference = paymentGroup.payments[0].reference;
|
|
6602
|
+
}), (/**
|
|
6603
|
+
* @param {?} error
|
|
6604
|
+
* @return {?}
|
|
6605
|
+
*/
|
|
6606
|
+
(error) => this.errorMessage = error));
|
|
6607
|
+
}
|
|
6608
|
+
}
|
|
6609
|
+
/**
|
|
6610
|
+
* @return {?}
|
|
6611
|
+
*/
|
|
6612
|
+
goToPaymentViewComponent() {
|
|
6613
|
+
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
6614
|
+
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
6615
|
+
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
6616
|
+
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
6617
|
+
this.paymentLibComponent.viewName = 'payment-view';
|
|
6618
|
+
}
|
|
6619
|
+
/**
|
|
6620
|
+
* @return {?}
|
|
6621
|
+
*/
|
|
6622
|
+
refundFeesList() {
|
|
6623
|
+
/** @type {?} */
|
|
6624
|
+
const creds = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
6625
|
+
// if(creds.controls.length > 0) {
|
|
6626
|
+
for (var i = 0; i < this.fees.length; i++) {
|
|
6627
|
+
creds.push(this.formBuilder.group({
|
|
6628
|
+
id: this.fees[i].id,
|
|
6629
|
+
code: this.fees[i].code,
|
|
6630
|
+
volume: this.fees[i].volume,
|
|
6631
|
+
calculated_amount: this.fees[i].calculated_amount,
|
|
6632
|
+
apportion_amount: this.fees[i].apportion_amount,
|
|
6633
|
+
ccd_case_number: this.fees[i].ccd_case_number,
|
|
6634
|
+
description: this.fees[i].description,
|
|
6635
|
+
net_amount: this.fees[i].net_amount,
|
|
6636
|
+
version: this.fees[i].version,
|
|
6637
|
+
refund_amount: [''],
|
|
6638
|
+
selected: [''],
|
|
6639
|
+
updated_volume: this.fees[i].volume
|
|
6640
|
+
}));
|
|
6641
|
+
}
|
|
6642
|
+
this.cd.detectChanges();
|
|
6643
|
+
//}
|
|
6644
|
+
}
|
|
6645
|
+
/**
|
|
6646
|
+
* @return {?}
|
|
6647
|
+
*/
|
|
6648
|
+
get feesList() {
|
|
6649
|
+
/** @type {?} */
|
|
6650
|
+
const dd = (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
6651
|
+
return (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
6652
|
+
}
|
|
6653
|
+
/**
|
|
6654
|
+
* @return {?}
|
|
6655
|
+
*/
|
|
6656
|
+
noneSelected() {
|
|
6657
|
+
if (this.isFullyRefund) {
|
|
6658
|
+
return false;
|
|
6659
|
+
}
|
|
6660
|
+
else {
|
|
6661
|
+
if (!this.feesList.controls.some((/**
|
|
6662
|
+
* @param {?} item
|
|
6663
|
+
* @return {?}
|
|
6664
|
+
*/
|
|
6665
|
+
item => item.get('selected').value === true))) {
|
|
6666
|
+
this.errorMsg = [];
|
|
6667
|
+
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
6668
|
+
* @param {?} el
|
|
6669
|
+
* @return {?}
|
|
6670
|
+
*/
|
|
6671
|
+
function (el) {
|
|
6672
|
+
el.classList.remove('inline-error-class');
|
|
6673
|
+
}));
|
|
6674
|
+
}
|
|
6675
|
+
return !this.feesList.controls.some((/**
|
|
6676
|
+
* @param {?} item
|
|
6677
|
+
* @return {?}
|
|
6678
|
+
*/
|
|
6679
|
+
item => item.get('selected').value === true));
|
|
6680
|
+
}
|
|
6681
|
+
}
|
|
6682
|
+
/**
|
|
6683
|
+
* @param {?} i
|
|
6684
|
+
* @param {?} v1
|
|
6685
|
+
* @param {?} AppAmt
|
|
6686
|
+
* @param {?} Volume
|
|
6687
|
+
* @return {?}
|
|
6688
|
+
*/
|
|
6689
|
+
check_en(i, v1, AppAmt, Volume) {
|
|
6690
|
+
/** @type {?} */
|
|
6691
|
+
const ele = (/** @type {?} */ (document.getElementById(v1)));
|
|
6692
|
+
/** @type {?} */
|
|
6693
|
+
const formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
6694
|
+
if (ele.checked) {
|
|
6695
|
+
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
6696
|
+
formArray.at(i).get('volume').setValue(Volume);
|
|
6697
|
+
formArray.at(i).get('selected').setValue(true);
|
|
6698
|
+
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
6699
|
+
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
6700
|
+
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
6701
|
+
if (Volume === 1) {
|
|
6702
|
+
((/** @type {?} */ (document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
6703
|
+
}
|
|
6704
|
+
else {
|
|
6705
|
+
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
6706
|
+
}
|
|
6707
|
+
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
6708
|
+
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
6709
|
+
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
6710
|
+
}
|
|
6711
|
+
this.cd.detectChanges();
|
|
6712
|
+
}
|
|
6713
|
+
else {
|
|
6714
|
+
this.errorMsg = [];
|
|
6715
|
+
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
6716
|
+
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
6717
|
+
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
6718
|
+
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
6719
|
+
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = '';
|
|
6720
|
+
if (Volume > 1) {
|
|
6721
|
+
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
6722
|
+
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
6723
|
+
}
|
|
6724
|
+
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
6725
|
+
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
6726
|
+
}
|
|
6727
|
+
this.cd.detectChanges();
|
|
6728
|
+
}
|
|
5891
6729
|
}
|
|
5892
6730
|
/**
|
|
5893
6731
|
* @return {?}
|
|
@@ -5997,6 +6835,8 @@ class AddRemissionComponent {
|
|
|
5997
6835
|
*/
|
|
5998
6836
|
addRemissionCode() {
|
|
5999
6837
|
this.errorMessage = false;
|
|
6838
|
+
// this.isFromCheckAnsPage = true;
|
|
6839
|
+
this.errorMsg = [];
|
|
6000
6840
|
this.viewStatus = '';
|
|
6001
6841
|
this.isRefundRemission = false;
|
|
6002
6842
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -6009,8 +6849,14 @@ class AddRemissionComponent {
|
|
|
6009
6849
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
6010
6850
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
6011
6851
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
6012
|
-
this.
|
|
6013
|
-
|
|
6852
|
+
if (!this.isFromCheckAnsPage) {
|
|
6853
|
+
this.viewCompStatus = '';
|
|
6854
|
+
this.viewStatus = "processretroremissonpage";
|
|
6855
|
+
}
|
|
6856
|
+
else {
|
|
6857
|
+
this.viewCompStatus = '';
|
|
6858
|
+
this.viewStatus = 'checkretroremissionpage';
|
|
6859
|
+
}
|
|
6014
6860
|
}
|
|
6015
6861
|
else {
|
|
6016
6862
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -6038,6 +6884,8 @@ class AddRemissionComponent {
|
|
|
6038
6884
|
*/
|
|
6039
6885
|
gotoAddRetroRemissionCodePage() {
|
|
6040
6886
|
this.errorMessage = false;
|
|
6887
|
+
this.isFromCheckAnsPage = false;
|
|
6888
|
+
this.errorMsg = [];
|
|
6041
6889
|
if (this.isRefundRemission) {
|
|
6042
6890
|
this.paymentLibComponent.iscancelClicked = true;
|
|
6043
6891
|
this.refundListAmount.emit();
|
|
@@ -6055,6 +6903,7 @@ class AddRemissionComponent {
|
|
|
6055
6903
|
this.viewCompStatus = "addremission";
|
|
6056
6904
|
this.isRefundRemission = true;
|
|
6057
6905
|
this.errorMessage = '';
|
|
6906
|
+
this.errorMsg = [];
|
|
6058
6907
|
if (this.isFromPaymentDetailPage) {
|
|
6059
6908
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
6060
6909
|
}
|
|
@@ -6103,14 +6952,40 @@ class AddRemissionComponent {
|
|
|
6103
6952
|
//}
|
|
6104
6953
|
}
|
|
6105
6954
|
}
|
|
6955
|
+
/**
|
|
6956
|
+
* @return {?}
|
|
6957
|
+
*/
|
|
6958
|
+
gotoAmountRetroRemission() {
|
|
6959
|
+
this.isFromCheckAnsPage = false;
|
|
6960
|
+
this.viewStatus = 'processretroremissonpage';
|
|
6961
|
+
this.viewCompStatus = '';
|
|
6962
|
+
// this.isRefundRemission = true;
|
|
6963
|
+
this.errorMessage = '';
|
|
6964
|
+
}
|
|
6106
6965
|
/**
|
|
6107
6966
|
* @return {?}
|
|
6108
6967
|
*/
|
|
6109
6968
|
gotoProcessRetroRemissionPage() {
|
|
6969
|
+
this.isFromCheckAnsPage = true;
|
|
6110
6970
|
this.viewStatus = '';
|
|
6111
6971
|
this.viewCompStatus = 'addremission';
|
|
6112
6972
|
this.isRefundRemission = true;
|
|
6113
6973
|
this.errorMessage = '';
|
|
6974
|
+
this.errorMsg = [];
|
|
6975
|
+
}
|
|
6976
|
+
/**
|
|
6977
|
+
* @param {?=} note
|
|
6978
|
+
* @return {?}
|
|
6979
|
+
*/
|
|
6980
|
+
gotoProcessRetroRemission(note) {
|
|
6981
|
+
if (note) {
|
|
6982
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
6983
|
+
}
|
|
6984
|
+
this.isFromCheckAnsPage = true;
|
|
6985
|
+
this.viewStatus = 'remissionAddressPage';
|
|
6986
|
+
this.viewCompStatus = '';
|
|
6987
|
+
this.isRefundRemission = true;
|
|
6988
|
+
this.errorMessage = '';
|
|
6114
6989
|
}
|
|
6115
6990
|
/**
|
|
6116
6991
|
* @return {?}
|
|
@@ -6148,6 +7023,7 @@ class AddRemissionComponent {
|
|
|
6148
7023
|
*/
|
|
6149
7024
|
processRefund() {
|
|
6150
7025
|
this.errorMessage = '';
|
|
7026
|
+
this.errorMsg = [];
|
|
6151
7027
|
this.isConfirmationBtnDisabled = true;
|
|
6152
7028
|
if (this.isRefundRemission) {
|
|
6153
7029
|
this.retroRemission = true;
|
|
@@ -6156,7 +7032,7 @@ class AddRemissionComponent {
|
|
|
6156
7032
|
this.remissionReference = this.remission.remission_reference;
|
|
6157
7033
|
}
|
|
6158
7034
|
/** @type {?} */
|
|
6159
|
-
const requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7035
|
+
const requestBody = new PostIssueRefundRetroRemission(this.remissionReference, this.contactDetailsObj);
|
|
6160
7036
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
|
|
6161
7037
|
* @param {?} response
|
|
6162
7038
|
* @return {?}
|
|
@@ -6187,7 +7063,14 @@ class AddRemissionComponent {
|
|
|
6187
7063
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
6188
7064
|
this.isFromRefundListPage = true;
|
|
6189
7065
|
}
|
|
7066
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
7067
|
+
* @param {?} a
|
|
7068
|
+
* @param {?} c
|
|
7069
|
+
* @return {?}
|
|
7070
|
+
*/
|
|
7071
|
+
(a, c) => a + c.refund_amount * c.selected), 0);
|
|
6190
7072
|
this.errorMessage = '';
|
|
7073
|
+
this.errorMsg = [];
|
|
6191
7074
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
6192
7075
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
6193
7076
|
this.refundHasError = true;
|
|
@@ -6203,19 +7086,43 @@ class AddRemissionComponent {
|
|
|
6203
7086
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
6204
7087
|
}
|
|
6205
7088
|
else {
|
|
7089
|
+
if (this.isFromCheckAnsPage) {
|
|
7090
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
7091
|
+
* @param {?} a
|
|
7092
|
+
* @param {?} c
|
|
7093
|
+
* @return {?}
|
|
7094
|
+
*/
|
|
7095
|
+
(a, c) => a + c.refund_amount * c.selected), 0);
|
|
7096
|
+
this.isFromCheckAnsPage = false;
|
|
7097
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7098
|
+
this.viewCompStatus = '';
|
|
7099
|
+
return;
|
|
7100
|
+
}
|
|
6206
7101
|
this.viewCompStatus = '';
|
|
6207
|
-
this.viewStatus = '
|
|
7102
|
+
this.viewStatus = 'contactDetailsPage';
|
|
6208
7103
|
}
|
|
6209
7104
|
}
|
|
6210
7105
|
else {
|
|
6211
7106
|
this.displayRefundReason = this.selectedRefundReason;
|
|
7107
|
+
if (this.isFromCheckAnsPage) {
|
|
7108
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
7109
|
+
* @param {?} a
|
|
7110
|
+
* @param {?} c
|
|
7111
|
+
* @return {?}
|
|
7112
|
+
*/
|
|
7113
|
+
(a, c) => a + c.refund_amount * c.selected), 0);
|
|
7114
|
+
this.isFromCheckAnsPage = false;
|
|
7115
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7116
|
+
this.viewCompStatus = '';
|
|
7117
|
+
return;
|
|
7118
|
+
}
|
|
6212
7119
|
if (this.isFromRefundListPage) {
|
|
6213
7120
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6214
7121
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
6215
7122
|
}
|
|
6216
7123
|
else {
|
|
6217
7124
|
this.viewCompStatus = '';
|
|
6218
|
-
this.viewStatus = '
|
|
7125
|
+
this.viewStatus = 'contactDetailsPage';
|
|
6219
7126
|
}
|
|
6220
7127
|
}
|
|
6221
7128
|
}
|
|
@@ -6228,67 +7135,262 @@ class AddRemissionComponent {
|
|
|
6228
7135
|
this.viewStatus = '';
|
|
6229
7136
|
this.isRefundRemission = true;
|
|
6230
7137
|
this.errorMessage = false;
|
|
7138
|
+
this.errorMsg = [];
|
|
6231
7139
|
this.refundHasError = false;
|
|
6232
7140
|
this.isReasonEmpty = false;
|
|
6233
7141
|
}
|
|
6234
7142
|
/**
|
|
7143
|
+
* @param {?} isFullyRefund
|
|
6235
7144
|
* @return {?}
|
|
6236
7145
|
*/
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
this.isReasonEmpty = false;
|
|
6242
|
-
this.viewCompStatus = 'issuerefund';
|
|
6243
|
-
this.viewStatus = '';
|
|
6244
|
-
this.isRefundRemission = true;
|
|
6245
|
-
}
|
|
6246
|
-
/**
|
|
6247
|
-
* @return {?}
|
|
6248
|
-
*/
|
|
6249
|
-
confirmIssueRefund() {
|
|
6250
|
-
this.isConfirmationBtnDisabled = true;
|
|
6251
|
-
this.errorMessage = '';
|
|
6252
|
-
if (this.isRefundRemission) {
|
|
6253
|
-
this.retroRemission = true;
|
|
7146
|
+
gotoIssuePage(isFullyRefund) {
|
|
7147
|
+
if (isFullyRefund) {
|
|
7148
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
7149
|
+
this.getRefundReasons();
|
|
6254
7150
|
}
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
7151
|
+
else {
|
|
7152
|
+
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
7153
|
+
* @param {?} el
|
|
7154
|
+
* @return {?}
|
|
7155
|
+
*/
|
|
7156
|
+
function (el) {
|
|
7157
|
+
el.classList.remove('inline-error-class');
|
|
7158
|
+
}));
|
|
7159
|
+
/** @type {?} */
|
|
7160
|
+
var checkboxs = document.getElementsByTagName('input');
|
|
7161
|
+
this.errorMessage = '';
|
|
7162
|
+
this.totalRefundAmount = 0;
|
|
7163
|
+
this.errorMsg = [];
|
|
7164
|
+
for (var j = 0; j < checkboxs.length; j++) {
|
|
7165
|
+
if (checkboxs[j].checked) {
|
|
7166
|
+
this.fullRefund = false;
|
|
7167
|
+
/** @type {?} */
|
|
7168
|
+
let quantity = +((/** @type {?} */ (document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
7169
|
+
/** @type {?} */
|
|
7170
|
+
let amountToRefund = +((/** @type {?} */ (document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
7171
|
+
/** @type {?} */
|
|
7172
|
+
let apportionAmount = +((/** @type {?} */ (document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
7173
|
+
/** @type {?} */
|
|
7174
|
+
let calculatedAmount = +((/** @type {?} */ (document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
7175
|
+
if (amountToRefund === apportionAmount) {
|
|
7176
|
+
this.fullRefund = true;
|
|
7177
|
+
}
|
|
7178
|
+
if (amountToRefund === 0) {
|
|
7179
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
7180
|
+
this.errorMsg.push('You need to enter a refund amount');
|
|
7181
|
+
this.getErrorClass(this.elementId);
|
|
7182
|
+
}
|
|
7183
|
+
if (quantity === 1) {
|
|
7184
|
+
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
7185
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
7186
|
+
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
7187
|
+
this.getErrorClass(this.elementId);
|
|
7188
|
+
}
|
|
7189
|
+
}
|
|
7190
|
+
if (quantity > 1) {
|
|
7191
|
+
this.quantityUpdated = +((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
7192
|
+
if (this.quantityUpdated === 0) {
|
|
7193
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
7194
|
+
this.errorMsg.push('You need to enter quantity');
|
|
7195
|
+
this.getErrorClass(this.elementId);
|
|
7196
|
+
}
|
|
7197
|
+
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
7198
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
7199
|
+
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
7200
|
+
this.getErrorClass(this.elementId);
|
|
7201
|
+
}
|
|
7202
|
+
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
7203
|
+
this.refundAmtForFeeVolumes = +((/** @type {?} */ (document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
7204
|
+
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
7205
|
+
if (this.allowedRefundAmount !== amountToRefund) {
|
|
7206
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
7207
|
+
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
7208
|
+
this.getErrorClass(this.elementId);
|
|
7209
|
+
}
|
|
7210
|
+
}
|
|
7211
|
+
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
7212
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
7213
|
+
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
7214
|
+
this.getErrorClass(this.elementId);
|
|
7215
|
+
}
|
|
7216
|
+
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
7217
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
7218
|
+
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
7219
|
+
this.getErrorClass(this.elementId);
|
|
7220
|
+
}
|
|
7221
|
+
}
|
|
7222
|
+
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
6268
7223
|
}
|
|
6269
7224
|
}
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
7225
|
+
if (this.errorMsg.length === 0) {
|
|
7226
|
+
if (this.isFromCheckAnsPage) {
|
|
7227
|
+
this.isFromCheckAnsPage = false;
|
|
7228
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
7229
|
+
* @param {?} a
|
|
7230
|
+
* @param {?} c
|
|
7231
|
+
* @return {?}
|
|
7232
|
+
*/
|
|
7233
|
+
(a, c) => a + c.refund_amount * c.selected), 0);
|
|
7234
|
+
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
7235
|
+
* @param {?} value
|
|
7236
|
+
* @return {?}
|
|
7237
|
+
*/
|
|
7238
|
+
value => value.selected === true));
|
|
7239
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7240
|
+
this.viewCompStatus = '';
|
|
7241
|
+
return;
|
|
7242
|
+
}
|
|
7243
|
+
else if (this.isFromRefundStatusPage) {
|
|
7244
|
+
/** @type {?} */
|
|
7245
|
+
var remissionctrls = this.remissionForm.controls;
|
|
7246
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
7247
|
+
* @param {?} a
|
|
7248
|
+
* @param {?} c
|
|
7249
|
+
* @return {?}
|
|
7250
|
+
*/
|
|
7251
|
+
(a, c) => a + c.refund_amount * c.selected), 0);
|
|
7252
|
+
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
7253
|
+
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
7254
|
+
* @param {?} value
|
|
7255
|
+
* @return {?}
|
|
7256
|
+
*/
|
|
7257
|
+
value => value.selected === true));
|
|
7258
|
+
this.refundFees.emit(this.fees);
|
|
7259
|
+
return;
|
|
7260
|
+
}
|
|
7261
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
7262
|
+
this.getRefundReasons();
|
|
7263
|
+
}
|
|
7264
|
+
}
|
|
6279
7265
|
}
|
|
6280
|
-
// Retro Refund
|
|
6281
7266
|
/**
|
|
7267
|
+
* @param {?} value
|
|
7268
|
+
* @param {?} amount
|
|
7269
|
+
* @param {?} volume
|
|
7270
|
+
* @param {?} i
|
|
6282
7271
|
* @return {?}
|
|
6283
7272
|
*/
|
|
6284
|
-
|
|
7273
|
+
calAmtToRefund(value, amount, volume, i) {
|
|
7274
|
+
/** @type {?} */
|
|
7275
|
+
const volumeFee = amount / volume;
|
|
7276
|
+
/** @type {?} */
|
|
7277
|
+
const amtToRefund = value * volumeFee;
|
|
7278
|
+
/** @type {?} */
|
|
7279
|
+
const formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
7280
|
+
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
7281
|
+
// formArray.at(i).get('volume').setValue(value);
|
|
7282
|
+
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
7283
|
+
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
7284
|
+
// formControl.setValue(value);
|
|
7285
|
+
}
|
|
7286
|
+
/**
|
|
7287
|
+
* @param {?=} note
|
|
7288
|
+
* @return {?}
|
|
7289
|
+
*/
|
|
7290
|
+
gotoContactDetailsPage(note) {
|
|
7291
|
+
if (note) {
|
|
7292
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7293
|
+
}
|
|
7294
|
+
this.errorMessage = '';
|
|
7295
|
+
this.viewCompStatus = '';
|
|
7296
|
+
this.viewStatus = 'contactDetailsPage';
|
|
7297
|
+
this.isRefundRemission = true;
|
|
7298
|
+
this.errorMessage = false;
|
|
7299
|
+
}
|
|
7300
|
+
/**
|
|
7301
|
+
* @return {?}
|
|
7302
|
+
*/
|
|
7303
|
+
getRefundReasons() {
|
|
7304
|
+
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
7305
|
+
this.refundService.getRefundReasons().subscribe((/**
|
|
7306
|
+
* @param {?} refundReasons
|
|
7307
|
+
* @return {?}
|
|
7308
|
+
*/
|
|
7309
|
+
refundReasons => {
|
|
7310
|
+
this.refundReasons = refundReasons.filter((/**
|
|
7311
|
+
* @param {?} data
|
|
7312
|
+
* @return {?}
|
|
7313
|
+
*/
|
|
7314
|
+
(data) => data.recently_used === false));
|
|
7315
|
+
this.refundReasons = this.refundReasons.filter((/**
|
|
7316
|
+
* @param {?} data
|
|
7317
|
+
* @return {?}
|
|
7318
|
+
*/
|
|
7319
|
+
(data) => data.name !== 'Retrospective remission'));
|
|
7320
|
+
this.cd.detectChanges();
|
|
7321
|
+
this.commonRefundReasons = refundReasons.filter((/**
|
|
7322
|
+
* @param {?} data
|
|
7323
|
+
* @return {?}
|
|
7324
|
+
*/
|
|
7325
|
+
(data) => data.recently_used === true));
|
|
7326
|
+
this.commonRefundReasons.sort((/**
|
|
7327
|
+
* @param {?} a
|
|
7328
|
+
* @param {?} b
|
|
7329
|
+
* @return {?}
|
|
7330
|
+
*/
|
|
7331
|
+
(a, b) => a.toString().localeCompare(b)));
|
|
7332
|
+
this.cd.detectChanges();
|
|
7333
|
+
}));
|
|
7334
|
+
}
|
|
7335
|
+
}
|
|
7336
|
+
/**
|
|
7337
|
+
* @param {?} elementId
|
|
7338
|
+
* @return {?}
|
|
7339
|
+
*/
|
|
7340
|
+
getErrorClass(elementId) {
|
|
7341
|
+
if (this.errorMsg.length > 0) {
|
|
7342
|
+
/** @type {?} */
|
|
7343
|
+
const ele = document.getElementById(elementId);
|
|
7344
|
+
ele.classList.add('inline-error-class');
|
|
7345
|
+
}
|
|
7346
|
+
}
|
|
7347
|
+
/**
|
|
7348
|
+
* @return {?}
|
|
7349
|
+
*/
|
|
7350
|
+
changeIssueRefundReason() {
|
|
7351
|
+
this.isFromCheckAnsPage = true;
|
|
7352
|
+
this.errorMessage = '';
|
|
7353
|
+
this.errorMsg = [];
|
|
7354
|
+
this.refundHasError = false;
|
|
7355
|
+
this.isReasonEmpty = false;
|
|
7356
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
7357
|
+
this.viewStatus = '';
|
|
7358
|
+
this.isRefundRemission = true;
|
|
7359
|
+
}
|
|
7360
|
+
/**
|
|
7361
|
+
* @param {?} isFullyRefund
|
|
7362
|
+
* @return {?}
|
|
7363
|
+
*/
|
|
7364
|
+
confirmIssueRefund(isFullyRefund) {
|
|
6285
7365
|
this.isConfirmationBtnDisabled = true;
|
|
6286
7366
|
this.errorMessage = '';
|
|
7367
|
+
this.errorMsg = [];
|
|
6287
7368
|
if (this.isRefundRemission) {
|
|
6288
7369
|
this.retroRemission = true;
|
|
6289
7370
|
}
|
|
7371
|
+
if (isFullyRefund) {
|
|
7372
|
+
this.totalRefundAmount = this.payment.amount;
|
|
7373
|
+
}
|
|
7374
|
+
if (!isFullyRefund) {
|
|
7375
|
+
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
7376
|
+
* @param {?} value
|
|
7377
|
+
* @return {?}
|
|
7378
|
+
*/
|
|
7379
|
+
value => value.selected === true));
|
|
7380
|
+
}
|
|
7381
|
+
this.fees = this.fees.map((/**
|
|
7382
|
+
* @param {?} obj
|
|
7383
|
+
* @return {?}
|
|
7384
|
+
*/
|
|
7385
|
+
obj => ({ id: obj.id,
|
|
7386
|
+
code: obj.code,
|
|
7387
|
+
version: obj.version,
|
|
7388
|
+
apportion_amount: obj.apportion_amount,
|
|
7389
|
+
calculated_amount: obj.calculated_amount,
|
|
7390
|
+
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
7391
|
+
refund_amount: obj.refund_amount ? obj.refund_amount : this.totalRefundAmount })));
|
|
6290
7392
|
/** @type {?} */
|
|
6291
|
-
const requestBody = new PostRefundRetroRemission(this.payment.reference,
|
|
7393
|
+
const requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.payment.reference, this.refundReason, this.totalRefundAmount, 'op');
|
|
6292
7394
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
6293
7395
|
* @param {?} response
|
|
6294
7396
|
* @return {?}
|
|
@@ -6296,7 +7398,7 @@ class AddRemissionComponent {
|
|
|
6296
7398
|
response => {
|
|
6297
7399
|
if (JSON.parse(response)) {
|
|
6298
7400
|
this.viewCompStatus = '';
|
|
6299
|
-
this.viewStatus = '
|
|
7401
|
+
this.viewStatus = 'refundconfirmationpage';
|
|
6300
7402
|
this.refundReference = JSON.parse(response).refund_reference;
|
|
6301
7403
|
if (JSON.parse(response).refund_amount) {
|
|
6302
7404
|
this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -6309,8 +7411,41 @@ class AddRemissionComponent {
|
|
|
6309
7411
|
(error) => {
|
|
6310
7412
|
this.errorMessage = error;
|
|
6311
7413
|
this.isConfirmationBtnDisabled = false;
|
|
7414
|
+
this.cd.detectChanges();
|
|
6312
7415
|
}));
|
|
6313
7416
|
}
|
|
7417
|
+
/**
|
|
7418
|
+
* @return {?}
|
|
7419
|
+
*/
|
|
7420
|
+
gotoRefundReasonPage() {
|
|
7421
|
+
this.viewStatus = '';
|
|
7422
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
7423
|
+
}
|
|
7424
|
+
// Retro Refund
|
|
7425
|
+
// confirmRetroRefund() {
|
|
7426
|
+
// this.isConfirmationBtnDisabled = true;
|
|
7427
|
+
// this.errorMessage = '';
|
|
7428
|
+
// this.errorMsg = [];
|
|
7429
|
+
// if( this.isRefundRemission) {
|
|
7430
|
+
// this.retroRemission = true;
|
|
7431
|
+
// }
|
|
7432
|
+
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
7433
|
+
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
7434
|
+
// response => {
|
|
7435
|
+
// if (JSON.parse(response)) {
|
|
7436
|
+
// this.viewCompStatus = '';
|
|
7437
|
+
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
7438
|
+
// this.refundReference =JSON.parse(response).refund_reference;
|
|
7439
|
+
// if(JSON.parse(response).refund_amount) {
|
|
7440
|
+
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
7441
|
+
// }
|
|
7442
|
+
// }
|
|
7443
|
+
// },
|
|
7444
|
+
// (error: any) => {
|
|
7445
|
+
// this.errorMessage = error;
|
|
7446
|
+
// this.isConfirmationBtnDisabled = false;
|
|
7447
|
+
// });
|
|
7448
|
+
// }
|
|
6314
7449
|
/**
|
|
6315
7450
|
* @param {?} key
|
|
6316
7451
|
* @param {?} value
|
|
@@ -6324,6 +7459,7 @@ class AddRemissionComponent {
|
|
|
6324
7459
|
remissionctrls['reason'].reset();
|
|
6325
7460
|
this.isRefundReasonsSelected = true;
|
|
6326
7461
|
this.errorMessage = false;
|
|
7462
|
+
this.errorMsg = [];
|
|
6327
7463
|
this.isReasonEmpty = false;
|
|
6328
7464
|
this.showReasonText = false;
|
|
6329
7465
|
this.refundHasError = false;
|
|
@@ -6354,13 +7490,51 @@ class AddRemissionComponent {
|
|
|
6354
7490
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
6355
7491
|
}
|
|
6356
7492
|
}
|
|
7493
|
+
/**
|
|
7494
|
+
* @param {?} obj
|
|
7495
|
+
* @param {?} type
|
|
7496
|
+
* @return {?}
|
|
7497
|
+
*/
|
|
7498
|
+
getContactDetails(obj, type) {
|
|
7499
|
+
this.contactDetailsObj = obj;
|
|
7500
|
+
this.viewCompStatus = '';
|
|
7501
|
+
this.viewStatus = type;
|
|
7502
|
+
}
|
|
7503
|
+
/**
|
|
7504
|
+
* @return {?}
|
|
7505
|
+
*/
|
|
7506
|
+
gotoPartialFeeRefundScreen() {
|
|
7507
|
+
if (this.isFromRefundStatusPage) {
|
|
7508
|
+
/** @type {?} */
|
|
7509
|
+
var remissionctrls = this.remissionForm.controls;
|
|
7510
|
+
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
7511
|
+
return;
|
|
7512
|
+
}
|
|
7513
|
+
this.refundHasError = false;
|
|
7514
|
+
this.viewCompStatus = 'issuerefund';
|
|
7515
|
+
this.viewStatus = '';
|
|
7516
|
+
}
|
|
6357
7517
|
/**
|
|
6358
7518
|
* @param {?} event
|
|
6359
7519
|
* @return {?}
|
|
6360
7520
|
*/
|
|
6361
7521
|
gotoServiceRequestPage(event) {
|
|
6362
7522
|
this.errorMessage = '';
|
|
7523
|
+
this.errorMsg = [];
|
|
7524
|
+
this.isFromCheckAnsPage = false;
|
|
6363
7525
|
event.preventDefault();
|
|
7526
|
+
if (this.isFromRefundStatusPage) {
|
|
7527
|
+
/** @type {?} */
|
|
7528
|
+
var remissionctrls = this.remissionForm.controls;
|
|
7529
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
7530
|
+
* @param {?} a
|
|
7531
|
+
* @param {?} c
|
|
7532
|
+
* @return {?}
|
|
7533
|
+
*/
|
|
7534
|
+
(a, c) => a + c.refund_amount * c.selected), 0);
|
|
7535
|
+
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
7536
|
+
return;
|
|
7537
|
+
}
|
|
6364
7538
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
6365
7539
|
this.viewStatus = 'order-full-view';
|
|
6366
7540
|
this.viewCompStatus = '';
|
|
@@ -6395,68 +7569,32 @@ class AddRemissionComponent {
|
|
|
6395
7569
|
}
|
|
6396
7570
|
this.viewCompStatus = '';
|
|
6397
7571
|
}
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
// this.errorMessage = '';
|
|
6425
|
-
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
6426
|
-
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
6427
|
-
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
6428
|
-
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
6429
|
-
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
6430
|
-
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6431
|
-
// this.paymentLibComponent.ISBSENABLE = true;
|
|
6432
|
-
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6433
|
-
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6434
|
-
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6435
|
-
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6436
|
-
// partUrl += `&caseType=${this.caseType}`;
|
|
6437
|
-
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6438
|
-
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6439
|
-
// if(this.isFromPaymentDetailPage) {
|
|
6440
|
-
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
6441
|
-
// }
|
|
6442
|
-
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
6443
|
-
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
6444
|
-
// }
|
|
6445
|
-
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
6446
|
-
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
6447
|
-
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
6448
|
-
// this.router.onSameUrlNavigation = 'reload';
|
|
6449
|
-
// this.router.navigateByUrl(url);
|
|
6450
|
-
// } else {
|
|
6451
|
-
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6452
|
-
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
6453
|
-
// this.router.onSameUrlNavigation = 'reload';
|
|
6454
|
-
// this.router.navigateByUrl(url);
|
|
6455
|
-
// }
|
|
6456
|
-
// } else {
|
|
6457
|
-
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
6458
|
-
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6459
|
-
// }
|
|
7572
|
+
}
|
|
7573
|
+
/**
|
|
7574
|
+
* @param {?=} note
|
|
7575
|
+
* @return {?}
|
|
7576
|
+
*/
|
|
7577
|
+
gotoAddressPage(note) {
|
|
7578
|
+
if (note) {
|
|
7579
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7580
|
+
}
|
|
7581
|
+
this.errorMessage = '';
|
|
7582
|
+
this.viewCompStatus = 'addrefundforremission';
|
|
7583
|
+
this.viewStatus = '';
|
|
7584
|
+
this.isRefundRemission = true;
|
|
7585
|
+
this.errorMessage = false;
|
|
7586
|
+
}
|
|
7587
|
+
/**
|
|
7588
|
+
* @param {?} event
|
|
7589
|
+
* @return {?}
|
|
7590
|
+
*/
|
|
7591
|
+
gotoRemissionSuccess(event) {
|
|
7592
|
+
event.preventDefault();
|
|
7593
|
+
this.errorMessage = '';
|
|
7594
|
+
this.viewCompStatus = '';
|
|
7595
|
+
this.viewStatus = 'retroremissionconfirmationpage';
|
|
7596
|
+
this.isRefundRemission = true;
|
|
7597
|
+
this.errorMessage = false;
|
|
6460
7598
|
}
|
|
6461
7599
|
/**
|
|
6462
7600
|
* @return {?}
|
|
@@ -6464,6 +7602,7 @@ class AddRemissionComponent {
|
|
|
6464
7602
|
gotoCasetransationPage() {
|
|
6465
7603
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6466
7604
|
this.errorMessage = '';
|
|
7605
|
+
this.errorMsg = [];
|
|
6467
7606
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6468
7607
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
6469
7608
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -6494,30 +7633,37 @@ class AddRemissionComponent {
|
|
|
6494
7633
|
*/
|
|
6495
7634
|
gotoCasetransationPageCancelBtnClicked(event) {
|
|
6496
7635
|
event.preventDefault();
|
|
6497
|
-
|
|
7636
|
+
this.errorMsg = [];
|
|
7637
|
+
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
7638
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7639
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7640
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
7641
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7642
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
7643
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
6498
7644
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6499
7645
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
6500
7646
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
6501
7647
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6502
7648
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
6503
7649
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
7650
|
+
this.resetOrderData();
|
|
7651
|
+
/** @type {?} */
|
|
7652
|
+
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7653
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7654
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7655
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7656
|
+
partUrl += `&caseType=${this.caseType}`;
|
|
7657
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7658
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7659
|
+
/** @type {?} */
|
|
7660
|
+
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7661
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7662
|
+
* @return {?}
|
|
7663
|
+
*/
|
|
7664
|
+
() => false);
|
|
7665
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7666
|
+
this.router.navigateByUrl(url);
|
|
6521
7667
|
}
|
|
6522
7668
|
else {
|
|
6523
7669
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -6583,6 +7729,14 @@ class AddRemissionComponent {
|
|
|
6583
7729
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
6584
7730
|
this.OrderslistService.setorderFeesTotal(null);
|
|
6585
7731
|
}
|
|
7732
|
+
/**
|
|
7733
|
+
* @return {?}
|
|
7734
|
+
*/
|
|
7735
|
+
changeRefundAmount() {
|
|
7736
|
+
this.isFromCheckAnsPage = true;
|
|
7737
|
+
this.viewCompStatus = 'issuerefund';
|
|
7738
|
+
this.viewStatus = '';
|
|
7739
|
+
}
|
|
6586
7740
|
/**
|
|
6587
7741
|
* @param {?} currency
|
|
6588
7742
|
* @return {?}
|
|
@@ -6597,8 +7751,8 @@ class AddRemissionComponent {
|
|
|
6597
7751
|
AddRemissionComponent.decorators = [
|
|
6598
7752
|
{ type: Component, args: [{
|
|
6599
7753
|
selector: 'ccpay-add-remission',
|
|
6600
|
-
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n </ccpay-service-request>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n </ccpay-payment-view>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
6601
|
-
styles: [".add-remission .button{padding:.5em;font-size:19px;font-weight:200;margin:20px 2px}.add-remission td.govuk-table__cell{width:50%}.add-remission .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.add-remission .
|
|
7754
|
+
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n <div *ngIf=\"errorMsg.length > 0\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div *ngFor=\"let err of errorMsg; let i = index\" class=\"govuk-error-summary__body\">\n \n <li>{{err}}</li>\n </div>\n </div>\n </div>\n\n<ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n</ng-container>\n\n<!-- Add retro remission changes-->\n\n<ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"gotoAmountRetroRemission()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAmountRetroRemission()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel-border--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"gotoProcessRetroRemission()\">Continue </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n\n<ng-container *ngIf=\"viewStatus === 'remissionAddressPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission(contactDetailsObj)\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\"> Submit refund </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n</ng-container>\n\n<!-- Issue Refund Section -->\n<ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <h1 class=\"heading-large\">Issue refund</h1>\n <h2 class=\"heading-medium\">Case reference:#{{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"form-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <h3 class=\"heading-small\">Select fees to be refunded</h3>\n <!--TABLE-->\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-1\" scope=\"col\">Select</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Fee description</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Total paid</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Quantity</td>\n <td class=\"govuk-table__header col-8\" scope=\"col\">Amount to refund</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"!isFullyRefund\">\n <tr class=\"govuk-table__row\" formArrayName=\"feesList\" *ngFor=\"let fee of feesList?.controls; let i = index\">\n <td class=\"govuk-table__cell\">\n <div [formGroupName]=\"i\" class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n\n <input\n class=\"govuk-checkboxes__input\" \n (click)=\"check_en(i,fee.controls['id'].value,fee.controls['apportion_amount'].value,fee.controls['volume'].value)\" \n id=\"{{fee.controls['id'].value}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.controls['id'].value}}\" \n formControlName=\"selected\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.controls['id'].value}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.controls['description'].value}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.controls['id'].value}}\">{{ fee.controls['calculated_amount'].value / fee.controls['volume'].value }}</div>\n {{ fee.controls['calculated_amount'].value / fee.controls['volume'].value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ fee.controls['apportion_amount'].value | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value >1\">\n <div [formGroupName]=\"i\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" (keyup)=\"calAmtToRefund($event.target.value,fee.controls['calculated_amount'].value,fee.controls['volume'].value,i)\" value=\"{{fee.controls['updated_volume'].value}}\" name=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" formControlName=\"updated_volume\" type=\"text\" >\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value ===1\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"VolumeUpdated_{{fee.controls['id'].value}}\" name=\"VolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\">\n </td>\n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div [formGroupName]=\"i\" class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.controls['id'].value}}\" name=\"feeAmount_{{fee.controls['id'].value}}\" type=\"text\" aria-describedby=\"amount-currency \" pattern=\"[0-9]*\" formControlName=\"refund_amount\">\n <input id=\"feeVolume_{{fee.controls['id'].value}}\" name=\"feeVolume_{{fee.controls['id'].value}}\" value= \"{{fee.controls['volume'].value}}\" type=\"hidden\" formControlName=\"volume\">\n <input id=\"feeApportionAmount_{{fee.controls['id'].value}}\" name=\"feeApportionAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['apportion_amount'].value}}\" type=\"hidden\" formControlName=\"apportion_amount\">\n <input id=\"calculatedAmount_{{fee.controls['id'].value}}\" name=\"calculatedAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['calculated_amount'].value}}\" type=\"hidden\" formControlName=\"calculated_amount\">\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"isFullyRefund\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of fees; let i = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input \n class=\"govuk-checkboxes__input\" \n \n id=\"{{fee.id}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.id}}\"\n disabled=\"disabled\"\n [checked]=\"true\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.id}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.description}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.id}}\">{{ fee.calculated_amount / fee.volume }}</div>\n {{ fee.calculated_amount / fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\">\n <div >\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.id}}\" value=\"{{fee.volume}}\" name=\"feeVolumeUpdated_{{fee.id}}\" type=\"text\" >\n </div>\n </td>\n \n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.id}}\" name=\"feeAmount_{{fee.id}}\" type=\"text\" aria-describedby=\"amount-currency \" value=\"{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}\" pattern=\"[0-9]*\" >\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"fees?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n\n \n <a (click)=\"gotoServiceRequestPage($event)\" *ngIf=\"!isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n <a (click)=\"goToPaymentViewComponent()\" *ngIf=\"isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n <button [disabled] = \"noneSelected()\" (click)=\"gotoIssuePage(isFullyRefund)\" class=\"govuk-button\">\n Continue\n </button>\n \n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </form>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'issuerefundpage1' && isRefundRemission\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"payment\" class=\"form-hint\">\n Payment reference: {{paymentReference}}\n </span>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"refundPaymentReference\" class=\"form-hint\">\n Payment reference: {{refundPaymentReference}}\n </span>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoPartialFeeRefundScreen()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'contactDetailsPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CAPTUREADDRESSDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkissuerefundpage')\"\n (redirectToIssueRefund)=\"gotoRefundReasonPage()\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n \n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{totalRefundAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}\n <a (click)=\"changeRefundAmount()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoContactDetailsPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoContactDetailsPage(contactDetailsObj)\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund(isFullyRefund)\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<!--Retro Refund-->\n<ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event, 'addrefundcheckandanswer')\"\n(redirectToIssueRefund)=\"gotoServiceRequestPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addrefundcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n</ccpay-payment-view>\n</ng-container>\n\n</div>",
|
|
7755
|
+
styles: [".add-remission .button{padding:.5em;font-size:19px;font-weight:200;margin:20px 2px}.add-remission td.govuk-table__cell{width:50%}.add-remission .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.add-remission .govuk-label--s,.add-remission .govuk-warning-text__text,.add-remission .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.add-remission .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.add-remission .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.add-remission .govuk-button,.add-remission .govuk-link{margin-right:1em;font-size:19px;font-weight:200}.add-remission .govuk-button-group{padding-top:2em}.add-remission .heading-medium{margin-top:.875em}.add-remission .heading-large{margin-top:.25em}.add-remission .govuk-panel--confirmation{color:#fff;background:#00703c}.add-remission .govuk-panel__title{font-size:5rem}.add-remission .govuk-body,.add-remission .govuk-body-m{font-size:2.1875rem}.add-remission .govuk-radios__item{clear:initial!important;display:inline-block;width:45%!important}.add-remission .govuk-radios__conditional{padding-top:12px!important}.add-remission .right{float:right;cursor:pointer}.add-remission .radio{float:right}.govuk-font19px,.govuk-input{font-size:19px}.govuk-select{font-size:19px;font-weight:400}.govuk-input--width-10{max-width:50ex}.govuk-label--m{font-size:19px;font-weight:400}.govuk-error-summary__body{font-size:19px!important}.govuk-error-summary__title{font-size:24px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}.pointer{cursor:pointer}.col-18{min-width:18em}.col-6{min-width:6em}.col-8{min-width:8em}.col-1{min-width:1em}.col-25{width:25%!important}.col-24{width:24%!important}.left{text-align:left}.center{text-align:center}.col-60{width:60%;text-align:left}.margin-top--size{margin-top:-30px}.contactDetails-width{width:70%}.right{cursor:pointer}.form-hint{font-size:19px!important}.govuk-panel-border--confirmation{color:#0b0c0c;border:5px solid #00703c}"]
|
|
6602
7756
|
}] }
|
|
6603
7757
|
];
|
|
6604
7758
|
/** @nocollapse */
|
|
@@ -6613,6 +7767,7 @@ AddRemissionComponent.ctorParameters = () => [
|
|
|
6613
7767
|
];
|
|
6614
7768
|
AddRemissionComponent.propDecorators = {
|
|
6615
7769
|
fee: [{ type: Input }],
|
|
7770
|
+
fees: [{ type: Input }],
|
|
6616
7771
|
payment: [{ type: Input }],
|
|
6617
7772
|
remission: [{ type: Input }],
|
|
6618
7773
|
ccdCaseNumber: [{ type: Input }],
|
|
@@ -6628,7 +7783,12 @@ AddRemissionComponent.propDecorators = {
|
|
|
6628
7783
|
isFromRefundListPage: [{ type: Input }],
|
|
6629
7784
|
isFromPaymentDetailPage: [{ type: Input }],
|
|
6630
7785
|
isFromServiceRequestPage: [{ type: Input }],
|
|
7786
|
+
isFullyRefund: [{ type: Input, args: ['isFullyRefund',] }],
|
|
6631
7787
|
feeamount: [{ type: Input }],
|
|
7788
|
+
refundPaymentReference: [{ type: Input }],
|
|
7789
|
+
isFromRefundStatusPage: [{ type: Input }],
|
|
7790
|
+
changeRefundReason: [{ type: Input }],
|
|
7791
|
+
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
6632
7792
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
6633
7793
|
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
6634
7794
|
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
@@ -6642,7 +7802,8 @@ AddRemissionComponent.propDecorators = {
|
|
|
6642
7802
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
6643
7803
|
cancelRemission: [{ type: Output }],
|
|
6644
7804
|
refundListReason: [{ type: Output }],
|
|
6645
|
-
refundListAmount: [{ type: Output }]
|
|
7805
|
+
refundListAmount: [{ type: Output }],
|
|
7806
|
+
refundFees: [{ type: Output }]
|
|
6646
7807
|
};
|
|
6647
7808
|
|
|
6648
7809
|
/**
|
|
@@ -7278,13 +8439,26 @@ class TableComponent {
|
|
|
7278
8439
|
*/
|
|
7279
8440
|
(r, { user_full_name }) => (r[user_full_name] = '', r)), {});
|
|
7280
8441
|
this.userLst = Object.keys(this.userLst);
|
|
8442
|
+
this.userLst.sort((/**
|
|
8443
|
+
* @param {?} a
|
|
8444
|
+
* @param {?} b
|
|
8445
|
+
* @return {?}
|
|
8446
|
+
*/
|
|
8447
|
+
(a, b) => a.toString().localeCompare(b)));
|
|
8448
|
+
this.serviceLst = this.refundList.reduce((/**
|
|
8449
|
+
* @param {?} r
|
|
8450
|
+
* @param {?} __1
|
|
8451
|
+
* @return {?}
|
|
8452
|
+
*/
|
|
8453
|
+
(r, { service_type }) => (r[service_type] = '', r)), {});
|
|
8454
|
+
this.serviceLst = Object.keys(this.serviceLst);
|
|
8455
|
+
this.serviceLst.sort((/**
|
|
8456
|
+
* @param {?} a
|
|
8457
|
+
* @param {?} b
|
|
8458
|
+
* @return {?}
|
|
8459
|
+
*/
|
|
8460
|
+
(a, b) => a.toString().localeCompare(b)));
|
|
7281
8461
|
}
|
|
7282
|
-
this.userLst.sort((/**
|
|
7283
|
-
* @param {?} a
|
|
7284
|
-
* @param {?} b
|
|
7285
|
-
* @return {?}
|
|
7286
|
-
*/
|
|
7287
|
-
(a, b) => a.toString().localeCompare(b)));
|
|
7288
8462
|
}
|
|
7289
8463
|
/**
|
|
7290
8464
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -7353,8 +8527,8 @@ class TableComponent {
|
|
|
7353
8527
|
TableComponent.decorators = [
|
|
7354
8528
|
{ type: Component, args: [{
|
|
7355
8529
|
selector: 'ccpay-table',
|
|
7356
|
-
template: "<div class=\"add-remission\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group\"
|
|
7357
|
-
styles: [".mat-header-row{min-height:27px}.mat-cell{padding:0 10px 0 0;text-align:left;word-wrap:break-word;white-space:inherit!important;font-size:19px;line-height:25px;font-family:nta,Arial,sans-serif;font-weight:400}.mat-table{color:#0b0c0c;display:table;font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:1px;box-sizing:border-box;text-indent:initial;border-spacing:0;border-collapse:collapse;font-size:1.1875rem;line-height:1.31578947;table-layout:fixed;width:102%}.mat-header-cell{text-align:left;font-weight:700;padding:10px 10px 10px 0;word-wrap:break-word;font-size:19px;line-height:25px;color:#0b0c0c;cursor:pointer;font-family:inherit}.dropdpwn{display:inline-block;margin-right:10px;font-size:19px}.mat-column-ccdCaseNumber{flex:3em}.mat-column-refundReference{flex:6em}.mat-column-reason{flex:2em}.govuk-select{font-size:19px;font-weight:400}.govuk-error-summary__title{font-size:24px!important}"]
|
|
8530
|
+
template: "<div class=\"add-remission\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n \n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group float-right\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by caseworker:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All caseworkers</option>\n <option *ngFor=\"let name of userLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n</div>\n\n <div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group float-right-padding\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by service:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All services</option>\n <option *ngFor=\"let name of serviceLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n\n <div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group float-left-padding\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by service:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All services</option>\n <option *ngFor=\"let name of serviceLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n \n<div *ngIf=\"dataSource.data.length > 0\" class=\"example-container\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccd_case_number\">\n <mat-header-cell *matHeaderCellDef >Case reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.ccd_case_number | ccdHyphens }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"refund_reference\">\n <mat-header-cell *matHeaderCellDef > Refund reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.refund_reference}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"user_full_name\">\n <mat-header-cell *matHeaderCellDef > Submitted by </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.user_full_name }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_created\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date created </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.date_created | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_updated\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Last updated</mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.date_updated | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container *ngIf=\"isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" > <a href=\"javascript:void(0)\" (click)=\"goToCaseReview(row.ccd_case_number, row)\">Review case</a> <a href=\"javascript:void(0)\" (click)=\"goToRefundProcessComponent(row.refund_reference, row)\">Process refund</a></mat-cell>\n </ng-container>\n \n <ng-container *ngIf=\"!isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef > Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\"> <a href=\"javascript:void(0)\" (click)=\"goToRefundViewComponent(row.refund_reference, row)\">Review refund</a></mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\">\n </mat-row>\n </mat-table>\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 100]\"></mat-paginator>\n</div>\n\n<div class=\"govuk-label dropdpwn\" *ngIf=\"dataSource.data.length === 0\">No records to display</div>\n",
|
|
8531
|
+
styles: [".mat-header-row{min-height:27px}.mat-cell{padding:0 10px 0 0;text-align:left;word-wrap:break-word;white-space:inherit!important;font-size:19px;line-height:25px;font-family:nta,Arial,sans-serif;font-weight:400}.mat-table{color:#0b0c0c;display:table;font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:1px;box-sizing:border-box;text-indent:initial;border-spacing:0;border-collapse:collapse;font-size:1.1875rem;line-height:1.31578947;table-layout:fixed;width:102%}.mat-header-cell{text-align:left;font-weight:700;padding:10px 10px 10px 0;word-wrap:break-word;font-size:19px;line-height:25px;color:#0b0c0c;cursor:pointer;font-family:inherit}.dropdpwn{display:inline-block;margin-right:10px;font-size:19px}.mat-column-ccdCaseNumber{flex:3em}.mat-column-refundReference{flex:6em}.mat-column-reason{flex:2em}.govuk-select{font-size:19px;font-weight:400}.govuk-error-summary__title{font-size:24px!important}.float-right{float:right}.float-right-padding{float:right;padding-right:2em}.float-left-padding{padding-left:12em}"]
|
|
7358
8532
|
}] }
|
|
7359
8533
|
];
|
|
7360
8534
|
/** @nocollapse */
|
|
@@ -7373,6 +8547,25 @@ TableComponent.propDecorators = {
|
|
|
7373
8547
|
sort: [{ type: ViewChild, args: [MatSort,] }]
|
|
7374
8548
|
};
|
|
7375
8549
|
|
|
8550
|
+
/**
|
|
8551
|
+
* @fileoverview added by tsickle
|
|
8552
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8553
|
+
*/
|
|
8554
|
+
class IPutNotificationRequest {
|
|
8555
|
+
/**
|
|
8556
|
+
* @param {?} contactDetails
|
|
8557
|
+
* @param {?} notificationType
|
|
8558
|
+
*/
|
|
8559
|
+
constructor(contactDetails, notificationType) {
|
|
8560
|
+
if (notificationType === 'EMAIL') {
|
|
8561
|
+
this.recipient_email_address = contactDetails;
|
|
8562
|
+
}
|
|
8563
|
+
else if (notificationType === 'LETTER') {
|
|
8564
|
+
this.recipient_postal_address = contactDetails;
|
|
8565
|
+
}
|
|
8566
|
+
}
|
|
8567
|
+
}
|
|
8568
|
+
|
|
7376
8569
|
/**
|
|
7377
8570
|
* @fileoverview added by tsickle
|
|
7378
8571
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -7381,10 +8574,14 @@ class IResubmitRefundRequest {
|
|
|
7381
8574
|
/**
|
|
7382
8575
|
* @param {?} refund_reason
|
|
7383
8576
|
* @param {?} amount
|
|
8577
|
+
* @param {?} contact_details
|
|
8578
|
+
* @param {?} refund_fees
|
|
7384
8579
|
*/
|
|
7385
|
-
constructor(refund_reason, amount) {
|
|
8580
|
+
constructor(refund_reason, amount, contact_details, refund_fees) {
|
|
7386
8581
|
this.refund_reason = refund_reason;
|
|
7387
8582
|
this.amount = amount;
|
|
8583
|
+
this.contact_details = contact_details;
|
|
8584
|
+
this.refund_fees = refund_fees;
|
|
7388
8585
|
}
|
|
7389
8586
|
}
|
|
7390
8587
|
|
|
@@ -7396,24 +8593,22 @@ class RefundStatusComponent {
|
|
|
7396
8593
|
/**
|
|
7397
8594
|
* @param {?} formBuilder
|
|
7398
8595
|
* @param {?} refundService
|
|
8596
|
+
* @param {?} notificationService
|
|
7399
8597
|
* @param {?} paymentLibComponent
|
|
7400
|
-
* @param {?} paymentViewService
|
|
7401
|
-
* @param {?} router
|
|
7402
8598
|
* @param {?} OrderslistService
|
|
8599
|
+
* @param {?} paymentViewService
|
|
7403
8600
|
*/
|
|
7404
|
-
constructor(formBuilder, refundService,
|
|
8601
|
+
constructor(formBuilder, refundService, notificationService, paymentLibComponent, OrderslistService$$1, paymentViewService) {
|
|
7405
8602
|
this.formBuilder = formBuilder;
|
|
7406
8603
|
this.refundService = refundService;
|
|
8604
|
+
this.notificationService = notificationService;
|
|
7407
8605
|
this.paymentLibComponent = paymentLibComponent;
|
|
7408
|
-
this.paymentViewService = paymentViewService;
|
|
7409
|
-
this.router = router;
|
|
7410
8606
|
this.OrderslistService = OrderslistService$$1;
|
|
8607
|
+
this.paymentViewService = paymentViewService;
|
|
7411
8608
|
this.LOGGEDINUSERROLES = [];
|
|
7412
8609
|
this.rejectedRefundList = [];
|
|
7413
8610
|
this.approvalStatus = 'Sent for approval';
|
|
7414
8611
|
this.rejectStatus = 'Update required';
|
|
7415
|
-
// approvalStatus = 'sent for approval';
|
|
7416
|
-
// rejectStatus = 'sent back';
|
|
7417
8612
|
this.errorMessage = null;
|
|
7418
8613
|
this.refundButtonState = '';
|
|
7419
8614
|
this.isAmountEmpty = false;
|
|
@@ -7422,6 +8617,9 @@ class RefundStatusComponent {
|
|
|
7422
8617
|
this.isRemissionLessThanFeeError = false;
|
|
7423
8618
|
this.refundHasError = false;
|
|
7424
8619
|
this.refundReasons = [];
|
|
8620
|
+
this.isResendOperationSuccess = false;
|
|
8621
|
+
this.isEditDetailsClicked = false;
|
|
8622
|
+
this.isEditAddressDeatilsClicked = false;
|
|
7425
8623
|
this.isRefundBtnDisabled = true;
|
|
7426
8624
|
this.isLastUpdatedByCurrentUser = true;
|
|
7427
8625
|
this.isProcessRefund = false;
|
|
@@ -7441,13 +8639,9 @@ class RefundStatusComponent {
|
|
|
7441
8639
|
* @return {?}
|
|
7442
8640
|
*/
|
|
7443
8641
|
ngOnInit() {
|
|
7444
|
-
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
7445
8642
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
7446
8643
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
7447
8644
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
7448
|
-
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7449
|
-
// this.viewName = 'reviewandsubmitview';
|
|
7450
|
-
// }
|
|
7451
8645
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
7452
8646
|
this.viewName = 'refundview';
|
|
7453
8647
|
this.OrderslistService.getRefundView().subscribe((/**
|
|
@@ -7469,6 +8663,7 @@ class RefundStatusComponent {
|
|
|
7469
8663
|
*/
|
|
7470
8664
|
refundList => {
|
|
7471
8665
|
this.rejectedRefundList = refundList['refund_list'];
|
|
8666
|
+
//this.refundFees = this.rejectedRefundList['refund_fees'];
|
|
7472
8667
|
})),
|
|
7473
8668
|
(/**
|
|
7474
8669
|
* @param {?} error
|
|
@@ -7487,6 +8682,7 @@ class RefundStatusComponent {
|
|
|
7487
8682
|
reason: new FormControl()
|
|
7488
8683
|
});
|
|
7489
8684
|
if (this.refundlist !== undefined) {
|
|
8685
|
+
this.getRefundsNotification();
|
|
7490
8686
|
this.getRefundsStatusHistoryList();
|
|
7491
8687
|
if (this.LOGGEDINUSERROLES.some((/**
|
|
7492
8688
|
* @param {?} i
|
|
@@ -7506,7 +8702,6 @@ class RefundStatusComponent {
|
|
|
7506
8702
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
7507
8703
|
}
|
|
7508
8704
|
}
|
|
7509
|
-
//}
|
|
7510
8705
|
}
|
|
7511
8706
|
/**
|
|
7512
8707
|
* @return {?}
|
|
@@ -7530,6 +8725,25 @@ class RefundStatusComponent {
|
|
|
7530
8725
|
});
|
|
7531
8726
|
}
|
|
7532
8727
|
}
|
|
8728
|
+
/**
|
|
8729
|
+
* @return {?}
|
|
8730
|
+
*/
|
|
8731
|
+
getRefundsNotification() {
|
|
8732
|
+
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
|
|
8733
|
+
* @param {?} refundsNotification
|
|
8734
|
+
* @return {?}
|
|
8735
|
+
*/
|
|
8736
|
+
refundsNotification => {
|
|
8737
|
+
this.notificationList = refundsNotification['notifications'];
|
|
8738
|
+
})),
|
|
8739
|
+
(/**
|
|
8740
|
+
* @param {?} error
|
|
8741
|
+
* @return {?}
|
|
8742
|
+
*/
|
|
8743
|
+
(error) => {
|
|
8744
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8745
|
+
});
|
|
8746
|
+
}
|
|
7533
8747
|
/**
|
|
7534
8748
|
* @param {?} refundlist
|
|
7535
8749
|
* @param {?} navigationpage
|
|
@@ -7600,15 +8814,17 @@ class RefundStatusComponent {
|
|
|
7600
8814
|
}));
|
|
7601
8815
|
}
|
|
7602
8816
|
/**
|
|
8817
|
+
* @param {?} refundReason
|
|
7603
8818
|
* @return {?}
|
|
7604
8819
|
*/
|
|
7605
|
-
gotoRefundReasonPage() {
|
|
8820
|
+
gotoRefundReasonPage(refundReason) {
|
|
7606
8821
|
this.isRefundBtnDisabled = false;
|
|
7607
8822
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
7608
8823
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7609
8824
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
7610
8825
|
this.errorMessage = false;
|
|
7611
|
-
this.
|
|
8826
|
+
this.changeRefundReason = refundReason;
|
|
8827
|
+
this.viewName = 'issuerefundpage1';
|
|
7612
8828
|
}
|
|
7613
8829
|
/**
|
|
7614
8830
|
* @return {?}
|
|
@@ -7619,7 +8835,12 @@ class RefundStatusComponent {
|
|
|
7619
8835
|
this.isRefundBtnDisabled = false;
|
|
7620
8836
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
7621
8837
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7622
|
-
this.
|
|
8838
|
+
if (this.refundlist.reason == 'Retrospective remission') {
|
|
8839
|
+
this.viewName = 'processretroremissonpage';
|
|
8840
|
+
}
|
|
8841
|
+
else {
|
|
8842
|
+
this.viewName = 'issuerefund';
|
|
8843
|
+
}
|
|
7623
8844
|
}
|
|
7624
8845
|
/**
|
|
7625
8846
|
* @return {?}
|
|
@@ -7684,6 +8905,7 @@ class RefundStatusComponent {
|
|
|
7684
8905
|
getRefundListReason(refundListReason) {
|
|
7685
8906
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
7686
8907
|
this.refundlist.reason = refundListReason.reason;
|
|
8908
|
+
this.refundlist.code = refundListReason.code;
|
|
7687
8909
|
this.refundCode = refundListReason.code;
|
|
7688
8910
|
}
|
|
7689
8911
|
else {
|
|
@@ -7709,15 +8931,31 @@ class RefundStatusComponent {
|
|
|
7709
8931
|
this.viewName = 'reviewandsubmitview';
|
|
7710
8932
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
7711
8933
|
}
|
|
8934
|
+
/**
|
|
8935
|
+
* @param {?} fees
|
|
8936
|
+
* @return {?}
|
|
8937
|
+
*/
|
|
8938
|
+
getRefundFees(fees) {
|
|
8939
|
+
this.fees = fees;
|
|
8940
|
+
this.refundFees = this.fees.map((/**
|
|
8941
|
+
* @param {?} obj
|
|
8942
|
+
* @return {?}
|
|
8943
|
+
*/
|
|
8944
|
+
obj => ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount })));
|
|
8945
|
+
}
|
|
7712
8946
|
/**
|
|
7713
8947
|
* @return {?}
|
|
7714
8948
|
*/
|
|
7715
8949
|
gotoReviewRefundConfirmationPage() {
|
|
7716
|
-
if (this.oldRefundReason === this.refundlist.reason) {
|
|
7717
|
-
|
|
8950
|
+
// if (this.oldRefundReason === this.refundlist.reason) {
|
|
8951
|
+
// this.refundCode = '';
|
|
8952
|
+
// }
|
|
8953
|
+
if (this.refundFees === undefined) {
|
|
8954
|
+
this.refundFees = this.refundlist['refund_fees'];
|
|
7718
8955
|
}
|
|
8956
|
+
this.refundCode = this.refundlist.code;
|
|
7719
8957
|
/** @type {?} */
|
|
7720
|
-
const resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
8958
|
+
const resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount, this.refundlist.contact_details, this.refundFees);
|
|
7721
8959
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe((/**
|
|
7722
8960
|
* @param {?} response
|
|
7723
8961
|
* @return {?}
|
|
@@ -7737,62 +8975,175 @@ class RefundStatusComponent {
|
|
|
7737
8975
|
}));
|
|
7738
8976
|
}
|
|
7739
8977
|
/**
|
|
7740
|
-
* @param {?}
|
|
7741
|
-
* @param {?} refundList
|
|
8978
|
+
* @param {?} note
|
|
7742
8979
|
* @return {?}
|
|
7743
8980
|
*/
|
|
7744
|
-
|
|
7745
|
-
this.
|
|
7746
|
-
this.
|
|
7747
|
-
this.
|
|
8981
|
+
gotoEditAddressDetails(note) {
|
|
8982
|
+
this.notification = note;
|
|
8983
|
+
this.isEditDetailsClicked = true;
|
|
8984
|
+
this.viewName = 'refundEditView';
|
|
7748
8985
|
}
|
|
7749
|
-
}
|
|
7750
|
-
RefundStatusComponent.decorators = [
|
|
7751
|
-
{ type: Component, args: [{
|
|
7752
|
-
selector: 'ccpay-refund-status',
|
|
7753
|
-
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview'\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview'\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage'\">\n <div class=\"govuk-grid-row pagesize\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n",
|
|
7754
|
-
styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}"]
|
|
7755
|
-
}] }
|
|
7756
|
-
];
|
|
7757
|
-
/** @nocollapse */
|
|
7758
|
-
RefundStatusComponent.ctorParameters = () => [
|
|
7759
|
-
{ type: FormBuilder },
|
|
7760
|
-
{ type: RefundsService },
|
|
7761
|
-
{ type: PaymentLibComponent },
|
|
7762
|
-
{ type: PaymentViewService },
|
|
7763
|
-
{ type: Router },
|
|
7764
|
-
{ type: OrderslistService }
|
|
7765
|
-
];
|
|
7766
|
-
RefundStatusComponent.propDecorators = {
|
|
7767
|
-
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
7768
|
-
isOldPcipalOff: [{ type: Input }],
|
|
7769
|
-
isNewPcipalOff: [{ type: Input }],
|
|
7770
|
-
ccdCaseNumber: [{ type: Input }],
|
|
7771
|
-
isTurnOff: [{ type: Input }]
|
|
7772
|
-
};
|
|
7773
|
-
|
|
7774
|
-
/**
|
|
7775
|
-
* @fileoverview added by tsickle
|
|
7776
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7777
|
-
*/
|
|
7778
|
-
class ServiceRequestComponent {
|
|
7779
8986
|
/**
|
|
7780
|
-
* @param {?}
|
|
7781
|
-
* @
|
|
7782
|
-
* @param {?} OrderslistService
|
|
7783
|
-
* @param {?} router
|
|
8987
|
+
* @param {?} obj
|
|
8988
|
+
* @return {?}
|
|
7784
8989
|
*/
|
|
7785
|
-
|
|
7786
|
-
this.
|
|
7787
|
-
this.
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
8990
|
+
getContactDetails(obj) {
|
|
8991
|
+
this.addressDetails = obj;
|
|
8992
|
+
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
8993
|
+
}
|
|
8994
|
+
/**
|
|
8995
|
+
* @param {?} obj
|
|
8996
|
+
* @return {?}
|
|
8997
|
+
*/
|
|
8998
|
+
getContactDetailsForRefundList(obj) {
|
|
8999
|
+
this.refundlist.contact_details = obj;
|
|
9000
|
+
this.isEditDetailsClicked = false;
|
|
9001
|
+
this.isRefundBtnDisabled = false;
|
|
9002
|
+
this.viewName = 'reviewandsubmitview';
|
|
9003
|
+
}
|
|
9004
|
+
/**
|
|
9005
|
+
* @param {?=} note
|
|
9006
|
+
* @return {?}
|
|
9007
|
+
*/
|
|
9008
|
+
gotoEditDetailsPage(note) {
|
|
9009
|
+
if (note) {
|
|
9010
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
9011
|
+
}
|
|
9012
|
+
this.isEditDetailsClicked = true;
|
|
9013
|
+
this.viewName = 'refundEditView';
|
|
9014
|
+
}
|
|
9015
|
+
/**
|
|
9016
|
+
* @return {?}
|
|
9017
|
+
*/
|
|
9018
|
+
submitEditDetail() {
|
|
9019
|
+
this.isResendOperationSuccess = false;
|
|
9020
|
+
/** @type {?} */
|
|
9021
|
+
const contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
9022
|
+
{
|
|
9023
|
+
address_line: this.addressDetails.address_line,
|
|
9024
|
+
city: this.addressDetails.city,
|
|
9025
|
+
county: this.addressDetails.county,
|
|
9026
|
+
country: this.addressDetails.country,
|
|
9027
|
+
postal_code: this.addressDetails.postal_code,
|
|
9028
|
+
};
|
|
9029
|
+
/** @type {?} */
|
|
9030
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
9031
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
|
|
9032
|
+
* @param {?} response
|
|
9033
|
+
* @return {?}
|
|
9034
|
+
*/
|
|
9035
|
+
(response) => {
|
|
9036
|
+
this.isResendOperationSuccess = response;
|
|
9037
|
+
}), (/**
|
|
9038
|
+
* @param {?} error
|
|
9039
|
+
* @return {?}
|
|
9040
|
+
*/
|
|
9041
|
+
(error) => {
|
|
9042
|
+
this.isResendOperationSuccess = false;
|
|
9043
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
9044
|
+
}));
|
|
9045
|
+
}
|
|
9046
|
+
/**
|
|
9047
|
+
* @param {?} notification
|
|
9048
|
+
* @return {?}
|
|
9049
|
+
*/
|
|
9050
|
+
putResend(notification) {
|
|
9051
|
+
this.isResendOperationSuccess = false;
|
|
9052
|
+
/** @type {?} */
|
|
9053
|
+
const contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
9054
|
+
{
|
|
9055
|
+
address_line: notification.contact_details.address_line,
|
|
9056
|
+
city: notification.contact_details.city,
|
|
9057
|
+
county: notification.contact_details.county,
|
|
9058
|
+
country: notification.contact_details.country,
|
|
9059
|
+
postal_code: notification.contact_details.postal_code,
|
|
9060
|
+
};
|
|
9061
|
+
/** @type {?} */
|
|
9062
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
9063
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
|
|
9064
|
+
* @param {?} response
|
|
9065
|
+
* @return {?}
|
|
9066
|
+
*/
|
|
9067
|
+
(response) => {
|
|
9068
|
+
this.isResendOperationSuccess = response;
|
|
9069
|
+
}), (/**
|
|
9070
|
+
* @param {?} error
|
|
9071
|
+
* @return {?}
|
|
9072
|
+
*/
|
|
9073
|
+
(error) => {
|
|
9074
|
+
this.isResendOperationSuccess = false;
|
|
9075
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
9076
|
+
}));
|
|
9077
|
+
}
|
|
9078
|
+
/**
|
|
9079
|
+
* @param {?} Event
|
|
9080
|
+
* @return {?}
|
|
9081
|
+
*/
|
|
9082
|
+
gotoCasetransationPageCancelBtnClicked(Event) {
|
|
9083
|
+
event.preventDefault();
|
|
9084
|
+
this.viewName = 'refundstatuslist';
|
|
9085
|
+
}
|
|
9086
|
+
/**
|
|
9087
|
+
* @param {?} refundReference
|
|
9088
|
+
* @param {?} refundList
|
|
9089
|
+
* @return {?}
|
|
9090
|
+
*/
|
|
9091
|
+
goToRefundProcessComponent(refundReference, refundList) {
|
|
9092
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
9093
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
9094
|
+
this.paymentLibComponent.isFromPayBubble = true;
|
|
9095
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
9096
|
+
}
|
|
9097
|
+
}
|
|
9098
|
+
RefundStatusComponent.decorators = [
|
|
9099
|
+
{ type: Component, args: [{
|
|
9100
|
+
selector: 'ccpay-refund-status',
|
|
9101
|
+
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n\n <!-- Notification sent details -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Notifications sent</h2>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Sent to</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Sent via</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Actions</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"notificationList\">\n <tr class=\"govuk-table__row\" *ngFor=\"let notification of notificationList; let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{notification.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderParty}}</td>\n <td class=\"govuk-table__cell whitespace-inherit col-40\">\n <div *ngIf=\"notification?.notification_type === 'EMAIL'\">\n <strong>Email</strong><br>\n {{notification?.contact_details?.email}}\n </div>\n <div *ngIf=\"notification?.notification_type === 'LETTER'\">\n <strong>Post</strong><br>\n {{notification?.contact_details?.address_line}} {{notification?.contact_details?.city}} {{notification?.contact_details?.county}} {{notification?.contact_details?.country}} {{notification?.contact_details?.postal_code}}\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i === 0\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a> | <a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i > 0\"> </td>\n\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"!notificationList\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\" colspan=\"4\">No record found ... </td>\n </tr>\n </tbody>\n </table> \n </div>\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div *ngIf=\"refundButtonState==='Update required'\" >\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Change refund details</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for return</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage(refundlist?.reason)\" *ngIf=\"refundlist?.reason !== 'Retrospective remission' && refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount ? changedAmount : refundlist?.amount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n <a class=\"govuk-link\" href=\"Javascript:void(0)\" *ngIf=\"refundlist?.contact_details !=null\" class=\"govuk-link right\" (click)=\"gotoEditDetailsPage(refundlist?.contact_details)\">\n Change\n </a>\n </td>\n </tr> \n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefundpage1' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromRefundStatusPage] = \"true\"\n [changeRefundReason]= \"changeRefundReason\" [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\" [refundPaymentReference]= \"refundlist?.payment_reference\" ></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromServiceRequestPage] = \"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" [isFromRefundStatusPage]=\"true\" (refundListAmount)=\"getRefundAmount($event)\" (refundFees)=\"getRefundFees($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isResendOperationSuccess\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Notification sent\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{ refundlist?.refund_reference}} </strong></p>\n </div>\n\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewName === 'refundEditView' && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Edit contact details</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span class=\"govuk-hint font-size-19px\">\n Refund reference: {{ refundlist?.refund_reference}}\n </span>\n <ccpay-contact-details\n [isEditOperationInRefundList] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetailsInFefundsList)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoCasetransationPageCancelBtnClicked($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewName === 'revieweditdetailsconfirmationpage' && !isResendOperationSuccess && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSCHECKANDANSWERPAGE'> \n <h1 class=\"govuk-heading-l\">Check your answers</h1>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Refund reference\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ refundlist?.refund_reference}}\n </dd>\n <span class=\"govuk-summary-list__actions\"></span> \n </div>\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Send via\n <br/>\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage(addressDetails)\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage(addressDetails)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"submitEditDetail()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Send notification\n </button>\n </div>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n",
|
|
9102
|
+
styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-40{width:40%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.font-size-19px{font-size:19px}.white{color:#fff}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}.contactDetails-width{width:70%}"]
|
|
9103
|
+
}] }
|
|
9104
|
+
];
|
|
9105
|
+
/** @nocollapse */
|
|
9106
|
+
RefundStatusComponent.ctorParameters = () => [
|
|
9107
|
+
{ type: FormBuilder },
|
|
9108
|
+
{ type: RefundsService },
|
|
9109
|
+
{ type: NotificationService },
|
|
9110
|
+
{ type: PaymentLibComponent },
|
|
9111
|
+
{ type: OrderslistService },
|
|
9112
|
+
{ type: PaymentViewService }
|
|
9113
|
+
];
|
|
9114
|
+
RefundStatusComponent.propDecorators = {
|
|
9115
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
9116
|
+
isOldPcipalOff: [{ type: Input }],
|
|
9117
|
+
isNewPcipalOff: [{ type: Input }],
|
|
9118
|
+
ccdCaseNumber: [{ type: Input }],
|
|
9119
|
+
isTurnOff: [{ type: Input }],
|
|
9120
|
+
orderParty: [{ type: Input }]
|
|
9121
|
+
};
|
|
9122
|
+
|
|
9123
|
+
/**
|
|
9124
|
+
* @fileoverview added by tsickle
|
|
9125
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9126
|
+
*/
|
|
9127
|
+
class ServiceRequestComponent {
|
|
9128
|
+
/**
|
|
9129
|
+
* @param {?} paymentLibComponent
|
|
9130
|
+
* @param {?} paymentViewService
|
|
9131
|
+
* @param {?} OrderslistService
|
|
9132
|
+
* @param {?} cd
|
|
9133
|
+
* @param {?} router
|
|
9134
|
+
*/
|
|
9135
|
+
constructor(paymentLibComponent, paymentViewService, OrderslistService$$1, cd, router) {
|
|
9136
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
9137
|
+
this.paymentViewService = paymentViewService;
|
|
9138
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9139
|
+
this.cd = cd;
|
|
9140
|
+
this.router = router;
|
|
9141
|
+
this.goToServiceRquestComponent = new EventEmitter();
|
|
9142
|
+
this.paymentGroups = [];
|
|
9143
|
+
this.payments = [];
|
|
9144
|
+
this.nonPayments = [];
|
|
9145
|
+
this.allPayments = [];
|
|
7794
9146
|
this.remissions = [];
|
|
7795
|
-
this.fees = [];
|
|
7796
9147
|
this.isRefundRemission = true;
|
|
7797
9148
|
this.isAddFeeBtnEnabled = true;
|
|
7798
9149
|
this.isExceptionRecord = false;
|
|
@@ -7812,33 +9163,14 @@ class ServiceRequestComponent {
|
|
|
7812
9163
|
this.isAddRemissionBtnEnabled = false;
|
|
7813
9164
|
this.isRefundRemissionBtnEnable = false;
|
|
7814
9165
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
7815
|
-
this.
|
|
7816
|
-
* @return {?}
|
|
7817
|
-
*/
|
|
7818
|
-
() => {
|
|
7819
|
-
return this.allowedRolesToAccessRefund.some((/**
|
|
7820
|
-
* @param {?} role
|
|
7821
|
-
* @return {?}
|
|
7822
|
-
*/
|
|
7823
|
-
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
7824
|
-
});
|
|
7825
|
-
this.allowFurtherAccessAfter4Days = (/**
|
|
7826
|
-
* @param {?} payment
|
|
7827
|
-
* @return {?}
|
|
7828
|
-
*/
|
|
7829
|
-
(payment) => {
|
|
7830
|
-
if (payment !== null && payment !== undefined) {
|
|
7831
|
-
/** @type {?} */
|
|
7832
|
-
let tmp4DayAgo = new Date();
|
|
7833
|
-
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
7834
|
-
return tmp4DayAgo >= new Date(payment.date_created);
|
|
7835
|
-
}
|
|
7836
|
-
});
|
|
9166
|
+
this.isContinueBtnDisabled = true;
|
|
7837
9167
|
}
|
|
7838
9168
|
/**
|
|
7839
9169
|
* @return {?}
|
|
7840
9170
|
*/
|
|
7841
9171
|
ngOnInit() {
|
|
9172
|
+
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
9173
|
+
this.isServiceRequest = 'false';
|
|
7842
9174
|
if (this.viewStatus === undefined) {
|
|
7843
9175
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
7844
9176
|
}
|
|
@@ -7886,9 +9218,15 @@ class ServiceRequestComponent {
|
|
|
7886
9218
|
(data) => this.orderTotalPayments = data));
|
|
7887
9219
|
}
|
|
7888
9220
|
}
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
9221
|
+
if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.TAKEPAYMENT) {
|
|
9222
|
+
this.isServiceRequest = 'false';
|
|
9223
|
+
}
|
|
9224
|
+
}
|
|
9225
|
+
/**
|
|
9226
|
+
* @return {?}
|
|
9227
|
+
*/
|
|
9228
|
+
goToServiceRequestPage() {
|
|
9229
|
+
this.goToServiceRquestComponent.emit();
|
|
7892
9230
|
}
|
|
7893
9231
|
/**
|
|
7894
9232
|
* @param {?} event
|
|
@@ -7904,21 +9242,22 @@ class ServiceRequestComponent {
|
|
|
7904
9242
|
if (this.takePayment) {
|
|
7905
9243
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
7906
9244
|
}
|
|
7907
|
-
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
9245
|
+
//this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
7908
9246
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
9247
|
+
if (this.isServiceRequest !== 'false') {
|
|
9248
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9249
|
+
}
|
|
7909
9250
|
this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7910
9251
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7911
9252
|
this.resetOrderData();
|
|
7912
|
-
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7913
|
-
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7914
|
-
// this.OrderslistService.setpaymentPageView({ method: this.payment.method, payment_group_reference: this.paymentGroupRef, reference: this.payment.reference });
|
|
7915
|
-
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7916
|
-
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7917
9253
|
/** @type {?} */
|
|
7918
9254
|
let partUrl = this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7919
9255
|
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7920
|
-
|
|
9256
|
+
if (this.isServiceRequest === 'false') {
|
|
9257
|
+
partUrl += this.paymentLibComponent.TAKEPAYMENT ? '&takePayment=true' : '&takePayment=false';
|
|
9258
|
+
}
|
|
7921
9259
|
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
9260
|
+
partUrl += this.isServiceRequest !== 'false' ? '&servicerequest=true' : '&servicerequest=false';
|
|
7922
9261
|
partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
7923
9262
|
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7924
9263
|
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
@@ -7931,62 +9270,12 @@ class ServiceRequestComponent {
|
|
|
7931
9270
|
this.router.onSameUrlNavigation = 'reload';
|
|
7932
9271
|
this.router.navigateByUrl(url);
|
|
7933
9272
|
}
|
|
7934
|
-
/**
|
|
7935
|
-
* @param {?} feeCode
|
|
7936
|
-
* @return {?}
|
|
7937
|
-
*/
|
|
7938
|
-
chkForAddRemission(feeCode) {
|
|
7939
|
-
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
7940
|
-
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
7941
|
-
for (const remission of this.orderDetail[0]['remissions']) {
|
|
7942
|
-
if (remission.fee_code === feeCode) {
|
|
7943
|
-
return false;
|
|
7944
|
-
}
|
|
7945
|
-
}
|
|
7946
|
-
}
|
|
7947
|
-
return true;
|
|
7948
|
-
}
|
|
7949
|
-
else {
|
|
7950
|
-
return false;
|
|
7951
|
-
}
|
|
7952
|
-
}
|
|
7953
|
-
/**
|
|
7954
|
-
* @return {?}
|
|
7955
|
-
*/
|
|
7956
|
-
chkForPBAPayment() {
|
|
7957
|
-
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
7958
|
-
this.orderDetail.forEach((/**
|
|
7959
|
-
* @param {?} orderDetail
|
|
7960
|
-
* @return {?}
|
|
7961
|
-
*/
|
|
7962
|
-
orderDetail => {
|
|
7963
|
-
if (orderDetail.payments) {
|
|
7964
|
-
orderDetail.payments.forEach((/**
|
|
7965
|
-
* @param {?} payment
|
|
7966
|
-
* @return {?}
|
|
7967
|
-
*/
|
|
7968
|
-
payment => {
|
|
7969
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
7970
|
-
this.paymentLibComponent.paymentReference = payment.reference;
|
|
7971
|
-
this.isPBA = true;
|
|
7972
|
-
}
|
|
7973
|
-
}));
|
|
7974
|
-
}
|
|
7975
|
-
}));
|
|
7976
|
-
if (this.isPBA) {
|
|
7977
|
-
return true;
|
|
7978
|
-
}
|
|
7979
|
-
else {
|
|
7980
|
-
return false;
|
|
7981
|
-
}
|
|
7982
|
-
}
|
|
7983
|
-
}
|
|
7984
9273
|
/**
|
|
7985
9274
|
* @param {?} fee
|
|
7986
9275
|
* @return {?}
|
|
7987
9276
|
*/
|
|
7988
9277
|
addRemission(fee) {
|
|
7989
|
-
if (this.
|
|
9278
|
+
if (this.chkIsAddRemissionBtnEnable(fee)) {
|
|
7990
9279
|
this.feeId = fee;
|
|
7991
9280
|
this.viewStatus = 'addremission';
|
|
7992
9281
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -8002,8 +9291,8 @@ class ServiceRequestComponent {
|
|
|
8002
9291
|
*/
|
|
8003
9292
|
paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
|
|
8004
9293
|
this.payment = this.paymentGroup.payments[0];
|
|
8005
|
-
//
|
|
8006
|
-
//
|
|
9294
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9295
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
8007
9296
|
}), (/**
|
|
8008
9297
|
* @param {?} error
|
|
8009
9298
|
* @return {?}
|
|
@@ -8018,9 +9307,8 @@ class ServiceRequestComponent {
|
|
|
8018
9307
|
* @return {?}
|
|
8019
9308
|
*/
|
|
8020
9309
|
addRefundForRemission(payment, remission, fees) {
|
|
8021
|
-
this.
|
|
8022
|
-
this.payment
|
|
8023
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
9310
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9311
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe((/**
|
|
8024
9312
|
* @param {?} paymentGroup
|
|
8025
9313
|
* @return {?}
|
|
8026
9314
|
*/
|
|
@@ -8030,7 +9318,7 @@ class ServiceRequestComponent {
|
|
|
8030
9318
|
* @param {?} paymentGroupObj
|
|
8031
9319
|
* @return {?}
|
|
8032
9320
|
*/
|
|
8033
|
-
paymentGroupObj => paymentGroupObj
|
|
9321
|
+
paymentGroupObj => paymentGroupObj.reference === payment.reference));
|
|
8034
9322
|
this.payment = this.paymentGroup.payments[0];
|
|
8035
9323
|
this.remissions = remission;
|
|
8036
9324
|
this.remissionFeeAmt = fees.filter((/**
|
|
@@ -8038,6 +9326,7 @@ class ServiceRequestComponent {
|
|
|
8038
9326
|
* @return {?}
|
|
8039
9327
|
*/
|
|
8040
9328
|
data => data.code === this.remissions['fee_code']))[0].net_amount;
|
|
9329
|
+
this.viewStatus = 'addrefundforremission';
|
|
8041
9330
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
8042
9331
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
8043
9332
|
}), (/**
|
|
@@ -8073,64 +9362,42 @@ class ServiceRequestComponent {
|
|
|
8073
9362
|
this.isRemoveBtnDisabled = false;
|
|
8074
9363
|
}));
|
|
8075
9364
|
}
|
|
8076
|
-
/**
|
|
8077
|
-
* @param {?} payment
|
|
8078
|
-
* @return {?}
|
|
8079
|
-
*/
|
|
8080
|
-
chkIssueRefundBtnEnable(payment) {
|
|
8081
|
-
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
8082
|
-
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
8083
|
-
this.isIssueRefunfBtnEnable = true;
|
|
8084
|
-
}
|
|
8085
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
8086
|
-
return true;
|
|
8087
|
-
}
|
|
8088
|
-
else {
|
|
8089
|
-
return false;
|
|
8090
|
-
}
|
|
8091
|
-
}
|
|
8092
|
-
/**
|
|
8093
|
-
* @return {?}
|
|
8094
|
-
*/
|
|
8095
|
-
chkIsRefundRemissionBtnEnable() {
|
|
8096
|
-
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
8097
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8098
|
-
this.orderDetail.forEach((/**
|
|
8099
|
-
* @param {?} orderDetail
|
|
8100
|
-
* @return {?}
|
|
8101
|
-
*/
|
|
8102
|
-
orderDetail => {
|
|
8103
|
-
if (orderDetail.payments) {
|
|
8104
|
-
orderDetail.payments.forEach((/**
|
|
8105
|
-
* @param {?} payment
|
|
8106
|
-
* @return {?}
|
|
8107
|
-
*/
|
|
8108
|
-
payment => {
|
|
8109
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
8110
|
-
this.isRefundRemissionBtnEnable = true;
|
|
8111
|
-
}
|
|
8112
|
-
}));
|
|
8113
|
-
}
|
|
8114
|
-
}));
|
|
8115
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
8116
|
-
return true;
|
|
8117
|
-
}
|
|
8118
|
-
else {
|
|
8119
|
-
return false;
|
|
8120
|
-
}
|
|
8121
|
-
}
|
|
8122
|
-
}
|
|
8123
9365
|
/**
|
|
8124
9366
|
* @param {?} payment
|
|
8125
9367
|
* @return {?}
|
|
8126
9368
|
*/
|
|
8127
9369
|
issueRefund(payment) {
|
|
8128
9370
|
if (payment !== null && payment !== undefined) {
|
|
8129
|
-
if (this.
|
|
8130
|
-
this.
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
9371
|
+
if (this.chkIsIssueRefundBtnEnable(payment)) {
|
|
9372
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe((/**
|
|
9373
|
+
* @param {?} paymentGroup
|
|
9374
|
+
* @return {?}
|
|
9375
|
+
*/
|
|
9376
|
+
paymentGroup => {
|
|
9377
|
+
paymentGroup.payments = paymentGroup.payments.filter((/**
|
|
9378
|
+
* @param {?} paymentGroupObj
|
|
9379
|
+
* @return {?}
|
|
9380
|
+
*/
|
|
9381
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(payment.reference)));
|
|
9382
|
+
if (payment.over_payment > 0) {
|
|
9383
|
+
this.viewStatus = '';
|
|
9384
|
+
this.payment = payment;
|
|
9385
|
+
this.paymentGroupList = paymentGroup;
|
|
9386
|
+
this.viewCompStatus = 'overpayment';
|
|
9387
|
+
}
|
|
9388
|
+
else {
|
|
9389
|
+
this.viewStatus = 'issuerefund';
|
|
9390
|
+
this.viewCompStatus = '';
|
|
9391
|
+
this.paymentFees = paymentGroup.fees;
|
|
9392
|
+
this.payment = payment;
|
|
9393
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9394
|
+
this.isRefundRemission = true;
|
|
9395
|
+
}
|
|
9396
|
+
}), (/**
|
|
9397
|
+
* @param {?} error
|
|
9398
|
+
* @return {?}
|
|
9399
|
+
*/
|
|
9400
|
+
(error) => this.errorMessage = error));
|
|
8134
9401
|
}
|
|
8135
9402
|
}
|
|
8136
9403
|
}
|
|
@@ -8162,6 +9429,42 @@ class ServiceRequestComponent {
|
|
|
8162
9429
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
8163
9430
|
this.viewStatus = 'payment-view';
|
|
8164
9431
|
}
|
|
9432
|
+
/**
|
|
9433
|
+
* @param {?} payment
|
|
9434
|
+
* @return {?}
|
|
9435
|
+
*/
|
|
9436
|
+
chkIsIssueRefundBtnEnable(payment) {
|
|
9437
|
+
if (payment !== null && payment !== undefined) {
|
|
9438
|
+
return payment.issue_refund && payment.refund_enable;
|
|
9439
|
+
}
|
|
9440
|
+
else {
|
|
9441
|
+
return false;
|
|
9442
|
+
}
|
|
9443
|
+
}
|
|
9444
|
+
/**
|
|
9445
|
+
* @param {?} remission
|
|
9446
|
+
* @return {?}
|
|
9447
|
+
*/
|
|
9448
|
+
chkIsAddRefundBtnEnable(remission) {
|
|
9449
|
+
if (remission !== null && remission !== undefined) {
|
|
9450
|
+
return remission.add_refund;
|
|
9451
|
+
}
|
|
9452
|
+
else {
|
|
9453
|
+
return false;
|
|
9454
|
+
}
|
|
9455
|
+
}
|
|
9456
|
+
/**
|
|
9457
|
+
* @param {?} fee
|
|
9458
|
+
* @return {?}
|
|
9459
|
+
*/
|
|
9460
|
+
chkIsAddRemissionBtnEnable(fee) {
|
|
9461
|
+
if (fee !== null && fee !== undefined) {
|
|
9462
|
+
return fee.add_remission && fee.remission_enable;
|
|
9463
|
+
}
|
|
9464
|
+
else {
|
|
9465
|
+
return false;
|
|
9466
|
+
}
|
|
9467
|
+
}
|
|
8165
9468
|
/**
|
|
8166
9469
|
* @return {?}
|
|
8167
9470
|
*/
|
|
@@ -8175,12 +9478,132 @@ class ServiceRequestComponent {
|
|
|
8175
9478
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8176
9479
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8177
9480
|
}
|
|
9481
|
+
/**
|
|
9482
|
+
* @param {?} paymentType
|
|
9483
|
+
* @return {?}
|
|
9484
|
+
*/
|
|
9485
|
+
selectPymentOption(paymentType) {
|
|
9486
|
+
this.paymentType = paymentType;
|
|
9487
|
+
this.isContinueBtnDisabled = false;
|
|
9488
|
+
}
|
|
9489
|
+
/**
|
|
9490
|
+
* @return {?}
|
|
9491
|
+
*/
|
|
9492
|
+
goToPaymentViewComp() {
|
|
9493
|
+
this.viewCompStatus = '';
|
|
9494
|
+
this.viewStatus = 'paymentview';
|
|
9495
|
+
}
|
|
9496
|
+
/**
|
|
9497
|
+
* @param {?} paymentgrp
|
|
9498
|
+
* @return {?}
|
|
9499
|
+
*/
|
|
9500
|
+
continuePayment(paymentgrp) {
|
|
9501
|
+
if (this.paymentType === 'op') {
|
|
9502
|
+
this.isFullyRefund = false;
|
|
9503
|
+
this.viewStatus = '';
|
|
9504
|
+
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
9505
|
+
}
|
|
9506
|
+
else if (this.paymentType === 'fp') {
|
|
9507
|
+
this.isFullyRefund = true;
|
|
9508
|
+
this.paymentGroupList = paymentgrp;
|
|
9509
|
+
this.viewStatus = 'issuerefund';
|
|
9510
|
+
this.viewCompStatus = "";
|
|
9511
|
+
this.isRefundRemission = true;
|
|
9512
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
9513
|
+
this.isFromPaymentDetailPage = true;
|
|
9514
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
9515
|
+
}
|
|
9516
|
+
}
|
|
9517
|
+
/**
|
|
9518
|
+
* @param {?} obj
|
|
9519
|
+
* @return {?}
|
|
9520
|
+
*/
|
|
9521
|
+
getContactDetails(obj) {
|
|
9522
|
+
this.contactDetailsObj = obj;
|
|
9523
|
+
this.viewStatus = '';
|
|
9524
|
+
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
9525
|
+
}
|
|
9526
|
+
/**
|
|
9527
|
+
* @param {?} event
|
|
9528
|
+
* @return {?}
|
|
9529
|
+
*/
|
|
9530
|
+
gotoPaymentSelectPage(event) {
|
|
9531
|
+
event.preventDefault();
|
|
9532
|
+
this.viewStatus = '';
|
|
9533
|
+
this.viewCompStatus = 'overpayment';
|
|
9534
|
+
}
|
|
9535
|
+
/**
|
|
9536
|
+
* @param {?=} note
|
|
9537
|
+
* @return {?}
|
|
9538
|
+
*/
|
|
9539
|
+
gotoAddressPage(note) {
|
|
9540
|
+
if (note) {
|
|
9541
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
9542
|
+
}
|
|
9543
|
+
this.errorMessage = '';
|
|
9544
|
+
this.viewStatus = '';
|
|
9545
|
+
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
9546
|
+
}
|
|
9547
|
+
/**
|
|
9548
|
+
* @return {?}
|
|
9549
|
+
*/
|
|
9550
|
+
processRefund() {
|
|
9551
|
+
this.isConfirmationBtnDisabled = true;
|
|
9552
|
+
this.errorMessage = '';
|
|
9553
|
+
/** @type {?} */
|
|
9554
|
+
const obj = this.paymentGroupList.fees[0];
|
|
9555
|
+
this.fees = [{ id: obj.id,
|
|
9556
|
+
code: obj.code,
|
|
9557
|
+
version: obj.version,
|
|
9558
|
+
apportion_amount: obj.apportion_amount,
|
|
9559
|
+
calculated_amount: obj.calculated_amount,
|
|
9560
|
+
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
9561
|
+
volume: obj.volume,
|
|
9562
|
+
refund_amount: this.getOverPaymentValue() }];
|
|
9563
|
+
/** @type {?} */
|
|
9564
|
+
const requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
9565
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
9566
|
+
* @param {?} response
|
|
9567
|
+
* @return {?}
|
|
9568
|
+
*/
|
|
9569
|
+
response => {
|
|
9570
|
+
if (JSON.parse(response)) {
|
|
9571
|
+
this.viewCompStatus = '';
|
|
9572
|
+
this.viewStatus = 'refundconfirmationpage';
|
|
9573
|
+
this.refundReference = JSON.parse(response).refund_reference;
|
|
9574
|
+
this.refundAmount = JSON.parse(response).refund_amount;
|
|
9575
|
+
}
|
|
9576
|
+
}), (/**
|
|
9577
|
+
* @param {?} error
|
|
9578
|
+
* @return {?}
|
|
9579
|
+
*/
|
|
9580
|
+
(error) => {
|
|
9581
|
+
this.errorMessage = error;
|
|
9582
|
+
this.isConfirmationBtnDisabled = false;
|
|
9583
|
+
this.cd.detectChanges();
|
|
9584
|
+
}));
|
|
9585
|
+
}
|
|
9586
|
+
/**
|
|
9587
|
+
* @return {?}
|
|
9588
|
+
*/
|
|
9589
|
+
getOverPaymentValue() {
|
|
9590
|
+
/** @type {?} */
|
|
9591
|
+
let feesOverPayment = 0;
|
|
9592
|
+
this.paymentGroupList.fees.forEach((/**
|
|
9593
|
+
* @param {?} fee
|
|
9594
|
+
* @return {?}
|
|
9595
|
+
*/
|
|
9596
|
+
fee => {
|
|
9597
|
+
feesOverPayment += fee.over_payment;
|
|
9598
|
+
}));
|
|
9599
|
+
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
9600
|
+
}
|
|
8178
9601
|
}
|
|
8179
9602
|
ServiceRequestComponent.decorators = [
|
|
8180
9603
|
{ type: Component, args: [{
|
|
8181
9604
|
selector: 'ccpay-service-request',
|
|
8182
|
-
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div> -->\n\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>",
|
|
8183
|
-
styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}"]
|
|
9605
|
+
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[isServiceRequest] = \"isServiceRequest\"\n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n[isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isFullyRefund] = \"isFullyRefund\"\n[fees] = \"paymentFees\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isFromRefundListPage] = \"false\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"isServiceRequest\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>\n\n<div class=\"over-payment\">\n <ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroupList?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComp()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroupList)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n </div>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <ccpay-contact-details \n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table govuk-table-mb\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroupList.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n </div>",
|
|
9606
|
+
styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}#bckLnksize{font-size:16px!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}.over-payment .govuk-table-mb{margin-bottom:20px}.over-payment .contactDetails-width{width:70%}.over-payment .margin-top10px{margin-top:20px}.over-payment .govuk-font19px{font-size:19px!important}.over-payment .margin-top--size{margin-top:-30px}.over-payment .over-payment-alignment{margin-right:10px}.over-payment .govuk-button{font-size:19px;float:left;margin-top:2em}.over-payment td.govuk-table__cell{width:50%;text-align:left}.over-payment .govuk-label--s,.over-payment .govuk-warning-text__text,.over-payment .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.over-payment .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.over-payment .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.over-payment .govuk-button-group{padding-top:2em}.over-payment .heading-medium{margin-top:.875em}.over-payment .heading-large{margin-top:.25em}.over-payment .govuk-panel--confirmation{color:#fff;background:#00703c}.over-payment .govuk-panel__title{font-size:5rem}.over-payment .govuk-body,.over-payment .govuk-body-m{font-size:2.1875rem}.over-payment .govuk-link{cursor:pointer}.over-payment .govuk-radios__conditional{padding-top:12px!important}.over-payment .right{float:right;cursor:pointer}.over-payment .radio{float:right}.over-payment .white{color:#fff}"]
|
|
8184
9607
|
}] }
|
|
8185
9608
|
];
|
|
8186
9609
|
/** @nocollapse */
|
|
@@ -8188,6 +9611,7 @@ ServiceRequestComponent.ctorParameters = () => [
|
|
|
8188
9611
|
{ type: PaymentLibComponent },
|
|
8189
9612
|
{ type: PaymentViewService },
|
|
8190
9613
|
{ type: OrderslistService },
|
|
9614
|
+
{ type: ChangeDetectorRef },
|
|
8191
9615
|
{ type: Router }
|
|
8192
9616
|
];
|
|
8193
9617
|
ServiceRequestComponent.propDecorators = {
|
|
@@ -8202,15 +9626,243 @@ ServiceRequestComponent.propDecorators = {
|
|
|
8202
9626
|
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
8203
9627
|
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
8204
9628
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
9629
|
+
paymentGroupList: [{ type: Input, args: ['paymentGroupList',] }],
|
|
8205
9630
|
takePayment: [{ type: Input, args: ['takePayment',] }],
|
|
8206
|
-
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }]
|
|
9631
|
+
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }],
|
|
9632
|
+
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
9633
|
+
goToServiceRquestComponent: [{ type: Output }]
|
|
9634
|
+
};
|
|
9635
|
+
|
|
9636
|
+
/**
|
|
9637
|
+
* @fileoverview added by tsickle
|
|
9638
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9639
|
+
*/
|
|
9640
|
+
class IserviceRequestCardPayment {
|
|
9641
|
+
/**
|
|
9642
|
+
* @param {?} amount
|
|
9643
|
+
*/
|
|
9644
|
+
constructor(amount) {
|
|
9645
|
+
this.amount = amount;
|
|
9646
|
+
this.currency = 'GBP';
|
|
9647
|
+
this.language = 'string';
|
|
9648
|
+
}
|
|
9649
|
+
}
|
|
9650
|
+
|
|
9651
|
+
/**
|
|
9652
|
+
* @fileoverview added by tsickle
|
|
9653
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9654
|
+
*/
|
|
9655
|
+
class IserviceRequestPbaPayment {
|
|
9656
|
+
/**
|
|
9657
|
+
* @param {?} account_number
|
|
9658
|
+
* @param {?} amount
|
|
9659
|
+
* @param {?} customer_reference
|
|
9660
|
+
* @param {?} orgName
|
|
9661
|
+
*/
|
|
9662
|
+
constructor(account_number, amount, customer_reference, orgName) {
|
|
9663
|
+
this.account_number = account_number;
|
|
9664
|
+
this.amount = amount;
|
|
9665
|
+
this.currency = 'GBP';
|
|
9666
|
+
this.customer_reference = customer_reference;
|
|
9667
|
+
this.organisation_name = orgName;
|
|
9668
|
+
}
|
|
9669
|
+
}
|
|
9670
|
+
|
|
9671
|
+
/**
|
|
9672
|
+
* @fileoverview added by tsickle
|
|
9673
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9674
|
+
*/
|
|
9675
|
+
class PbaPaymentComponent {
|
|
9676
|
+
/**
|
|
9677
|
+
* @param {?} paymentLibComponent
|
|
9678
|
+
* @param {?} paymentViewService
|
|
9679
|
+
*/
|
|
9680
|
+
constructor(paymentLibComponent, paymentViewService) {
|
|
9681
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
9682
|
+
this.paymentViewService = paymentViewService;
|
|
9683
|
+
this.isPBAAccountHold = false;
|
|
9684
|
+
this.isCardPaymentSuccess = true;
|
|
9685
|
+
this.isInSufficiantFund = false;
|
|
9686
|
+
this.isPBAAccountNotExist = false;
|
|
9687
|
+
this.isPBAServerError = false;
|
|
9688
|
+
this.isGetPBAAccountSucceed = false;
|
|
9689
|
+
this.selectedPbaAccount = '';
|
|
9690
|
+
this.pbaAccountRef = '';
|
|
9691
|
+
this.isPbaAccountSelected = false;
|
|
9692
|
+
this.isCardPaymentSelected = false;
|
|
9693
|
+
this.isPBADropdownSelected = false;
|
|
9694
|
+
this.isContinueButtondisabled = true;
|
|
9695
|
+
this.isPBAAccountPaymentSuccess = false;
|
|
9696
|
+
this.orgName = '';
|
|
9697
|
+
}
|
|
9698
|
+
/**
|
|
9699
|
+
* @return {?}
|
|
9700
|
+
*/
|
|
9701
|
+
ngOnInit() {
|
|
9702
|
+
this.pbaPayOrderRef = this.paymentLibComponent.pbaPayOrderRef;
|
|
9703
|
+
this.viewStatus = 'pba-payment';
|
|
9704
|
+
this.errorMsg = null;
|
|
9705
|
+
this.paymentViewService.getPBAaccountDetails()
|
|
9706
|
+
.subscribe((/**
|
|
9707
|
+
* @param {?} result
|
|
9708
|
+
* @return {?}
|
|
9709
|
+
*/
|
|
9710
|
+
result => {
|
|
9711
|
+
this.isGetPBAAccountSucceed = true;
|
|
9712
|
+
this.orgName = result.organisationEntityResponse.name;
|
|
9713
|
+
this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
|
|
9714
|
+
}), (/**
|
|
9715
|
+
* @param {?} error
|
|
9716
|
+
* @return {?}
|
|
9717
|
+
*/
|
|
9718
|
+
error => {
|
|
9719
|
+
this.errorMsg = error;
|
|
9720
|
+
}));
|
|
9721
|
+
}
|
|
9722
|
+
/**
|
|
9723
|
+
* @param {?} args
|
|
9724
|
+
* @return {?}
|
|
9725
|
+
*/
|
|
9726
|
+
selectpbaaccount(args) {
|
|
9727
|
+
if (args.currentTarget.id === 'pbaAccountNumber') {
|
|
9728
|
+
this.isPBADropdownSelected = true;
|
|
9729
|
+
this.selectedPbaAccount = args.target.value;
|
|
9730
|
+
}
|
|
9731
|
+
if (args.currentTarget.id === 'pbaAccountRef') {
|
|
9732
|
+
this.pbaAccountRef = args.target.value;
|
|
9733
|
+
}
|
|
9734
|
+
if (this.selectedPbaAccount !== '' && this.pbaAccountRef !== "") {
|
|
9735
|
+
this.isContinueButtondisabled = false;
|
|
9736
|
+
}
|
|
9737
|
+
else {
|
|
9738
|
+
this.isContinueButtondisabled = true;
|
|
9739
|
+
}
|
|
9740
|
+
}
|
|
9741
|
+
/**
|
|
9742
|
+
* @return {?}
|
|
9743
|
+
*/
|
|
9744
|
+
saveAndContinue() {
|
|
9745
|
+
if (this.isPbaAccountSelected) {
|
|
9746
|
+
this.isInSufficiantFund = false;
|
|
9747
|
+
this.isPBAAccountNotExist = false;
|
|
9748
|
+
this.isPBAServerError = false;
|
|
9749
|
+
this.isPBAAccountPaymentSuccess = false;
|
|
9750
|
+
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
9751
|
+
/** @type {?} */
|
|
9752
|
+
const requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
|
|
9753
|
+
this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
9754
|
+
.subscribe((/**
|
|
9755
|
+
* @param {?} r
|
|
9756
|
+
* @return {?}
|
|
9757
|
+
*/
|
|
9758
|
+
r => {
|
|
9759
|
+
try {
|
|
9760
|
+
this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
9761
|
+
}
|
|
9762
|
+
catch (e) {
|
|
9763
|
+
this.pbaAccountrPaymentResult = r;
|
|
9764
|
+
}
|
|
9765
|
+
this.isPBAAccountPaymentSuccess = true;
|
|
9766
|
+
}), (/**
|
|
9767
|
+
* @param {?} e
|
|
9768
|
+
* @return {?}
|
|
9769
|
+
*/
|
|
9770
|
+
e => {
|
|
9771
|
+
if (e.status == '402') {
|
|
9772
|
+
this.isInSufficiantFund = true;
|
|
9773
|
+
}
|
|
9774
|
+
else if (e.status == '410') {
|
|
9775
|
+
this.isPBAAccountNotExist = true;
|
|
9776
|
+
}
|
|
9777
|
+
else if (e.status == '412') {
|
|
9778
|
+
this.isPBAAccountHold = true;
|
|
9779
|
+
}
|
|
9780
|
+
else {
|
|
9781
|
+
this.isPBAServerError = true;
|
|
9782
|
+
}
|
|
9783
|
+
}));
|
|
9784
|
+
}
|
|
9785
|
+
else {
|
|
9786
|
+
this.isPBAServerError = true;
|
|
9787
|
+
}
|
|
9788
|
+
}
|
|
9789
|
+
else if (this.isCardPaymentSelected) {
|
|
9790
|
+
this.cardPayment();
|
|
9791
|
+
}
|
|
9792
|
+
}
|
|
9793
|
+
/**
|
|
9794
|
+
* @return {?}
|
|
9795
|
+
*/
|
|
9796
|
+
cardPayment() {
|
|
9797
|
+
this.isCardPaymentSuccess = true;
|
|
9798
|
+
/** @type {?} */
|
|
9799
|
+
const requestBody = new IserviceRequestCardPayment(this.pbaPayOrderRef.orderTotalFees);
|
|
9800
|
+
this.paymentViewService.postWays2PayCardPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
9801
|
+
.subscribe((/**
|
|
9802
|
+
* @param {?} result
|
|
9803
|
+
* @return {?}
|
|
9804
|
+
*/
|
|
9805
|
+
result => {
|
|
9806
|
+
/** @type {?} */
|
|
9807
|
+
const paymentUrl = JSON.parse(result).next_url;
|
|
9808
|
+
window.location.href = paymentUrl;
|
|
9809
|
+
}), (/**
|
|
9810
|
+
* @param {?} error
|
|
9811
|
+
* @return {?}
|
|
9812
|
+
*/
|
|
9813
|
+
error => {
|
|
9814
|
+
this.isCardPaymentSuccess = false;
|
|
9815
|
+
}));
|
|
9816
|
+
}
|
|
9817
|
+
/**
|
|
9818
|
+
* @param {?} type
|
|
9819
|
+
* @return {?}
|
|
9820
|
+
*/
|
|
9821
|
+
selectPaymentMethod(type) {
|
|
9822
|
+
if (type === 'PBA') {
|
|
9823
|
+
this.isPbaAccountSelected = true;
|
|
9824
|
+
this.isCardPaymentSelected = false;
|
|
9825
|
+
this.isPBADropdownSelected = false;
|
|
9826
|
+
this.isContinueButtondisabled = true;
|
|
9827
|
+
this.selectedPbaAccount = null;
|
|
9828
|
+
}
|
|
9829
|
+
else if (type === 'CARD') {
|
|
9830
|
+
this.isPbaAccountSelected = false;
|
|
9831
|
+
this.isCardPaymentSelected = true;
|
|
9832
|
+
this.isPBADropdownSelected = false;
|
|
9833
|
+
this.isContinueButtondisabled = false;
|
|
9834
|
+
}
|
|
9835
|
+
}
|
|
9836
|
+
/**
|
|
9837
|
+
* @return {?}
|
|
9838
|
+
*/
|
|
9839
|
+
gotoCasetransationPage() {
|
|
9840
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
9841
|
+
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
9842
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
9843
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9844
|
+
}
|
|
9845
|
+
}
|
|
9846
|
+
PbaPaymentComponent.decorators = [
|
|
9847
|
+
{ type: Component, args: [{
|
|
9848
|
+
selector: 'ccpay-pba-payment',
|
|
9849
|
+
template: "<ng-container *ngIf=\"viewStatus === 'pba-payment'\">\n\n <div class=\"govuk-breadcrumbs\" *ngIf=\"!errorMsg && !isPBAAccountPaymentSuccess && !isCardPaymentSuccess\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-back-link pba-payments-16-font\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"pba-payment\" *ngIf=\"(pbaAccountList?.length > 0 || errorMsg) && !isInSufficiantFund && !isPBAAccountNotExist && !isPBAServerError && !isPBAAccountHold && !isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n \n <div *ngIf=\"errorMsg\" class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\" >\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account cannot be found.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you know your organisation has a PBA, try again.\n </li>\n <li class=\"pba-payments-error-16-font\">\n You can also pay by credit or debit card.\n </li>\n </ul>\n </div>\n </div>\n <!-- <h1 class=\"heading-medium margin-top-10-px\">Pay fee using Payment by Account (PBA)</h1> -->\n <div class=\"govuk-form-group margin-top-10-px\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\">\n Amount to pay \n </label>\n <span class=\"pba-payments-19-font\">{{pbaPayOrderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</span>\n </div>\n\n <div class=\"govuk-form-group\" *ngIf=\"!errorMsg\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"contact-hint\">\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"pbaAccount\" name=\"paymentSelection\" type=\"radio\" value=\"PBA\" (click)=\"selectPaymentMethod('PBA')\" data-aria-controls=\"pba-account\">\n <label class=\"govuk-label govuk-radios__label pba-payments-19-font pba-payments-font-bld\" for=\"pbaAccount\">\n Pay fee using Payment by Account (PBA)\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact\" *ngIf=\"isPbaAccountSelected\">\n <div class=\"govuk-form-group pba-payments-select-box--size\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\" for=\"pbaAccountNumber\">\n Select a PBA \n </label>\n <select class=\"form-control short-input\" id=\"pbaAccountNumber\" (change)=\"selectpbaaccount($event)\">\n <option value=\"\" selected='selected'>Select option</option>\n <option *ngFor=\"let pbaAccount of pbaAccountList;\" value=\"{{pbaAccount}}\">{{pbaAccount}}</option>\n </select>\n </div>\n <div class=\"govuk-form-group\" *ngIf=\"!errorMsg && selectedPbaAccount\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-24-font\" for=\"pbaAccountNumber\">\n Enter a reference for your PBA account statements \n </label>\n <div id=\"event-name-hint\" class=\"govuk-hint pba-payments-19-font pba-payment-width\">\n This should be your own unique reference to identify the case. It will appear on your statements.\n </div>\n <input class=\"govuk-input pba-payments-ref-box--size pba-payments-19-font\" id=\"pbaAccountRef\" (change)=\"selectpbaaccount($event)\" name=\"pbaAccountRef\" type=\"text\" aria-describedby=\"pbaAccountRef-hint\">\n </div>\n \n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"cardPayment\" name=\"paymentSelection\" type=\"radio\" value=\"card\" (click)=\"selectPaymentMethod('CARD')\" data-aria-controls=\"card-payment\">\n <label class=\"govuk-label govuk-radios__label pba-payments-19-font pba-payments-font-bld\" for=\"cardPayment\">\n Pay by credit or debit card\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n\n <div class=\"govuk-button--group\" *ngIf=\"errorMsg\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n <div class=\"govuk-button--group\" *ngIf=\"!errorMsg\">\n <button type=\"submit\" [disabled]=\"isContinueButtondisabled\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"saveAndContinue()\">\n <span *ngIf=\"!isPBADropdownSelected\">Continue</span>\n <span *ngIf=\"isPBADropdownSelected\">Confirm payment</span>\n </button>\n </div>\n </div>\n<ng-container *ngIf=\"pbaAccountList?.length <= 0 && !errorMsg && isGetPBAAccountSucceed && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n <h2 class=\"warning-heading-m\">You don\u2019t have a registered PBA.</h2>\n </strong>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Pay by credit or debit card</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n We recommend that you apply to get a new PBA to pay for fees.\n </p>\n <p class=\"govuk-bod ypba-payments-19-font\">\n you can also pay by credit or debit card if you need to pay now\n </p>\n <p class=\"govuk-body\">\n <button type=\"submit\" (click)=\"cardPayment()\" class=\"button pba-payments-19-font pba-payments-20-margin\">\n Pay by card\n </button>\n </p>\n \n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Register an existing PBA with MyHMCTS</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You may find it easier in future to pay by PBA, your organisation administrator will need to \n email <a href=\"mailto: MyHMCTSsupport@justice.gov.uk\">MyHMCTSsupport@justice.gov.uk</a> to ask for your PBA to be registered with your \n MyHMCTS account. You should include your organisation name and PBA number.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n It can then take up to 3 days for your account to be updated. You\u2019ll need to start your claim \n again to pay the fee.\n </p>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Apply to get a new PBA </h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You\u2019ll need to provide details for you and your organisation, including the required credit\n limit for your account.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Once your account has been registered, you\u2019ll need to start your claim again to pay the fee.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Read more information on <a target=\"_blank\" href=\"https://www.gov.uk/guidance/hmcts-payment-by-account-for-online-services\">registering for PBA</a>.\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isInSufficiantFund && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n You don't have enough funds in your PBA account to pay for this fee.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you have already topped up your PBA account, wait up to 24 hours for the new balance to become available.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a> or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAAccountNotExist && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account ({{selectedPbaAccount}}) no longer exists.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font govuk-body-width\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a> or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAAccountHold && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account ({{selectedPbaAccount}}) has been put on hold.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font govuk-body-width\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a> or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAServerError && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel--confirmation pba-payments--confirmation\">\n <h1 class=\"govuk-panel__title pba-payments--title\">\n Payment successful\n </h1>\n <div class=\"govuk-panel__body pba-payments__body\">\n Your payment reference is <br><strong>{{pbaAccountrPaymentResult.payment_reference}}</strong>\n </div>\n </div>\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <!-- <p class=\"govuk-body pba-payments-19-font\">\n you can also <a href=\"javascript:void(0)\" (click)=\"cardPayment()\" >pay by credit or debit card</a>.\n </p> -->\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n</ng-container>\n\n\n\n",
|
|
9850
|
+
styles: [".pba-payments-govuk__label{font-weight:700;line-height:1.31578947}.pba-payments-19-font{font-size:19px}.pba-payments-font-bld{font-weight:700}.pba-payments-16-font{font-size:16px}.pba-payments-24-font{font-size:24px}.pba-payments-20-margin{margin-bottom:20px}.pba-payments-select-box--size{width:40%}.pba-payments-error-box--size{width:80%}.pba-payments-ref-box--size{width:60%}.pba-payments-error-16-font{font-size:16px;line-height:34px}.pba-payments-margin-10{margin-right:10px}.pba-payments-margin-top-10{margin-top:15px}.pba-payments-heading-lg{font-size:40px;font-weight:700;line-height:72px}.pba-payments--confirmation{background:#00703c!important}.pba-payments__body{font-size:36px!important}.pba-payments--title{font-size:48px!important}.warning-heading-m{font-size:29px;font-weight:700}.pba-payment-width{width:75%}.margin-top-10-px{margin-top:10px}.govuk-error-summary:focus{outline:#fd0 solid 3px}.govuk-body-width{width:750px}"]
|
|
9851
|
+
}] }
|
|
9852
|
+
];
|
|
9853
|
+
/** @nocollapse */
|
|
9854
|
+
PbaPaymentComponent.ctorParameters = () => [
|
|
9855
|
+
{ type: PaymentLibComponent },
|
|
9856
|
+
{ type: PaymentViewService }
|
|
9857
|
+
];
|
|
9858
|
+
PbaPaymentComponent.propDecorators = {
|
|
9859
|
+
pbaPayOrderRef: [{ type: Input }]
|
|
8207
9860
|
};
|
|
8208
9861
|
|
|
8209
9862
|
/**
|
|
8210
9863
|
* @fileoverview added by tsickle
|
|
8211
9864
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8212
9865
|
*/
|
|
8213
|
-
// import { PbaPaymentComponent } from './components/pba-payment/pba-payment.component';
|
|
8214
9866
|
class PaymentLibModule {
|
|
8215
9867
|
}
|
|
8216
9868
|
PaymentLibModule.decorators = [
|
|
@@ -8230,7 +9882,8 @@ PaymentLibModule.decorators = [
|
|
|
8230
9882
|
PaymentLibComponent,
|
|
8231
9883
|
PaymentListComponent,
|
|
8232
9884
|
PaymentViewComponent,
|
|
8233
|
-
|
|
9885
|
+
PbaPaymentComponent,
|
|
9886
|
+
ContactDetailsComponent,
|
|
8234
9887
|
ProcessRefundComponent,
|
|
8235
9888
|
RefundListComponent,
|
|
8236
9889
|
CardDetailsComponent,
|
|
@@ -8274,6 +9927,6 @@ PaymentLibModule.decorators = [
|
|
|
8274
9927
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8275
9928
|
*/
|
|
8276
9929
|
|
|
8277
|
-
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as
|
|
9930
|
+
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as ɵbd, AllocatePaymentsComponent as ɵy, CardDetailsComponent as ɵo, CaseTransactionsComponent as ɵbb, ContactDetailsComponent as ɵj, ErrorBannerComponent as ɵbk, FeeSummaryComponent as ɵbc, MarkUnidentifiedPaymentComponent as ɵt, MarkUnsolicitedPaymentComponent as ɵv, PageNotFoundComponent as ɵq, PaymentListComponent as ɵb, PaymentViewComponent as ɵf, PbaDetailsComponent as ɵba, PbaPaymentComponent as ɵi, ProcessRefundComponent as ɵl, ProcessedPaymentsComponent as ɵx, RefundListComponent as ɵn, RefundStatusComponent as ɵbm, ReportsComponent as ɵbi, ServiceRequestComponent as ɵbn, StatusHistoryComponent as ɵr, TableComponent as ɵbl, UnprocessedPaymentsComponent as ɵw, CapitalizePipe as ɵbf, CcdHyphensPipe as ɵbe, keyValuePipe as ɵbg, SanitizeHtmlPipe as ɵbh, BulkScaningPaymentService as ɵu, CardDetailsService as ɵp, CaseTransactionsService as ɵz, NotificationService as ɵk, OrderslistService as ɵa, PaymentListService as ɵc, PaymentViewService as ɵg, RefundsService as ɵm, ErrorHandlerService as ɵe, WebComponentHttpClient as ɵh, ConsoleLoggerService as ɵbo, LoggerService as ɵd, StatusHistoryService as ɵs, XlFileService as ɵbj };
|
|
8278
9931
|
|
|
8279
9932
|
//# sourceMappingURL=hmcts-ccpay-web-component.js.map
|