@hmcts/ccpay-web-component 5.0.1-beta10 → 5.0.1-beta101
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 +8568 -6508
- 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 +42 -38
- package/esm2015/lib/components/add-remission/add-remission.component.js +628 -206
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +68 -40
- package/esm2015/lib/components/contact-details/contact-details.component.js +346 -0
- package/esm2015/lib/components/payment-view/payment-view.component.js +95 -19
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +199 -0
- package/esm2015/lib/components/process-refund/process-refund.component.js +72 -9
- package/esm2015/lib/components/refund-list/refund-list.component.js +6 -12
- package/esm2015/lib/components/refund-status/refund-status.component.js +167 -74
- package/esm2015/lib/components/service-request/service-request.component.js +626 -0
- package/esm2015/lib/components/status-history/status-history.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +26 -9
- package/esm2015/lib/interfaces/IFee.js +3 -1
- package/esm2015/lib/interfaces/IPayment.js +3 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +18 -2
- package/esm2015/lib/payment-lib.component.js +58 -9
- package/esm2015/lib/payment-lib.module.js +8 -4
- package/esm2015/lib/payment-lib.service.js +16 -1
- package/esm2015/lib/services/notification/notification.service.js +85 -0
- package/esm2015/lib/services/orderslist.service.js +193 -1
- package/esm2015/lib/services/payment-view/payment-view.service.js +29 -1
- package/esm2015/lib/services/refunds/refunds.service.js +10 -1
- package/esm2015/lib/services/shared/error-handler.service.js +43 -5
- package/esm5/hmcts-ccpay-web-component.js +42 -38
- package/esm5/lib/components/add-remission/add-remission.component.js +729 -214
- package/esm5/lib/components/case-transactions/case-transactions.component.js +74 -44
- package/esm5/lib/components/contact-details/contact-details.component.js +370 -0
- package/esm5/lib/components/payment-view/payment-view.component.js +99 -19
- package/esm5/lib/components/pba-payment/pba-payment.component.js +216 -0
- package/esm5/lib/components/process-refund/process-refund.component.js +76 -9
- package/esm5/lib/components/refund-list/refund-list.component.js +6 -12
- package/esm5/lib/components/refund-status/refund-status.component.js +198 -85
- package/esm5/lib/components/service-request/service-request.component.js +702 -0
- package/esm5/lib/components/status-history/status-history.component.js +2 -2
- package/esm5/lib/components/table/table.component.js +25 -10
- package/esm5/lib/interfaces/IFee.js +3 -1
- package/esm5/lib/interfaces/IPayment.js +3 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +14 -2
- package/esm5/lib/payment-lib.component.js +54 -7
- package/esm5/lib/payment-lib.module.js +8 -4
- package/esm5/lib/payment-lib.service.js +23 -1
- package/esm5/lib/services/notification/notification.service.js +89 -0
- package/esm5/lib/services/orderslist.service.js +256 -1
- package/esm5/lib/services/payment-view/payment-view.service.js +42 -1
- package/esm5/lib/services/refunds/refunds.service.js +16 -1
- package/esm5/lib/services/shared/error-handler.service.js +43 -5
- package/fesm2015/hmcts-ccpay-web-component.js +2369 -582
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +8434 -6334
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +41 -37
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +44 -3
- package/lib/components/case-transactions/case-transactions.component.d.ts +7 -3
- package/lib/components/contact-details/contact-details.component.d.ts +41 -0
- package/lib/components/payment-view/payment-view.component.d.ts +13 -3
- package/lib/components/pba-payment/pba-payment.component.d.ts +27 -0
- package/lib/components/process-refund/process-refund.component.d.ts +8 -1
- package/lib/components/refund-status/refund-status.component.d.ts +22 -5
- package/lib/components/service-request/service-request.component.d.ts +105 -0
- package/lib/components/table/table.component.d.ts +5 -2
- package/lib/interfaces/IFee.d.ts +1 -0
- package/lib/interfaces/IPayment.d.ts +1 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +6 -1
- package/lib/payment-lib.component.d.ts +19 -1
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/notification/notification.service.d.ts +15 -0
- package/lib/services/orderslist.service.d.ts +34 -0
- package/lib/services/payment-view/payment-view.service.d.ts +6 -2
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { _throw } from 'rxjs/observable/throw';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
4
|
-
import { catchError } from 'rxjs/operators';
|
|
5
|
-
import { get } from 'local-storage';
|
|
6
3
|
import { Meta, DomSanitizer } from '@angular/platform-browser';
|
|
7
4
|
import { Location, formatDate, CommonModule } from '@angular/common';
|
|
8
5
|
import { saveAs } from 'file-saver';
|
|
@@ -12,9 +9,11 @@ import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
|
12
9
|
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
13
10
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
11
|
import { MatInputModule } from '@angular/material/input';
|
|
15
|
-
import {
|
|
12
|
+
import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
13
|
+
import { catchError } from 'rxjs/operators';
|
|
16
14
|
import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
17
|
-
import { Router } from '@angular/router';
|
|
15
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
16
|
+
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* @fileoverview added by tsickle
|
|
@@ -61,6 +60,19 @@ class PaymentLibService {
|
|
|
61
60
|
getRefundsApiRootUrl() {
|
|
62
61
|
return this.REFUNDS_API_ROOT;
|
|
63
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
|
+
}
|
|
64
76
|
}
|
|
65
77
|
PaymentLibService.decorators = [
|
|
66
78
|
{ type: Injectable, args: [{
|
|
@@ -75,19 +87,304 @@ PaymentLibService.ctorParameters = () => [];
|
|
|
75
87
|
* @fileoverview added by tsickle
|
|
76
88
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
77
89
|
*/
|
|
78
|
-
|
|
90
|
+
class OrderslistService {
|
|
91
|
+
constructor() {
|
|
92
|
+
this.ordersList = new BehaviorSubject(null);
|
|
93
|
+
this.refundView = new BehaviorSubject(null);
|
|
94
|
+
this.caseType = new BehaviorSubject("");
|
|
95
|
+
this.getcaseType = this.caseType.asObservable();
|
|
96
|
+
this.feeExists = new BehaviorSubject(null);
|
|
97
|
+
this.getFeeExist = this.feeExists.asObservable();
|
|
98
|
+
this.ccdCaseNumber = new BehaviorSubject("");
|
|
99
|
+
this.getCCDCaseNumberforRefund = this.ccdCaseNumber.asObservable();
|
|
100
|
+
this.isFromServiceRequestPage = new BehaviorSubject(null);
|
|
101
|
+
this.getisFromServiceRequestPage = this.isFromServiceRequestPage.asObservable();
|
|
102
|
+
this.OrderRefId = new BehaviorSubject("");
|
|
103
|
+
this.getOrderRefId = this.OrderRefId.asObservable();
|
|
104
|
+
this.navigationPage = new BehaviorSubject("");
|
|
105
|
+
this.getnavigationPage = this.navigationPage.asObservable();
|
|
106
|
+
this.orderRef = new BehaviorSubject("");
|
|
107
|
+
this.getorderRef = this.orderRef.asObservable();
|
|
108
|
+
this.orderCCDEvent = new BehaviorSubject("");
|
|
109
|
+
this.getorderCCDEvent = this.caseType.asObservable();
|
|
110
|
+
this.orderCreated = new BehaviorSubject(null);
|
|
111
|
+
this.getorderCreated = this.orderCreated.asObservable();
|
|
112
|
+
this.orderParty = new BehaviorSubject("");
|
|
113
|
+
this.getorderParty = this.orderParty.asObservable();
|
|
114
|
+
this.orderRemissionTotal = new BehaviorSubject(null);
|
|
115
|
+
this.getorderRemissionTotal = this.orderRemissionTotal.asObservable();
|
|
116
|
+
this.orderFeesTotal = new BehaviorSubject(null);
|
|
117
|
+
this.getorderFeesTotal = this.orderFeesTotal.asObservable();
|
|
118
|
+
this.orderTotalPayments = new BehaviorSubject(null);
|
|
119
|
+
this.getorderTotalPayments = this.orderTotalPayments.asObservable();
|
|
120
|
+
this.rolesList = new BehaviorSubject(null);
|
|
121
|
+
this.orderDetail = new BehaviorSubject(null);
|
|
122
|
+
this.paymentPageView = new BehaviorSubject(null);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @param {?} orderLevelFees
|
|
126
|
+
* @return {?}
|
|
127
|
+
*/
|
|
128
|
+
setOrdersList(orderLevelFees) {
|
|
129
|
+
this.ordersList.next(Object.assign([], orderLevelFees));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @return {?}
|
|
133
|
+
*/
|
|
134
|
+
getOrdersList() {
|
|
135
|
+
return this.ordersList;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @param {?} refundList
|
|
139
|
+
* @return {?}
|
|
140
|
+
*/
|
|
141
|
+
setRefundView(refundList) {
|
|
142
|
+
this.refundView.next(Object.assign([], refundList));
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @return {?}
|
|
146
|
+
*/
|
|
147
|
+
getRefundView() {
|
|
148
|
+
return this.refundView;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @param {?} caseType
|
|
152
|
+
* @return {?}
|
|
153
|
+
*/
|
|
154
|
+
setCaseType(caseType) {
|
|
155
|
+
this.caseType.next(caseType);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @return {?}
|
|
159
|
+
*/
|
|
160
|
+
getCaseType() {
|
|
161
|
+
return this.caseType;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @param {?} ccdCaseNumber
|
|
165
|
+
* @return {?}
|
|
166
|
+
*/
|
|
167
|
+
setCCDCaseNumber(ccdCaseNumber) {
|
|
168
|
+
this.ccdCaseNumber.next(ccdCaseNumber);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @return {?}
|
|
172
|
+
*/
|
|
173
|
+
getCCDCaseNumber() {
|
|
174
|
+
return this.ccdCaseNumber;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @param {?} feeExists
|
|
178
|
+
* @return {?}
|
|
179
|
+
*/
|
|
180
|
+
setFeeExists(feeExists) {
|
|
181
|
+
this.feeExists.next(feeExists);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @return {?}
|
|
185
|
+
*/
|
|
186
|
+
getFeeExists() {
|
|
187
|
+
return this.feeExists;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @param {?} isFromServiceRequestPage
|
|
191
|
+
* @return {?}
|
|
192
|
+
*/
|
|
193
|
+
setisFromServiceRequestPage(isFromServiceRequestPage) {
|
|
194
|
+
this.isFromServiceRequestPage.next(isFromServiceRequestPage);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @return {?}
|
|
198
|
+
*/
|
|
199
|
+
getisFromServiceRequestPages() {
|
|
200
|
+
return this.isFromServiceRequestPage;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @param {?} OrderRefId
|
|
204
|
+
* @return {?}
|
|
205
|
+
*/
|
|
206
|
+
setOrderRefId(OrderRefId) {
|
|
207
|
+
this.OrderRefId.next(OrderRefId);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @return {?}
|
|
211
|
+
*/
|
|
212
|
+
getSelectedOrderRefId() {
|
|
213
|
+
return this.OrderRefId;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @param {?} navigationPage
|
|
217
|
+
* @return {?}
|
|
218
|
+
*/
|
|
219
|
+
setnavigationPage(navigationPage) {
|
|
220
|
+
this.navigationPage.next(navigationPage);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @return {?}
|
|
224
|
+
*/
|
|
225
|
+
getnavigationPageValue() {
|
|
226
|
+
return this.navigationPage;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @param {?} paymentpageList
|
|
230
|
+
* @return {?}
|
|
231
|
+
*/
|
|
232
|
+
setpaymentPageView(paymentpageList) {
|
|
233
|
+
this.paymentPageView.next(Object.assign([], paymentpageList));
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @return {?}
|
|
237
|
+
*/
|
|
238
|
+
getpaymentPageView() {
|
|
239
|
+
return this.paymentPageView;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @param {?} rolesList
|
|
243
|
+
* @return {?}
|
|
244
|
+
*/
|
|
245
|
+
setUserRolesList(rolesList) {
|
|
246
|
+
this.rolesList.next(Object.assign([], rolesList));
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* @return {?}
|
|
250
|
+
*/
|
|
251
|
+
getUserRolesList() {
|
|
252
|
+
return this.rolesList;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @param {?} orderDetail
|
|
256
|
+
* @return {?}
|
|
257
|
+
*/
|
|
258
|
+
setorderDetail(orderDetail) {
|
|
259
|
+
this.orderDetail.next(Object.assign([], orderDetail));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @return {?}
|
|
263
|
+
*/
|
|
264
|
+
getorderDetail() {
|
|
265
|
+
return this.orderDetail;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @param {?} orderRef
|
|
269
|
+
* @return {?}
|
|
270
|
+
*/
|
|
271
|
+
setOrderRef(orderRef) {
|
|
272
|
+
this.orderRef.next(orderRef);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @return {?}
|
|
276
|
+
*/
|
|
277
|
+
getorderRefs() {
|
|
278
|
+
return this.orderRef;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* @param {?} orderCCDEvent
|
|
282
|
+
* @return {?}
|
|
283
|
+
*/
|
|
284
|
+
setorderCCDEvent(orderCCDEvent) {
|
|
285
|
+
this.orderCCDEvent.next(orderCCDEvent);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* @return {?}
|
|
289
|
+
*/
|
|
290
|
+
getorderCCDEvents() {
|
|
291
|
+
return this.orderCCDEvent;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @param {?} orderCreated
|
|
295
|
+
* @return {?}
|
|
296
|
+
*/
|
|
297
|
+
setorderCreated(orderCreated) {
|
|
298
|
+
this.orderCreated.next(orderCreated);
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* @return {?}
|
|
302
|
+
*/
|
|
303
|
+
getorderCreateds() {
|
|
304
|
+
return this.orderCreated;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @param {?} orderParty
|
|
308
|
+
* @return {?}
|
|
309
|
+
*/
|
|
310
|
+
setorderParty(orderParty) {
|
|
311
|
+
this.orderParty.next(orderParty);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* @return {?}
|
|
315
|
+
*/
|
|
316
|
+
getorderPartys() {
|
|
317
|
+
return this.orderParty;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @param {?} orderRemissionTotal
|
|
321
|
+
* @return {?}
|
|
322
|
+
*/
|
|
323
|
+
setorderRemissionTotal(orderRemissionTotal) {
|
|
324
|
+
this.orderRemissionTotal.next(orderRemissionTotal);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @return {?}
|
|
328
|
+
*/
|
|
329
|
+
getorderRemissionTotals() {
|
|
330
|
+
return this.orderRemissionTotal;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @param {?} orderFeesTotal
|
|
334
|
+
* @return {?}
|
|
335
|
+
*/
|
|
336
|
+
setorderFeesTotal(orderFeesTotal) {
|
|
337
|
+
this.orderFeesTotal.next(orderFeesTotal);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @return {?}
|
|
341
|
+
*/
|
|
342
|
+
getorderFeesTotals() {
|
|
343
|
+
return this.orderFeesTotal;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* @param {?} orderTotalPayments
|
|
347
|
+
* @return {?}
|
|
348
|
+
*/
|
|
349
|
+
setorderTotalPayments(orderTotalPayments) {
|
|
350
|
+
this.orderTotalPayments.next(orderTotalPayments);
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @return {?}
|
|
354
|
+
*/
|
|
355
|
+
getoorderTotalPaymentss() {
|
|
356
|
+
return this.orderTotalPayments;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
OrderslistService.decorators = [
|
|
360
|
+
{ type: Injectable, args: [{
|
|
361
|
+
providedIn: 'root'
|
|
362
|
+
},] }
|
|
363
|
+
];
|
|
364
|
+
/** @nocollapse */
|
|
365
|
+
OrderslistService.ctorParameters = () => [];
|
|
366
|
+
/** @nocollapse */ OrderslistService.ngInjectableDef = defineInjectable({ factory: function OrderslistService_Factory() { return new OrderslistService(); }, token: OrderslistService, providedIn: "root" });
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @fileoverview added by tsickle
|
|
370
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
371
|
+
*/
|
|
79
372
|
class PaymentLibComponent {
|
|
80
|
-
// pbaPayOrderRef: IPayment;
|
|
81
|
-
// isFromServiceRequestPage: boolean;
|
|
82
373
|
/**
|
|
83
374
|
* @param {?} paymentLibService
|
|
84
375
|
* @param {?} cd
|
|
376
|
+
* @param {?} OrderslistService
|
|
85
377
|
*/
|
|
86
|
-
constructor(paymentLibService, cd) {
|
|
378
|
+
constructor(paymentLibService, cd, OrderslistService$$1) {
|
|
87
379
|
this.paymentLibService = paymentLibService;
|
|
88
380
|
this.cd = cd;
|
|
381
|
+
this.OrderslistService = OrderslistService$$1;
|
|
89
382
|
this.unProcessedPaymentServiceId = null;
|
|
90
383
|
this.unProcessedPayment = null;
|
|
384
|
+
this.orderFeesTotal = 0.00;
|
|
385
|
+
this.orderRemissionTotal = 0.00;
|
|
386
|
+
this.orderTotalPayments = 0.00;
|
|
387
|
+
this.orderPendingPayments = 0.00;
|
|
91
388
|
}
|
|
92
389
|
/**
|
|
93
390
|
* @return {?}
|
|
@@ -102,6 +399,10 @@ class PaymentLibComponent {
|
|
|
102
399
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
103
400
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
104
401
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
402
|
+
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
403
|
+
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
404
|
+
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
405
|
+
}
|
|
105
406
|
if (this.PAYMENT_GROUP_REF) {
|
|
106
407
|
this.paymentGroupReference = this.PAYMENT_GROUP_REF;
|
|
107
408
|
}
|
|
@@ -121,6 +422,9 @@ class PaymentLibComponent {
|
|
|
121
422
|
else {
|
|
122
423
|
this.viewName = this.VIEW;
|
|
123
424
|
}
|
|
425
|
+
if (this.isTakePayment) {
|
|
426
|
+
this.TAKEPAYMENT = true;
|
|
427
|
+
}
|
|
124
428
|
}
|
|
125
429
|
}
|
|
126
430
|
PaymentLibComponent.decorators = [
|
|
@@ -139,9 +443,10 @@ PaymentLibComponent.decorators = [
|
|
|
139
443
|
[refundReference]="refundReference"
|
|
140
444
|
[refundlistsource]="refundlistsource"
|
|
141
445
|
></ccpay-process-refund>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
446
|
+
<ccpay-pba-payment *ngIf="viewName === 'pba-payment'"
|
|
447
|
+
[pbaPayOrderRef]="pbaPayOrderRef"
|
|
448
|
+
></ccpay-pba-payment>
|
|
449
|
+
<ccpay-case-transactions [isTakePayment]="isTakePayment" [LOGGEDINUSERROLES]="LOGGEDINUSERROLES" *ngIf="viewName === 'case-transactions'"></ccpay-case-transactions>
|
|
145
450
|
<app-mark-unidentified-payment *ngIf="viewName === 'unidentifiedPage'"
|
|
146
451
|
[caseType]="CASETYPE"></app-mark-unidentified-payment>
|
|
147
452
|
<app-mark-unsolicited-payment *ngIf="viewName === 'unsolicitedPage'"
|
|
@@ -165,12 +470,14 @@ PaymentLibComponent.decorators = [
|
|
|
165
470
|
/** @nocollapse */
|
|
166
471
|
PaymentLibComponent.ctorParameters = () => [
|
|
167
472
|
{ type: PaymentLibService },
|
|
168
|
-
{ type: ChangeDetectorRef }
|
|
473
|
+
{ type: ChangeDetectorRef },
|
|
474
|
+
{ type: OrderslistService }
|
|
169
475
|
];
|
|
170
476
|
PaymentLibComponent.propDecorators = {
|
|
171
477
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
172
478
|
BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
173
479
|
REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
|
|
480
|
+
NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
174
481
|
CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
|
|
175
482
|
EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
|
|
176
483
|
PAYMENT_METHOD: [{ type: Input, args: ['PAYMENT_METHOD',] }],
|
|
@@ -215,19 +522,57 @@ class ErrorHandlerService {
|
|
|
215
522
|
else {
|
|
216
523
|
// The backend returned an unsuccessful response code.
|
|
217
524
|
if (err.status === 404) {
|
|
218
|
-
if (
|
|
219
|
-
|
|
525
|
+
if (typeof err.error === 'string' && err.error !== undefined) {
|
|
526
|
+
if (err.error.length > 60) {
|
|
527
|
+
if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500) {
|
|
528
|
+
errorMessage = 'Internal server error';
|
|
529
|
+
}
|
|
530
|
+
else {
|
|
531
|
+
if (err.error.length > 60) {
|
|
532
|
+
errorMessage = JSON.parse(err.error).error;
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
errorMessage = err.error;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
errorMessage = err.error;
|
|
541
|
+
}
|
|
220
542
|
}
|
|
221
543
|
else {
|
|
222
|
-
errorMessage = err.error;
|
|
544
|
+
errorMessage = JSON.parse(err.error).error;
|
|
223
545
|
}
|
|
224
546
|
}
|
|
547
|
+
else if (err.status === 500) {
|
|
548
|
+
errorMessage = 'Internal server error';
|
|
549
|
+
}
|
|
225
550
|
else if (err.error.messsage === undefined) {
|
|
226
551
|
if (typeof err.error === 'object') {
|
|
227
552
|
errorMessage = JSON.parse(JSON.stringify(err.error)).error;
|
|
228
553
|
}
|
|
229
554
|
else {
|
|
230
|
-
|
|
555
|
+
if (typeof err.error === 'string' && err.error !== undefined) {
|
|
556
|
+
if (err.error.length > 60) {
|
|
557
|
+
if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500) {
|
|
558
|
+
errorMessage = 'Internal server error';
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
if (err.error.length > 60) {
|
|
562
|
+
errorMessage = JSON.parse(err.error).error;
|
|
563
|
+
}
|
|
564
|
+
else {
|
|
565
|
+
errorMessage = err.error;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
errorMessage = err.error;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
errorMessage = JSON.parse(err.error).error;
|
|
575
|
+
}
|
|
231
576
|
}
|
|
232
577
|
}
|
|
233
578
|
else {
|
|
@@ -544,6 +889,34 @@ class PaymentViewService {
|
|
|
544
889
|
})
|
|
545
890
|
.pipe(catchError(this.errorHandlerService.handleError));
|
|
546
891
|
}
|
|
892
|
+
/**
|
|
893
|
+
* @return {?}
|
|
894
|
+
*/
|
|
895
|
+
getPBAaccountDetails() {
|
|
896
|
+
/** @type {?} */
|
|
897
|
+
const url = `${this.paymentLibService.API_ROOT}/pba-accounts`;
|
|
898
|
+
return this.http.get(url, { withCredentials: true }).pipe(catchError(this.errorHandlerService.handleError));
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* @param {?} serviceRef
|
|
902
|
+
* @param {?} body
|
|
903
|
+
* @return {?}
|
|
904
|
+
*/
|
|
905
|
+
postWays2PayCardPayment(serviceRef, body) {
|
|
906
|
+
/** @type {?} */
|
|
907
|
+
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/card-payments`;
|
|
908
|
+
return this.https.post(url, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* @param {?} serviceRef
|
|
912
|
+
* @param {?} body
|
|
913
|
+
* @return {?}
|
|
914
|
+
*/
|
|
915
|
+
postPBAaccountPayment(serviceRef, body) {
|
|
916
|
+
/** @type {?} */
|
|
917
|
+
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/pba-payments`;
|
|
918
|
+
return this.https.post(url, body);
|
|
919
|
+
}
|
|
547
920
|
/**
|
|
548
921
|
* @param {?} body
|
|
549
922
|
* @return {?}
|
|
@@ -691,155 +1064,6 @@ PaymentViewService.ctorParameters = () => [
|
|
|
691
1064
|
];
|
|
692
1065
|
/** @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" });
|
|
693
1066
|
|
|
694
|
-
/**
|
|
695
|
-
* @fileoverview added by tsickle
|
|
696
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
697
|
-
*/
|
|
698
|
-
class OrderslistService {
|
|
699
|
-
constructor() {
|
|
700
|
-
this.ordersList = new BehaviorSubject(null);
|
|
701
|
-
this.refundView = new BehaviorSubject(null);
|
|
702
|
-
this.caseType = new BehaviorSubject("");
|
|
703
|
-
this.getcaseType = this.caseType.asObservable();
|
|
704
|
-
this.feeExists = new BehaviorSubject(null);
|
|
705
|
-
this.getFeeExist = this.feeExists.asObservable();
|
|
706
|
-
this.ccdCaseNumber = new BehaviorSubject("");
|
|
707
|
-
this.getCCDCaseNumberforRefund = this.ccdCaseNumber.asObservable();
|
|
708
|
-
this.isFromServiceRequestPage = new BehaviorSubject(null);
|
|
709
|
-
this.getisFromServiceRequestPage = this.isFromServiceRequestPage.asObservable();
|
|
710
|
-
this.OrderRefId = new BehaviorSubject("");
|
|
711
|
-
this.getOrderRefId = this.OrderRefId.asObservable();
|
|
712
|
-
this.navigationPage = new BehaviorSubject("");
|
|
713
|
-
this.getnavigationPage = this.navigationPage.asObservable();
|
|
714
|
-
this.paymentPageView = new BehaviorSubject(null);
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* @param {?} orderLevelFees
|
|
718
|
-
* @return {?}
|
|
719
|
-
*/
|
|
720
|
-
setOrdersList(orderLevelFees) {
|
|
721
|
-
this.ordersList.next(Object.assign([], orderLevelFees));
|
|
722
|
-
}
|
|
723
|
-
/**
|
|
724
|
-
* @return {?}
|
|
725
|
-
*/
|
|
726
|
-
getOrdersList() {
|
|
727
|
-
return this.ordersList;
|
|
728
|
-
}
|
|
729
|
-
/**
|
|
730
|
-
* @param {?} refundList
|
|
731
|
-
* @return {?}
|
|
732
|
-
*/
|
|
733
|
-
setRefundView(refundList) {
|
|
734
|
-
this.refundView.next(Object.assign([], refundList));
|
|
735
|
-
}
|
|
736
|
-
/**
|
|
737
|
-
* @return {?}
|
|
738
|
-
*/
|
|
739
|
-
getRefundView() {
|
|
740
|
-
return this.refundView;
|
|
741
|
-
}
|
|
742
|
-
/**
|
|
743
|
-
* @param {?} caseType
|
|
744
|
-
* @return {?}
|
|
745
|
-
*/
|
|
746
|
-
setCaseType(caseType) {
|
|
747
|
-
this.caseType.next(caseType);
|
|
748
|
-
}
|
|
749
|
-
/**
|
|
750
|
-
* @return {?}
|
|
751
|
-
*/
|
|
752
|
-
getCaseType() {
|
|
753
|
-
return this.caseType;
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
* @param {?} ccdCaseNumber
|
|
757
|
-
* @return {?}
|
|
758
|
-
*/
|
|
759
|
-
setCCDCaseNumber(ccdCaseNumber) {
|
|
760
|
-
this.ccdCaseNumber.next(ccdCaseNumber);
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* @return {?}
|
|
764
|
-
*/
|
|
765
|
-
getCCDCaseNumber() {
|
|
766
|
-
return this.ccdCaseNumber;
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* @param {?} feeExists
|
|
770
|
-
* @return {?}
|
|
771
|
-
*/
|
|
772
|
-
setFeeExists(feeExists) {
|
|
773
|
-
this.feeExists.next(feeExists);
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
* @return {?}
|
|
777
|
-
*/
|
|
778
|
-
getFeeExists() {
|
|
779
|
-
return this.feeExists;
|
|
780
|
-
}
|
|
781
|
-
/**
|
|
782
|
-
* @param {?} isFromServiceRequestPage
|
|
783
|
-
* @return {?}
|
|
784
|
-
*/
|
|
785
|
-
setisFromServiceRequestPage(isFromServiceRequestPage) {
|
|
786
|
-
this.isFromServiceRequestPage.next(isFromServiceRequestPage);
|
|
787
|
-
}
|
|
788
|
-
/**
|
|
789
|
-
* @return {?}
|
|
790
|
-
*/
|
|
791
|
-
getisFromServiceRequestPages() {
|
|
792
|
-
return this.isFromServiceRequestPage;
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
* @param {?} OrderRefId
|
|
796
|
-
* @return {?}
|
|
797
|
-
*/
|
|
798
|
-
setOrderRefId(OrderRefId) {
|
|
799
|
-
this.OrderRefId.next(OrderRefId);
|
|
800
|
-
}
|
|
801
|
-
/**
|
|
802
|
-
* @return {?}
|
|
803
|
-
*/
|
|
804
|
-
getSelectedOrderRefId() {
|
|
805
|
-
return this.OrderRefId;
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
|
-
* @param {?} navigationPage
|
|
809
|
-
* @return {?}
|
|
810
|
-
*/
|
|
811
|
-
setnavigationPage(navigationPage) {
|
|
812
|
-
this.navigationPage.next(navigationPage);
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* @return {?}
|
|
816
|
-
*/
|
|
817
|
-
getnavigationPageValue() {
|
|
818
|
-
return this.navigationPage;
|
|
819
|
-
}
|
|
820
|
-
/**
|
|
821
|
-
* @param {?} paymentpageList
|
|
822
|
-
* @return {?}
|
|
823
|
-
*/
|
|
824
|
-
setpaymentPageView(paymentpageList) {
|
|
825
|
-
this.paymentPageView.next(Object.assign([], paymentpageList));
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* @return {?}
|
|
829
|
-
*/
|
|
830
|
-
getpaymentPageView() {
|
|
831
|
-
return this.paymentPageView;
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
OrderslistService.decorators = [
|
|
835
|
-
{ type: Injectable, args: [{
|
|
836
|
-
providedIn: 'root'
|
|
837
|
-
},] }
|
|
838
|
-
];
|
|
839
|
-
/** @nocollapse */
|
|
840
|
-
OrderslistService.ctorParameters = () => [];
|
|
841
|
-
/** @nocollapse */ OrderslistService.ngInjectableDef = defineInjectable({ factory: function OrderslistService_Factory() { return new OrderslistService(); }, token: OrderslistService, providedIn: "root" });
|
|
842
|
-
|
|
843
1067
|
/**
|
|
844
1068
|
* @fileoverview added by tsickle
|
|
845
1069
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -929,6 +1153,7 @@ class PaymentViewComponent {
|
|
|
929
1153
|
}
|
|
930
1154
|
}));
|
|
931
1155
|
paymentGroup.fees = fees;
|
|
1156
|
+
this.paymentFees = fees;
|
|
932
1157
|
this.paymentGroup = paymentGroup;
|
|
933
1158
|
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
934
1159
|
* @param {?} paymentGroupObj
|
|
@@ -938,7 +1163,6 @@ class PaymentViewComponent {
|
|
|
938
1163
|
/** @type {?} */
|
|
939
1164
|
const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
940
1165
|
this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
941
|
-
console.log(this.paymentGroup.payments[0] + '1');
|
|
942
1166
|
}), (/**
|
|
943
1167
|
* @param {?} error
|
|
944
1168
|
* @return {?}
|
|
@@ -969,19 +1193,56 @@ class PaymentViewComponent {
|
|
|
969
1193
|
*/
|
|
970
1194
|
goToCaseTransationPage(event) {
|
|
971
1195
|
event.preventDefault();
|
|
972
|
-
this.
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1196
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
1197
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
1198
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1199
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
1200
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
1201
|
+
this.resetOrderData();
|
|
1202
|
+
}
|
|
1203
|
+
else {
|
|
1204
|
+
this.OrderslistService.getorderRefs().subscribe((/**
|
|
1205
|
+
* @param {?} data
|
|
1206
|
+
* @return {?}
|
|
1207
|
+
*/
|
|
1208
|
+
(data) => this.orderRef = data));
|
|
1209
|
+
this.OrderslistService.getorderCCDEvents().subscribe((/**
|
|
1210
|
+
* @param {?} data
|
|
1211
|
+
* @return {?}
|
|
1212
|
+
*/
|
|
1213
|
+
(data) => this.orderCCDEvent = data));
|
|
1214
|
+
this.OrderslistService.getorderCreateds().subscribe((/**
|
|
1215
|
+
* @param {?} data
|
|
1216
|
+
* @return {?}
|
|
1217
|
+
*/
|
|
1218
|
+
(data) => this.orderCreated = data));
|
|
1219
|
+
this.OrderslistService.getorderDetail().subscribe((/**
|
|
1220
|
+
* @param {?} data
|
|
1221
|
+
* @return {?}
|
|
1222
|
+
*/
|
|
1223
|
+
(data) => this.orderDetail = data));
|
|
1224
|
+
this.OrderslistService.getorderPartys().subscribe((/**
|
|
1225
|
+
* @param {?} data
|
|
1226
|
+
* @return {?}
|
|
1227
|
+
*/
|
|
1228
|
+
(data) => this.orderParty = data));
|
|
1229
|
+
this.OrderslistService.getorderRemissionTotals().subscribe((/**
|
|
1230
|
+
* @param {?} data
|
|
1231
|
+
* @return {?}
|
|
1232
|
+
*/
|
|
1233
|
+
(data) => this.orderRemissionTotal = data));
|
|
1234
|
+
this.OrderslistService.getorderFeesTotals().subscribe((/**
|
|
1235
|
+
* @param {?} data
|
|
1236
|
+
* @return {?}
|
|
1237
|
+
*/
|
|
1238
|
+
(data) => this.orderFeesTotal = data));
|
|
1239
|
+
this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
|
|
1240
|
+
* @param {?} data
|
|
1241
|
+
* @return {?}
|
|
1242
|
+
*/
|
|
1243
|
+
(data) => this.orderTotalPayments = data));
|
|
1244
|
+
this.viewStatus = 'order-full-view';
|
|
1245
|
+
}
|
|
985
1246
|
}
|
|
986
1247
|
/**
|
|
987
1248
|
* @param {?} fee
|
|
@@ -1094,6 +1355,9 @@ class PaymentViewComponent {
|
|
|
1094
1355
|
this.paymentGroup = paymentgrp;
|
|
1095
1356
|
this.viewStatus = 'issuerefund';
|
|
1096
1357
|
this.isRefundRemission = true;
|
|
1358
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1359
|
+
this.isFromPaymentDetailPage = true;
|
|
1360
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1097
1361
|
}
|
|
1098
1362
|
}
|
|
1099
1363
|
}
|
|
@@ -1107,7 +1371,6 @@ class PaymentViewComponent {
|
|
|
1107
1371
|
for (const remission of remissions) {
|
|
1108
1372
|
if (remission.fee_code === feeCode) {
|
|
1109
1373
|
return remission;
|
|
1110
|
-
// this.isAddFeeBtnEnabled = true;
|
|
1111
1374
|
}
|
|
1112
1375
|
}
|
|
1113
1376
|
}
|
|
@@ -1162,12 +1425,25 @@ class PaymentViewComponent {
|
|
|
1162
1425
|
return false;
|
|
1163
1426
|
}
|
|
1164
1427
|
}
|
|
1428
|
+
/**
|
|
1429
|
+
* @return {?}
|
|
1430
|
+
*/
|
|
1431
|
+
resetOrderData() {
|
|
1432
|
+
this.OrderslistService.setOrderRef(null);
|
|
1433
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
1434
|
+
this.OrderslistService.setorderCreated(null);
|
|
1435
|
+
this.OrderslistService.setorderDetail(null);
|
|
1436
|
+
this.OrderslistService.setorderParty(null);
|
|
1437
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
1438
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
1439
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
1440
|
+
}
|
|
1165
1441
|
}
|
|
1166
1442
|
PaymentViewComponent.decorators = [
|
|
1167
1443
|
{ type: Component, args: [{
|
|
1168
1444
|
selector: 'ccpay-payment-view',
|
|
1169
|
-
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\">\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\">Service reference</td>\n <td>{{ serviceReference }}</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]?.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 <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\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td>{{ 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 *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td *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>{{ 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>{{ 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>{{ 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>{{ 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>{{ 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 class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n \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>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 \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\"></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\"></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 [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\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",
|
|
1170
|
-
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}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}"]
|
|
1445
|
+
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]=\"!paymentGroup.payments[0].refund_enable\" (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 [fees] =\"paymentFees\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n \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",
|
|
1446
|
+
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}"]
|
|
1171
1447
|
}] }
|
|
1172
1448
|
];
|
|
1173
1449
|
/** @nocollapse */
|
|
@@ -1187,7 +1463,13 @@ PaymentViewComponent.propDecorators = {
|
|
|
1187
1463
|
orderStatus: [{ type: Input }],
|
|
1188
1464
|
orderTotalPayments: [{ type: Input }],
|
|
1189
1465
|
payment: [{ type: Input }],
|
|
1190
|
-
LOGGEDINUSERROLES: [{ type: Input
|
|
1466
|
+
LOGGEDINUSERROLES: [{ type: Input }],
|
|
1467
|
+
orderParty: [{ type: Input }],
|
|
1468
|
+
orderCreated: [{ type: Input }],
|
|
1469
|
+
orderCCDEvent: [{ type: Input }],
|
|
1470
|
+
orderFeesTotal: [{ type: Input }],
|
|
1471
|
+
orderRemissionTotal: [{ type: Input }],
|
|
1472
|
+
orderDetail: [{ type: Input }]
|
|
1191
1473
|
};
|
|
1192
1474
|
|
|
1193
1475
|
/**
|
|
@@ -1295,6 +1577,15 @@ class RefundsService {
|
|
|
1295
1577
|
postIssueRefund(body) {
|
|
1296
1578
|
return this.https.post(`${this.paymentLibService.REFUNDS_API_ROOT}/refund`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1297
1579
|
}
|
|
1580
|
+
/**
|
|
1581
|
+
* @param {?} body
|
|
1582
|
+
* @param {?} refundRef
|
|
1583
|
+
* @param {?} notificationType
|
|
1584
|
+
* @return {?}
|
|
1585
|
+
*/
|
|
1586
|
+
putResendOrEdit(body, refundRef, notificationType) {
|
|
1587
|
+
return this.https.put(`${this.paymentLibService.REFUNDS_API_ROOT}/resend/notification/${refundRef}?notificationType=${notificationType}`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1588
|
+
}
|
|
1298
1589
|
/**
|
|
1299
1590
|
* @param {?} body
|
|
1300
1591
|
* @param {?} refund_reference
|
|
@@ -1363,12 +1654,16 @@ class ProcessRefundComponent {
|
|
|
1363
1654
|
* @param {?} formBuilder
|
|
1364
1655
|
* @param {?} OrderslistService
|
|
1365
1656
|
* @param {?} paymentLibComponent
|
|
1657
|
+
* @param {?} router
|
|
1658
|
+
* @param {?} activeRoute
|
|
1366
1659
|
*/
|
|
1367
|
-
constructor(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent) {
|
|
1660
|
+
constructor(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
1368
1661
|
this.RefundsService = RefundsService$$1;
|
|
1369
1662
|
this.formBuilder = formBuilder;
|
|
1370
1663
|
this.OrderslistService = OrderslistService$$1;
|
|
1371
1664
|
this.paymentLibComponent = paymentLibComponent;
|
|
1665
|
+
this.router = router;
|
|
1666
|
+
this.activeRoute = activeRoute;
|
|
1372
1667
|
this.errorMessage = this.getErrorMessage(false, '', '', '');
|
|
1373
1668
|
this.sendmeback = null;
|
|
1374
1669
|
this.refundActionList = [];
|
|
@@ -1422,15 +1717,24 @@ class ProcessRefundComponent {
|
|
|
1422
1717
|
enterReasonField: new FormControl('', Validators.compose([
|
|
1423
1718
|
Validators.required,
|
|
1424
1719
|
Validators.maxLength(30),
|
|
1425
|
-
Validators.pattern('^([a-zA-Z0-9
|
|
1720
|
+
Validators.pattern('^([a-zA-Z0-9.\\s]*)$'),
|
|
1426
1721
|
])),
|
|
1427
1722
|
});
|
|
1723
|
+
this.ccdCaseNumber = this.refundlistsource.ccd_case_number;
|
|
1724
|
+
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
1725
|
+
this.isFromRefundListPage = true;
|
|
1726
|
+
}
|
|
1428
1727
|
}
|
|
1429
1728
|
/**
|
|
1430
1729
|
* @param {?} code
|
|
1431
1730
|
* @return {?}
|
|
1432
1731
|
*/
|
|
1433
1732
|
checkRefundActions(code) {
|
|
1733
|
+
this.refundActionsHasError = false;
|
|
1734
|
+
this.isReasonFieldEmpty = false;
|
|
1735
|
+
this.isReasonEmpty = false;
|
|
1736
|
+
this.isReasonInvalid = false;
|
|
1737
|
+
this.refundRejectReasonHasError = false;
|
|
1434
1738
|
if (code === 'Return to caseworker') {
|
|
1435
1739
|
this.isConfirmButtondisabled = true;
|
|
1436
1740
|
this.isSendMeBackClicked = true;
|
|
@@ -1588,18 +1892,45 @@ class ProcessRefundComponent {
|
|
|
1588
1892
|
*/
|
|
1589
1893
|
(data) => this.navigationpage = data));
|
|
1590
1894
|
if (this.navigationpage === 'casetransactions') {
|
|
1591
|
-
window.location.href
|
|
1895
|
+
// window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1896
|
+
// // this.OrderslistService.setnavigationPage('casetransactions');
|
|
1897
|
+
// // this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1898
|
+
// // this.paymentLibComponent.VIEW ='case-transactions';
|
|
1899
|
+
// // this.paymentLibComponent.viewName = 'case-transactions';
|
|
1900
|
+
// // this.paymentLibComponent.ISBSENABLE = true;
|
|
1901
|
+
// // this.paymentLibComponent.isRefundStatusView = false;
|
|
1902
|
+
this.paymentLibComponent.viewName = 'refundstatuslist';
|
|
1903
|
+
this.paymentLibComponent.isRefundStatusView = true;
|
|
1592
1904
|
}
|
|
1593
1905
|
else {
|
|
1906
|
+
this.paymentLibComponent.viewName = 'refundstatuslist';
|
|
1907
|
+
this.paymentLibComponent.isRefundStatusView = true;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1911
|
+
* @return {?}
|
|
1912
|
+
*/
|
|
1913
|
+
loadRefundsHomePage() {
|
|
1914
|
+
if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
|
|
1915
|
+
//window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1594
1916
|
this.paymentLibComponent.viewName = 'refund-list';
|
|
1595
1917
|
}
|
|
1918
|
+
else {
|
|
1919
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
1920
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1921
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
1922
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
1923
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
1924
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
1925
|
+
}
|
|
1596
1926
|
}
|
|
1597
1927
|
/**
|
|
1598
1928
|
* @return {?}
|
|
1599
1929
|
*/
|
|
1600
1930
|
redirecttoRefundListPage() {
|
|
1601
|
-
if (this.paymentLibComponent.
|
|
1602
|
-
window.location.href
|
|
1931
|
+
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
1932
|
+
// window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1933
|
+
this.paymentLibComponent.viewName = 'refund-list';
|
|
1603
1934
|
}
|
|
1604
1935
|
else {
|
|
1605
1936
|
this.loadRefundListPage();
|
|
@@ -1652,12 +1983,18 @@ class ProcessRefundComponent {
|
|
|
1652
1983
|
this.isReasonInvalid = vals[7];
|
|
1653
1984
|
}
|
|
1654
1985
|
}
|
|
1986
|
+
/**
|
|
1987
|
+
* @return {?}
|
|
1988
|
+
*/
|
|
1989
|
+
goToCaseReview() {
|
|
1990
|
+
this.router.navigate([`/cases/case-details/${this.ccdCaseNumber}`], { relativeTo: this.activeRoute });
|
|
1991
|
+
}
|
|
1655
1992
|
}
|
|
1656
1993
|
ProcessRefundComponent.decorators = [
|
|
1657
1994
|
{ type: Component, args: [{
|
|
1658
1995
|
selector: 'ccpay-process-refund',
|
|
1659
|
-
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\"\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 <input class=\"govuk-input govuk-!-width-one-third\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n
|
|
1660
|
-
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:
|
|
1996
|
+
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 right\" 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 (click) = \"goToCaseReview()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
|
|
1997
|
+
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}.right{cursor:pointer}"]
|
|
1661
1998
|
}] }
|
|
1662
1999
|
];
|
|
1663
2000
|
/** @nocollapse */
|
|
@@ -1665,7 +2002,9 @@ ProcessRefundComponent.ctorParameters = () => [
|
|
|
1665
2002
|
{ type: RefundsService },
|
|
1666
2003
|
{ type: FormBuilder },
|
|
1667
2004
|
{ type: OrderslistService },
|
|
1668
|
-
{ type: PaymentLibComponent }
|
|
2005
|
+
{ type: PaymentLibComponent },
|
|
2006
|
+
{ type: Router },
|
|
2007
|
+
{ type: ActivatedRoute }
|
|
1669
2008
|
];
|
|
1670
2009
|
ProcessRefundComponent.propDecorators = {
|
|
1671
2010
|
refundReference: [{ type: Input }],
|
|
@@ -1684,10 +2023,10 @@ class RefundListComponent {
|
|
|
1684
2023
|
this.refundService = refundService;
|
|
1685
2024
|
this.submittedRefundList = [];
|
|
1686
2025
|
this.rejectedRefundList = [];
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
2026
|
+
this.approvalStatus = 'Sent for approval';
|
|
2027
|
+
this.rejectStatus = 'Update required';
|
|
2028
|
+
// approvalStatus = 'sent for approval';
|
|
2029
|
+
// rejectStatus = 'sent back';
|
|
1691
2030
|
this.errorMessage = null;
|
|
1692
2031
|
this.isAuthorized = true;
|
|
1693
2032
|
}
|
|
@@ -1701,7 +2040,6 @@ class RefundListComponent {
|
|
|
1701
2040
|
* @return {?}
|
|
1702
2041
|
*/
|
|
1703
2042
|
i => i.includes('payments-refund-approver')))) {
|
|
1704
|
-
// this.isApproveTableVisible = true;
|
|
1705
2043
|
this.isAuthorized = true;
|
|
1706
2044
|
}
|
|
1707
2045
|
else {
|
|
@@ -1710,11 +2048,6 @@ class RefundListComponent {
|
|
|
1710
2048
|
}
|
|
1711
2049
|
this.tableApprovalHeader = 'Refunds to be approved';
|
|
1712
2050
|
this.tableRejectedHeader = 'Refunds returned to caseworker';
|
|
1713
|
-
// if(this.dropdownvalue !== 'caseworker-probate-authorize') {
|
|
1714
|
-
// this.isAuthorized = false;
|
|
1715
|
-
// } else {
|
|
1716
|
-
// this.isAuthorized = true;
|
|
1717
|
-
// }
|
|
1718
2051
|
if (this.isAuthorized) {
|
|
1719
2052
|
this.refundService.getRefundList(this.approvalStatus, true).subscribe((/**
|
|
1720
2053
|
* @param {?} refundList
|
|
@@ -1752,7 +2085,7 @@ class RefundListComponent {
|
|
|
1752
2085
|
RefundListComponent.decorators = [
|
|
1753
2086
|
{ type: Component, args: [{
|
|
1754
2087
|
selector: 'ccpay-refund-list',
|
|
1755
|
-
template: "\n\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h1 class=\"govuk-heading-xl\">Refund list</h1>\n
|
|
2088
|
+
template: "\n\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h1 class=\"govuk-heading-xl\">Refund list</h1>\n </div>\n</div>\n\n<ng-container *ngIf=\"isAuthorized\">\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h2 class=\"govuk-heading-l\">{{tableApprovalHeader}}</h2>\n </div>\n </div>\n <div *ngIf=\"!isApproveTableVisible\">\n <div class=\"govuk-label dropdpwn\" >No records to display</div>\n </div>\n</ng-container>\n \n<ng-container *ngIf=\"isApproveTableVisible\">\n \n <div><ccpay-table [DATASOURCE]=\"submittedRefundList\" [STATUS]=\"approvalStatus\" [errorMessage]=\"errorMessage\"></ccpay-table></div>\n</ng-container>\n\n\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h2 class=\"govuk-heading-l\">{{tableRejectedHeader}}</h2>\n </div>\n \n </div>\n <div *ngIf=\"!isRejectTableVisible\">\n <div class=\"govuk-label dropdpwn\">No records to display</div>\n </div>\n<ng-container *ngIf=\"isRejectTableVisible\">\n \n <div><ccpay-table [DATASOURCE]=\"rejectedRefundList\" [STATUS]=\"rejectStatus\" [errorMessage]=\"errorMessage\"></ccpay-table></div>\n</ng-container>\n\n\n",
|
|
1756
2089
|
styles: [".govuk-heading-xl{font-size:48px;padding-top:1em}.govuk-heading-l{font-size:36px}.govuk-label{font-size:19px}.hmcts-page-heading{width:110%}"]
|
|
1757
2090
|
}] }
|
|
1758
2091
|
];
|
|
@@ -1949,7 +2282,7 @@ class StatusHistoryComponent {
|
|
|
1949
2282
|
StatusHistoryComponent.decorators = [
|
|
1950
2283
|
{ type: Component, args: [{
|
|
1951
2284
|
selector: 'ccpay-payment-statuses',
|
|
1952
|
-
template: "<div class=\"column\">\n <h2 class=\"heading-medium\">{{ pageTitle }}</h2>\n</div>\n\n\n<div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\" *ngIf=\"errorMessage\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment status history could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n</div>\n\n<div *ngIf=\"!errorMessage && statuses\">\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th *ngIf=\"isTakePayment\">Amount</th>\n <th>Date and time</th>\n </tr>\n </thead> \n <tbody>\n <tr *ngFor=\"let status of statuses.status_histories\">\n <td>{{ status.status }}</td>\n <td *ngIf=\"isTakePayment\">\u00A3{{ statuses.amount | number:'.2' }}</td>\n <td>{{ status.date_created | date:'dd
|
|
2285
|
+
template: "<div class=\"column\">\n <h2 class=\"heading-medium\">{{ pageTitle }}</h2>\n</div>\n\n\n<div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\" *ngIf=\"errorMessage\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment status history could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n</div>\n\n<div *ngIf=\"!errorMessage && statuses\">\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th *ngIf=\"isTakePayment\">Amount</th>\n <th>Date and time</th>\n </tr>\n </thead> \n <tbody>\n <tr *ngFor=\"let status of statuses.status_histories\">\n <td>{{ status.status }}</td>\n <td *ngIf=\"isTakePayment\">\u00A3{{ statuses.amount | number:'.2' }}</td>\n <td>{{ status.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n</div>\n",
|
|
1953
2286
|
styles: [""]
|
|
1954
2287
|
}] }
|
|
1955
2288
|
];
|
|
@@ -1966,13 +2299,292 @@ StatusHistoryComponent.propDecorators = {
|
|
|
1966
2299
|
* @fileoverview added by tsickle
|
|
1967
2300
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1968
2301
|
*/
|
|
1969
|
-
class
|
|
1970
|
-
constructor() { }
|
|
2302
|
+
class ContactDetailsComponent {
|
|
1971
2303
|
/**
|
|
1972
|
-
* @
|
|
2304
|
+
* @param {?} formBuilder
|
|
2305
|
+
* @param {?} paymentLibComponent
|
|
1973
2306
|
*/
|
|
1974
|
-
|
|
1975
|
-
|
|
2307
|
+
constructor(formBuilder, paymentLibComponent) {
|
|
2308
|
+
this.formBuilder = formBuilder;
|
|
2309
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
2310
|
+
this.assignContactDetails = new EventEmitter();
|
|
2311
|
+
this.redirectToIssueRefund = new EventEmitter();
|
|
2312
|
+
this.pageTitle = 'Payment status history';
|
|
2313
|
+
this.isEmailSAddressClicked = true;
|
|
2314
|
+
this.isPostcodeClicked = false;
|
|
2315
|
+
this.isManualAddressClicked = false;
|
|
2316
|
+
this.isEmailEmpty = false;
|
|
2317
|
+
this.emailHasError = false;
|
|
2318
|
+
this.isPostcodeEmpty = false;
|
|
2319
|
+
this.postcodeHasError = false;
|
|
2320
|
+
this.isaddressLine1Empty = false;
|
|
2321
|
+
this.addressLine1HasError = false;
|
|
2322
|
+
this.addressLine2HasError = false;
|
|
2323
|
+
this.isTownOrCityEmpty = false;
|
|
2324
|
+
this.townOrCityHasError = false;
|
|
2325
|
+
this.isCountyEmpty = false;
|
|
2326
|
+
this.countyHasError = false;
|
|
2327
|
+
this.isMPostcodeEmpty = false;
|
|
2328
|
+
this.mpostcodeHasError = false;
|
|
2329
|
+
this.isCountryEmpty = false;
|
|
2330
|
+
}
|
|
2331
|
+
/**
|
|
2332
|
+
* @return {?}
|
|
2333
|
+
*/
|
|
2334
|
+
ngOnInit() {
|
|
2335
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2336
|
+
this.emailAddressForm = this.formBuilder.group({
|
|
2337
|
+
email: new FormControl('', Validators.compose([
|
|
2338
|
+
Validators.required,
|
|
2339
|
+
Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
2340
|
+
]))
|
|
2341
|
+
});
|
|
2342
|
+
this.postCodeForm = this.formBuilder.group({
|
|
2343
|
+
postcode: new FormControl('', Validators.compose([
|
|
2344
|
+
Validators.required,
|
|
2345
|
+
Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
|
|
2346
|
+
]))
|
|
2347
|
+
});
|
|
2348
|
+
this.manualAddressForm = this.formBuilder.group({
|
|
2349
|
+
addressl1: new FormControl('', Validators.compose([
|
|
2350
|
+
Validators.required,
|
|
2351
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2352
|
+
])),
|
|
2353
|
+
addressl2: new FormControl('', Validators.compose([
|
|
2354
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2355
|
+
])),
|
|
2356
|
+
townorcity: new FormControl('', Validators.compose([
|
|
2357
|
+
Validators.required,
|
|
2358
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2359
|
+
])),
|
|
2360
|
+
county: new FormControl('', Validators.compose([
|
|
2361
|
+
Validators.required,
|
|
2362
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2363
|
+
])),
|
|
2364
|
+
mpostcode: new FormControl('', Validators.compose([
|
|
2365
|
+
Validators.required,
|
|
2366
|
+
Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
|
|
2367
|
+
])),
|
|
2368
|
+
country: new FormControl('', Validators.compose([
|
|
2369
|
+
Validators.required
|
|
2370
|
+
]))
|
|
2371
|
+
});
|
|
2372
|
+
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
2373
|
+
this.setEditDetails();
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
/**
|
|
2377
|
+
* @return {?}
|
|
2378
|
+
*/
|
|
2379
|
+
setEditDetails() {
|
|
2380
|
+
if (this.addressObj.notification_type === 'EMAIL') {
|
|
2381
|
+
this.isEmailSAddressClicked = true;
|
|
2382
|
+
this.isPostcodeClicked = false;
|
|
2383
|
+
this.isManualAddressClicked = false;
|
|
2384
|
+
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
2385
|
+
}
|
|
2386
|
+
else if (this.addressObj.notification_type === 'LETTER') {
|
|
2387
|
+
this.isEmailSAddressClicked = false;
|
|
2388
|
+
this.isPostcodeClicked = true;
|
|
2389
|
+
this.isManualAddressClicked = true;
|
|
2390
|
+
this.manualAddressForm.patchValue({
|
|
2391
|
+
addressl1: this.addressObj.contact_details.address_line,
|
|
2392
|
+
townorcity: this.addressObj.contact_details.city,
|
|
2393
|
+
county: this.addressObj.contact_details.county,
|
|
2394
|
+
country: this.addressObj.contact_details.country,
|
|
2395
|
+
mpostcode: this.addressObj.contact_details.postal_code
|
|
2396
|
+
});
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
/**
|
|
2400
|
+
* @param {?} type
|
|
2401
|
+
* @param {?} isLinkedClied
|
|
2402
|
+
* @return {?}
|
|
2403
|
+
*/
|
|
2404
|
+
selectContactOption(type, isLinkedClied) {
|
|
2405
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2406
|
+
if (type === 'Email' && isLinkedClied === 'false') {
|
|
2407
|
+
this.isEmailSAddressClicked = true;
|
|
2408
|
+
this.isPostcodeClicked = false;
|
|
2409
|
+
this.isManualAddressClicked = false;
|
|
2410
|
+
}
|
|
2411
|
+
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
2412
|
+
this.isEmailSAddressClicked = false;
|
|
2413
|
+
this.isPostcodeClicked = true;
|
|
2414
|
+
this.isManualAddressClicked = false;
|
|
2415
|
+
}
|
|
2416
|
+
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
2417
|
+
this.isEmailSAddressClicked = false;
|
|
2418
|
+
this.isPostcodeClicked = true;
|
|
2419
|
+
this.isManualAddressClicked = true;
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
/**
|
|
2423
|
+
* @return {?}
|
|
2424
|
+
*/
|
|
2425
|
+
finalFormSubmit() {
|
|
2426
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2427
|
+
if (this.isEmailSAddressClicked) {
|
|
2428
|
+
/** @type {?} */
|
|
2429
|
+
const emailField = this.emailAddressForm.controls.email;
|
|
2430
|
+
if (this.emailAddressForm.dirty && this.emailAddressForm.valid) {
|
|
2431
|
+
this.assignContactDetails.emit({
|
|
2432
|
+
email: emailField.value,
|
|
2433
|
+
notification_type: 'EMAIL'
|
|
2434
|
+
});
|
|
2435
|
+
}
|
|
2436
|
+
else {
|
|
2437
|
+
if (emailField.value == '') {
|
|
2438
|
+
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2439
|
+
}
|
|
2440
|
+
if (emailField.value != '' && emailField.invalid) {
|
|
2441
|
+
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
2446
|
+
this.postcodeValidation();
|
|
2447
|
+
}
|
|
2448
|
+
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
2449
|
+
/** @type {?} */
|
|
2450
|
+
const fieldCtrls = this.manualAddressForm.controls;
|
|
2451
|
+
if (this.manualAddressForm.dirty && this.manualAddressForm.valid) {
|
|
2452
|
+
this.assignContactDetails.emit({
|
|
2453
|
+
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
2454
|
+
city: fieldCtrls.townorcity.value,
|
|
2455
|
+
county: fieldCtrls.county.value,
|
|
2456
|
+
postal_code: fieldCtrls.mpostcode.value,
|
|
2457
|
+
country: fieldCtrls.country.value,
|
|
2458
|
+
notification_type: 'LETTER'
|
|
2459
|
+
});
|
|
2460
|
+
}
|
|
2461
|
+
else {
|
|
2462
|
+
if (fieldCtrls.addressl1.value == '') {
|
|
2463
|
+
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
2464
|
+
}
|
|
2465
|
+
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
2466
|
+
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
2467
|
+
}
|
|
2468
|
+
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
2469
|
+
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
2470
|
+
}
|
|
2471
|
+
if (fieldCtrls.townorcity.value == '') {
|
|
2472
|
+
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
2473
|
+
}
|
|
2474
|
+
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
2475
|
+
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
2476
|
+
}
|
|
2477
|
+
if (fieldCtrls.county.value == '') {
|
|
2478
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
2479
|
+
}
|
|
2480
|
+
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
2481
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
2482
|
+
}
|
|
2483
|
+
if (fieldCtrls.mpostcode.value == '') {
|
|
2484
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
2485
|
+
}
|
|
2486
|
+
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
2487
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
2488
|
+
}
|
|
2489
|
+
if (fieldCtrls.country.value == '') {
|
|
2490
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
/**
|
|
2496
|
+
* @return {?}
|
|
2497
|
+
*/
|
|
2498
|
+
postcodeValidation() {
|
|
2499
|
+
/** @type {?} */
|
|
2500
|
+
const postcodeField = this.postCodeForm.controls.postcode;
|
|
2501
|
+
if (this.postCodeForm.dirty && this.postCodeForm.valid) {
|
|
2502
|
+
this.assignContactDetails.emit({});
|
|
2503
|
+
}
|
|
2504
|
+
else {
|
|
2505
|
+
if (postcodeField.value == '') {
|
|
2506
|
+
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2507
|
+
}
|
|
2508
|
+
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
2509
|
+
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* @param {?} event
|
|
2515
|
+
* @return {?}
|
|
2516
|
+
*/
|
|
2517
|
+
redirection(event) {
|
|
2518
|
+
this.redirectToIssueRefund.emit(event);
|
|
2519
|
+
}
|
|
2520
|
+
/**
|
|
2521
|
+
* @param {?} val
|
|
2522
|
+
* @param {?} field
|
|
2523
|
+
* @return {?}
|
|
2524
|
+
*/
|
|
2525
|
+
resetForm(val, field) {
|
|
2526
|
+
if (field === 'email' || field === 'all') {
|
|
2527
|
+
this.isEmailEmpty = val[0];
|
|
2528
|
+
this.emailHasError = val[1];
|
|
2529
|
+
}
|
|
2530
|
+
if (field === 'postcode' || field === 'all') {
|
|
2531
|
+
this.isPostcodeEmpty = val[2];
|
|
2532
|
+
this.postcodeHasError = val[3];
|
|
2533
|
+
}
|
|
2534
|
+
if (field === 'address1' || field === 'all') {
|
|
2535
|
+
this.isaddressLine1Empty = val[4];
|
|
2536
|
+
this.addressLine1HasError = val[5];
|
|
2537
|
+
}
|
|
2538
|
+
if (field === 'address2' || field === 'all') {
|
|
2539
|
+
this.addressLine2HasError = val[6];
|
|
2540
|
+
}
|
|
2541
|
+
if (field === 'town' || field === 'all') {
|
|
2542
|
+
this.isTownOrCityEmpty = val[7];
|
|
2543
|
+
this.townOrCityHasError = val[8];
|
|
2544
|
+
}
|
|
2545
|
+
if (field === 'county' || field === 'all') {
|
|
2546
|
+
this.isCountyEmpty = val[9];
|
|
2547
|
+
this.countyHasError = val[10];
|
|
2548
|
+
}
|
|
2549
|
+
if (field === 'mpostcode' || field === 'all') {
|
|
2550
|
+
this.isMPostcodeEmpty = val[11];
|
|
2551
|
+
this.mpostcodeHasError = val[12];
|
|
2552
|
+
}
|
|
2553
|
+
if (field === 'country' || field === 'all') {
|
|
2554
|
+
this.isCountryEmpty = val[13];
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
ContactDetailsComponent.decorators = [
|
|
2559
|
+
{ type: Component, args: [{
|
|
2560
|
+
selector: 'ccpay-contact-details',
|
|
2561
|
+
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 <div class=\"govuk-form-group\">\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 <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> </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-button--secondary govuk-font19px\" (click)=\"postcodeValidation()\" data-module=\"govuk-button\">\n Find address\n </button>\n </div>\n </form>\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>",
|
|
2562
|
+
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%}"]
|
|
2563
|
+
}] }
|
|
2564
|
+
];
|
|
2565
|
+
/** @nocollapse */
|
|
2566
|
+
ContactDetailsComponent.ctorParameters = () => [
|
|
2567
|
+
{ type: FormBuilder },
|
|
2568
|
+
{ type: PaymentLibComponent }
|
|
2569
|
+
];
|
|
2570
|
+
ContactDetailsComponent.propDecorators = {
|
|
2571
|
+
isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
|
|
2572
|
+
addressObj: [{ type: Input, args: ['addressObj',] }],
|
|
2573
|
+
assignContactDetails: [{ type: Output }],
|
|
2574
|
+
redirectToIssueRefund: [{ type: Output }]
|
|
2575
|
+
};
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* @fileoverview added by tsickle
|
|
2579
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2580
|
+
*/
|
|
2581
|
+
class PbaDetailsComponent {
|
|
2582
|
+
constructor() { }
|
|
2583
|
+
/**
|
|
2584
|
+
* @return {?}
|
|
2585
|
+
*/
|
|
2586
|
+
ngOnInit() {
|
|
2587
|
+
}
|
|
1976
2588
|
}
|
|
1977
2589
|
PbaDetailsComponent.decorators = [
|
|
1978
2590
|
{ type: Component, args: [{
|
|
@@ -2266,12 +2878,12 @@ class CaseTransactionsComponent {
|
|
|
2266
2878
|
this.clAmountDue = 0;
|
|
2267
2879
|
this.isFeeRecordsExist = false;
|
|
2268
2880
|
this.isGrpOutstandingAmtPositive = false;
|
|
2269
|
-
this.lsCcdNumber = get('ccdNumber');
|
|
2270
2881
|
//Order changes
|
|
2271
2882
|
this.orderDetail = [];
|
|
2272
2883
|
this.isAddRemissionEnable = false;
|
|
2273
2884
|
this.orderRemissionDetails = [];
|
|
2274
2885
|
this.orderLevelFees = [];
|
|
2886
|
+
this.ispaymentGroupApisuccess = false;
|
|
2275
2887
|
this.cpoDetails = null;
|
|
2276
2888
|
this.orderFeesTotal = 0.00;
|
|
2277
2889
|
this.orderRemissionTotal = 0.00;
|
|
@@ -2282,6 +2894,8 @@ class CaseTransactionsComponent {
|
|
|
2282
2894
|
this.isAddRemissionBtnEnabled = false;
|
|
2283
2895
|
this.isRefundRemissionBtnEnable = false;
|
|
2284
2896
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
2897
|
+
this.isEligible4PBAPayment = ['pui-finance-manager', 'pui-user-manager', 'pui-organisation-manager', 'pui-case-manager'];
|
|
2898
|
+
this.currentDate = new Date();
|
|
2285
2899
|
this.check4AllowedRoles2AccessRefund = (/**
|
|
2286
2900
|
* @return {?}
|
|
2287
2901
|
*/
|
|
@@ -2292,6 +2906,16 @@ class CaseTransactionsComponent {
|
|
|
2292
2906
|
*/
|
|
2293
2907
|
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
2294
2908
|
});
|
|
2909
|
+
this.check4AllowedRoles2AccessPBApayment = (/**
|
|
2910
|
+
* @return {?}
|
|
2911
|
+
*/
|
|
2912
|
+
() => {
|
|
2913
|
+
return this.isEligible4PBAPayment.some((/**
|
|
2914
|
+
* @param {?} role
|
|
2915
|
+
* @return {?}
|
|
2916
|
+
*/
|
|
2917
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
2918
|
+
});
|
|
2295
2919
|
this.allowFurtherAccessAfter4Days = (/**
|
|
2296
2920
|
* @param {?} payment
|
|
2297
2921
|
* @return {?}
|
|
@@ -2317,6 +2941,13 @@ class CaseTransactionsComponent {
|
|
|
2317
2941
|
*/
|
|
2318
2942
|
(data) => this.paymentView = data));
|
|
2319
2943
|
}
|
|
2944
|
+
if ((this.LOGGEDINUSERROLES === undefined || this.LOGGEDINUSERROLES.length === 0) && this.OrderslistService.getUserRolesList() !== null) {
|
|
2945
|
+
this.OrderslistService.getUserRolesList().subscribe((/**
|
|
2946
|
+
* @param {?} data
|
|
2947
|
+
* @return {?}
|
|
2948
|
+
*/
|
|
2949
|
+
(data) => this.LOGGEDINUSERROLES = data));
|
|
2950
|
+
}
|
|
2320
2951
|
if (this.OrderslistService.getnavigationPageValue() !== null) {
|
|
2321
2952
|
this.OrderslistService.getnavigationPageValue().subscribe((/**
|
|
2322
2953
|
* @param {?} data
|
|
@@ -2337,10 +2968,10 @@ class CaseTransactionsComponent {
|
|
|
2337
2968
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
2338
2969
|
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST;
|
|
2339
2970
|
if (this.paymentLibComponent.SERVICEREQUEST === 'true') {
|
|
2340
|
-
this.
|
|
2971
|
+
this.serviceRequestValue = 'true';
|
|
2341
2972
|
}
|
|
2342
2973
|
else {
|
|
2343
|
-
this.
|
|
2974
|
+
this.serviceRequestValue = 'false';
|
|
2344
2975
|
}
|
|
2345
2976
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
2346
2977
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -2350,9 +2981,9 @@ class CaseTransactionsComponent {
|
|
|
2350
2981
|
this.isOldPcipalOff = this.paymentLibComponent.ISOLDPCIPALOFF;
|
|
2351
2982
|
this.isStrategicFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
2352
2983
|
if (!this.isTurnOff) {
|
|
2353
|
-
if (this.lsCcdNumber !== this.ccdCaseNumber) {
|
|
2354
|
-
|
|
2355
|
-
}
|
|
2984
|
+
// if (this.lsCcdNumber !== this.ccdCaseNumber) {
|
|
2985
|
+
// this.router.navigateByUrl(`/ccd-search?takePayment=true`);
|
|
2986
|
+
// }
|
|
2356
2987
|
this.caseTransactionsService.getPaymentGroups(this.ccdCaseNumber).subscribe((/**
|
|
2357
2988
|
* @param {?} paymentGroups
|
|
2358
2989
|
* @return {?}
|
|
@@ -2370,22 +3001,23 @@ class CaseTransactionsComponent {
|
|
|
2370
3001
|
*/
|
|
2371
3002
|
(data) => this.orderRef = data));
|
|
2372
3003
|
this.goToOrderViewDetailSection(this.orderRef);
|
|
2373
|
-
// this.viewStatus = 'order-full-view';
|
|
2374
3004
|
}
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
3005
|
+
else {
|
|
3006
|
+
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
3007
|
+
* @param {?} response
|
|
3008
|
+
* @return {?}
|
|
3009
|
+
*/
|
|
3010
|
+
response => {
|
|
3011
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
3012
|
+
}), (/**
|
|
3013
|
+
* @param {?} error
|
|
3014
|
+
* @return {?}
|
|
3015
|
+
*/
|
|
3016
|
+
(error) => {
|
|
3017
|
+
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
3018
|
+
this.isCPODown = true;
|
|
3019
|
+
}));
|
|
3020
|
+
}
|
|
2389
3021
|
}), (/**
|
|
2390
3022
|
* @param {?} error
|
|
2391
3023
|
* @return {?}
|
|
@@ -2412,7 +3044,7 @@ class CaseTransactionsComponent {
|
|
|
2412
3044
|
* @return {?}
|
|
2413
3045
|
*/
|
|
2414
3046
|
response => {
|
|
2415
|
-
this.cpoDetails = JSON.parse(response).
|
|
3047
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
2416
3048
|
}), (/**
|
|
2417
3049
|
* @param {?} error
|
|
2418
3050
|
* @return {?}
|
|
@@ -2697,16 +3329,6 @@ class CaseTransactionsComponent {
|
|
|
2697
3329
|
this.paymentLibComponent.viewName = 'fee-summary';
|
|
2698
3330
|
}
|
|
2699
3331
|
}
|
|
2700
|
-
/**
|
|
2701
|
-
* @param {?} event
|
|
2702
|
-
* @return {?}
|
|
2703
|
-
*/
|
|
2704
|
-
goToCaseTransationPage(event) {
|
|
2705
|
-
event.preventDefault();
|
|
2706
|
-
this.isFromServiceRequestPage = false;
|
|
2707
|
-
this.viewStatus = 'main';
|
|
2708
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
2709
|
-
}
|
|
2710
3332
|
/**
|
|
2711
3333
|
* @return {?}
|
|
2712
3334
|
*/
|
|
@@ -3184,6 +3806,7 @@ class CaseTransactionsComponent {
|
|
|
3184
3806
|
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
3185
3807
|
this.viewStatus = 'issuerefund';
|
|
3186
3808
|
this.payment = payment;
|
|
3809
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3187
3810
|
this.isRefundRemission = true;
|
|
3188
3811
|
}
|
|
3189
3812
|
}
|
|
@@ -3258,6 +3881,7 @@ class CaseTransactionsComponent {
|
|
|
3258
3881
|
*/
|
|
3259
3882
|
chkIsRefundRemissionBtnEnable() {
|
|
3260
3883
|
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
3884
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3261
3885
|
this.orderDetail.forEach((/**
|
|
3262
3886
|
* @param {?} orderDetail
|
|
3263
3887
|
* @return {?}
|
|
@@ -3283,12 +3907,20 @@ class CaseTransactionsComponent {
|
|
|
3283
3907
|
}
|
|
3284
3908
|
}
|
|
3285
3909
|
}
|
|
3910
|
+
/**
|
|
3911
|
+
* @param {?} orderRef
|
|
3912
|
+
* @return {?}
|
|
3913
|
+
*/
|
|
3914
|
+
loadPBAAccountPage(orderRef) {
|
|
3915
|
+
this.paymentLibComponent.pbaPayOrderRef = orderRef;
|
|
3916
|
+
this.paymentLibComponent.viewName = 'pba-payment';
|
|
3917
|
+
}
|
|
3286
3918
|
}
|
|
3287
3919
|
CaseTransactionsComponent.decorators = [
|
|
3288
3920
|
{ type: Component, args: [{
|
|
3289
3921
|
selector: 'ccpay-case-transactions',
|
|
3290
|
-
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 <!-- <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments> -->\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 <!-- <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 Sorry, there is a problem with the service\n </h2>\n <p>Payment requests and payments cannot currently be shown. Try again.</p>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div> -->\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 <!-- <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"8\">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]=\"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 *ngIf=\"errorMessage\">\n <div *ngIf=\"isCPODown && isAnyFeeGroupAvilable\" class=\" error govuk-inset-text govuk-!-margin-top-7\">\n No party information currently available - try again later.\n </div>\n <div *ngIf=\"!isAnyFeeGroupAvilable\" class=\"error\">\n <h3 class=\"govuk-heading-m govuk-!-margin-top-7 govuk-!-margin-bottom-1\">Sorry, there is a problem with the service</h3>\n <p>Payment requests and payments cannot currently be shown. Try again.</p>\n </div>\n </div> -->\n \n <div class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviveRequestValue === '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\">Request 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.paymentGroupReference }}</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 <!-- <ng-container *ngIf=\"allPayments?.length === 0\">\n <br/>No payments.\n </ng-container> -->\n </div>\n </div>\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status [ccdCaseNumber]=\"ccdCaseNumber\" ></ccpay-refund-status>\n </div>\n\n \n </div>\n\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 <div *ngIf=\"takePayment\" 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\"> \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\"> \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 </div>\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 \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\"></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>",
|
|
3291
|
-
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%}"]
|
|
3922
|
+
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 *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\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\">\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 <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()\">\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 [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\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</main>\n</div>\n\n\n",
|
|
3923
|
+
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}"]
|
|
3292
3924
|
}] }
|
|
3293
3925
|
];
|
|
3294
3926
|
/** @nocollapse */
|
|
@@ -3301,7 +3933,8 @@ CaseTransactionsComponent.ctorParameters = () => [
|
|
|
3301
3933
|
{ type: OrderslistService }
|
|
3302
3934
|
];
|
|
3303
3935
|
CaseTransactionsComponent.propDecorators = {
|
|
3304
|
-
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }]
|
|
3936
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
3937
|
+
isTakePayment: [{ type: Input }]
|
|
3305
3938
|
};
|
|
3306
3939
|
|
|
3307
3940
|
/**
|
|
@@ -5431,12 +6064,20 @@ class AddRetroRemissionRequest {
|
|
|
5431
6064
|
*/
|
|
5432
6065
|
class PostRefundRetroRemission {
|
|
5433
6066
|
/**
|
|
6067
|
+
* @param {?} ccd_case_number
|
|
5434
6068
|
* @param {?} payment_reference
|
|
5435
6069
|
* @param {?} refund_reason
|
|
6070
|
+
* @param {?} refund_amount
|
|
6071
|
+
* @param {?} fees
|
|
6072
|
+
* @param {?} contact_details
|
|
5436
6073
|
*/
|
|
5437
|
-
constructor(payment_reference, refund_reason) {
|
|
6074
|
+
constructor(ccd_case_number, payment_reference, refund_reason, refund_amount, fees, contact_details) {
|
|
6075
|
+
this.ccd_case_number = ccd_case_number;
|
|
5438
6076
|
this.payment_reference = payment_reference;
|
|
5439
6077
|
this.refund_reason = refund_reason;
|
|
6078
|
+
this.refund_amount = refund_amount;
|
|
6079
|
+
this.fees = fees;
|
|
6080
|
+
this.contact_details = contact_details;
|
|
5440
6081
|
}
|
|
5441
6082
|
}
|
|
5442
6083
|
|
|
@@ -5444,21 +6085,6 @@ class PostRefundRetroRemission {
|
|
|
5444
6085
|
* @fileoverview added by tsickle
|
|
5445
6086
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5446
6087
|
*/
|
|
5447
|
-
class PostIssueRefundRetroRemission {
|
|
5448
|
-
/**
|
|
5449
|
-
* @param {?} remissionReference
|
|
5450
|
-
*/
|
|
5451
|
-
constructor(remissionReference) {
|
|
5452
|
-
this.remissionReference = remissionReference;
|
|
5453
|
-
}
|
|
5454
|
-
}
|
|
5455
|
-
|
|
5456
|
-
/**
|
|
5457
|
-
* @fileoverview added by tsickle
|
|
5458
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5459
|
-
*/
|
|
5460
|
-
/** @type {?} */
|
|
5461
|
-
const BS_ENABLE_FLAG$3 = 'bulk-scan-enabling-fe';
|
|
5462
6088
|
class AddRemissionComponent {
|
|
5463
6089
|
/**
|
|
5464
6090
|
* @param {?} formBuilder
|
|
@@ -5509,11 +6135,15 @@ class AddRemissionComponent {
|
|
|
5509
6135
|
this.isRemissionApplied = false;
|
|
5510
6136
|
// refundReasons: any[] = [];
|
|
5511
6137
|
this.commonRefundReasons = [];
|
|
6138
|
+
this.class = '';
|
|
6139
|
+
this.errorMsg = new Array();
|
|
5512
6140
|
}
|
|
5513
6141
|
/**
|
|
5514
6142
|
* @return {?}
|
|
5515
6143
|
*/
|
|
5516
6144
|
ngOnInit() {
|
|
6145
|
+
this.errorMessage = '';
|
|
6146
|
+
this.errorMsg = [];
|
|
5517
6147
|
this.default = 'Select a different reason';
|
|
5518
6148
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
5519
6149
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -5525,6 +6155,7 @@ class AddRemissionComponent {
|
|
|
5525
6155
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
5526
6156
|
}
|
|
5527
6157
|
if (this.payment) {
|
|
6158
|
+
this.paymentReference = this.payment.reference;
|
|
5528
6159
|
this.remessionPayment = this.payment;
|
|
5529
6160
|
if (this.payment.status === 'Success') {
|
|
5530
6161
|
this.isPaymentSuccess = true;
|
|
@@ -5537,27 +6168,74 @@ class AddRemissionComponent {
|
|
|
5537
6168
|
Validators.required,
|
|
5538
6169
|
Validators.pattern(`(${this.pattern1})|(${this.pattern2})`)
|
|
5539
6170
|
])),
|
|
5540
|
-
// remissionCode: new FormControl('', Validators.compose([ [A-Za-z]{2}[0-9]{2} [0-9]{6}
|
|
5541
|
-
// Validators.required,
|
|
5542
|
-
// // Validators.pattern('/(^[a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$/|/^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$/')
|
|
5543
|
-
// // Validators.pattern('^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$'),
|
|
5544
|
-
// Validators.pattern('/^(([A-Za-z]{2}[0-9]{2})-([0-9]{6}))|(([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3}))$/')
|
|
5545
|
-
// ])),
|
|
5546
6171
|
amount: new FormControl('', Validators.compose([
|
|
5547
6172
|
Validators.required,
|
|
5548
6173
|
Validators.pattern('^[0-9]+(\.[0-9]{1,2})?$')
|
|
5549
6174
|
])),
|
|
5550
6175
|
refundReason: new FormControl('', Validators.compose([Validators.required])),
|
|
5551
6176
|
refundDDReason: new FormControl('', Validators.compose([Validators.required])),
|
|
5552
|
-
reason: new FormControl()
|
|
6177
|
+
reason: new FormControl(),
|
|
6178
|
+
feeAmount: new FormControl(),
|
|
6179
|
+
feesList: this.formBuilder.array([])
|
|
5553
6180
|
});
|
|
5554
6181
|
/** @type {?} */
|
|
5555
6182
|
const remissionctrls = this.remissionForm.controls;
|
|
5556
6183
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
6184
|
+
if (this.isFromServiceRequestPage) {
|
|
6185
|
+
this.paymentViewService.getApportionPaymentDetails(this.paymentLibComponent.paymentReference).subscribe((/**
|
|
6186
|
+
* @param {?} paymentGroup
|
|
6187
|
+
* @return {?}
|
|
6188
|
+
*/
|
|
6189
|
+
paymentGroup => {
|
|
6190
|
+
/** @type {?} */
|
|
6191
|
+
let fees = [];
|
|
6192
|
+
paymentGroup.fees.forEach((/**
|
|
6193
|
+
* @param {?} fee
|
|
6194
|
+
* @return {?}
|
|
6195
|
+
*/
|
|
6196
|
+
fee => {
|
|
6197
|
+
this.isRemissionsMatch = false;
|
|
6198
|
+
paymentGroup.remissions.forEach((/**
|
|
6199
|
+
* @param {?} rem
|
|
6200
|
+
* @return {?}
|
|
6201
|
+
*/
|
|
6202
|
+
rem => {
|
|
6203
|
+
if (rem.fee_code === fee.code) {
|
|
6204
|
+
this.isRemissionsMatch = true;
|
|
6205
|
+
fee['remissions'] = rem;
|
|
6206
|
+
fees.push(fee);
|
|
6207
|
+
}
|
|
6208
|
+
}));
|
|
6209
|
+
if (!this.isRemissionsMatch) {
|
|
6210
|
+
fees.push(fee);
|
|
6211
|
+
}
|
|
6212
|
+
}));
|
|
6213
|
+
paymentGroup.fees = fees;
|
|
6214
|
+
this.paymentFees = fees;
|
|
6215
|
+
this.fees = fees;
|
|
6216
|
+
this.paymentGroup = paymentGroup;
|
|
6217
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
6218
|
+
* @param {?} paymentGroupObj
|
|
6219
|
+
* @return {?}
|
|
6220
|
+
*/
|
|
6221
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
|
|
6222
|
+
/** @type {?} */
|
|
6223
|
+
const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
6224
|
+
this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
6225
|
+
this.refundFeesList();
|
|
6226
|
+
}), (/**
|
|
6227
|
+
* @param {?} error
|
|
6228
|
+
* @return {?}
|
|
6229
|
+
*/
|
|
6230
|
+
(error) => this.errorMessage = error));
|
|
6231
|
+
}
|
|
6232
|
+
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
6233
|
+
this.refundFeesList();
|
|
6234
|
+
}
|
|
5557
6235
|
if (this.viewCompStatus === '') {
|
|
5558
6236
|
this.viewStatus = 'main';
|
|
5559
6237
|
}
|
|
5560
|
-
if (this.viewCompStatus === '
|
|
6238
|
+
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
5561
6239
|
this.refundService.getRefundReasons().subscribe((/**
|
|
5562
6240
|
* @param {?} refundReasons
|
|
5563
6241
|
* @return {?}
|
|
@@ -5591,33 +6269,111 @@ class AddRemissionComponent {
|
|
|
5591
6269
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
5592
6270
|
this.viewStatus = 'processretroremissonpage';
|
|
5593
6271
|
}
|
|
6272
|
+
if (this.orderDetail !== undefined) {
|
|
6273
|
+
this.fees = this.orderDetail[0].fees;
|
|
6274
|
+
this.paymentReference = this.orderDetail[0].payments[0].reference;
|
|
6275
|
+
}
|
|
5594
6276
|
}
|
|
5595
6277
|
/**
|
|
5596
6278
|
* @return {?}
|
|
5597
6279
|
*/
|
|
5598
|
-
|
|
5599
|
-
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
5600
|
-
/** @type {?} */
|
|
5601
|
-
const remissionctrls = this.remissionForm.controls;
|
|
6280
|
+
refundFeesList() {
|
|
5602
6281
|
/** @type {?} */
|
|
5603
|
-
const
|
|
5604
|
-
this.
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
6282
|
+
const creds = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
6283
|
+
for (var i = 0; i < this.fees.length; i++) {
|
|
6284
|
+
creds.push(this.formBuilder.group({
|
|
6285
|
+
id: this.fees[i].id,
|
|
6286
|
+
code: this.fees[i].code,
|
|
6287
|
+
volume: this.fees[i].volume,
|
|
6288
|
+
calculated_amount: this.fees[i].calculated_amount,
|
|
6289
|
+
apportion_amount: this.fees[i].apportion_amount,
|
|
6290
|
+
ccd_case_number: this.fees[i].ccd_case_number,
|
|
6291
|
+
description: this.fees[i].description,
|
|
6292
|
+
net_amount: this.fees[i].net_amount,
|
|
6293
|
+
version: this.fees[i].version,
|
|
6294
|
+
amounttorefund: [''],
|
|
6295
|
+
selected: ['']
|
|
6296
|
+
}));
|
|
5609
6297
|
}
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
6298
|
+
this.cd.detectChanges();
|
|
6299
|
+
}
|
|
6300
|
+
/**
|
|
6301
|
+
* @return {?}
|
|
6302
|
+
*/
|
|
6303
|
+
get feesList() {
|
|
6304
|
+
/** @type {?} */
|
|
6305
|
+
const dd = (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
6306
|
+
return (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
6307
|
+
}
|
|
6308
|
+
/**
|
|
6309
|
+
* @return {?}
|
|
6310
|
+
*/
|
|
6311
|
+
noneSelected() {
|
|
6312
|
+
if (!this.feesList.controls.some((/**
|
|
6313
|
+
* @param {?} item
|
|
6314
|
+
* @return {?}
|
|
6315
|
+
*/
|
|
6316
|
+
item => item.get('selected').value === true))) {
|
|
6317
|
+
this.errorMsg = [];
|
|
6318
|
+
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
6319
|
+
* @param {?} el
|
|
6320
|
+
* @return {?}
|
|
6321
|
+
*/
|
|
6322
|
+
function (el) {
|
|
6323
|
+
el.classList.remove('inline-error-class');
|
|
6324
|
+
}));
|
|
6325
|
+
}
|
|
6326
|
+
return !this.feesList.controls.some((/**
|
|
6327
|
+
* @param {?} item
|
|
6328
|
+
* @return {?}
|
|
6329
|
+
*/
|
|
6330
|
+
item => item.get('selected').value === true));
|
|
6331
|
+
}
|
|
6332
|
+
/**
|
|
6333
|
+
* @param {?} v1
|
|
6334
|
+
* @return {?}
|
|
6335
|
+
*/
|
|
6336
|
+
check_en(v1) {
|
|
6337
|
+
/** @type {?} */
|
|
6338
|
+
const ele = (/** @type {?} */ (document.getElementById(v1)));
|
|
6339
|
+
if (ele.checked) {
|
|
6340
|
+
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
6341
|
+
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
6342
|
+
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
6343
|
+
}
|
|
6344
|
+
}
|
|
6345
|
+
else {
|
|
6346
|
+
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
6347
|
+
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
6348
|
+
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
6349
|
+
}
|
|
6350
|
+
}
|
|
6351
|
+
}
|
|
6352
|
+
/**
|
|
6353
|
+
* @return {?}
|
|
6354
|
+
*/
|
|
6355
|
+
addRemission() {
|
|
6356
|
+
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
6357
|
+
/** @type {?} */
|
|
6358
|
+
const remissionctrls = this.remissionForm.controls;
|
|
6359
|
+
/** @type {?} */
|
|
6360
|
+
const isRemissionLessThanFee = this.fee.calculated_amount > remissionctrls.amount.value;
|
|
6361
|
+
this.remissionForm.controls['refundReason'].setErrors(null);
|
|
6362
|
+
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
6363
|
+
if (this.remissionForm.dirty && this.remissionForm.valid && isRemissionLessThanFee) {
|
|
6364
|
+
this.viewStatus = 'confirmation';
|
|
6365
|
+
}
|
|
6366
|
+
else {
|
|
6367
|
+
if (remissionctrls['remissionCode'].value == '') {
|
|
6368
|
+
this.resetRemissionForm([true, false, false, false, false, false], 'remissionCode');
|
|
6369
|
+
}
|
|
6370
|
+
if (remissionctrls['remissionCode'].value != '' && remissionctrls['remissionCode'].invalid) {
|
|
6371
|
+
this.resetRemissionForm([false, true, false, false, false, false], 'remissionCode');
|
|
6372
|
+
}
|
|
6373
|
+
if (remissionctrls['amount'].value == '') {
|
|
6374
|
+
this.resetRemissionForm([false, false, true, false, false, false], 'amount');
|
|
6375
|
+
}
|
|
6376
|
+
if (remissionctrls['amount'].value != '' && remissionctrls['amount'].invalid) {
|
|
5621
6377
|
this.resetRemissionForm([false, true, false, true, false, false], 'amount');
|
|
5622
6378
|
}
|
|
5623
6379
|
if (remissionctrls.amount.valid && !isRemissionLessThanFee) {
|
|
@@ -5701,6 +6457,7 @@ class AddRemissionComponent {
|
|
|
5701
6457
|
*/
|
|
5702
6458
|
addRemissionCode() {
|
|
5703
6459
|
this.errorMessage = false;
|
|
6460
|
+
this.errorMsg = [];
|
|
5704
6461
|
this.viewStatus = '';
|
|
5705
6462
|
this.isRefundRemission = false;
|
|
5706
6463
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -5742,6 +6499,7 @@ class AddRemissionComponent {
|
|
|
5742
6499
|
*/
|
|
5743
6500
|
gotoAddRetroRemissionCodePage() {
|
|
5744
6501
|
this.errorMessage = false;
|
|
6502
|
+
this.errorMsg = [];
|
|
5745
6503
|
if (this.isRefundRemission) {
|
|
5746
6504
|
this.paymentLibComponent.iscancelClicked = true;
|
|
5747
6505
|
this.refundListAmount.emit();
|
|
@@ -5759,6 +6517,7 @@ class AddRemissionComponent {
|
|
|
5759
6517
|
this.viewCompStatus = "addremission";
|
|
5760
6518
|
this.isRefundRemission = true;
|
|
5761
6519
|
this.errorMessage = '';
|
|
6520
|
+
this.errorMsg = [];
|
|
5762
6521
|
if (this.isFromPaymentDetailPage) {
|
|
5763
6522
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
5764
6523
|
}
|
|
@@ -5807,6 +6566,15 @@ class AddRemissionComponent {
|
|
|
5807
6566
|
//}
|
|
5808
6567
|
}
|
|
5809
6568
|
}
|
|
6569
|
+
/**
|
|
6570
|
+
* @return {?}
|
|
6571
|
+
*/
|
|
6572
|
+
gotoAmountRetroRemission() {
|
|
6573
|
+
this.viewStatus = 'processretroremissonpage';
|
|
6574
|
+
this.viewCompStatus = '';
|
|
6575
|
+
this.isRefundRemission = true;
|
|
6576
|
+
this.errorMessage = '';
|
|
6577
|
+
}
|
|
5810
6578
|
/**
|
|
5811
6579
|
* @return {?}
|
|
5812
6580
|
*/
|
|
@@ -5815,6 +6583,16 @@ class AddRemissionComponent {
|
|
|
5815
6583
|
this.viewCompStatus = 'addremission';
|
|
5816
6584
|
this.isRefundRemission = true;
|
|
5817
6585
|
this.errorMessage = '';
|
|
6586
|
+
this.errorMsg = [];
|
|
6587
|
+
}
|
|
6588
|
+
/**
|
|
6589
|
+
* @return {?}
|
|
6590
|
+
*/
|
|
6591
|
+
gotoProcessRetroRemission() {
|
|
6592
|
+
this.viewStatus = 'remissionAddressPage';
|
|
6593
|
+
this.viewCompStatus = '';
|
|
6594
|
+
this.isRefundRemission = true;
|
|
6595
|
+
this.errorMessage = '';
|
|
5818
6596
|
}
|
|
5819
6597
|
/**
|
|
5820
6598
|
* @return {?}
|
|
@@ -5852,6 +6630,7 @@ class AddRemissionComponent {
|
|
|
5852
6630
|
*/
|
|
5853
6631
|
processRefund() {
|
|
5854
6632
|
this.errorMessage = '';
|
|
6633
|
+
this.errorMsg = [];
|
|
5855
6634
|
this.isConfirmationBtnDisabled = true;
|
|
5856
6635
|
if (this.isRefundRemission) {
|
|
5857
6636
|
this.retroRemission = true;
|
|
@@ -5860,7 +6639,7 @@ class AddRemissionComponent {
|
|
|
5860
6639
|
this.remissionReference = this.remission.remission_reference;
|
|
5861
6640
|
}
|
|
5862
6641
|
/** @type {?} */
|
|
5863
|
-
const requestBody = new
|
|
6642
|
+
const requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
|
|
5864
6643
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
|
|
5865
6644
|
* @param {?} response
|
|
5866
6645
|
* @return {?}
|
|
@@ -5891,7 +6670,19 @@ class AddRemissionComponent {
|
|
|
5891
6670
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
5892
6671
|
this.isFromRefundListPage = true;
|
|
5893
6672
|
}
|
|
6673
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
6674
|
+
* @param {?} a
|
|
6675
|
+
* @param {?} c
|
|
6676
|
+
* @return {?}
|
|
6677
|
+
*/
|
|
6678
|
+
(a, c) => a + c.amounttorefund * c.selected), 0);
|
|
6679
|
+
// this.remissionForm.get('feesList').valueChanges.subscribe(values => {
|
|
6680
|
+
// resolvedPromise.then(() => {
|
|
6681
|
+
// this.totalRefundAmount = valuesreduce((a, c) => a + c.amounttorefund * c.selected, 0)
|
|
6682
|
+
// });
|
|
6683
|
+
// });
|
|
5894
6684
|
this.errorMessage = '';
|
|
6685
|
+
this.errorMsg = [];
|
|
5895
6686
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
5896
6687
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
5897
6688
|
this.refundHasError = true;
|
|
@@ -5902,13 +6693,13 @@ class AddRemissionComponent {
|
|
|
5902
6693
|
else if (this.selectedRefundReason.includes('Other') && this.remissionForm.controls['reason'].value !== '') {
|
|
5903
6694
|
this.refundHasError = false;
|
|
5904
6695
|
this.refundReason += '-' + this.remissionForm.controls['reason'].value;
|
|
5905
|
-
this.displayRefundReason = this.remissionForm.controls['reason'].value;
|
|
6696
|
+
this.displayRefundReason = this.selectedRefundReason + '-' + this.remissionForm.controls['reason'].value;
|
|
5906
6697
|
if (this.isFromRefundListPage) {
|
|
5907
|
-
this.refundListReason.emit({ reason: this.
|
|
6698
|
+
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
5908
6699
|
}
|
|
5909
6700
|
else {
|
|
5910
6701
|
this.viewCompStatus = '';
|
|
5911
|
-
this.viewStatus = '
|
|
6702
|
+
this.viewStatus = 'contactDetailsPage';
|
|
5912
6703
|
}
|
|
5913
6704
|
}
|
|
5914
6705
|
else {
|
|
@@ -5919,7 +6710,7 @@ class AddRemissionComponent {
|
|
|
5919
6710
|
}
|
|
5920
6711
|
else {
|
|
5921
6712
|
this.viewCompStatus = '';
|
|
5922
|
-
this.viewStatus = '
|
|
6713
|
+
this.viewStatus = 'contactDetailsPage';
|
|
5923
6714
|
}
|
|
5924
6715
|
}
|
|
5925
6716
|
}
|
|
@@ -5932,15 +6723,152 @@ class AddRemissionComponent {
|
|
|
5932
6723
|
this.viewStatus = '';
|
|
5933
6724
|
this.isRefundRemission = true;
|
|
5934
6725
|
this.errorMessage = false;
|
|
6726
|
+
this.errorMsg = [];
|
|
5935
6727
|
this.refundHasError = false;
|
|
5936
6728
|
this.isReasonEmpty = false;
|
|
5937
6729
|
}
|
|
6730
|
+
/**
|
|
6731
|
+
* @return {?}
|
|
6732
|
+
*/
|
|
6733
|
+
gotoIssuePage() {
|
|
6734
|
+
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
6735
|
+
* @param {?} el
|
|
6736
|
+
* @return {?}
|
|
6737
|
+
*/
|
|
6738
|
+
function (el) {
|
|
6739
|
+
el.classList.remove('inline-error-class');
|
|
6740
|
+
}));
|
|
6741
|
+
/** @type {?} */
|
|
6742
|
+
var checkboxs = document.getElementsByTagName('input');
|
|
6743
|
+
this.errorMessage = '';
|
|
6744
|
+
this.errorMsg = [];
|
|
6745
|
+
for (var j = 0; j < checkboxs.length; j++) {
|
|
6746
|
+
if (checkboxs[j].checked) {
|
|
6747
|
+
/** @type {?} */
|
|
6748
|
+
let quantity = +((/** @type {?} */ (document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
6749
|
+
/** @type {?} */
|
|
6750
|
+
let amountToRefund = +((/** @type {?} */ (document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
6751
|
+
/** @type {?} */
|
|
6752
|
+
let apportionAmount = +((/** @type {?} */ (document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
6753
|
+
/** @type {?} */
|
|
6754
|
+
let calculatedAmount = +((/** @type {?} */ (document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
6755
|
+
if (amountToRefund === apportionAmount) {
|
|
6756
|
+
this.fullRefund = true;
|
|
6757
|
+
}
|
|
6758
|
+
if (amountToRefund === 0) {
|
|
6759
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
6760
|
+
this.errorMsg.push('You need to enter a refund amount');
|
|
6761
|
+
this.getErrorClass(this.elementId);
|
|
6762
|
+
}
|
|
6763
|
+
if (this.quantityUpdated === 0) {
|
|
6764
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
6765
|
+
this.errorMsg.push('You need to enter quantity');
|
|
6766
|
+
this.getErrorClass(this.elementId);
|
|
6767
|
+
}
|
|
6768
|
+
if (quantity === 1) {
|
|
6769
|
+
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
6770
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
6771
|
+
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
6772
|
+
this.getErrorClass(this.elementId);
|
|
6773
|
+
}
|
|
6774
|
+
}
|
|
6775
|
+
if (quantity > 1) {
|
|
6776
|
+
this.quantityUpdated = +((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
6777
|
+
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
6778
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
6779
|
+
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
6780
|
+
this.getErrorClass(this.elementId);
|
|
6781
|
+
}
|
|
6782
|
+
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
6783
|
+
this.allowedRefundAmount = this.quantityUpdated * calculatedAmount;
|
|
6784
|
+
if (this.allowedRefundAmount !== amountToRefund) {
|
|
6785
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
6786
|
+
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
6787
|
+
this.getErrorClass(this.elementId);
|
|
6788
|
+
}
|
|
6789
|
+
}
|
|
6790
|
+
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
6791
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
6792
|
+
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
6793
|
+
this.getErrorClass(this.elementId);
|
|
6794
|
+
}
|
|
6795
|
+
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
6796
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
6797
|
+
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
6798
|
+
this.getErrorClass(this.elementId);
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6801
|
+
}
|
|
6802
|
+
}
|
|
6803
|
+
if (this.errorMsg.length === 0) {
|
|
6804
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
6805
|
+
this.getRefundReasons();
|
|
6806
|
+
}
|
|
6807
|
+
}
|
|
6808
|
+
/**
|
|
6809
|
+
* @return {?}
|
|
6810
|
+
*/
|
|
6811
|
+
gotoContactDetailsPage() {
|
|
6812
|
+
this.errorMessage = '';
|
|
6813
|
+
this.viewCompStatus = '';
|
|
6814
|
+
this.viewStatus = 'contactDetailsPage';
|
|
6815
|
+
this.isRefundRemission = true;
|
|
6816
|
+
this.errorMessage = false;
|
|
6817
|
+
}
|
|
6818
|
+
/**
|
|
6819
|
+
* @return {?}
|
|
6820
|
+
*/
|
|
6821
|
+
getRefundReasons() {
|
|
6822
|
+
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
6823
|
+
this.refundService.getRefundReasons().subscribe((/**
|
|
6824
|
+
* @param {?} refundReasons
|
|
6825
|
+
* @return {?}
|
|
6826
|
+
*/
|
|
6827
|
+
refundReasons => {
|
|
6828
|
+
this.refundReasons = refundReasons.filter((/**
|
|
6829
|
+
* @param {?} data
|
|
6830
|
+
* @return {?}
|
|
6831
|
+
*/
|
|
6832
|
+
(data) => data.recently_used === false));
|
|
6833
|
+
this.refundReasons = this.refundReasons.filter((/**
|
|
6834
|
+
* @param {?} data
|
|
6835
|
+
* @return {?}
|
|
6836
|
+
*/
|
|
6837
|
+
(data) => data.name !== 'Retrospective remission'));
|
|
6838
|
+
this.cd.detectChanges();
|
|
6839
|
+
this.commonRefundReasons = refundReasons.filter((/**
|
|
6840
|
+
* @param {?} data
|
|
6841
|
+
* @return {?}
|
|
6842
|
+
*/
|
|
6843
|
+
(data) => data.recently_used === true));
|
|
6844
|
+
this.commonRefundReasons.sort((/**
|
|
6845
|
+
* @param {?} a
|
|
6846
|
+
* @param {?} b
|
|
6847
|
+
* @return {?}
|
|
6848
|
+
*/
|
|
6849
|
+
(a, b) => a.toString().localeCompare(b)));
|
|
6850
|
+
this.cd.detectChanges();
|
|
6851
|
+
}));
|
|
6852
|
+
}
|
|
6853
|
+
}
|
|
6854
|
+
/**
|
|
6855
|
+
* @param {?} elementId
|
|
6856
|
+
* @return {?}
|
|
6857
|
+
*/
|
|
6858
|
+
getErrorClass(elementId) {
|
|
6859
|
+
if (this.errorMsg.length > 0) {
|
|
6860
|
+
/** @type {?} */
|
|
6861
|
+
const ele = document.getElementById(elementId);
|
|
6862
|
+
ele.classList.add('inline-error-class');
|
|
6863
|
+
}
|
|
6864
|
+
}
|
|
5938
6865
|
/**
|
|
5939
6866
|
* @return {?}
|
|
5940
6867
|
*/
|
|
5941
6868
|
changeIssueRefundReason() {
|
|
5942
6869
|
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
5943
6870
|
this.errorMessage = '';
|
|
6871
|
+
this.errorMsg = [];
|
|
5944
6872
|
this.refundHasError = false;
|
|
5945
6873
|
this.isReasonEmpty = false;
|
|
5946
6874
|
this.viewCompStatus = 'issuerefund';
|
|
@@ -5953,11 +6881,17 @@ class AddRemissionComponent {
|
|
|
5953
6881
|
confirmIssueRefund() {
|
|
5954
6882
|
this.isConfirmationBtnDisabled = true;
|
|
5955
6883
|
this.errorMessage = '';
|
|
6884
|
+
this.errorMsg = [];
|
|
5956
6885
|
if (this.isRefundRemission) {
|
|
5957
6886
|
this.retroRemission = true;
|
|
5958
6887
|
}
|
|
6888
|
+
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
6889
|
+
* @param {?} value
|
|
6890
|
+
* @return {?}
|
|
6891
|
+
*/
|
|
6892
|
+
value => value.selected === true));
|
|
5959
6893
|
/** @type {?} */
|
|
5960
|
-
const requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
6894
|
+
const requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
|
|
5961
6895
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
5962
6896
|
* @param {?} response
|
|
5963
6897
|
* @return {?}
|
|
@@ -5982,39 +6916,30 @@ class AddRemissionComponent {
|
|
|
5982
6916
|
}));
|
|
5983
6917
|
}
|
|
5984
6918
|
// Retro Refund
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
}), (/**
|
|
6010
|
-
* @param {?} error
|
|
6011
|
-
* @return {?}
|
|
6012
|
-
*/
|
|
6013
|
-
(error) => {
|
|
6014
|
-
this.errorMessage = error;
|
|
6015
|
-
this.isConfirmationBtnDisabled = false;
|
|
6016
|
-
}));
|
|
6017
|
-
}
|
|
6919
|
+
// confirmRetroRefund() {
|
|
6920
|
+
// this.isConfirmationBtnDisabled = true;
|
|
6921
|
+
// this.errorMessage = '';
|
|
6922
|
+
// this.errorMsg = [];
|
|
6923
|
+
// if( this.isRefundRemission) {
|
|
6924
|
+
// this.retroRemission = true;
|
|
6925
|
+
// }
|
|
6926
|
+
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
6927
|
+
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
6928
|
+
// response => {
|
|
6929
|
+
// if (JSON.parse(response)) {
|
|
6930
|
+
// this.viewCompStatus = '';
|
|
6931
|
+
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
6932
|
+
// this.refundReference =JSON.parse(response).refund_reference;
|
|
6933
|
+
// if(JSON.parse(response).refund_amount) {
|
|
6934
|
+
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
6935
|
+
// }
|
|
6936
|
+
// }
|
|
6937
|
+
// },
|
|
6938
|
+
// (error: any) => {
|
|
6939
|
+
// this.errorMessage = error;
|
|
6940
|
+
// this.isConfirmationBtnDisabled = false;
|
|
6941
|
+
// });
|
|
6942
|
+
// }
|
|
6018
6943
|
/**
|
|
6019
6944
|
* @param {?} key
|
|
6020
6945
|
* @param {?} value
|
|
@@ -6028,6 +6953,7 @@ class AddRemissionComponent {
|
|
|
6028
6953
|
remissionctrls['reason'].reset();
|
|
6029
6954
|
this.isRefundReasonsSelected = true;
|
|
6030
6955
|
this.errorMessage = false;
|
|
6956
|
+
this.errorMsg = [];
|
|
6031
6957
|
this.isReasonEmpty = false;
|
|
6032
6958
|
this.showReasonText = false;
|
|
6033
6959
|
this.refundHasError = false;
|
|
@@ -6058,179 +6984,157 @@ class AddRemissionComponent {
|
|
|
6058
6984
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
6059
6985
|
}
|
|
6060
6986
|
}
|
|
6987
|
+
/**
|
|
6988
|
+
* @param {?} obj
|
|
6989
|
+
* @param {?} type
|
|
6990
|
+
* @return {?}
|
|
6991
|
+
*/
|
|
6992
|
+
getContactDetails(obj, type) {
|
|
6993
|
+
this.contactDetailsObj = obj;
|
|
6994
|
+
this.viewCompStatus = '';
|
|
6995
|
+
this.viewStatus = type;
|
|
6996
|
+
}
|
|
6061
6997
|
/**
|
|
6062
6998
|
* @param {?} event
|
|
6063
6999
|
* @return {?}
|
|
6064
7000
|
*/
|
|
6065
7001
|
gotoServiceRequestPage(event) {
|
|
7002
|
+
this.errorMessage = '';
|
|
7003
|
+
this.errorMsg = [];
|
|
6066
7004
|
event.preventDefault();
|
|
6067
|
-
if (this.
|
|
6068
|
-
this.
|
|
6069
|
-
this.
|
|
6070
|
-
}
|
|
6071
|
-
if (this.isFromServiceRequestPage) {
|
|
6072
|
-
//this.paymentLibComponent.TAKEPAYMENT = false;
|
|
6073
|
-
this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
6074
|
-
this.viewStatus = 'main';
|
|
6075
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6076
|
-
this.OrderslistService.setisFromServiceRequestPage(true);
|
|
6077
|
-
this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7005
|
+
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
7006
|
+
this.viewStatus = 'order-full-view';
|
|
7007
|
+
this.viewCompStatus = '';
|
|
6078
7008
|
}
|
|
6079
|
-
if (this.isFromRefundListPage) {
|
|
7009
|
+
else if (this.isFromRefundListPage) {
|
|
6080
7010
|
this.paymentLibComponent.iscancelClicked = true;
|
|
6081
7011
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
6082
7012
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6083
7013
|
}
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
this.
|
|
6095
|
-
this.
|
|
6096
|
-
|
|
6097
|
-
this.
|
|
6098
|
-
this.
|
|
6099
|
-
this.
|
|
6100
|
-
this.
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
6104
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6105
|
-
// },
|
|
6106
|
-
// err => {
|
|
6107
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
6108
|
-
// }
|
|
6109
|
-
// );
|
|
6110
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
6111
|
-
/** @type {?} */
|
|
6112
|
-
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6113
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6114
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6115
|
-
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6116
|
-
partUrl += `&caseType=${this.caseType}`;
|
|
6117
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6118
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6119
|
-
if (this.isFromPaymentDetailPage) {
|
|
6120
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6121
|
-
}
|
|
6122
|
-
if (!this.paymentLibComponent.TAKEPAYMENT) {
|
|
6123
|
-
this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
6124
|
-
}
|
|
6125
|
-
if (this.paymentLibComponent.SERVICEREQUEST) {
|
|
6126
|
-
/** @type {?} */
|
|
6127
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
6128
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
6129
|
-
* @return {?}
|
|
6130
|
-
*/
|
|
6131
|
-
() => false);
|
|
6132
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6133
|
-
this.router.navigateByUrl(url);
|
|
6134
|
-
}
|
|
6135
|
-
else {
|
|
6136
|
-
/** @type {?} */
|
|
6137
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6138
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7014
|
+
else {
|
|
7015
|
+
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7016
|
+
this.paymentLibComponent.paymentGroupReference = this.paymentLibComponent.paymentGroupReference;
|
|
7017
|
+
this.paymentLibComponent.paymentReference = this.payment.reference;
|
|
7018
|
+
this.paymentLibComponent.viewName = 'payment-view';
|
|
7019
|
+
this.OrderslistService.setOrderRef(this.orderRef);
|
|
7020
|
+
this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
|
|
7021
|
+
this.OrderslistService.setorderCreated(this.orderCreated);
|
|
7022
|
+
this.OrderslistService.setorderDetail(this.orderDetail);
|
|
7023
|
+
this.OrderslistService.setorderParty(this.orderParty);
|
|
7024
|
+
this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
|
|
7025
|
+
this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
|
|
7026
|
+
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
7027
|
+
this.viewStatus = 'payment-view';
|
|
7028
|
+
this.sendOrderDetail = this.orderDetail;
|
|
7029
|
+
this.sendOrderRef = this.orderRef;
|
|
7030
|
+
if (this.LOGGEDINUSERROLES === undefined) {
|
|
7031
|
+
this.OrderslistService.getUserRolesList().subscribe((/**
|
|
7032
|
+
* @param {?} data
|
|
6139
7033
|
* @return {?}
|
|
6140
7034
|
*/
|
|
6141
|
-
() =>
|
|
6142
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6143
|
-
this.router.navigateByUrl(url);
|
|
7035
|
+
(data) => this.LOGGEDINUSERROLES = data));
|
|
6144
7036
|
}
|
|
7037
|
+
this.viewCompStatus = '';
|
|
6145
7038
|
}
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
}
|
|
7039
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7040
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7041
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7042
|
+
// }
|
|
7043
|
+
// if (this.isFromServiceRequestPage) {
|
|
7044
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7045
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7046
|
+
// this.viewStatus = 'main'
|
|
7047
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7048
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7049
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7050
|
+
// }
|
|
7051
|
+
// if ( this.isFromRefundListPage ) {
|
|
7052
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7053
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7054
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7055
|
+
// }
|
|
7056
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7057
|
+
// if(this.payment) {
|
|
7058
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7059
|
+
// }
|
|
7060
|
+
// if (this.isFromServiceRequestPage) {
|
|
7061
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7062
|
+
// } else {
|
|
7063
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7064
|
+
// }
|
|
7065
|
+
// this.errorMessage = '';
|
|
7066
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7067
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7068
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7069
|
+
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7070
|
+
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7071
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7072
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7073
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7074
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7075
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7076
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7077
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7078
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7079
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7080
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7081
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7082
|
+
// }
|
|
7083
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7084
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7085
|
+
// }
|
|
7086
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7087
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7088
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7089
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7090
|
+
// this.router.navigateByUrl(url);
|
|
7091
|
+
// } else {
|
|
7092
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7093
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7094
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7095
|
+
// this.router.navigateByUrl(url);
|
|
7096
|
+
// }
|
|
7097
|
+
// } else {
|
|
7098
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7099
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7100
|
+
// }
|
|
6150
7101
|
}
|
|
6151
7102
|
/**
|
|
6152
7103
|
* @return {?}
|
|
6153
7104
|
*/
|
|
6154
|
-
|
|
6155
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7105
|
+
gotoAddressPage() {
|
|
6156
7106
|
this.errorMessage = '';
|
|
6157
|
-
this.
|
|
6158
|
-
this.
|
|
6159
|
-
this.
|
|
6160
|
-
this.
|
|
6161
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6162
|
-
// this.paymentViewService.getBSfeature().subscribe(
|
|
6163
|
-
// features => {
|
|
6164
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
6165
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6166
|
-
// },
|
|
6167
|
-
// err => {
|
|
6168
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
6169
|
-
// }
|
|
6170
|
-
// );
|
|
6171
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
6172
|
-
/** @type {?} */
|
|
6173
|
-
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6174
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6175
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6176
|
-
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6177
|
-
partUrl += `&caseType=${this.caseType}`;
|
|
6178
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6179
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6180
|
-
if (this.isFromPaymentDetailPage) {
|
|
6181
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6182
|
-
}
|
|
6183
|
-
/** @type {?} */
|
|
6184
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6185
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
6186
|
-
* @return {?}
|
|
6187
|
-
*/
|
|
6188
|
-
() => false);
|
|
6189
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6190
|
-
this.router.navigateByUrl(url);
|
|
7107
|
+
this.viewCompStatus = 'addrefundforremission';
|
|
7108
|
+
this.viewStatus = '';
|
|
7109
|
+
this.isRefundRemission = true;
|
|
7110
|
+
this.errorMessage = false;
|
|
6191
7111
|
}
|
|
6192
7112
|
/**
|
|
6193
7113
|
* @param {?} event
|
|
6194
7114
|
* @return {?}
|
|
6195
7115
|
*/
|
|
6196
|
-
|
|
7116
|
+
gotoRemissionSuccess(event) {
|
|
6197
7117
|
event.preventDefault();
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
7118
|
+
this.errorMessage = '';
|
|
7119
|
+
this.viewCompStatus = '';
|
|
7120
|
+
this.viewStatus = 'retroremissionconfirmationpage';
|
|
7121
|
+
this.isRefundRemission = true;
|
|
7122
|
+
this.errorMessage = false;
|
|
7123
|
+
}
|
|
7124
|
+
/**
|
|
7125
|
+
* @return {?}
|
|
7126
|
+
*/
|
|
7127
|
+
gotoCasetransationPage() {
|
|
6207
7128
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6208
7129
|
this.errorMessage = '';
|
|
7130
|
+
this.errorMsg = [];
|
|
6209
7131
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6210
|
-
|
|
7132
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
6211
7133
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
6212
7134
|
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
6213
7135
|
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
6214
7136
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6215
|
-
this.
|
|
6216
|
-
* @param {?} features
|
|
6217
|
-
* @return {?}
|
|
6218
|
-
*/
|
|
6219
|
-
features => {
|
|
6220
|
-
/** @type {?} */
|
|
6221
|
-
let result = JSON.parse(features).filter((/**
|
|
6222
|
-
* @param {?} feature
|
|
6223
|
-
* @return {?}
|
|
6224
|
-
*/
|
|
6225
|
-
feature => feature.uid === BS_ENABLE_FLAG$3));
|
|
6226
|
-
this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6227
|
-
}), (/**
|
|
6228
|
-
* @param {?} err
|
|
6229
|
-
* @return {?}
|
|
6230
|
-
*/
|
|
6231
|
-
err => {
|
|
6232
|
-
this.paymentLibComponent.ISBSENABLE = false;
|
|
6233
|
-
}));
|
|
7137
|
+
this.resetOrderData();
|
|
6234
7138
|
/** @type {?} */
|
|
6235
7139
|
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6236
7140
|
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
@@ -6239,30 +7143,111 @@ class AddRemissionComponent {
|
|
|
6239
7143
|
partUrl += `&caseType=${this.caseType}`;
|
|
6240
7144
|
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6241
7145
|
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
7146
|
+
/** @type {?} */
|
|
7147
|
+
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7148
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7149
|
+
* @return {?}
|
|
7150
|
+
*/
|
|
7151
|
+
() => false);
|
|
7152
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7153
|
+
this.router.navigateByUrl(url);
|
|
7154
|
+
}
|
|
7155
|
+
/**
|
|
7156
|
+
* @param {?} event
|
|
7157
|
+
* @return {?}
|
|
7158
|
+
*/
|
|
7159
|
+
gotoCasetransationPageCancelBtnClicked(event) {
|
|
7160
|
+
event.preventDefault();
|
|
7161
|
+
this.errorMsg = [];
|
|
7162
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
7163
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7164
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7165
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
7166
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7167
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
7168
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
7169
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7170
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7171
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7172
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7173
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7174
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7175
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7176
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7177
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7178
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7179
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7180
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7181
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7182
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7183
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7184
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7185
|
+
// this.router.navigateByUrl(url);
|
|
6254
7186
|
}
|
|
6255
7187
|
else {
|
|
7188
|
+
if (this.paymentLibComponent.REFUNDLIST) {
|
|
7189
|
+
this.paymentLibComponent.viewName = 'refund-list';
|
|
7190
|
+
return;
|
|
7191
|
+
}
|
|
7192
|
+
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7193
|
+
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7194
|
+
}
|
|
7195
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7196
|
+
this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
|
|
7197
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7198
|
+
this.errorMessage = '';
|
|
7199
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7200
|
+
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7201
|
+
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7202
|
+
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7203
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7204
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
6256
7205
|
/** @type {?} */
|
|
6257
|
-
|
|
6258
|
-
this.
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
this.
|
|
6263
|
-
this.
|
|
7206
|
+
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7207
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7208
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7209
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7210
|
+
partUrl += `&caseType=${this.caseType}`;
|
|
7211
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7212
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7213
|
+
if (this.isFromPaymentDetailPage) {
|
|
7214
|
+
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
7215
|
+
}
|
|
7216
|
+
if (!this.paymentLibComponent.SERVICEREQUEST) {
|
|
7217
|
+
/** @type {?} */
|
|
7218
|
+
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7219
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7220
|
+
* @return {?}
|
|
7221
|
+
*/
|
|
7222
|
+
() => false);
|
|
7223
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7224
|
+
this.router.navigateByUrl(url);
|
|
7225
|
+
}
|
|
7226
|
+
else {
|
|
7227
|
+
/** @type {?} */
|
|
7228
|
+
const url = `/payment-history/${this.ccdCaseNumber}?selectedOption=${this.option}${partUrl}`;
|
|
7229
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7230
|
+
* @return {?}
|
|
7231
|
+
*/
|
|
7232
|
+
() => false);
|
|
7233
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7234
|
+
this.router.navigateByUrl(url);
|
|
7235
|
+
}
|
|
6264
7236
|
}
|
|
6265
7237
|
}
|
|
7238
|
+
/**
|
|
7239
|
+
* @return {?}
|
|
7240
|
+
*/
|
|
7241
|
+
resetOrderData() {
|
|
7242
|
+
this.OrderslistService.setOrderRef(null);
|
|
7243
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
7244
|
+
this.OrderslistService.setorderCreated(null);
|
|
7245
|
+
this.OrderslistService.setorderDetail(null);
|
|
7246
|
+
this.OrderslistService.setorderParty(null);
|
|
7247
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
7248
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
7249
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
7250
|
+
}
|
|
6266
7251
|
/**
|
|
6267
7252
|
* @param {?} currency
|
|
6268
7253
|
* @return {?}
|
|
@@ -6277,8 +7262,8 @@ class AddRemissionComponent {
|
|
|
6277
7262
|
AddRemissionComponent.decorators = [
|
|
6278
7263
|
{ type: Component, args: [{
|
|
6279
7264
|
selector: 'ccpay-add-remission',
|
|
6280
|
-
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\" 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 }} </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)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</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)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</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 (click)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
6281
|
-
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 .radio,.add-remission .right{float:right}.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%}"]
|
|
7265
|
+
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\" 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 }} ({{ 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)=\"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--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)=\"gotoProcessRetroRemission()\">Continue </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" 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 (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()\" 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()\">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\" 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\">\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\">\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 <input class=\"govuk-checkboxes__input\" (click)=\"check_en(fee.controls['id'].value)\" id=\"{{fee.controls['id'].value}}\" name=\"organisation\" type=\"checkbox\" value=\"{{fee.controls['id'].value}}\" 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\" >{{fee.controls['calculated_amount'].value}}</td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{fee.controls['volume'].value}} * {{fee.controls['net_amount'].value}}</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=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" name=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\" >\n \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 <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=\"amounttorefund\">\n <input id=\"feeVolume_{{fee.controls['id'].value}}\" name=\"feeVolume_{{fee.controls['id'].value}}\" value= \"{{fee.controls['volume'].value}}\" type=\"hidden\" formControlName=\"volume\">\n\t\t\t\t\t <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\t\t\t\t\t <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\n <!-- <div formArrayName=\"feesList\" *ngFor=\"let item of feesList?.controls; let i = index\">\n <div [formGroupName]=\"i\">\n <label for=\"\">Your row</label>\n \n <input type=\"checkbox\" formControlName=\"selected\">\n <input formControlName=\"amouttorefund\"> -->\n <!-- <button (click)=\"removeProduct(group.value,i)\">remove</button> -->\n <!-- </div>\n </div> -->\n\n <!-- {{remissionForm?.value|json}} -->\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)\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n \n <button [disabled] = \"noneSelected()\" (click)=\"gotoIssuePage()\" 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\">#{{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 === '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 <ccpay-contact-details \n (assignContactDetails)=\"getContactDetails($event, 'checkissuerefundpage')\"\n (redirectToIssueRefund)=\"gotoIssueRefundPage()\" ></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\">{{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 <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\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.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()\" 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()\"> 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='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 (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\">{{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 <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()\" 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()\">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\" 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",
|
|
7266
|
+
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 .right{cursor:pointer}.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 .radio,.add-remission .right{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}.form-hint{font-size:19px!important}.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%}"]
|
|
6282
7267
|
}] }
|
|
6283
7268
|
];
|
|
6284
7269
|
/** @nocollapse */
|
|
@@ -6293,6 +7278,7 @@ AddRemissionComponent.ctorParameters = () => [
|
|
|
6293
7278
|
];
|
|
6294
7279
|
AddRemissionComponent.propDecorators = {
|
|
6295
7280
|
fee: [{ type: Input }],
|
|
7281
|
+
fees: [{ type: Input }],
|
|
6296
7282
|
payment: [{ type: Input }],
|
|
6297
7283
|
remission: [{ type: Input }],
|
|
6298
7284
|
ccdCaseNumber: [{ type: Input }],
|
|
@@ -6304,12 +7290,22 @@ AddRemissionComponent.propDecorators = {
|
|
|
6304
7290
|
isOldPcipalOff: [{ type: Input }],
|
|
6305
7291
|
isNewPcipalOff: [{ type: Input }],
|
|
6306
7292
|
isStrategicFixEnable: [{ type: Input }],
|
|
6307
|
-
orderStatus: [{ type: Input }],
|
|
6308
7293
|
paidAmount: [{ type: Input }],
|
|
6309
7294
|
isFromRefundListPage: [{ type: Input }],
|
|
6310
7295
|
isFromPaymentDetailPage: [{ type: Input }],
|
|
6311
7296
|
isFromServiceRequestPage: [{ type: Input }],
|
|
6312
7297
|
feeamount: [{ type: Input }],
|
|
7298
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
7299
|
+
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
7300
|
+
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
7301
|
+
orderStatus: [{ type: Input, args: ['orderStatus',] }],
|
|
7302
|
+
orderParty: [{ type: Input, args: ['orderParty',] }],
|
|
7303
|
+
orderCreated: [{ type: Input, args: ['orderCreated',] }],
|
|
7304
|
+
orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
|
|
7305
|
+
takePayment: [{ type: Input, args: ['takepayment',] }],
|
|
7306
|
+
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
7307
|
+
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
7308
|
+
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
6313
7309
|
cancelRemission: [{ type: Output }],
|
|
6314
7310
|
refundListReason: [{ type: Output }],
|
|
6315
7311
|
refundListAmount: [{ type: Output }]
|
|
@@ -6914,11 +7910,15 @@ class TableComponent {
|
|
|
6914
7910
|
* @param {?} paymentLibComponent
|
|
6915
7911
|
* @param {?} cdRef
|
|
6916
7912
|
* @param {?} OrderslistService
|
|
7913
|
+
* @param {?} router
|
|
7914
|
+
* @param {?} activeRoute
|
|
6917
7915
|
*/
|
|
6918
|
-
constructor(paymentLibComponent, cdRef, OrderslistService$$1) {
|
|
7916
|
+
constructor(paymentLibComponent, cdRef, OrderslistService$$1, router, activeRoute) {
|
|
6919
7917
|
this.paymentLibComponent = paymentLibComponent;
|
|
6920
7918
|
this.cdRef = cdRef;
|
|
6921
7919
|
this.OrderslistService = OrderslistService$$1;
|
|
7920
|
+
this.router = router;
|
|
7921
|
+
this.activeRoute = activeRoute;
|
|
6922
7922
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
6923
7923
|
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
6924
7924
|
}
|
|
@@ -6987,11 +7987,11 @@ class TableComponent {
|
|
|
6987
7987
|
}
|
|
6988
7988
|
/**
|
|
6989
7989
|
* @param {?} refundReference
|
|
6990
|
-
* @param {?}
|
|
7990
|
+
* @param {?} refundData
|
|
6991
7991
|
* @return {?}
|
|
6992
7992
|
*/
|
|
6993
|
-
goToRefundProcessComponent(refundReference,
|
|
6994
|
-
this.paymentLibComponent.refundlistsource =
|
|
7993
|
+
goToRefundProcessComponent(refundReference, refundData) {
|
|
7994
|
+
this.paymentLibComponent.refundlistsource = refundData;
|
|
6995
7995
|
this.paymentLibComponent.refundReference = refundReference;
|
|
6996
7996
|
this.paymentLibComponent.viewName = 'process-refund';
|
|
6997
7997
|
}
|
|
@@ -7013,21 +8013,23 @@ class TableComponent {
|
|
|
7013
8013
|
* @return {?}
|
|
7014
8014
|
*/
|
|
7015
8015
|
goToCaseReview(ccdCaseNumber, refundData) {
|
|
7016
|
-
|
|
8016
|
+
this.router.navigate([`/cases/case-details/${ccdCaseNumber}`], { relativeTo: this.activeRoute });
|
|
7017
8017
|
}
|
|
7018
8018
|
}
|
|
7019
8019
|
TableComponent.decorators = [
|
|
7020
8020
|
{ type: Component, args: [{
|
|
7021
8021
|
selector: 'ccpay-table',
|
|
7022
|
-
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\" style=\"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=\"example-container\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccd_case_number\">\n <mat-header-cell *matHeaderCellDef >Case
|
|
7023
|
-
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:#
|
|
8022
|
+
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\" style=\"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=\"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",
|
|
8023
|
+
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}"]
|
|
7024
8024
|
}] }
|
|
7025
8025
|
];
|
|
7026
8026
|
/** @nocollapse */
|
|
7027
8027
|
TableComponent.ctorParameters = () => [
|
|
7028
8028
|
{ type: PaymentLibComponent },
|
|
7029
8029
|
{ type: ChangeDetectorRef },
|
|
7030
|
-
{ type: OrderslistService }
|
|
8030
|
+
{ type: OrderslistService },
|
|
8031
|
+
{ type: Router },
|
|
8032
|
+
{ type: ActivatedRoute }
|
|
7031
8033
|
];
|
|
7032
8034
|
TableComponent.propDecorators = {
|
|
7033
8035
|
DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
|
|
@@ -7037,6 +8039,77 @@ TableComponent.propDecorators = {
|
|
|
7037
8039
|
sort: [{ type: ViewChild, args: [MatSort,] }]
|
|
7038
8040
|
};
|
|
7039
8041
|
|
|
8042
|
+
/**
|
|
8043
|
+
* @fileoverview added by tsickle
|
|
8044
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8045
|
+
*/
|
|
8046
|
+
class NotificationService {
|
|
8047
|
+
/**
|
|
8048
|
+
* @param {?} http
|
|
8049
|
+
* @param {?} https
|
|
8050
|
+
* @param {?} errorHandlerService
|
|
8051
|
+
* @param {?} paymentLibService
|
|
8052
|
+
*/
|
|
8053
|
+
constructor(http, https, errorHandlerService, paymentLibService) {
|
|
8054
|
+
this.http = http;
|
|
8055
|
+
this.https = https;
|
|
8056
|
+
this.errorHandlerService = errorHandlerService;
|
|
8057
|
+
this.paymentLibService = paymentLibService;
|
|
8058
|
+
}
|
|
8059
|
+
/**
|
|
8060
|
+
* @param {?} reference
|
|
8061
|
+
* @return {?}
|
|
8062
|
+
*/
|
|
8063
|
+
getRefundNotification(reference) {
|
|
8064
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/notifications/${reference}`, {
|
|
8065
|
+
withCredentials: true
|
|
8066
|
+
})
|
|
8067
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
8068
|
+
}
|
|
8069
|
+
/**
|
|
8070
|
+
* @param {?} postcode
|
|
8071
|
+
* @return {?}
|
|
8072
|
+
*/
|
|
8073
|
+
getAddressByPostcode(postcode) {
|
|
8074
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/search/places/v1?postcode=${postcode}`, {
|
|
8075
|
+
withCredentials: true
|
|
8076
|
+
})
|
|
8077
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
8078
|
+
}
|
|
8079
|
+
}
|
|
8080
|
+
NotificationService.decorators = [
|
|
8081
|
+
{ type: Injectable, args: [{
|
|
8082
|
+
providedIn: 'root'
|
|
8083
|
+
},] }
|
|
8084
|
+
];
|
|
8085
|
+
/** @nocollapse */
|
|
8086
|
+
NotificationService.ctorParameters = () => [
|
|
8087
|
+
{ type: HttpClient },
|
|
8088
|
+
{ type: WebComponentHttpClient },
|
|
8089
|
+
{ type: ErrorHandlerService },
|
|
8090
|
+
{ type: PaymentLibService }
|
|
8091
|
+
];
|
|
8092
|
+
/** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
8093
|
+
|
|
8094
|
+
/**
|
|
8095
|
+
* @fileoverview added by tsickle
|
|
8096
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8097
|
+
*/
|
|
8098
|
+
class IPutNotificationRequest {
|
|
8099
|
+
/**
|
|
8100
|
+
* @param {?} contactDetails
|
|
8101
|
+
* @param {?} notificationType
|
|
8102
|
+
*/
|
|
8103
|
+
constructor(contactDetails, notificationType) {
|
|
8104
|
+
if (notificationType === 'EMAIL') {
|
|
8105
|
+
this.recipient_email_address = contactDetails;
|
|
8106
|
+
}
|
|
8107
|
+
else if (notificationType === 'LETTER') {
|
|
8108
|
+
this.recipient_postal_address = contactDetails;
|
|
8109
|
+
}
|
|
8110
|
+
}
|
|
8111
|
+
}
|
|
8112
|
+
|
|
7040
8113
|
/**
|
|
7041
8114
|
* @fileoverview added by tsickle
|
|
7042
8115
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -7056,31 +8129,24 @@ class IResubmitRefundRequest {
|
|
|
7056
8129
|
* @fileoverview added by tsickle
|
|
7057
8130
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7058
8131
|
*/
|
|
7059
|
-
/** @type {?} */
|
|
7060
|
-
const BS_ENABLE_FLAG$4 = 'bulk-scan-enabling-fe';
|
|
7061
8132
|
class RefundStatusComponent {
|
|
7062
|
-
// allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
7063
8133
|
/**
|
|
7064
8134
|
* @param {?} formBuilder
|
|
7065
8135
|
* @param {?} refundService
|
|
8136
|
+
* @param {?} notificationService
|
|
7066
8137
|
* @param {?} paymentLibComponent
|
|
7067
|
-
* @param {?} paymentViewService
|
|
7068
|
-
* @param {?} router
|
|
7069
8138
|
* @param {?} OrderslistService
|
|
7070
8139
|
*/
|
|
7071
|
-
constructor(formBuilder, refundService,
|
|
8140
|
+
constructor(formBuilder, refundService, notificationService, paymentLibComponent, OrderslistService$$1) {
|
|
7072
8141
|
this.formBuilder = formBuilder;
|
|
7073
8142
|
this.refundService = refundService;
|
|
8143
|
+
this.notificationService = notificationService;
|
|
7074
8144
|
this.paymentLibComponent = paymentLibComponent;
|
|
7075
|
-
this.paymentViewService = paymentViewService;
|
|
7076
|
-
this.router = router;
|
|
7077
8145
|
this.OrderslistService = OrderslistService$$1;
|
|
7078
8146
|
this.LOGGEDINUSERROLES = [];
|
|
7079
8147
|
this.rejectedRefundList = [];
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
this.approvalStatus = 'sent for approval';
|
|
7083
|
-
this.rejectStatus = 'sent back';
|
|
8148
|
+
this.approvalStatus = 'Sent for approval';
|
|
8149
|
+
this.rejectStatus = 'Update required';
|
|
7084
8150
|
this.errorMessage = null;
|
|
7085
8151
|
this.refundButtonState = '';
|
|
7086
8152
|
this.isAmountEmpty = false;
|
|
@@ -7089,21 +8155,31 @@ class RefundStatusComponent {
|
|
|
7089
8155
|
this.isRemissionLessThanFeeError = false;
|
|
7090
8156
|
this.refundHasError = false;
|
|
7091
8157
|
this.refundReasons = [];
|
|
8158
|
+
this.isResendOperationSuccess = false;
|
|
8159
|
+
this.isEditDetailsClicked = false;
|
|
8160
|
+
this.isEditAddressDeatilsClicked = false;
|
|
7092
8161
|
this.isRefundBtnDisabled = true;
|
|
7093
8162
|
this.isLastUpdatedByCurrentUser = true;
|
|
7094
8163
|
this.isProcessRefund = false;
|
|
8164
|
+
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8165
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
8166
|
+
* @return {?}
|
|
8167
|
+
*/
|
|
8168
|
+
() => {
|
|
8169
|
+
return this.allowedRolesToAccessRefund.some((/**
|
|
8170
|
+
* @param {?} role
|
|
8171
|
+
* @return {?}
|
|
8172
|
+
*/
|
|
8173
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
8174
|
+
});
|
|
7095
8175
|
}
|
|
7096
8176
|
/**
|
|
7097
8177
|
* @return {?}
|
|
7098
8178
|
*/
|
|
7099
8179
|
ngOnInit() {
|
|
7100
|
-
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
7101
8180
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
7102
8181
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
7103
8182
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
7104
|
-
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7105
|
-
// this.viewName = 'reviewandsubmitview';
|
|
7106
|
-
// }
|
|
7107
8183
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
7108
8184
|
this.viewName = 'refundview';
|
|
7109
8185
|
this.OrderslistService.getRefundView().subscribe((/**
|
|
@@ -7143,6 +8219,7 @@ class RefundStatusComponent {
|
|
|
7143
8219
|
reason: new FormControl()
|
|
7144
8220
|
});
|
|
7145
8221
|
if (this.refundlist !== undefined) {
|
|
8222
|
+
this.getRefundsNotification();
|
|
7146
8223
|
this.getRefundsStatusHistoryList();
|
|
7147
8224
|
if (this.LOGGEDINUSERROLES.some((/**
|
|
7148
8225
|
* @param {?} i
|
|
@@ -7162,13 +8239,7 @@ class RefundStatusComponent {
|
|
|
7162
8239
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
7163
8240
|
}
|
|
7164
8241
|
}
|
|
7165
|
-
// }
|
|
7166
8242
|
}
|
|
7167
|
-
// check4AllowedRoles2AccessRefund = (): boolean => {
|
|
7168
|
-
// return this.allowedRolesToAccessRefund.some(role =>
|
|
7169
|
-
// this.LOGGEDINUSERROLES.indexOf(role) !== -1
|
|
7170
|
-
// );
|
|
7171
|
-
// }
|
|
7172
8243
|
/**
|
|
7173
8244
|
* @return {?}
|
|
7174
8245
|
*/
|
|
@@ -7191,6 +8262,25 @@ class RefundStatusComponent {
|
|
|
7191
8262
|
});
|
|
7192
8263
|
}
|
|
7193
8264
|
}
|
|
8265
|
+
/**
|
|
8266
|
+
* @return {?}
|
|
8267
|
+
*/
|
|
8268
|
+
getRefundsNotification() {
|
|
8269
|
+
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
|
|
8270
|
+
* @param {?} refundsNotification
|
|
8271
|
+
* @return {?}
|
|
8272
|
+
*/
|
|
8273
|
+
refundsNotification => {
|
|
8274
|
+
this.notificationList = refundsNotification['notifications'];
|
|
8275
|
+
})),
|
|
8276
|
+
(/**
|
|
8277
|
+
* @param {?} error
|
|
8278
|
+
* @return {?}
|
|
8279
|
+
*/
|
|
8280
|
+
(error) => {
|
|
8281
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8282
|
+
});
|
|
8283
|
+
}
|
|
7194
8284
|
/**
|
|
7195
8285
|
* @param {?} refundlist
|
|
7196
8286
|
* @param {?} navigationpage
|
|
@@ -7208,40 +8298,11 @@ class RefundStatusComponent {
|
|
|
7208
8298
|
* @return {?}
|
|
7209
8299
|
*/
|
|
7210
8300
|
loadCaseTransactionPage() {
|
|
7211
|
-
this.
|
|
7212
|
-
|
|
8301
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8302
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7213
8303
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7214
|
-
this.
|
|
7215
|
-
|
|
7216
|
-
* @return {?}
|
|
7217
|
-
*/
|
|
7218
|
-
features => {
|
|
7219
|
-
/** @type {?} */
|
|
7220
|
-
let result = JSON.parse(features).filter((/**
|
|
7221
|
-
* @param {?} feature
|
|
7222
|
-
* @return {?}
|
|
7223
|
-
*/
|
|
7224
|
-
feature => feature.uid === BS_ENABLE_FLAG$4));
|
|
7225
|
-
this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
7226
|
-
}), (/**
|
|
7227
|
-
* @param {?} err
|
|
7228
|
-
* @return {?}
|
|
7229
|
-
*/
|
|
7230
|
-
err => {
|
|
7231
|
-
this.paymentLibComponent.ISBSENABLE = false;
|
|
7232
|
-
}));
|
|
7233
|
-
/** @type {?} */
|
|
7234
|
-
let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
7235
|
-
partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7236
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7237
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7238
|
-
partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7239
|
-
partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
7240
|
-
partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7241
|
-
partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7242
|
-
/** @type {?} */
|
|
7243
|
-
let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&${partUrl}`;
|
|
7244
|
-
this.router.navigateByUrl(url);
|
|
8304
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8305
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
7245
8306
|
}
|
|
7246
8307
|
/**
|
|
7247
8308
|
* @return {?}
|
|
@@ -7268,10 +8329,6 @@ class RefundStatusComponent {
|
|
|
7268
8329
|
this.errorMessage = false;
|
|
7269
8330
|
this.paymentLibComponent.isRefundStatusView = true;
|
|
7270
8331
|
this.ngOnInit();
|
|
7271
|
-
// this.viewName='refundview';
|
|
7272
|
-
// this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
7273
|
-
// this.paymentLibComponent.isRefundStatusView = true;
|
|
7274
|
-
// this.paymentLibComponent.isCallFromRefundList = true;
|
|
7275
8332
|
}
|
|
7276
8333
|
/**
|
|
7277
8334
|
* @return {?}
|
|
@@ -7284,8 +8341,7 @@ class RefundStatusComponent {
|
|
|
7284
8341
|
* @param {?} data
|
|
7285
8342
|
* @return {?}
|
|
7286
8343
|
*/
|
|
7287
|
-
data => data.status === '
|
|
7288
|
-
// this.refundreason = this.refundStatusHistories.filter(data => data.status.toLowerCase() === 'update required')[0].notes;
|
|
8344
|
+
data => data.status.toLowerCase() === 'update required'))[0].notes;
|
|
7289
8345
|
this.refundService.getRefundReasons().subscribe((/**
|
|
7290
8346
|
* @param {?} refundReasons
|
|
7291
8347
|
* @return {?}
|
|
@@ -7432,30 +8488,122 @@ class RefundStatusComponent {
|
|
|
7432
8488
|
}));
|
|
7433
8489
|
}
|
|
7434
8490
|
/**
|
|
7435
|
-
* @param {?}
|
|
7436
|
-
* @param {?} refundList
|
|
8491
|
+
* @param {?} note
|
|
7437
8492
|
* @return {?}
|
|
7438
8493
|
*/
|
|
7439
|
-
|
|
7440
|
-
this.
|
|
7441
|
-
this.
|
|
7442
|
-
this.
|
|
8494
|
+
gotoEditAddressDetails(note) {
|
|
8495
|
+
this.notification = note;
|
|
8496
|
+
this.isEditDetailsClicked = true;
|
|
8497
|
+
this.viewName = 'refundEditView';
|
|
7443
8498
|
}
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
template: "<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\">\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)=\"loadCaseTransactionPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>",
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
/**
|
|
7453
|
-
|
|
8499
|
+
/**
|
|
8500
|
+
* @param {?} obj
|
|
8501
|
+
* @return {?}
|
|
8502
|
+
*/
|
|
8503
|
+
getContactDetails(obj) {
|
|
8504
|
+
this.addressDetails = obj;
|
|
8505
|
+
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
8506
|
+
}
|
|
8507
|
+
/**
|
|
8508
|
+
* @return {?}
|
|
8509
|
+
*/
|
|
8510
|
+
gotoEditDetailsPage() {
|
|
8511
|
+
this.isEditDetailsClicked = true;
|
|
8512
|
+
this.viewName = 'refundEditView';
|
|
8513
|
+
}
|
|
8514
|
+
/**
|
|
8515
|
+
* @return {?}
|
|
8516
|
+
*/
|
|
8517
|
+
submitEditDetail() {
|
|
8518
|
+
this.isResendOperationSuccess = false;
|
|
8519
|
+
/** @type {?} */
|
|
8520
|
+
const contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
8521
|
+
{
|
|
8522
|
+
address_line: this.addressDetails.address_line,
|
|
8523
|
+
city: this.addressDetails.city,
|
|
8524
|
+
county: this.addressDetails.county,
|
|
8525
|
+
country: this.addressDetails.country,
|
|
8526
|
+
postal_code: this.addressDetails.postal_code,
|
|
8527
|
+
};
|
|
8528
|
+
/** @type {?} */
|
|
8529
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
8530
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
|
|
8531
|
+
* @param {?} response
|
|
8532
|
+
* @return {?}
|
|
8533
|
+
*/
|
|
8534
|
+
(response) => {
|
|
8535
|
+
this.isResendOperationSuccess = response;
|
|
8536
|
+
}), (/**
|
|
8537
|
+
* @param {?} error
|
|
8538
|
+
* @return {?}
|
|
8539
|
+
*/
|
|
8540
|
+
(error) => {
|
|
8541
|
+
this.isResendOperationSuccess = false;
|
|
8542
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8543
|
+
}));
|
|
8544
|
+
}
|
|
8545
|
+
/**
|
|
8546
|
+
* @param {?} notification
|
|
8547
|
+
* @return {?}
|
|
8548
|
+
*/
|
|
8549
|
+
putResend(notification) {
|
|
8550
|
+
this.isResendOperationSuccess = false;
|
|
8551
|
+
/** @type {?} */
|
|
8552
|
+
const contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
8553
|
+
{
|
|
8554
|
+
address_line: notification.contact_details.address_line,
|
|
8555
|
+
city: notification.contact_details.city,
|
|
8556
|
+
county: notification.contact_details.county,
|
|
8557
|
+
country: notification.contact_details.country,
|
|
8558
|
+
postal_code: notification.contact_details.postal_code,
|
|
8559
|
+
};
|
|
8560
|
+
/** @type {?} */
|
|
8561
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
8562
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
|
|
8563
|
+
* @param {?} response
|
|
8564
|
+
* @return {?}
|
|
8565
|
+
*/
|
|
8566
|
+
(response) => {
|
|
8567
|
+
this.isResendOperationSuccess = response;
|
|
8568
|
+
}), (/**
|
|
8569
|
+
* @param {?} error
|
|
8570
|
+
* @return {?}
|
|
8571
|
+
*/
|
|
8572
|
+
(error) => {
|
|
8573
|
+
this.isResendOperationSuccess = false;
|
|
8574
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8575
|
+
}));
|
|
8576
|
+
}
|
|
8577
|
+
/**
|
|
8578
|
+
* @param {?} obj
|
|
8579
|
+
* @return {?}
|
|
8580
|
+
*/
|
|
8581
|
+
gotoCasetransationPageCancelBtnClicked(obj) {
|
|
8582
|
+
}
|
|
8583
|
+
/**
|
|
8584
|
+
* @param {?} refundReference
|
|
8585
|
+
* @param {?} refundList
|
|
8586
|
+
* @return {?}
|
|
8587
|
+
*/
|
|
8588
|
+
goToRefundProcessComponent(refundReference, refundList) {
|
|
8589
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
8590
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
8591
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
8592
|
+
}
|
|
8593
|
+
}
|
|
8594
|
+
RefundStatusComponent.decorators = [
|
|
8595
|
+
{ type: Component, args: [{
|
|
8596
|
+
selector: 'ccpay-refund-status',
|
|
8597
|
+
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 && !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\">\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\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a> | <a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\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()\">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' && !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\">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' && !isResendOperationSuccess && !isEditDetailsClicked\">\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' && !isResendOperationSuccess && !isEditDetailsClicked\">\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' && !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 [isEditOperation] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetails)=\"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 {{orderParty}}\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()\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage()\" 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",
|
|
8598
|
+
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}"]
|
|
8599
|
+
}] }
|
|
8600
|
+
];
|
|
8601
|
+
/** @nocollapse */
|
|
8602
|
+
RefundStatusComponent.ctorParameters = () => [
|
|
7454
8603
|
{ type: FormBuilder },
|
|
7455
8604
|
{ type: RefundsService },
|
|
8605
|
+
{ type: NotificationService },
|
|
7456
8606
|
{ type: PaymentLibComponent },
|
|
7457
|
-
{ type: PaymentViewService },
|
|
7458
|
-
{ type: Router },
|
|
7459
8607
|
{ type: OrderslistService }
|
|
7460
8608
|
];
|
|
7461
8609
|
RefundStatusComponent.propDecorators = {
|
|
@@ -7463,14 +8611,651 @@ RefundStatusComponent.propDecorators = {
|
|
|
7463
8611
|
isOldPcipalOff: [{ type: Input }],
|
|
7464
8612
|
isNewPcipalOff: [{ type: Input }],
|
|
7465
8613
|
ccdCaseNumber: [{ type: Input }],
|
|
7466
|
-
isTurnOff: [{ type: Input }]
|
|
8614
|
+
isTurnOff: [{ type: Input }],
|
|
8615
|
+
orderParty: [{ type: Input }]
|
|
8616
|
+
};
|
|
8617
|
+
|
|
8618
|
+
/**
|
|
8619
|
+
* @fileoverview added by tsickle
|
|
8620
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8621
|
+
*/
|
|
8622
|
+
class ServiceRequestComponent {
|
|
8623
|
+
/**
|
|
8624
|
+
* @param {?} paymentLibComponent
|
|
8625
|
+
* @param {?} paymentViewService
|
|
8626
|
+
* @param {?} OrderslistService
|
|
8627
|
+
* @param {?} router
|
|
8628
|
+
*/
|
|
8629
|
+
constructor(paymentLibComponent, paymentViewService, OrderslistService$$1, router) {
|
|
8630
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
8631
|
+
this.paymentViewService = paymentViewService;
|
|
8632
|
+
this.OrderslistService = OrderslistService$$1;
|
|
8633
|
+
this.router = router;
|
|
8634
|
+
this.paymentGroups = [];
|
|
8635
|
+
this.payments = [];
|
|
8636
|
+
this.nonPayments = [];
|
|
8637
|
+
this.allPayments = [];
|
|
8638
|
+
this.remissions = [];
|
|
8639
|
+
this.fees = [];
|
|
8640
|
+
this.isRefundRemission = true;
|
|
8641
|
+
this.isAddFeeBtnEnabled = true;
|
|
8642
|
+
this.isExceptionRecord = false;
|
|
8643
|
+
this.isUnprocessedRecordSelected = false;
|
|
8644
|
+
this.isAnyFeeGroupAvilable = true;
|
|
8645
|
+
this.isHistoricGroupAvailable = false;
|
|
8646
|
+
this.isRemoveBtnDisabled = false;
|
|
8647
|
+
this.clAmountDue = 0;
|
|
8648
|
+
this.isFeeRecordsExist = false;
|
|
8649
|
+
this.isGrpOutstandingAmtPositive = false;
|
|
8650
|
+
this.isAddRemissionEnable = false;
|
|
8651
|
+
this.orderRemissionDetails = [];
|
|
8652
|
+
this.orderLevelFees = [];
|
|
8653
|
+
this.cpoDetails = null;
|
|
8654
|
+
this.isPBA = false;
|
|
8655
|
+
this.isIssueRefunfBtnEnable = false;
|
|
8656
|
+
this.isAddRemissionBtnEnabled = false;
|
|
8657
|
+
this.isRefundRemissionBtnEnable = false;
|
|
8658
|
+
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8659
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
8660
|
+
* @return {?}
|
|
8661
|
+
*/
|
|
8662
|
+
() => {
|
|
8663
|
+
return this.allowedRolesToAccessRefund.some((/**
|
|
8664
|
+
* @param {?} role
|
|
8665
|
+
* @return {?}
|
|
8666
|
+
*/
|
|
8667
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
8668
|
+
});
|
|
8669
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
8670
|
+
* @param {?} payment
|
|
8671
|
+
* @return {?}
|
|
8672
|
+
*/
|
|
8673
|
+
(payment) => {
|
|
8674
|
+
if (payment !== null && payment !== undefined) {
|
|
8675
|
+
/** @type {?} */
|
|
8676
|
+
let tmp4DayAgo = new Date();
|
|
8677
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
8678
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
8679
|
+
}
|
|
8680
|
+
});
|
|
8681
|
+
}
|
|
8682
|
+
/**
|
|
8683
|
+
* @return {?}
|
|
8684
|
+
*/
|
|
8685
|
+
ngOnInit() {
|
|
8686
|
+
if (this.viewStatus === undefined) {
|
|
8687
|
+
this.viewStatus = this.paymentLibComponent.viewName;
|
|
8688
|
+
}
|
|
8689
|
+
if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.isFromPaymentDetailPage) {
|
|
8690
|
+
if (this.paymentLibComponent.isFromPaymentDetailPage && this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8691
|
+
this.OrderslistService.getorderRefs().subscribe((/**
|
|
8692
|
+
* @param {?} data
|
|
8693
|
+
* @return {?}
|
|
8694
|
+
*/
|
|
8695
|
+
(data) => this.orderRef = data));
|
|
8696
|
+
this.OrderslistService.getorderCCDEvents().subscribe((/**
|
|
8697
|
+
* @param {?} data
|
|
8698
|
+
* @return {?}
|
|
8699
|
+
*/
|
|
8700
|
+
(data) => this.orderCCDEvent = data));
|
|
8701
|
+
this.OrderslistService.getorderCreateds().subscribe((/**
|
|
8702
|
+
* @param {?} data
|
|
8703
|
+
* @return {?}
|
|
8704
|
+
*/
|
|
8705
|
+
(data) => this.orderCreated = data));
|
|
8706
|
+
this.OrderslistService.getorderDetail().subscribe((/**
|
|
8707
|
+
* @param {?} data
|
|
8708
|
+
* @return {?}
|
|
8709
|
+
*/
|
|
8710
|
+
(data) => this.orderDetail = data));
|
|
8711
|
+
this.OrderslistService.getorderPartys().subscribe((/**
|
|
8712
|
+
* @param {?} data
|
|
8713
|
+
* @return {?}
|
|
8714
|
+
*/
|
|
8715
|
+
(data) => this.orderParty = data));
|
|
8716
|
+
this.OrderslistService.getorderRemissionTotals().subscribe((/**
|
|
8717
|
+
* @param {?} data
|
|
8718
|
+
* @return {?}
|
|
8719
|
+
*/
|
|
8720
|
+
(data) => this.orderRemissionTotal = data));
|
|
8721
|
+
this.OrderslistService.getorderFeesTotals().subscribe((/**
|
|
8722
|
+
* @param {?} data
|
|
8723
|
+
* @return {?}
|
|
8724
|
+
*/
|
|
8725
|
+
(data) => this.orderFeesTotal = data));
|
|
8726
|
+
this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
|
|
8727
|
+
* @param {?} data
|
|
8728
|
+
* @return {?}
|
|
8729
|
+
*/
|
|
8730
|
+
(data) => this.orderTotalPayments = data));
|
|
8731
|
+
}
|
|
8732
|
+
}
|
|
8733
|
+
// if (this.takePayment) {
|
|
8734
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
8735
|
+
// }
|
|
8736
|
+
}
|
|
8737
|
+
/**
|
|
8738
|
+
* @param {?} event
|
|
8739
|
+
* @return {?}
|
|
8740
|
+
*/
|
|
8741
|
+
goToCaseTransationPage(event) {
|
|
8742
|
+
event.preventDefault();
|
|
8743
|
+
this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
8744
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8745
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8746
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8747
|
+
this.paymentLibComponent.isTakePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
8748
|
+
if (this.takePayment) {
|
|
8749
|
+
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
8750
|
+
}
|
|
8751
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
8752
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
8753
|
+
if (this.isServiceRequest !== 'false') {
|
|
8754
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8755
|
+
}
|
|
8756
|
+
this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
8757
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8758
|
+
this.resetOrderData();
|
|
8759
|
+
/** @type {?} */
|
|
8760
|
+
let partUrl = this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
8761
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
8762
|
+
if (this.isServiceRequest === 'false') {
|
|
8763
|
+
partUrl += this.paymentLibComponent.TAKEPAYMENT ? '&takePayment=true' : '&takePayment=false';
|
|
8764
|
+
}
|
|
8765
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
8766
|
+
partUrl += this.isServiceRequest !== 'false' ? '&servicerequest=true' : '&servicerequest=false';
|
|
8767
|
+
partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
8768
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
8769
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
8770
|
+
/** @type {?} */
|
|
8771
|
+
const url = `/payment-history/${this.paymentLibComponent.CCD_CASE_NUMBER}?view=case-transactions&selectedOption=${this.paymentLibComponent.SELECTED_OPTION}${partUrl}`;
|
|
8772
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
8773
|
+
* @return {?}
|
|
8774
|
+
*/
|
|
8775
|
+
() => false);
|
|
8776
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
8777
|
+
this.router.navigateByUrl(url);
|
|
8778
|
+
}
|
|
8779
|
+
/**
|
|
8780
|
+
* @param {?} feeCode
|
|
8781
|
+
* @return {?}
|
|
8782
|
+
*/
|
|
8783
|
+
chkForAddRemission(feeCode) {
|
|
8784
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
8785
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
8786
|
+
for (const remission of this.orderDetail[0]['remissions']) {
|
|
8787
|
+
if (remission.fee_code === feeCode) {
|
|
8788
|
+
return false;
|
|
8789
|
+
}
|
|
8790
|
+
}
|
|
8791
|
+
}
|
|
8792
|
+
return true;
|
|
8793
|
+
}
|
|
8794
|
+
else {
|
|
8795
|
+
return false;
|
|
8796
|
+
}
|
|
8797
|
+
}
|
|
8798
|
+
/**
|
|
8799
|
+
* @return {?}
|
|
8800
|
+
*/
|
|
8801
|
+
chkForPBAPayment() {
|
|
8802
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
8803
|
+
this.orderDetail.forEach((/**
|
|
8804
|
+
* @param {?} orderDetail
|
|
8805
|
+
* @return {?}
|
|
8806
|
+
*/
|
|
8807
|
+
orderDetail => {
|
|
8808
|
+
if (orderDetail.payments) {
|
|
8809
|
+
orderDetail.payments.forEach((/**
|
|
8810
|
+
* @param {?} payment
|
|
8811
|
+
* @return {?}
|
|
8812
|
+
*/
|
|
8813
|
+
payment => {
|
|
8814
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
8815
|
+
this.paymentLibComponent.paymentReference = payment.reference;
|
|
8816
|
+
this.isPBA = true;
|
|
8817
|
+
}
|
|
8818
|
+
}));
|
|
8819
|
+
}
|
|
8820
|
+
}));
|
|
8821
|
+
if (this.isPBA) {
|
|
8822
|
+
return true;
|
|
8823
|
+
}
|
|
8824
|
+
else {
|
|
8825
|
+
return false;
|
|
8826
|
+
}
|
|
8827
|
+
}
|
|
8828
|
+
}
|
|
8829
|
+
/**
|
|
8830
|
+
* @param {?} fee
|
|
8831
|
+
* @return {?}
|
|
8832
|
+
*/
|
|
8833
|
+
addRemission(fee) {
|
|
8834
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
8835
|
+
this.feeId = fee;
|
|
8836
|
+
this.viewStatus = 'addremission';
|
|
8837
|
+
this.payment = this.orderDetail[0].payments[0];
|
|
8838
|
+
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
|
|
8839
|
+
* @param {?} paymentGroup
|
|
8840
|
+
* @return {?}
|
|
8841
|
+
*/
|
|
8842
|
+
paymentGroup => {
|
|
8843
|
+
this.paymentGroup = paymentGroup;
|
|
8844
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
8845
|
+
* @param {?} paymentGroupObj
|
|
8846
|
+
* @return {?}
|
|
8847
|
+
*/
|
|
8848
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
|
|
8849
|
+
this.payment = this.paymentGroup.payments[0];
|
|
8850
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
8851
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
8852
|
+
}), (/**
|
|
8853
|
+
* @param {?} error
|
|
8854
|
+
* @return {?}
|
|
8855
|
+
*/
|
|
8856
|
+
(error) => this.errorMessage = error.replace(/"/g, "")));
|
|
8857
|
+
}
|
|
8858
|
+
}
|
|
8859
|
+
/**
|
|
8860
|
+
* @param {?} payment
|
|
8861
|
+
* @param {?} remission
|
|
8862
|
+
* @param {?} fees
|
|
8863
|
+
* @return {?}
|
|
8864
|
+
*/
|
|
8865
|
+
addRefundForRemission(payment, remission, fees) {
|
|
8866
|
+
this.viewStatus = 'addrefundforremission';
|
|
8867
|
+
this.payment = payment;
|
|
8868
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
8869
|
+
* @param {?} paymentGroup
|
|
8870
|
+
* @return {?}
|
|
8871
|
+
*/
|
|
8872
|
+
paymentGroup => {
|
|
8873
|
+
this.paymentGroup = paymentGroup;
|
|
8874
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
8875
|
+
* @param {?} paymentGroupObj
|
|
8876
|
+
* @return {?}
|
|
8877
|
+
*/
|
|
8878
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.payment.reference)));
|
|
8879
|
+
this.payment = this.paymentGroup.payments[0];
|
|
8880
|
+
this.remissions = remission;
|
|
8881
|
+
this.remissionFeeAmt = fees.filter((/**
|
|
8882
|
+
* @param {?} data
|
|
8883
|
+
* @return {?}
|
|
8884
|
+
*/
|
|
8885
|
+
data => data.code === this.remissions['fee_code']))[0].net_amount;
|
|
8886
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
8887
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
8888
|
+
}), (/**
|
|
8889
|
+
* @param {?} error
|
|
8890
|
+
* @return {?}
|
|
8891
|
+
*/
|
|
8892
|
+
(error) => this.errorMessage = error));
|
|
8893
|
+
}
|
|
8894
|
+
/**
|
|
8895
|
+
* @return {?}
|
|
8896
|
+
*/
|
|
8897
|
+
cancelRemoval() {
|
|
8898
|
+
this.viewStatus = 'main';
|
|
8899
|
+
}
|
|
8900
|
+
/**
|
|
8901
|
+
* @param {?} fee
|
|
8902
|
+
* @return {?}
|
|
8903
|
+
*/
|
|
8904
|
+
removeFee(fee) {
|
|
8905
|
+
this.isRemoveBtnDisabled = true;
|
|
8906
|
+
this.paymentViewService.deleteFeeFromPaymentGroup(fee).subscribe((/**
|
|
8907
|
+
* @param {?} success
|
|
8908
|
+
* @return {?}
|
|
8909
|
+
*/
|
|
8910
|
+
(success) => {
|
|
8911
|
+
window.location.reload();
|
|
8912
|
+
}), (/**
|
|
8913
|
+
* @param {?} error
|
|
8914
|
+
* @return {?}
|
|
8915
|
+
*/
|
|
8916
|
+
(error) => {
|
|
8917
|
+
this.errorMessage = error;
|
|
8918
|
+
this.isRemoveBtnDisabled = false;
|
|
8919
|
+
}));
|
|
8920
|
+
}
|
|
8921
|
+
/**
|
|
8922
|
+
* @param {?} payment
|
|
8923
|
+
* @return {?}
|
|
8924
|
+
*/
|
|
8925
|
+
chkIssueRefundBtnEnable(payment) {
|
|
8926
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
8927
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
8928
|
+
this.isIssueRefunfBtnEnable = true;
|
|
8929
|
+
}
|
|
8930
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
8931
|
+
return true;
|
|
8932
|
+
}
|
|
8933
|
+
else {
|
|
8934
|
+
return false;
|
|
8935
|
+
}
|
|
8936
|
+
}
|
|
8937
|
+
/**
|
|
8938
|
+
* @return {?}
|
|
8939
|
+
*/
|
|
8940
|
+
chkIsRefundRemissionBtnEnable() {
|
|
8941
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
8942
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8943
|
+
this.orderDetail.forEach((/**
|
|
8944
|
+
* @param {?} orderDetail
|
|
8945
|
+
* @return {?}
|
|
8946
|
+
*/
|
|
8947
|
+
orderDetail => {
|
|
8948
|
+
if (orderDetail.payments) {
|
|
8949
|
+
orderDetail.payments.forEach((/**
|
|
8950
|
+
* @param {?} payment
|
|
8951
|
+
* @return {?}
|
|
8952
|
+
*/
|
|
8953
|
+
payment => {
|
|
8954
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
8955
|
+
this.isRefundRemissionBtnEnable = true;
|
|
8956
|
+
}
|
|
8957
|
+
}));
|
|
8958
|
+
}
|
|
8959
|
+
}));
|
|
8960
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
8961
|
+
return true;
|
|
8962
|
+
}
|
|
8963
|
+
else {
|
|
8964
|
+
return false;
|
|
8965
|
+
}
|
|
8966
|
+
}
|
|
8967
|
+
}
|
|
8968
|
+
/**
|
|
8969
|
+
* @param {?} payment
|
|
8970
|
+
* @return {?}
|
|
8971
|
+
*/
|
|
8972
|
+
issueRefund(payment) {
|
|
8973
|
+
if (payment !== null && payment !== undefined) {
|
|
8974
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
8975
|
+
this.viewStatus = 'issuerefund';
|
|
8976
|
+
this.payment = payment;
|
|
8977
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8978
|
+
this.isRefundRemission = true;
|
|
8979
|
+
}
|
|
8980
|
+
}
|
|
8981
|
+
}
|
|
8982
|
+
/**
|
|
8983
|
+
* @param {?} event
|
|
8984
|
+
* @return {?}
|
|
8985
|
+
*/
|
|
8986
|
+
goToServiceRequestPage(event) {
|
|
8987
|
+
event.preventDefault();
|
|
8988
|
+
this.isFromServiceRequestPage = true;
|
|
8989
|
+
this.viewStatus = 'main';
|
|
8990
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8991
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
8992
|
+
* @return {?}
|
|
8993
|
+
*/
|
|
8994
|
+
() => false);
|
|
8995
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
8996
|
+
}
|
|
8997
|
+
/**
|
|
8998
|
+
* @param {?} paymentGroupReference
|
|
8999
|
+
* @param {?} paymentReference
|
|
9000
|
+
* @param {?} paymentMethod
|
|
9001
|
+
* @return {?}
|
|
9002
|
+
*/
|
|
9003
|
+
goToPayementView(paymentGroupReference, paymentReference, paymentMethod) {
|
|
9004
|
+
this.goToPaymentViewComponent({ paymentGroupReference, paymentReference, paymentMethod });
|
|
9005
|
+
}
|
|
9006
|
+
/**
|
|
9007
|
+
* @param {?} paymentGroup
|
|
9008
|
+
* @return {?}
|
|
9009
|
+
*/
|
|
9010
|
+
goToPaymentViewComponent(paymentGroup) {
|
|
9011
|
+
this.paymentLibComponent.paymentMethod = paymentGroup.paymentMethod;
|
|
9012
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9013
|
+
this.paymentLibComponent.paymentGroupReference = paymentGroup.paymentGroupReference;
|
|
9014
|
+
this.paymentLibComponent.paymentReference = paymentGroup.paymentReference;
|
|
9015
|
+
this.OrderslistService.setOrderRef(this.orderRef);
|
|
9016
|
+
this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
|
|
9017
|
+
this.OrderslistService.setorderCreated(this.orderCreated);
|
|
9018
|
+
this.OrderslistService.setorderDetail(this.orderDetail);
|
|
9019
|
+
this.OrderslistService.setorderParty(this.orderParty);
|
|
9020
|
+
this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
|
|
9021
|
+
this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
|
|
9022
|
+
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
9023
|
+
this.viewStatus = 'payment-view';
|
|
9024
|
+
}
|
|
9025
|
+
/**
|
|
9026
|
+
* @return {?}
|
|
9027
|
+
*/
|
|
9028
|
+
resetOrderData() {
|
|
9029
|
+
this.OrderslistService.setOrderRef(null);
|
|
9030
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
9031
|
+
this.OrderslistService.setorderCreated(null);
|
|
9032
|
+
this.OrderslistService.setorderDetail(null);
|
|
9033
|
+
this.OrderslistService.setorderParty(null);
|
|
9034
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
9035
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
9036
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
9037
|
+
}
|
|
9038
|
+
}
|
|
9039
|
+
ServiceRequestComponent.decorators = [
|
|
9040
|
+
{ type: Component, args: [{
|
|
9041
|
+
selector: 'ccpay-service-request',
|
|
9042
|
+
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\">Status</td>\n <td>{{orderStatus}}</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\">Service request reference</td>\n <td>{{orderRef}}</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\">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]=\"!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 <!-- 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=\"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[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>",
|
|
9043
|
+
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%}"]
|
|
9044
|
+
}] }
|
|
9045
|
+
];
|
|
9046
|
+
/** @nocollapse */
|
|
9047
|
+
ServiceRequestComponent.ctorParameters = () => [
|
|
9048
|
+
{ type: PaymentLibComponent },
|
|
9049
|
+
{ type: PaymentViewService },
|
|
9050
|
+
{ type: OrderslistService },
|
|
9051
|
+
{ type: Router }
|
|
9052
|
+
];
|
|
9053
|
+
ServiceRequestComponent.propDecorators = {
|
|
9054
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
9055
|
+
viewStatus: [{ type: Input, args: ['viewStatus',] }],
|
|
9056
|
+
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
9057
|
+
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
9058
|
+
orderStatus: [{ type: Input, args: ['orderStatus',] }],
|
|
9059
|
+
orderParty: [{ type: Input, args: ['orderParty',] }],
|
|
9060
|
+
orderCreated: [{ type: Input, args: ['orderCreated',] }],
|
|
9061
|
+
orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
|
|
9062
|
+
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
9063
|
+
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
9064
|
+
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
9065
|
+
takePayment: [{ type: Input, args: ['takePayment',] }],
|
|
9066
|
+
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }],
|
|
9067
|
+
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }]
|
|
9068
|
+
};
|
|
9069
|
+
|
|
9070
|
+
/**
|
|
9071
|
+
* @fileoverview added by tsickle
|
|
9072
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9073
|
+
*/
|
|
9074
|
+
class IserviceRequestCardPayment {
|
|
9075
|
+
/**
|
|
9076
|
+
* @param {?} amount
|
|
9077
|
+
*/
|
|
9078
|
+
constructor(amount) {
|
|
9079
|
+
this.amount = amount;
|
|
9080
|
+
this.currency = 'GBP';
|
|
9081
|
+
this.language = 'string';
|
|
9082
|
+
}
|
|
9083
|
+
}
|
|
9084
|
+
|
|
9085
|
+
/**
|
|
9086
|
+
* @fileoverview added by tsickle
|
|
9087
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9088
|
+
*/
|
|
9089
|
+
class IserviceRequestPbaPayment {
|
|
9090
|
+
/**
|
|
9091
|
+
* @param {?} account_number
|
|
9092
|
+
* @param {?} amount
|
|
9093
|
+
* @param {?} customer_reference
|
|
9094
|
+
*/
|
|
9095
|
+
constructor(account_number, amount, customer_reference) {
|
|
9096
|
+
this.account_number = account_number;
|
|
9097
|
+
this.amount = amount;
|
|
9098
|
+
this.currency = 'GBP';
|
|
9099
|
+
this.customer_reference = customer_reference;
|
|
9100
|
+
}
|
|
9101
|
+
}
|
|
9102
|
+
|
|
9103
|
+
/**
|
|
9104
|
+
* @fileoverview added by tsickle
|
|
9105
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9106
|
+
*/
|
|
9107
|
+
class PbaPaymentComponent {
|
|
9108
|
+
/**
|
|
9109
|
+
* @param {?} paymentLibComponent
|
|
9110
|
+
* @param {?} paymentViewService
|
|
9111
|
+
*/
|
|
9112
|
+
constructor(paymentLibComponent, paymentViewService) {
|
|
9113
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
9114
|
+
this.paymentViewService = paymentViewService;
|
|
9115
|
+
this.isCardPaymentSuccess = true;
|
|
9116
|
+
this.isInSufficiantFund = false;
|
|
9117
|
+
this.isPBAAccountNotExist = false;
|
|
9118
|
+
this.isPBAServerError = false;
|
|
9119
|
+
this.isGetPBAAccountSucceed = false;
|
|
9120
|
+
this.selectedPbaAccount = '';
|
|
9121
|
+
this.pbaAccountRef = '';
|
|
9122
|
+
this.isContinueButtondisabled = true;
|
|
9123
|
+
this.isPBAAccountPaymentSuccess = false;
|
|
9124
|
+
}
|
|
9125
|
+
/**
|
|
9126
|
+
* @return {?}
|
|
9127
|
+
*/
|
|
9128
|
+
ngOnInit() {
|
|
9129
|
+
this.pbaPayOrderRef = this.paymentLibComponent.pbaPayOrderRef;
|
|
9130
|
+
this.viewStatus = 'pba-payment';
|
|
9131
|
+
this.errorMsg = null;
|
|
9132
|
+
this.paymentViewService.getPBAaccountDetails()
|
|
9133
|
+
.subscribe((/**
|
|
9134
|
+
* @param {?} result
|
|
9135
|
+
* @return {?}
|
|
9136
|
+
*/
|
|
9137
|
+
result => {
|
|
9138
|
+
this.isGetPBAAccountSucceed = true;
|
|
9139
|
+
this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
|
|
9140
|
+
}), (/**
|
|
9141
|
+
* @param {?} error
|
|
9142
|
+
* @return {?}
|
|
9143
|
+
*/
|
|
9144
|
+
error => {
|
|
9145
|
+
this.errorMsg = error;
|
|
9146
|
+
}));
|
|
9147
|
+
}
|
|
9148
|
+
/**
|
|
9149
|
+
* @param {?} args
|
|
9150
|
+
* @return {?}
|
|
9151
|
+
*/
|
|
9152
|
+
selectpbaaccount(args) {
|
|
9153
|
+
if (args.currentTarget.id === 'pbaAccountNumber') {
|
|
9154
|
+
this.selectedPbaAccount = args.target.value;
|
|
9155
|
+
}
|
|
9156
|
+
if (args.currentTarget.id === 'pbaAccountRef') {
|
|
9157
|
+
this.pbaAccountRef = args.target.value;
|
|
9158
|
+
}
|
|
9159
|
+
if (this.selectedPbaAccount !== '' && this.pbaAccountRef !== "") {
|
|
9160
|
+
this.isContinueButtondisabled = false;
|
|
9161
|
+
}
|
|
9162
|
+
else {
|
|
9163
|
+
this.isContinueButtondisabled = true;
|
|
9164
|
+
}
|
|
9165
|
+
}
|
|
9166
|
+
/**
|
|
9167
|
+
* @return {?}
|
|
9168
|
+
*/
|
|
9169
|
+
saveAndContinue() {
|
|
9170
|
+
this.isInSufficiantFund = false;
|
|
9171
|
+
this.isPBAAccountNotExist = false;
|
|
9172
|
+
this.isPBAServerError = false;
|
|
9173
|
+
this.isPBAAccountPaymentSuccess = false;
|
|
9174
|
+
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
9175
|
+
/** @type {?} */
|
|
9176
|
+
const requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
|
|
9177
|
+
this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
9178
|
+
.subscribe((/**
|
|
9179
|
+
* @param {?} r
|
|
9180
|
+
* @return {?}
|
|
9181
|
+
*/
|
|
9182
|
+
r => {
|
|
9183
|
+
this.pbaAccountrPaymentResult = JSON.parse(r).data;
|
|
9184
|
+
this.isPBAAccountPaymentSuccess = true;
|
|
9185
|
+
}), (/**
|
|
9186
|
+
* @param {?} e
|
|
9187
|
+
* @return {?}
|
|
9188
|
+
*/
|
|
9189
|
+
e => {
|
|
9190
|
+
if (e.status == '402') {
|
|
9191
|
+
this.isInSufficiantFund = true;
|
|
9192
|
+
}
|
|
9193
|
+
else if (e.status == '410' || e.status == '412') {
|
|
9194
|
+
this.isPBAAccountNotExist = true;
|
|
9195
|
+
}
|
|
9196
|
+
else {
|
|
9197
|
+
this.isPBAServerError = true;
|
|
9198
|
+
}
|
|
9199
|
+
}));
|
|
9200
|
+
}
|
|
9201
|
+
else {
|
|
9202
|
+
this.isPBAServerError = true;
|
|
9203
|
+
}
|
|
9204
|
+
}
|
|
9205
|
+
/**
|
|
9206
|
+
* @return {?}
|
|
9207
|
+
*/
|
|
9208
|
+
cardPayment() {
|
|
9209
|
+
this.isCardPaymentSuccess = true;
|
|
9210
|
+
/** @type {?} */
|
|
9211
|
+
const requestBody = new IserviceRequestCardPayment(this.pbaPayOrderRef.orderTotalFees);
|
|
9212
|
+
this.paymentViewService.postWays2PayCardPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
9213
|
+
.subscribe((/**
|
|
9214
|
+
* @param {?} result
|
|
9215
|
+
* @return {?}
|
|
9216
|
+
*/
|
|
9217
|
+
result => {
|
|
9218
|
+
/** @type {?} */
|
|
9219
|
+
const paymentUrl = JSON.parse(result).next_url;
|
|
9220
|
+
window.location.href = paymentUrl;
|
|
9221
|
+
}), (/**
|
|
9222
|
+
* @param {?} error
|
|
9223
|
+
* @return {?}
|
|
9224
|
+
*/
|
|
9225
|
+
error => {
|
|
9226
|
+
this.isCardPaymentSuccess = false;
|
|
9227
|
+
}));
|
|
9228
|
+
}
|
|
9229
|
+
/**
|
|
9230
|
+
* @return {?}
|
|
9231
|
+
*/
|
|
9232
|
+
gotoCasetransationPage() {
|
|
9233
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
9234
|
+
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
9235
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
9236
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9237
|
+
}
|
|
9238
|
+
}
|
|
9239
|
+
PbaPaymentComponent.decorators = [
|
|
9240
|
+
{ type: Component, args: [{
|
|
9241
|
+
selector: 'ccpay-pba-payment',
|
|
9242
|
+
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 && !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\">\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 pba-payments-select-box--size\" *ngIf=\"!errorMsg\">\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 <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 Continue\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=\"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",
|
|
9243
|
+
styles: [".pba-payments-govuk__label{font-weight:700;line-height:1.31578947}.pba-payments-19-font{font-size:19px}.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:650px}"]
|
|
9244
|
+
}] }
|
|
9245
|
+
];
|
|
9246
|
+
/** @nocollapse */
|
|
9247
|
+
PbaPaymentComponent.ctorParameters = () => [
|
|
9248
|
+
{ type: PaymentLibComponent },
|
|
9249
|
+
{ type: PaymentViewService }
|
|
9250
|
+
];
|
|
9251
|
+
PbaPaymentComponent.propDecorators = {
|
|
9252
|
+
pbaPayOrderRef: [{ type: Input }]
|
|
7467
9253
|
};
|
|
7468
9254
|
|
|
7469
9255
|
/**
|
|
7470
9256
|
* @fileoverview added by tsickle
|
|
7471
9257
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7472
9258
|
*/
|
|
7473
|
-
// import { PbaPaymentComponent } from './components/pba-payment/pba-payment.component';
|
|
7474
9259
|
class PaymentLibModule {
|
|
7475
9260
|
}
|
|
7476
9261
|
PaymentLibModule.decorators = [
|
|
@@ -7490,7 +9275,8 @@ PaymentLibModule.decorators = [
|
|
|
7490
9275
|
PaymentLibComponent,
|
|
7491
9276
|
PaymentListComponent,
|
|
7492
9277
|
PaymentViewComponent,
|
|
7493
|
-
|
|
9278
|
+
PbaPaymentComponent,
|
|
9279
|
+
ContactDetailsComponent,
|
|
7494
9280
|
ProcessRefundComponent,
|
|
7495
9281
|
RefundListComponent,
|
|
7496
9282
|
CardDetailsComponent,
|
|
@@ -7512,7 +9298,8 @@ PaymentLibModule.decorators = [
|
|
|
7512
9298
|
ReportsComponent,
|
|
7513
9299
|
ErrorBannerComponent,
|
|
7514
9300
|
TableComponent,
|
|
7515
|
-
RefundStatusComponent
|
|
9301
|
+
RefundStatusComponent,
|
|
9302
|
+
ServiceRequestComponent
|
|
7516
9303
|
],
|
|
7517
9304
|
exports: [PaymentLibComponent],
|
|
7518
9305
|
providers: [
|
|
@@ -7533,6 +9320,6 @@ PaymentLibModule.decorators = [
|
|
|
7533
9320
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7534
9321
|
*/
|
|
7535
9322
|
|
|
7536
|
-
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as
|
|
9323
|
+
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as ɵbc, AllocatePaymentsComponent as ɵx, CardDetailsComponent as ɵn, CaseTransactionsComponent as ɵba, ContactDetailsComponent as ɵj, ErrorBannerComponent as ɵbj, FeeSummaryComponent as ɵbb, MarkUnidentifiedPaymentComponent as ɵs, MarkUnsolicitedPaymentComponent as ɵu, PageNotFoundComponent as ɵp, PaymentListComponent as ɵb, PaymentViewComponent as ɵf, PbaDetailsComponent as ɵz, PbaPaymentComponent as ɵi, ProcessRefundComponent as ɵk, ProcessedPaymentsComponent as ɵw, RefundListComponent as ɵm, RefundStatusComponent as ɵbl, ReportsComponent as ɵbh, ServiceRequestComponent as ɵbn, StatusHistoryComponent as ɵq, TableComponent as ɵbk, UnprocessedPaymentsComponent as ɵv, CapitalizePipe as ɵbe, CcdHyphensPipe as ɵbd, keyValuePipe as ɵbf, SanitizeHtmlPipe as ɵbg, BulkScaningPaymentService as ɵt, CardDetailsService as ɵo, CaseTransactionsService as ɵy, NotificationService as ɵbm, OrderslistService as ɵa, PaymentListService as ɵc, PaymentViewService as ɵg, RefundsService as ɵl, ErrorHandlerService as ɵe, WebComponentHttpClient as ɵh, ConsoleLoggerService as ɵbo, LoggerService as ɵd, StatusHistoryService as ɵr, XlFileService as ɵbi };
|
|
7537
9324
|
|
|
7538
9325
|
//# sourceMappingURL=hmcts-ccpay-web-component.js.map
|