@hmcts/ccpay-web-component 5.0.1-beta12 → 5.0.1-beta125
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 +2711 -1452
- 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 +41 -39
- package/esm2015/lib/components/add-remission/add-remission.component.js +284 -162
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +37 -59
- package/esm2015/lib/components/contact-details/contact-details.component.js +394 -0
- package/esm2015/lib/components/payment-view/payment-view.component.js +95 -18
- package/esm2015/lib/components/process-refund/process-refund.component.js +95 -9
- package/esm2015/lib/components/refund-list/refund-list.component.js +6 -10
- package/esm2015/lib/components/refund-status/refund-status.component.js +212 -121
- package/esm2015/lib/components/service-request/service-request.component.js +607 -0
- package/esm2015/lib/components/status-history/status-history.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +27 -10
- 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/IRefundList.js +3 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
- package/esm2015/lib/payment-lib.component.js +54 -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 +1 -29
- package/esm2015/lib/services/refunds/refunds.service.js +10 -1
- package/esm2015/lib/services/shared/error-handler.service.js +37 -19
- package/esm5/hmcts-ccpay-web-component.js +41 -39
- package/esm5/lib/components/add-remission/add-remission.component.js +311 -163
- package/esm5/lib/components/case-transactions/case-transactions.component.js +37 -69
- package/esm5/lib/components/contact-details/contact-details.component.js +419 -0
- package/esm5/lib/components/payment-view/payment-view.component.js +99 -18
- package/esm5/lib/components/process-refund/process-refund.component.js +98 -9
- package/esm5/lib/components/refund-list/refund-list.component.js +6 -10
- package/esm5/lib/components/refund-status/refund-status.component.js +240 -120
- package/esm5/lib/components/service-request/service-request.component.js +679 -0
- package/esm5/lib/components/status-history/status-history.component.js +2 -2
- package/esm5/lib/components/table/table.component.js +26 -11
- 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/IRefundList.js +3 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
- package/esm5/lib/payment-lib.component.js +52 -6
- 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 +1 -42
- package/esm5/lib/services/refunds/refunds.service.js +16 -1
- package/esm5/lib/services/shared/error-handler.service.js +37 -19
- package/fesm2015/hmcts-ccpay-web-component.js +1790 -709
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +7952 -6675
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +40 -38
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +23 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -6
- package/lib/components/contact-details/contact-details.component.d.ts +45 -0
- package/lib/components/payment-view/payment-view.component.d.ts +13 -3
- package/lib/components/process-refund/process-refund.component.d.ts +11 -1
- package/lib/components/refund-status/refund-status.component.d.ts +20 -5
- package/lib/components/service-request/service-request.component.d.ts +103 -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/IRefundList.d.ts +2 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
- package/lib/payment-lib.component.d.ts +17 -3
- 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 +0 -5
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +1 -1
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +0 -199
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +0 -23
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +0 -28
- package/esm5/lib/components/pba-payment/pba-payment.component.js +0 -216
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +0 -22
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +0 -25
- package/lib/components/pba-payment/pba-payment.component.d.ts +0 -27
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +0 -6
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +0 -7
|
@@ -12,8 +12,8 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
|
12
12
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
13
13
|
import { MatInputModule } from '@angular/material/input';
|
|
14
14
|
import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
15
|
-
import { Router } from '@angular/router';
|
|
16
15
|
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
16
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @fileoverview added by tsickle
|
|
@@ -60,6 +60,19 @@ class PaymentLibService {
|
|
|
60
60
|
getRefundsApiRootUrl() {
|
|
61
61
|
return this.REFUNDS_API_ROOT;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* @param {?} notificationapiRoot
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
setNoticationApiRootUrl(notificationapiRoot) {
|
|
68
|
+
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @return {?}
|
|
72
|
+
*/
|
|
73
|
+
getNoticationApiRootUrl() {
|
|
74
|
+
return this.NOTIFICATION_API_ROOT;
|
|
75
|
+
}
|
|
63
76
|
}
|
|
64
77
|
PaymentLibService.decorators = [
|
|
65
78
|
{ type: Injectable, args: [{
|
|
@@ -74,17 +87,305 @@ PaymentLibService.ctorParameters = () => [];
|
|
|
74
87
|
* @fileoverview added by tsickle
|
|
75
88
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
76
89
|
*/
|
|
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
|
+
*/
|
|
372
|
+
// import { IPayment } from './interfaces/IPayment';
|
|
77
373
|
class PaymentLibComponent {
|
|
78
|
-
// isFromServiceRequestPage: boolean;
|
|
79
374
|
/**
|
|
80
375
|
* @param {?} paymentLibService
|
|
81
376
|
* @param {?} cd
|
|
377
|
+
* @param {?} OrderslistService
|
|
82
378
|
*/
|
|
83
|
-
constructor(paymentLibService, cd) {
|
|
379
|
+
constructor(paymentLibService, cd, OrderslistService$$1) {
|
|
84
380
|
this.paymentLibService = paymentLibService;
|
|
85
381
|
this.cd = cd;
|
|
382
|
+
this.OrderslistService = OrderslistService$$1;
|
|
86
383
|
this.unProcessedPaymentServiceId = null;
|
|
87
384
|
this.unProcessedPayment = null;
|
|
385
|
+
this.orderFeesTotal = 0.00;
|
|
386
|
+
this.orderRemissionTotal = 0.00;
|
|
387
|
+
this.orderTotalPayments = 0.00;
|
|
388
|
+
this.orderPendingPayments = 0.00;
|
|
88
389
|
}
|
|
89
390
|
/**
|
|
90
391
|
* @return {?}
|
|
@@ -99,6 +400,10 @@ class PaymentLibComponent {
|
|
|
99
400
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
100
401
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
101
402
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
403
|
+
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
404
|
+
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
405
|
+
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
406
|
+
}
|
|
102
407
|
if (this.PAYMENT_GROUP_REF) {
|
|
103
408
|
this.paymentGroupReference = this.PAYMENT_GROUP_REF;
|
|
104
409
|
}
|
|
@@ -118,6 +423,9 @@ class PaymentLibComponent {
|
|
|
118
423
|
else {
|
|
119
424
|
this.viewName = this.VIEW;
|
|
120
425
|
}
|
|
426
|
+
if (this.isTakePayment) {
|
|
427
|
+
this.TAKEPAYMENT = true;
|
|
428
|
+
}
|
|
121
429
|
}
|
|
122
430
|
}
|
|
123
431
|
PaymentLibComponent.decorators = [
|
|
@@ -136,11 +444,9 @@ PaymentLibComponent.decorators = [
|
|
|
136
444
|
[refundReference]="refundReference"
|
|
137
445
|
[refundlistsource]="refundlistsource"
|
|
138
446
|
></ccpay-process-refund>
|
|
139
|
-
<ccpay-pba-payment *ngIf="viewName === 'pba-payment'"
|
|
140
|
-
[pbaPayOrderRef]="pbaPayOrderRef"
|
|
141
|
-
></ccpay-pba-payment>
|
|
142
447
|
|
|
143
|
-
|
|
448
|
+
|
|
449
|
+
<ccpay-case-transactions [isTakePayment]="isTakePayment" [LOGGEDINUSERROLES]="LOGGEDINUSERROLES" *ngIf="viewName === 'case-transactions'"></ccpay-case-transactions>
|
|
144
450
|
<app-mark-unidentified-payment *ngIf="viewName === 'unidentifiedPage'"
|
|
145
451
|
[caseType]="CASETYPE"></app-mark-unidentified-payment>
|
|
146
452
|
<app-mark-unsolicited-payment *ngIf="viewName === 'unsolicitedPage'"
|
|
@@ -164,12 +470,14 @@ PaymentLibComponent.decorators = [
|
|
|
164
470
|
/** @nocollapse */
|
|
165
471
|
PaymentLibComponent.ctorParameters = () => [
|
|
166
472
|
{ type: PaymentLibService },
|
|
167
|
-
{ type: ChangeDetectorRef }
|
|
473
|
+
{ type: ChangeDetectorRef },
|
|
474
|
+
{ type: OrderslistService }
|
|
168
475
|
];
|
|
169
476
|
PaymentLibComponent.propDecorators = {
|
|
170
477
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
171
478
|
BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
172
479
|
REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
|
|
480
|
+
NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
173
481
|
CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
|
|
174
482
|
EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
|
|
175
483
|
PAYMENT_METHOD: [{ type: Input, args: ['PAYMENT_METHOD',] }],
|
|
@@ -221,33 +529,51 @@ class ErrorHandlerService {
|
|
|
221
529
|
errorMessage = err.error;
|
|
222
530
|
}
|
|
223
531
|
}
|
|
224
|
-
else if (err.status ===
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
532
|
+
else if (err.status === 500) {
|
|
533
|
+
errorMessage = 'Internal server error';
|
|
534
|
+
}
|
|
535
|
+
else if (err.error.messsage === undefined) {
|
|
536
|
+
if (typeof err.error === 'object') {
|
|
537
|
+
errorMessage = JSON.parse(JSON.stringify(err.error)).error;
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
if (typeof err.error === 'string' && err.error !== undefined) {
|
|
541
|
+
// if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500)
|
|
542
|
+
// {
|
|
543
|
+
// errorMessage = 'Internal server error';
|
|
544
|
+
// } else {
|
|
545
|
+
// errorMessage = err.error;
|
|
546
|
+
// }
|
|
547
|
+
if (err.error.length > 60) {
|
|
548
|
+
if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500) {
|
|
549
|
+
errorMessage = 'Internal server error';
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
if (err.error.length > 60) {
|
|
553
|
+
errorMessage = JSON.parse(err.error).error;
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
errorMessage = err.error;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
errorMessage = err.error;
|
|
562
|
+
}
|
|
228
563
|
}
|
|
229
564
|
else {
|
|
230
|
-
JSON.parse(err.error)
|
|
565
|
+
errorMessage = JSON.parse(err.error).error;
|
|
231
566
|
}
|
|
232
567
|
}
|
|
233
|
-
if (errorMessage === '') {
|
|
234
|
-
errorMessage = err.error.toString().replace(/"/g, "");
|
|
235
|
-
}
|
|
236
568
|
}
|
|
237
|
-
else
|
|
238
|
-
if (
|
|
239
|
-
errorMessage = err.error.
|
|
569
|
+
else {
|
|
570
|
+
if (err.error.message !== undefined) {
|
|
571
|
+
errorMessage = `${err.error.message}`;
|
|
240
572
|
}
|
|
241
573
|
else {
|
|
242
|
-
errorMessage =
|
|
574
|
+
errorMessage = `${err.error}`;
|
|
243
575
|
}
|
|
244
576
|
}
|
|
245
|
-
else if (err.error.messsage === undefined) {
|
|
246
|
-
errorMessage = 'Server error';
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
errorMessage = `${err.error.message}`;
|
|
250
|
-
}
|
|
251
577
|
}
|
|
252
578
|
return _throw(errorMessage);
|
|
253
579
|
}
|
|
@@ -554,34 +880,6 @@ class PaymentViewService {
|
|
|
554
880
|
})
|
|
555
881
|
.pipe(catchError(this.errorHandlerService.handleError));
|
|
556
882
|
}
|
|
557
|
-
/**
|
|
558
|
-
* @return {?}
|
|
559
|
-
*/
|
|
560
|
-
getPBAaccountDetails() {
|
|
561
|
-
/** @type {?} */
|
|
562
|
-
const url = `${this.paymentLibService.API_ROOT}/pba-accounts`;
|
|
563
|
-
return this.http.get(url, { withCredentials: true }).pipe(catchError(this.errorHandlerService.handleError));
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* @param {?} serviceRef
|
|
567
|
-
* @param {?} body
|
|
568
|
-
* @return {?}
|
|
569
|
-
*/
|
|
570
|
-
postWays2PayCardPayment(serviceRef, body) {
|
|
571
|
-
/** @type {?} */
|
|
572
|
-
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/card-payments`;
|
|
573
|
-
return this.https.post(url, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
574
|
-
}
|
|
575
|
-
/**
|
|
576
|
-
* @param {?} serviceRef
|
|
577
|
-
* @param {?} body
|
|
578
|
-
* @return {?}
|
|
579
|
-
*/
|
|
580
|
-
postPBAaccountPayment(serviceRef, body) {
|
|
581
|
-
/** @type {?} */
|
|
582
|
-
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/pba-payments`;
|
|
583
|
-
return this.https.post(url, body);
|
|
584
|
-
}
|
|
585
883
|
/**
|
|
586
884
|
* @param {?} body
|
|
587
885
|
* @return {?}
|
|
@@ -729,155 +1027,6 @@ PaymentViewService.ctorParameters = () => [
|
|
|
729
1027
|
];
|
|
730
1028
|
/** @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" });
|
|
731
1029
|
|
|
732
|
-
/**
|
|
733
|
-
* @fileoverview added by tsickle
|
|
734
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
735
|
-
*/
|
|
736
|
-
class OrderslistService {
|
|
737
|
-
constructor() {
|
|
738
|
-
this.ordersList = new BehaviorSubject(null);
|
|
739
|
-
this.refundView = new BehaviorSubject(null);
|
|
740
|
-
this.caseType = new BehaviorSubject("");
|
|
741
|
-
this.getcaseType = this.caseType.asObservable();
|
|
742
|
-
this.feeExists = new BehaviorSubject(null);
|
|
743
|
-
this.getFeeExist = this.feeExists.asObservable();
|
|
744
|
-
this.ccdCaseNumber = new BehaviorSubject("");
|
|
745
|
-
this.getCCDCaseNumberforRefund = this.ccdCaseNumber.asObservable();
|
|
746
|
-
this.isFromServiceRequestPage = new BehaviorSubject(null);
|
|
747
|
-
this.getisFromServiceRequestPage = this.isFromServiceRequestPage.asObservable();
|
|
748
|
-
this.OrderRefId = new BehaviorSubject("");
|
|
749
|
-
this.getOrderRefId = this.OrderRefId.asObservable();
|
|
750
|
-
this.navigationPage = new BehaviorSubject("");
|
|
751
|
-
this.getnavigationPage = this.navigationPage.asObservable();
|
|
752
|
-
this.paymentPageView = new BehaviorSubject(null);
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* @param {?} orderLevelFees
|
|
756
|
-
* @return {?}
|
|
757
|
-
*/
|
|
758
|
-
setOrdersList(orderLevelFees) {
|
|
759
|
-
this.ordersList.next(Object.assign([], orderLevelFees));
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* @return {?}
|
|
763
|
-
*/
|
|
764
|
-
getOrdersList() {
|
|
765
|
-
return this.ordersList;
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
* @param {?} refundList
|
|
769
|
-
* @return {?}
|
|
770
|
-
*/
|
|
771
|
-
setRefundView(refundList) {
|
|
772
|
-
this.refundView.next(Object.assign([], refundList));
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* @return {?}
|
|
776
|
-
*/
|
|
777
|
-
getRefundView() {
|
|
778
|
-
return this.refundView;
|
|
779
|
-
}
|
|
780
|
-
/**
|
|
781
|
-
* @param {?} caseType
|
|
782
|
-
* @return {?}
|
|
783
|
-
*/
|
|
784
|
-
setCaseType(caseType) {
|
|
785
|
-
this.caseType.next(caseType);
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
* @return {?}
|
|
789
|
-
*/
|
|
790
|
-
getCaseType() {
|
|
791
|
-
return this.caseType;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @param {?} ccdCaseNumber
|
|
795
|
-
* @return {?}
|
|
796
|
-
*/
|
|
797
|
-
setCCDCaseNumber(ccdCaseNumber) {
|
|
798
|
-
this.ccdCaseNumber.next(ccdCaseNumber);
|
|
799
|
-
}
|
|
800
|
-
/**
|
|
801
|
-
* @return {?}
|
|
802
|
-
*/
|
|
803
|
-
getCCDCaseNumber() {
|
|
804
|
-
return this.ccdCaseNumber;
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* @param {?} feeExists
|
|
808
|
-
* @return {?}
|
|
809
|
-
*/
|
|
810
|
-
setFeeExists(feeExists) {
|
|
811
|
-
this.feeExists.next(feeExists);
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* @return {?}
|
|
815
|
-
*/
|
|
816
|
-
getFeeExists() {
|
|
817
|
-
return this.feeExists;
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* @param {?} isFromServiceRequestPage
|
|
821
|
-
* @return {?}
|
|
822
|
-
*/
|
|
823
|
-
setisFromServiceRequestPage(isFromServiceRequestPage) {
|
|
824
|
-
this.isFromServiceRequestPage.next(isFromServiceRequestPage);
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* @return {?}
|
|
828
|
-
*/
|
|
829
|
-
getisFromServiceRequestPages() {
|
|
830
|
-
return this.isFromServiceRequestPage;
|
|
831
|
-
}
|
|
832
|
-
/**
|
|
833
|
-
* @param {?} OrderRefId
|
|
834
|
-
* @return {?}
|
|
835
|
-
*/
|
|
836
|
-
setOrderRefId(OrderRefId) {
|
|
837
|
-
this.OrderRefId.next(OrderRefId);
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* @return {?}
|
|
841
|
-
*/
|
|
842
|
-
getSelectedOrderRefId() {
|
|
843
|
-
return this.OrderRefId;
|
|
844
|
-
}
|
|
845
|
-
/**
|
|
846
|
-
* @param {?} navigationPage
|
|
847
|
-
* @return {?}
|
|
848
|
-
*/
|
|
849
|
-
setnavigationPage(navigationPage) {
|
|
850
|
-
this.navigationPage.next(navigationPage);
|
|
851
|
-
}
|
|
852
|
-
/**
|
|
853
|
-
* @return {?}
|
|
854
|
-
*/
|
|
855
|
-
getnavigationPageValue() {
|
|
856
|
-
return this.navigationPage;
|
|
857
|
-
}
|
|
858
|
-
/**
|
|
859
|
-
* @param {?} paymentpageList
|
|
860
|
-
* @return {?}
|
|
861
|
-
*/
|
|
862
|
-
setpaymentPageView(paymentpageList) {
|
|
863
|
-
this.paymentPageView.next(Object.assign([], paymentpageList));
|
|
864
|
-
}
|
|
865
|
-
/**
|
|
866
|
-
* @return {?}
|
|
867
|
-
*/
|
|
868
|
-
getpaymentPageView() {
|
|
869
|
-
return this.paymentPageView;
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
OrderslistService.decorators = [
|
|
873
|
-
{ type: Injectable, args: [{
|
|
874
|
-
providedIn: 'root'
|
|
875
|
-
},] }
|
|
876
|
-
];
|
|
877
|
-
/** @nocollapse */
|
|
878
|
-
OrderslistService.ctorParameters = () => [];
|
|
879
|
-
/** @nocollapse */ OrderslistService.ngInjectableDef = defineInjectable({ factory: function OrderslistService_Factory() { return new OrderslistService(); }, token: OrderslistService, providedIn: "root" });
|
|
880
|
-
|
|
881
1030
|
/**
|
|
882
1031
|
* @fileoverview added by tsickle
|
|
883
1032
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -936,6 +1085,7 @@ class PaymentViewComponent {
|
|
|
936
1085
|
this.selectedOption = this.paymentLibComponent.SELECTED_OPTION;
|
|
937
1086
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
938
1087
|
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
1088
|
+
this.serviceReference = this.paymentLibComponent.paymentGroupReference;
|
|
939
1089
|
this.viewStatus = 'paymentview';
|
|
940
1090
|
this.paymentViewService.getApportionPaymentDetails(this.paymentLibComponent.paymentReference).subscribe((/**
|
|
941
1091
|
* @param {?} paymentGroup
|
|
@@ -1006,19 +1156,56 @@ class PaymentViewComponent {
|
|
|
1006
1156
|
*/
|
|
1007
1157
|
goToCaseTransationPage(event) {
|
|
1008
1158
|
event.preventDefault();
|
|
1009
|
-
this.
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1159
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
1160
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
1161
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1162
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
1163
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
1164
|
+
this.resetOrderData();
|
|
1165
|
+
}
|
|
1166
|
+
else {
|
|
1167
|
+
this.OrderslistService.getorderRefs().subscribe((/**
|
|
1168
|
+
* @param {?} data
|
|
1169
|
+
* @return {?}
|
|
1170
|
+
*/
|
|
1171
|
+
(data) => this.orderRef = data));
|
|
1172
|
+
this.OrderslistService.getorderCCDEvents().subscribe((/**
|
|
1173
|
+
* @param {?} data
|
|
1174
|
+
* @return {?}
|
|
1175
|
+
*/
|
|
1176
|
+
(data) => this.orderCCDEvent = data));
|
|
1177
|
+
this.OrderslistService.getorderCreateds().subscribe((/**
|
|
1178
|
+
* @param {?} data
|
|
1179
|
+
* @return {?}
|
|
1180
|
+
*/
|
|
1181
|
+
(data) => this.orderCreated = data));
|
|
1182
|
+
this.OrderslistService.getorderDetail().subscribe((/**
|
|
1183
|
+
* @param {?} data
|
|
1184
|
+
* @return {?}
|
|
1185
|
+
*/
|
|
1186
|
+
(data) => this.orderDetail = data));
|
|
1187
|
+
this.OrderslistService.getorderPartys().subscribe((/**
|
|
1188
|
+
* @param {?} data
|
|
1189
|
+
* @return {?}
|
|
1190
|
+
*/
|
|
1191
|
+
(data) => this.orderParty = data));
|
|
1192
|
+
this.OrderslistService.getorderRemissionTotals().subscribe((/**
|
|
1193
|
+
* @param {?} data
|
|
1194
|
+
* @return {?}
|
|
1195
|
+
*/
|
|
1196
|
+
(data) => this.orderRemissionTotal = data));
|
|
1197
|
+
this.OrderslistService.getorderFeesTotals().subscribe((/**
|
|
1198
|
+
* @param {?} data
|
|
1199
|
+
* @return {?}
|
|
1200
|
+
*/
|
|
1201
|
+
(data) => this.orderFeesTotal = data));
|
|
1202
|
+
this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
|
|
1203
|
+
* @param {?} data
|
|
1204
|
+
* @return {?}
|
|
1205
|
+
*/
|
|
1206
|
+
(data) => this.orderTotalPayments = data));
|
|
1207
|
+
this.viewStatus = 'order-full-view';
|
|
1208
|
+
}
|
|
1022
1209
|
}
|
|
1023
1210
|
/**
|
|
1024
1211
|
* @param {?} fee
|
|
@@ -1131,6 +1318,9 @@ class PaymentViewComponent {
|
|
|
1131
1318
|
this.paymentGroup = paymentgrp;
|
|
1132
1319
|
this.viewStatus = 'issuerefund';
|
|
1133
1320
|
this.isRefundRemission = true;
|
|
1321
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1322
|
+
this.isFromPaymentDetailPage = true;
|
|
1323
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1134
1324
|
}
|
|
1135
1325
|
}
|
|
1136
1326
|
}
|
|
@@ -1144,7 +1334,6 @@ class PaymentViewComponent {
|
|
|
1144
1334
|
for (const remission of remissions) {
|
|
1145
1335
|
if (remission.fee_code === feeCode) {
|
|
1146
1336
|
return remission;
|
|
1147
|
-
// this.isAddFeeBtnEnabled = true;
|
|
1148
1337
|
}
|
|
1149
1338
|
}
|
|
1150
1339
|
}
|
|
@@ -1199,12 +1388,25 @@ class PaymentViewComponent {
|
|
|
1199
1388
|
return false;
|
|
1200
1389
|
}
|
|
1201
1390
|
}
|
|
1391
|
+
/**
|
|
1392
|
+
* @return {?}
|
|
1393
|
+
*/
|
|
1394
|
+
resetOrderData() {
|
|
1395
|
+
this.OrderslistService.setOrderRef(null);
|
|
1396
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
1397
|
+
this.OrderslistService.setorderCreated(null);
|
|
1398
|
+
this.OrderslistService.setorderDetail(null);
|
|
1399
|
+
this.OrderslistService.setorderParty(null);
|
|
1400
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
1401
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
1402
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
1403
|
+
}
|
|
1202
1404
|
}
|
|
1203
1405
|
PaymentViewComponent.decorators = [
|
|
1204
1406
|
{ type: Component, args: [{
|
|
1205
1407
|
selector: 'ccpay-payment-view',
|
|
1206
|
-
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div *ngIf=\"isTakePayment\" 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\">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]?.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",
|
|
1207
|
-
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}"]
|
|
1408
|
+
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 \n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n \n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n \n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n \n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n \n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n \n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n \n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n \n </div>\n \n </main>\n </div> -->\n<!-- </ng-container> --> \n",
|
|
1409
|
+
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}.text-transform::first-letter{text-transform:capitalize}"]
|
|
1208
1410
|
}] }
|
|
1209
1411
|
];
|
|
1210
1412
|
/** @nocollapse */
|
|
@@ -1224,7 +1426,13 @@ PaymentViewComponent.propDecorators = {
|
|
|
1224
1426
|
orderStatus: [{ type: Input }],
|
|
1225
1427
|
orderTotalPayments: [{ type: Input }],
|
|
1226
1428
|
payment: [{ type: Input }],
|
|
1227
|
-
LOGGEDINUSERROLES: [{ type: Input
|
|
1429
|
+
LOGGEDINUSERROLES: [{ type: Input }],
|
|
1430
|
+
orderParty: [{ type: Input }],
|
|
1431
|
+
orderCreated: [{ type: Input }],
|
|
1432
|
+
orderCCDEvent: [{ type: Input }],
|
|
1433
|
+
orderFeesTotal: [{ type: Input }],
|
|
1434
|
+
orderRemissionTotal: [{ type: Input }],
|
|
1435
|
+
orderDetail: [{ type: Input }]
|
|
1228
1436
|
};
|
|
1229
1437
|
|
|
1230
1438
|
/**
|
|
@@ -1332,6 +1540,15 @@ class RefundsService {
|
|
|
1332
1540
|
postIssueRefund(body) {
|
|
1333
1541
|
return this.https.post(`${this.paymentLibService.REFUNDS_API_ROOT}/refund`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1334
1542
|
}
|
|
1543
|
+
/**
|
|
1544
|
+
* @param {?} body
|
|
1545
|
+
* @param {?} refundRef
|
|
1546
|
+
* @param {?} notificationType
|
|
1547
|
+
* @return {?}
|
|
1548
|
+
*/
|
|
1549
|
+
putResendOrEdit(body, refundRef, notificationType) {
|
|
1550
|
+
return this.https.put(`${this.paymentLibService.REFUNDS_API_ROOT}/resend/notification/${refundRef}?notificationType=${notificationType}`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1551
|
+
}
|
|
1335
1552
|
/**
|
|
1336
1553
|
* @param {?} body
|
|
1337
1554
|
* @param {?} refund_reference
|
|
@@ -1397,15 +1614,21 @@ RefundsService.ctorParameters = () => [
|
|
|
1397
1614
|
class ProcessRefundComponent {
|
|
1398
1615
|
/**
|
|
1399
1616
|
* @param {?} RefundsService
|
|
1617
|
+
* @param {?} paymentViewService
|
|
1400
1618
|
* @param {?} formBuilder
|
|
1401
1619
|
* @param {?} OrderslistService
|
|
1402
1620
|
* @param {?} paymentLibComponent
|
|
1621
|
+
* @param {?} router
|
|
1622
|
+
* @param {?} activeRoute
|
|
1403
1623
|
*/
|
|
1404
|
-
constructor(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent) {
|
|
1624
|
+
constructor(RefundsService$$1, paymentViewService, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
1405
1625
|
this.RefundsService = RefundsService$$1;
|
|
1626
|
+
this.paymentViewService = paymentViewService;
|
|
1406
1627
|
this.formBuilder = formBuilder;
|
|
1407
1628
|
this.OrderslistService = OrderslistService$$1;
|
|
1408
1629
|
this.paymentLibComponent = paymentLibComponent;
|
|
1630
|
+
this.router = router;
|
|
1631
|
+
this.activeRoute = activeRoute;
|
|
1409
1632
|
this.errorMessage = this.getErrorMessage(false, '', '', '');
|
|
1410
1633
|
this.sendmeback = null;
|
|
1411
1634
|
this.refundActionList = [];
|
|
@@ -1423,6 +1646,7 @@ class ProcessRefundComponent {
|
|
|
1423
1646
|
this.isReasonEmpty = false;
|
|
1424
1647
|
this.isReasonInvalid = false;
|
|
1425
1648
|
this.successMsg = null;
|
|
1649
|
+
this.cpoDetails = null;
|
|
1426
1650
|
this.isConfirmButtondisabled = true;
|
|
1427
1651
|
}
|
|
1428
1652
|
/**
|
|
@@ -1459,15 +1683,35 @@ class ProcessRefundComponent {
|
|
|
1459
1683
|
enterReasonField: new FormControl('', Validators.compose([
|
|
1460
1684
|
Validators.required,
|
|
1461
1685
|
Validators.maxLength(30),
|
|
1462
|
-
Validators.pattern('^([a-zA-Z0-9
|
|
1686
|
+
Validators.pattern('^([a-zA-Z0-9.\\s]*)$'),
|
|
1463
1687
|
])),
|
|
1464
1688
|
});
|
|
1689
|
+
this.ccdCaseNumber = this.refundlistsource.ccd_case_number;
|
|
1690
|
+
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
1691
|
+
* @param {?} response
|
|
1692
|
+
* @return {?}
|
|
1693
|
+
*/
|
|
1694
|
+
response => {
|
|
1695
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
1696
|
+
}), (/**
|
|
1697
|
+
* @param {?} error
|
|
1698
|
+
* @return {?}
|
|
1699
|
+
*/
|
|
1700
|
+
(error) => {
|
|
1701
|
+
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
1702
|
+
this.isCPODown = true;
|
|
1703
|
+
}));
|
|
1465
1704
|
}
|
|
1466
1705
|
/**
|
|
1467
1706
|
* @param {?} code
|
|
1468
1707
|
* @return {?}
|
|
1469
1708
|
*/
|
|
1470
1709
|
checkRefundActions(code) {
|
|
1710
|
+
this.refundActionsHasError = false;
|
|
1711
|
+
this.isReasonFieldEmpty = false;
|
|
1712
|
+
this.isReasonEmpty = false;
|
|
1713
|
+
this.isReasonInvalid = false;
|
|
1714
|
+
this.refundRejectReasonHasError = false;
|
|
1471
1715
|
if (code === 'Return to caseworker') {
|
|
1472
1716
|
this.isConfirmButtondisabled = true;
|
|
1473
1717
|
this.isSendMeBackClicked = true;
|
|
@@ -1625,18 +1869,45 @@ class ProcessRefundComponent {
|
|
|
1625
1869
|
*/
|
|
1626
1870
|
(data) => this.navigationpage = data));
|
|
1627
1871
|
if (this.navigationpage === 'casetransactions') {
|
|
1628
|
-
window.location.href
|
|
1872
|
+
// window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1873
|
+
// // this.OrderslistService.setnavigationPage('casetransactions');
|
|
1874
|
+
// // this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1875
|
+
// // this.paymentLibComponent.VIEW ='case-transactions';
|
|
1876
|
+
// // this.paymentLibComponent.viewName = 'case-transactions';
|
|
1877
|
+
// // this.paymentLibComponent.ISBSENABLE = true;
|
|
1878
|
+
// // this.paymentLibComponent.isRefundStatusView = false;
|
|
1879
|
+
this.paymentLibComponent.viewName = 'refundstatuslist';
|
|
1880
|
+
this.paymentLibComponent.isRefundStatusView = true;
|
|
1629
1881
|
}
|
|
1630
1882
|
else {
|
|
1883
|
+
this.paymentLibComponent.viewName = 'refundstatuslist';
|
|
1884
|
+
this.paymentLibComponent.isRefundStatusView = true;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* @return {?}
|
|
1889
|
+
*/
|
|
1890
|
+
loadRefundsHomePage() {
|
|
1891
|
+
if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
|
|
1892
|
+
//window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1631
1893
|
this.paymentLibComponent.viewName = 'refund-list';
|
|
1632
1894
|
}
|
|
1895
|
+
else {
|
|
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
|
+
}
|
|
1633
1903
|
}
|
|
1634
1904
|
/**
|
|
1635
1905
|
* @return {?}
|
|
1636
1906
|
*/
|
|
1637
1907
|
redirecttoRefundListPage() {
|
|
1638
|
-
if (this.paymentLibComponent.
|
|
1639
|
-
window.location.href
|
|
1908
|
+
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
1909
|
+
// window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1910
|
+
this.paymentLibComponent.viewName = 'refund-list';
|
|
1640
1911
|
}
|
|
1641
1912
|
else {
|
|
1642
1913
|
this.loadRefundListPage();
|
|
@@ -1689,20 +1960,29 @@ class ProcessRefundComponent {
|
|
|
1689
1960
|
this.isReasonInvalid = vals[7];
|
|
1690
1961
|
}
|
|
1691
1962
|
}
|
|
1963
|
+
/**
|
|
1964
|
+
* @return {?}
|
|
1965
|
+
*/
|
|
1966
|
+
goToCaseReview() {
|
|
1967
|
+
this.router.navigate([`/cases/case-details/${this.ccdCaseNumber}`], { relativeTo: this.activeRoute });
|
|
1968
|
+
}
|
|
1692
1969
|
}
|
|
1693
1970
|
ProcessRefundComponent.decorators = [
|
|
1694
1971
|
{ type: Component, args: [{
|
|
1695
1972
|
selector: 'ccpay-process-refund',
|
|
1696
|
-
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
|
|
1697
|
-
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:
|
|
1973
|
+
template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent to</td>\n <td>{{cpoDetails?.responsibleParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent via</td>\n <td>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlistsource?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlistsource?.contact_details?.address_line}} {{refundlistsource?.contact_details?.city}} {{refundlistsource?.contact_details?.county}} {{refundlistsource?.contact_details?.country}} {{refundlistsource?.contact_details?.postal_code}}\n </div> \n </td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third reason-font\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n <input class=\"govuk-input govuk-!-width-one-third reason-font\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundsHomePage()\" class=\"govuk-link\" 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",
|
|
1974
|
+
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:1.875rem;float:left;margin-top:2em}.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}"]
|
|
1698
1975
|
}] }
|
|
1699
1976
|
];
|
|
1700
1977
|
/** @nocollapse */
|
|
1701
1978
|
ProcessRefundComponent.ctorParameters = () => [
|
|
1702
1979
|
{ type: RefundsService },
|
|
1980
|
+
{ type: PaymentViewService },
|
|
1703
1981
|
{ type: FormBuilder },
|
|
1704
1982
|
{ type: OrderslistService },
|
|
1705
|
-
{ type: PaymentLibComponent }
|
|
1983
|
+
{ type: PaymentLibComponent },
|
|
1984
|
+
{ type: Router },
|
|
1985
|
+
{ type: ActivatedRoute }
|
|
1706
1986
|
];
|
|
1707
1987
|
ProcessRefundComponent.propDecorators = {
|
|
1708
1988
|
refundReference: [{ type: Input }],
|
|
@@ -1721,8 +2001,10 @@ class RefundListComponent {
|
|
|
1721
2001
|
this.refundService = refundService;
|
|
1722
2002
|
this.submittedRefundList = [];
|
|
1723
2003
|
this.rejectedRefundList = [];
|
|
1724
|
-
this.approvalStatus = '
|
|
1725
|
-
this.rejectStatus = '
|
|
2004
|
+
this.approvalStatus = 'Sent for approval';
|
|
2005
|
+
this.rejectStatus = 'Update required';
|
|
2006
|
+
// approvalStatus = 'sent for approval';
|
|
2007
|
+
// rejectStatus = 'sent back';
|
|
1726
2008
|
this.errorMessage = null;
|
|
1727
2009
|
this.isAuthorized = true;
|
|
1728
2010
|
}
|
|
@@ -1736,7 +2018,6 @@ class RefundListComponent {
|
|
|
1736
2018
|
* @return {?}
|
|
1737
2019
|
*/
|
|
1738
2020
|
i => i.includes('payments-refund-approver')))) {
|
|
1739
|
-
// this.isApproveTableVisible = true;
|
|
1740
2021
|
this.isAuthorized = true;
|
|
1741
2022
|
}
|
|
1742
2023
|
else {
|
|
@@ -1745,11 +2026,6 @@ class RefundListComponent {
|
|
|
1745
2026
|
}
|
|
1746
2027
|
this.tableApprovalHeader = 'Refunds to be approved';
|
|
1747
2028
|
this.tableRejectedHeader = 'Refunds returned to caseworker';
|
|
1748
|
-
// if(this.dropdownvalue !== 'caseworker-probate-authorize') {
|
|
1749
|
-
// this.isAuthorized = false;
|
|
1750
|
-
// } else {
|
|
1751
|
-
// this.isAuthorized = true;
|
|
1752
|
-
// }
|
|
1753
2029
|
if (this.isAuthorized) {
|
|
1754
2030
|
this.refundService.getRefundList(this.approvalStatus, true).subscribe((/**
|
|
1755
2031
|
* @param {?} refundList
|
|
@@ -1787,7 +2063,7 @@ class RefundListComponent {
|
|
|
1787
2063
|
RefundListComponent.decorators = [
|
|
1788
2064
|
{ type: Component, args: [{
|
|
1789
2065
|
selector: 'ccpay-refund-list',
|
|
1790
|
-
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
|
|
2066
|
+
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",
|
|
1791
2067
|
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%}"]
|
|
1792
2068
|
}] }
|
|
1793
2069
|
];
|
|
@@ -1984,7 +2260,7 @@ class StatusHistoryComponent {
|
|
|
1984
2260
|
StatusHistoryComponent.decorators = [
|
|
1985
2261
|
{ type: Component, args: [{
|
|
1986
2262
|
selector: 'ccpay-payment-statuses',
|
|
1987
|
-
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
|
|
2263
|
+
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",
|
|
1988
2264
|
styles: [""]
|
|
1989
2265
|
}] }
|
|
1990
2266
|
];
|
|
@@ -2001,12 +2277,381 @@ StatusHistoryComponent.propDecorators = {
|
|
|
2001
2277
|
* @fileoverview added by tsickle
|
|
2002
2278
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2003
2279
|
*/
|
|
2004
|
-
class
|
|
2005
|
-
constructor() { }
|
|
2280
|
+
class NotificationService {
|
|
2006
2281
|
/**
|
|
2007
|
-
* @
|
|
2008
|
-
|
|
2009
|
-
|
|
2282
|
+
* @param {?} http
|
|
2283
|
+
* @param {?} https
|
|
2284
|
+
* @param {?} errorHandlerService
|
|
2285
|
+
* @param {?} paymentLibService
|
|
2286
|
+
*/
|
|
2287
|
+
constructor(http, https, errorHandlerService, paymentLibService) {
|
|
2288
|
+
this.http = http;
|
|
2289
|
+
this.https = https;
|
|
2290
|
+
this.errorHandlerService = errorHandlerService;
|
|
2291
|
+
this.paymentLibService = paymentLibService;
|
|
2292
|
+
}
|
|
2293
|
+
/**
|
|
2294
|
+
* @param {?} reference
|
|
2295
|
+
* @return {?}
|
|
2296
|
+
*/
|
|
2297
|
+
getRefundNotification(reference) {
|
|
2298
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/notifications/${reference}`, {
|
|
2299
|
+
withCredentials: true
|
|
2300
|
+
})
|
|
2301
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2302
|
+
}
|
|
2303
|
+
/**
|
|
2304
|
+
* @param {?} postcode
|
|
2305
|
+
* @return {?}
|
|
2306
|
+
*/
|
|
2307
|
+
getAddressByPostcode(postcode) {
|
|
2308
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/search/places/v1/postcode?postcode=${postcode}`, {
|
|
2309
|
+
withCredentials: true
|
|
2310
|
+
})
|
|
2311
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
NotificationService.decorators = [
|
|
2315
|
+
{ type: Injectable, args: [{
|
|
2316
|
+
providedIn: 'root'
|
|
2317
|
+
},] }
|
|
2318
|
+
];
|
|
2319
|
+
/** @nocollapse */
|
|
2320
|
+
NotificationService.ctorParameters = () => [
|
|
2321
|
+
{ type: HttpClient },
|
|
2322
|
+
{ type: WebComponentHttpClient },
|
|
2323
|
+
{ type: ErrorHandlerService },
|
|
2324
|
+
{ type: PaymentLibService }
|
|
2325
|
+
];
|
|
2326
|
+
/** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
2327
|
+
|
|
2328
|
+
/**
|
|
2329
|
+
* @fileoverview added by tsickle
|
|
2330
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2331
|
+
*/
|
|
2332
|
+
class ContactDetailsComponent {
|
|
2333
|
+
/**
|
|
2334
|
+
* @param {?} formBuilder
|
|
2335
|
+
* @param {?} notificationService
|
|
2336
|
+
* @param {?} paymentLibComponent
|
|
2337
|
+
*/
|
|
2338
|
+
constructor(formBuilder, notificationService, paymentLibComponent) {
|
|
2339
|
+
this.formBuilder = formBuilder;
|
|
2340
|
+
this.notificationService = notificationService;
|
|
2341
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
2342
|
+
this.assignContactDetails = new EventEmitter();
|
|
2343
|
+
this.redirectToIssueRefund = new EventEmitter();
|
|
2344
|
+
this.pageTitle = 'Payment status history';
|
|
2345
|
+
this.isEmailSAddressClicked = true;
|
|
2346
|
+
this.isPostcodeClicked = false;
|
|
2347
|
+
this.isManualAddressClicked = false;
|
|
2348
|
+
this.addressPostcodeList = [];
|
|
2349
|
+
this.isEmailEmpty = false;
|
|
2350
|
+
this.emailHasError = false;
|
|
2351
|
+
this.isPostcodeEmpty = false;
|
|
2352
|
+
this.postcodeHasError = false;
|
|
2353
|
+
this.isaddressLine1Empty = false;
|
|
2354
|
+
this.addressLine1HasError = false;
|
|
2355
|
+
this.addressLine2HasError = false;
|
|
2356
|
+
this.isTownOrCityEmpty = false;
|
|
2357
|
+
this.townOrCityHasError = false;
|
|
2358
|
+
this.isCountyEmpty = false;
|
|
2359
|
+
this.countyHasError = false;
|
|
2360
|
+
this.isMPostcodeEmpty = false;
|
|
2361
|
+
this.mpostcodeHasError = false;
|
|
2362
|
+
this.isCountryEmpty = false;
|
|
2363
|
+
}
|
|
2364
|
+
/**
|
|
2365
|
+
* @return {?}
|
|
2366
|
+
*/
|
|
2367
|
+
ngOnInit() {
|
|
2368
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2369
|
+
this.emailAddressForm = this.formBuilder.group({
|
|
2370
|
+
email: new FormControl('', Validators.compose([
|
|
2371
|
+
Validators.required,
|
|
2372
|
+
Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
2373
|
+
]))
|
|
2374
|
+
});
|
|
2375
|
+
this.postCodeForm = this.formBuilder.group({
|
|
2376
|
+
postcode: new FormControl('', Validators.compose([
|
|
2377
|
+
Validators.required,
|
|
2378
|
+
Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
|
|
2379
|
+
]))
|
|
2380
|
+
});
|
|
2381
|
+
this.manualAddressForm = this.formBuilder.group({
|
|
2382
|
+
addressl1: new FormControl('', Validators.compose([
|
|
2383
|
+
Validators.required,
|
|
2384
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2385
|
+
])),
|
|
2386
|
+
addressl2: new FormControl('', Validators.compose([
|
|
2387
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2388
|
+
])),
|
|
2389
|
+
townorcity: new FormControl('', Validators.compose([
|
|
2390
|
+
Validators.required,
|
|
2391
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2392
|
+
])),
|
|
2393
|
+
county: new FormControl('', Validators.compose([
|
|
2394
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2395
|
+
])),
|
|
2396
|
+
mpostcode: new FormControl('', Validators.compose([
|
|
2397
|
+
Validators.required,
|
|
2398
|
+
Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
|
|
2399
|
+
])),
|
|
2400
|
+
country: new FormControl('', Validators.compose([
|
|
2401
|
+
Validators.required
|
|
2402
|
+
]))
|
|
2403
|
+
});
|
|
2404
|
+
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
2405
|
+
this.setEditDetails();
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
/**
|
|
2409
|
+
* @return {?}
|
|
2410
|
+
*/
|
|
2411
|
+
setEditDetails() {
|
|
2412
|
+
if (this.addressObj.notification_type === 'EMAIL') {
|
|
2413
|
+
this.isEmailSAddressClicked = true;
|
|
2414
|
+
this.isPostcodeClicked = false;
|
|
2415
|
+
this.isManualAddressClicked = false;
|
|
2416
|
+
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
2417
|
+
}
|
|
2418
|
+
else if (this.addressObj.notification_type === 'LETTER') {
|
|
2419
|
+
this.isEmailSAddressClicked = false;
|
|
2420
|
+
this.isPostcodeClicked = true;
|
|
2421
|
+
this.isManualAddressClicked = true;
|
|
2422
|
+
this.manualAddressForm.patchValue({
|
|
2423
|
+
addressl1: this.addressObj.contact_details.address_line,
|
|
2424
|
+
townorcity: this.addressObj.contact_details.city,
|
|
2425
|
+
county: this.addressObj.contact_details.county,
|
|
2426
|
+
country: this.addressObj.contact_details.country,
|
|
2427
|
+
mpostcode: this.addressObj.contact_details.postal_code
|
|
2428
|
+
});
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
/**
|
|
2432
|
+
* @param {?} type
|
|
2433
|
+
* @param {?} isLinkedClied
|
|
2434
|
+
* @return {?}
|
|
2435
|
+
*/
|
|
2436
|
+
selectContactOption(type, isLinkedClied) {
|
|
2437
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2438
|
+
if (type === 'Email' && isLinkedClied === 'false') {
|
|
2439
|
+
this.isEmailSAddressClicked = true;
|
|
2440
|
+
this.isPostcodeClicked = false;
|
|
2441
|
+
this.isManualAddressClicked = false;
|
|
2442
|
+
}
|
|
2443
|
+
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
2444
|
+
this.isEmailSAddressClicked = false;
|
|
2445
|
+
this.isPostcodeClicked = true;
|
|
2446
|
+
this.isManualAddressClicked = false;
|
|
2447
|
+
}
|
|
2448
|
+
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
2449
|
+
this.isEmailSAddressClicked = false;
|
|
2450
|
+
this.isPostcodeClicked = true;
|
|
2451
|
+
this.isManualAddressClicked = true;
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
* @return {?}
|
|
2456
|
+
*/
|
|
2457
|
+
finalFormSubmit() {
|
|
2458
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2459
|
+
if (this.isEmailSAddressClicked) {
|
|
2460
|
+
/** @type {?} */
|
|
2461
|
+
const emailField = this.emailAddressForm.controls.email;
|
|
2462
|
+
if (this.emailAddressForm.dirty && this.emailAddressForm.valid) {
|
|
2463
|
+
this.assignContactDetails.emit({
|
|
2464
|
+
email: emailField.value,
|
|
2465
|
+
notification_type: 'EMAIL'
|
|
2466
|
+
});
|
|
2467
|
+
}
|
|
2468
|
+
else {
|
|
2469
|
+
if (emailField.value == '') {
|
|
2470
|
+
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2471
|
+
}
|
|
2472
|
+
if (emailField.value != '' && emailField.invalid) {
|
|
2473
|
+
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
2478
|
+
this.postcodeValidation('FS');
|
|
2479
|
+
}
|
|
2480
|
+
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
2481
|
+
/** @type {?} */
|
|
2482
|
+
const fieldCtrls = this.manualAddressForm.controls;
|
|
2483
|
+
if (this.manualAddressForm.dirty && this.manualAddressForm.valid) {
|
|
2484
|
+
this.assignContactDetails.emit({
|
|
2485
|
+
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
2486
|
+
city: fieldCtrls.townorcity.value,
|
|
2487
|
+
county: fieldCtrls.county.value,
|
|
2488
|
+
postal_code: fieldCtrls.mpostcode.value,
|
|
2489
|
+
country: fieldCtrls.country.value,
|
|
2490
|
+
notification_type: 'LETTER'
|
|
2491
|
+
});
|
|
2492
|
+
}
|
|
2493
|
+
else {
|
|
2494
|
+
if (fieldCtrls.addressl1.value == '') {
|
|
2495
|
+
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
2496
|
+
}
|
|
2497
|
+
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
2498
|
+
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
2499
|
+
}
|
|
2500
|
+
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
2501
|
+
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
2502
|
+
}
|
|
2503
|
+
if (fieldCtrls.townorcity.value == '') {
|
|
2504
|
+
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
2505
|
+
}
|
|
2506
|
+
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
2507
|
+
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
2508
|
+
}
|
|
2509
|
+
if (fieldCtrls.county.value == '') {
|
|
2510
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
2511
|
+
}
|
|
2512
|
+
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
2513
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
2514
|
+
}
|
|
2515
|
+
if (fieldCtrls.mpostcode.value == '') {
|
|
2516
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
2517
|
+
}
|
|
2518
|
+
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
2519
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
2520
|
+
}
|
|
2521
|
+
if (fieldCtrls.country.value == '') {
|
|
2522
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* @param {?} str
|
|
2529
|
+
* @return {?}
|
|
2530
|
+
*/
|
|
2531
|
+
postcodeValidation(str) {
|
|
2532
|
+
/** @type {?} */
|
|
2533
|
+
const postcodeField = this.postCodeForm.controls.postcode;
|
|
2534
|
+
if (this.postCodeForm.dirty && this.postCodeForm.valid) {
|
|
2535
|
+
if (str === 'FA') {
|
|
2536
|
+
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe((/**
|
|
2537
|
+
* @param {?} refundsNotification
|
|
2538
|
+
* @return {?}
|
|
2539
|
+
*/
|
|
2540
|
+
refundsNotification => {
|
|
2541
|
+
this.addressPostcodeList = refundsNotification['data']['results'];
|
|
2542
|
+
})),
|
|
2543
|
+
(/**
|
|
2544
|
+
* @param {?} error
|
|
2545
|
+
* @return {?}
|
|
2546
|
+
*/
|
|
2547
|
+
(error) => {
|
|
2548
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
2549
|
+
});
|
|
2550
|
+
}
|
|
2551
|
+
else if (str === 'FS') {
|
|
2552
|
+
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
2553
|
+
/** @type {?} */
|
|
2554
|
+
let addressLine = "";
|
|
2555
|
+
/** @type {?} */
|
|
2556
|
+
let addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
2557
|
+
for (let i = 0; i < addressArray.length - 2; i++) {
|
|
2558
|
+
addressLine += addressArray[i];
|
|
2559
|
+
}
|
|
2560
|
+
this.assignContactDetails.emit({
|
|
2561
|
+
address_line: addressLine,
|
|
2562
|
+
city: this.postcodeAddress.POST_TOWN,
|
|
2563
|
+
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
2564
|
+
postal_code: this.postcodeAddress.POSTCODE,
|
|
2565
|
+
country: 'United Kingdom',
|
|
2566
|
+
notification_type: 'LETTER'
|
|
2567
|
+
});
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
else {
|
|
2572
|
+
if (postcodeField.value == '') {
|
|
2573
|
+
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2574
|
+
}
|
|
2575
|
+
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
2576
|
+
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
/**
|
|
2581
|
+
* @param {?} event
|
|
2582
|
+
* @return {?}
|
|
2583
|
+
*/
|
|
2584
|
+
redirection(event) {
|
|
2585
|
+
this.redirectToIssueRefund.emit(event);
|
|
2586
|
+
}
|
|
2587
|
+
/**
|
|
2588
|
+
* @param {?} val
|
|
2589
|
+
* @param {?} field
|
|
2590
|
+
* @return {?}
|
|
2591
|
+
*/
|
|
2592
|
+
resetForm(val, field) {
|
|
2593
|
+
if (field === 'email' || field === 'all') {
|
|
2594
|
+
this.isEmailEmpty = val[0];
|
|
2595
|
+
this.emailHasError = val[1];
|
|
2596
|
+
}
|
|
2597
|
+
if (field === 'postcode' || field === 'all') {
|
|
2598
|
+
this.isPostcodeEmpty = val[2];
|
|
2599
|
+
this.postcodeHasError = val[3];
|
|
2600
|
+
}
|
|
2601
|
+
if (field === 'address1' || field === 'all') {
|
|
2602
|
+
this.isaddressLine1Empty = val[4];
|
|
2603
|
+
this.addressLine1HasError = val[5];
|
|
2604
|
+
}
|
|
2605
|
+
if (field === 'address2' || field === 'all') {
|
|
2606
|
+
this.addressLine2HasError = val[6];
|
|
2607
|
+
}
|
|
2608
|
+
if (field === 'town' || field === 'all') {
|
|
2609
|
+
this.isTownOrCityEmpty = val[7];
|
|
2610
|
+
this.townOrCityHasError = val[8];
|
|
2611
|
+
}
|
|
2612
|
+
if (field === 'county' || field === 'all') {
|
|
2613
|
+
this.isCountyEmpty = val[9];
|
|
2614
|
+
this.countyHasError = val[10];
|
|
2615
|
+
}
|
|
2616
|
+
if (field === 'mpostcode' || field === 'all') {
|
|
2617
|
+
this.isMPostcodeEmpty = val[11];
|
|
2618
|
+
this.mpostcodeHasError = val[12];
|
|
2619
|
+
}
|
|
2620
|
+
if (field === 'country' || field === 'all') {
|
|
2621
|
+
this.isCountryEmpty = val[13];
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
ContactDetailsComponent.decorators = [
|
|
2626
|
+
{ type: Component, args: [{
|
|
2627
|
+
selector: 'ccpay-contact-details',
|
|
2628
|
+
template: "<fieldset class=\"govuk-fieldset contact-details--size\">\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n <div class=\"govuk-form-group\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s govuk-font19px\">\n {{ isEditOperation ? 'Edit contact information' : 'Contact information' }}\n </legend>\n <div id=\"contact-hint\" class=\"govuk-hint govuk-font19px\">\n Notifications will be sent via email or post when this refund is issued or rejected. You can only choose one option.\n </div>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact\" name=\"contact\" (click)=\"selectContactOption('Email', 'false')\" type=\"radio\" value=\"email\" [checked]=\"isEmailSAddressClicked\" aria-controls=\"conditional-contact\" aria-expanded=\"true\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact\">\n Email\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-email\" *ngIf=\"isEmailSAddressClicked\">\n <form [formGroup]=\"emailAddressForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label \" for=\"email\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this email address.</span>\n </label>\n\n <div id=\"email-hint\" class=\"govuk-hint\">\n </div>\n <input class=\"govuk-input govuk-font19px\" id=\"email\" name=\"\" type=\"email\" [ngClass]=\"{ 'inline-error-class': isEmailEmpty || emailHasError }\" value=\"{{addressObj?.contact_details?.email}}\" formControlName=\"email\" aria-describedby=\"email-hint\">\n <p class=\"inline-error-message\" *ngIf=\"isEmailEmpty || emailHasError\">\n <span *ngIf=\"isEmailEmpty\">Enter a email address.</span>\n <span *ngIf=\"emailHasError\">Enter a valid email address.</span>\n </p>\n </div>\n </form>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact-2\" name=\"contact\" (click)=\"selectContactOption('Postcode', 'false')\" type=\"radio\" [checked]=\"isPostcodeClicked\" value=\"post\" aria-controls=\"conditional-contact-2\" aria-expanded=\"false\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact-2\">\n Post\n </label>\n </div>\n <div class=\"govuk-radios__conditional govuk-radios__conditional--hidden\" id=\"conditional-contact-postcode\" *ngIf=\"isPostcodeClicked && !isManualAddressClicked\">\n <form [formGroup]=\"postCodeForm\" novalidate>\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Postcode\n </label>\n <div class=\"postcode-align-css\">\n <div class=\"govuk-form-group govuk-margin-right-10px\">\n <input class=\"govuk-input govuk-input--width-10\" id=\"address-postcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isPostcodeEmpty || postcodeHasError }\" formControlName=\"postcode\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isPostcodeEmpty || postcodeHasError\">\n <span *ngIf=\"isPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"postcodeHasError\">Enter a valid postcode.</span>\n </p>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-button--secondary govuk-font19px\" (click)=\"postcodeValidation('FA')\" data-module=\"govuk-button\">\n Find address\n </button>\n </div>\n </div>\n </form>\n <div class=\"govuk-form-group govuk-margin-btm-20px\">\n <label class=\"govuk-label govuk-font19px\" for=\"country\">\n Pick an address\n </label>\n <select class=\"govuk-select govuk-font19px\" [(ngModel)]=\"postcodeAddress\" id=\"postcodeAddress\" name=\"postcodeAddress\">\n <option *ngFor=\"let address of addressPostcodeList\" [ngValue]=\"address.DPA\" > {{address.DPA.ADDRESS}} </option>\n </select> \n </div>\n <details class=\"govuk-details\" data-module=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span class=\"govuk-details__summary-text govuk-font19px\">\n <a href=\"Javascript:void(0);\" (click)=\"selectContactOption('Postcode', 'true')\"> Enter address manually</a>\n </span>\n </summary>\n </details>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-manual\" *ngIf=\"isPostcodeClicked && isManualAddressClicked\">\n <form [formGroup]=\"manualAddressForm\" novalidate>\n\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-line-1\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Building and street <span class=\"govuk-visually-hidden\">line 1 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-1\" name=\"address-line-1\" [ngClass]=\"{ 'inline-error-class': isaddressLine1Empty || addressLine1HasError }\" value=\"{{addressObj?.contact_details?.address_line}}\" formControlName=\"addressl1\" type=\"text\" autocomplete=\"address-line1\">\n <p class=\"inline-error-message\" *ngIf=\"isaddressLine1Empty || addressLine1HasError\">\n <span *ngIf=\"isaddressLine1Empty\">Enter a Building and street.</span>\n <span *ngIf=\"addressLine1HasError\">Enter a valid Building and street.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"address-line-2\">\n <span class=\"govuk-visually-hidden govuk-font19px\">Building and street line 2 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-2\" name=\"address-line-2\" [ngClass]=\"{ 'inline-error-class': addressLine2HasError}\" formControlName=\"addressl2\" type=\"text\" autocomplete=\"address-line2\">\n <p class=\"inline-error-message\" *ngIf=\"addressLine2HasError\">\n <span *ngIf=\"addressLine2HasError\">Enter a valid Building and street line 2 of 2.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-town\">\n Town or city\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-town\" name=\"address-town\" [ngClass]=\"{ 'inline-error-class': isTownOrCityEmpty || townOrCityHasError}\" value=\"{{addressObj?.contact_details?.city}}\" formControlName=\"townorcity\" type=\"text\" autocomplete=\"address-level2\">\n <p class=\"inline-error-message\" *ngIf=\"isTownOrCityEmpty || townOrCityHasError\">\n <span *ngIf=\"isTownOrCityEmpty\">Enter a town or city.</span>\n <span *ngIf=\"townOrCityHasError\">Enter a town or city.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-county\">\n County\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-county\" [ngClass]=\"{ 'inline-error-class': isCountyEmpty || countyHasError}\" value=\"{{addressObj?.contact_details?.county}}\" formControlName=\"county\" name=\"address-county\" type=\"text\">\n <p class=\"inline-error-message\" *ngIf=\"isCountyEmpty || countyHasError\">\n <span *ngIf=\"isCountyEmpty\">Enter a County.</span>\n <span *ngIf=\"countyHasError\">Enter a valid County.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n Postcode\n </label>\n <input class=\"govuk-input govuk-input--width-10 govuk-font19px\" id=\"address-postcode\" formControlName=\"mpostcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isMPostcodeEmpty || mpostcodeHasError}\" value=\"{{addressObj?.contact_details?.postal_code}}\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isMPostcodeEmpty || mpostcodeHasError\">\n <span *ngIf=\"isMPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"mpostcodeHasError\">Enter a valid postcode.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"country\">\n Country\n </label>\n <select class=\"govuk-select govuk-font19px\" id=\"country\" name=\"country\" [ngClass]=\"{'inline-error-class': isCountryEmpty}\" formControlName=\"country\">\n <option value=\"\" selected=\"selected\">Please select</option>\n <option value=\"United Kingdom\" selected=\"{{ addressObj?.contact_details?.country ? 'selected' : '' }}\">United Kingdom</option>\n </select>\n <p class=\"inline-error-message\" *ngIf=\"isCountryEmpty\">\n <span *ngIf=\"isCountryEmpty\">Select a Country.</span>\n </p> \n </div>\n </form>\n </div>\n </div>\n </fieldset>\n </div>\n <!---FORM--->\n </div>\n\n<hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n</fieldset>\n<div class=\"govuk-button-group\">\n<button type=\"submit\" class=\"button govuk-button--secondary govuk-font19px\" (click)=\"redirection($event)\"> Previous </button>\n \n<button type=\"submit\" class=\"button govuk-button govuk-font19px\" (click)=\"finalFormSubmit()\">\n Continue\n</button>\n</div>",
|
|
2629
|
+
styles: [".govuk-font19px{font-size:19px}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px}.contact-details--size{width:50%}.postcode-align-css{display:flex;flex-direction:row}.govuk-margin-right-10px{margin-right:10px}.govuk-margin-btm-20px{margin-bottom:20px!important}"]
|
|
2630
|
+
}] }
|
|
2631
|
+
];
|
|
2632
|
+
/** @nocollapse */
|
|
2633
|
+
ContactDetailsComponent.ctorParameters = () => [
|
|
2634
|
+
{ type: FormBuilder },
|
|
2635
|
+
{ type: NotificationService },
|
|
2636
|
+
{ type: PaymentLibComponent }
|
|
2637
|
+
];
|
|
2638
|
+
ContactDetailsComponent.propDecorators = {
|
|
2639
|
+
isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
|
|
2640
|
+
addressObj: [{ type: Input, args: ['addressObj',] }],
|
|
2641
|
+
assignContactDetails: [{ type: Output }],
|
|
2642
|
+
redirectToIssueRefund: [{ type: Output }]
|
|
2643
|
+
};
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
* @fileoverview added by tsickle
|
|
2647
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2648
|
+
*/
|
|
2649
|
+
class PbaDetailsComponent {
|
|
2650
|
+
constructor() { }
|
|
2651
|
+
/**
|
|
2652
|
+
* @return {?}
|
|
2653
|
+
*/
|
|
2654
|
+
ngOnInit() {
|
|
2010
2655
|
}
|
|
2011
2656
|
}
|
|
2012
2657
|
PbaDetailsComponent.decorators = [
|
|
@@ -2306,7 +2951,6 @@ class CaseTransactionsComponent {
|
|
|
2306
2951
|
this.isAddRemissionEnable = false;
|
|
2307
2952
|
this.orderRemissionDetails = [];
|
|
2308
2953
|
this.orderLevelFees = [];
|
|
2309
|
-
this.ispaymentGroupApisuccess = false;
|
|
2310
2954
|
this.cpoDetails = null;
|
|
2311
2955
|
this.orderFeesTotal = 0.00;
|
|
2312
2956
|
this.orderRemissionTotal = 0.00;
|
|
@@ -2317,8 +2961,6 @@ class CaseTransactionsComponent {
|
|
|
2317
2961
|
this.isAddRemissionBtnEnabled = false;
|
|
2318
2962
|
this.isRefundRemissionBtnEnable = false;
|
|
2319
2963
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
2320
|
-
this.isEligible4PBAPayment = ['pui-finance-manager', 'pui-user-manager', 'pui-organisation-manager', 'pui-case-manager'];
|
|
2321
|
-
this.currentDate = new Date();
|
|
2322
2964
|
this.check4AllowedRoles2AccessRefund = (/**
|
|
2323
2965
|
* @return {?}
|
|
2324
2966
|
*/
|
|
@@ -2329,16 +2971,6 @@ class CaseTransactionsComponent {
|
|
|
2329
2971
|
*/
|
|
2330
2972
|
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
2331
2973
|
});
|
|
2332
|
-
this.check4AllowedRoles2AccessPBApayment = (/**
|
|
2333
|
-
* @return {?}
|
|
2334
|
-
*/
|
|
2335
|
-
() => {
|
|
2336
|
-
return this.isEligible4PBAPayment.some((/**
|
|
2337
|
-
* @param {?} role
|
|
2338
|
-
* @return {?}
|
|
2339
|
-
*/
|
|
2340
|
-
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
2341
|
-
});
|
|
2342
2974
|
this.allowFurtherAccessAfter4Days = (/**
|
|
2343
2975
|
* @param {?} payment
|
|
2344
2976
|
* @return {?}
|
|
@@ -2364,6 +2996,13 @@ class CaseTransactionsComponent {
|
|
|
2364
2996
|
*/
|
|
2365
2997
|
(data) => this.paymentView = data));
|
|
2366
2998
|
}
|
|
2999
|
+
if ((this.LOGGEDINUSERROLES === undefined || this.LOGGEDINUSERROLES.length === 0) && this.OrderslistService.getUserRolesList() !== null) {
|
|
3000
|
+
this.OrderslistService.getUserRolesList().subscribe((/**
|
|
3001
|
+
* @param {?} data
|
|
3002
|
+
* @return {?}
|
|
3003
|
+
*/
|
|
3004
|
+
(data) => this.LOGGEDINUSERROLES = data));
|
|
3005
|
+
}
|
|
2367
3006
|
if (this.OrderslistService.getnavigationPageValue() !== null) {
|
|
2368
3007
|
this.OrderslistService.getnavigationPageValue().subscribe((/**
|
|
2369
3008
|
* @param {?} data
|
|
@@ -2397,6 +3036,9 @@ class CaseTransactionsComponent {
|
|
|
2397
3036
|
this.isOldPcipalOff = this.paymentLibComponent.ISOLDPCIPALOFF;
|
|
2398
3037
|
this.isStrategicFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
2399
3038
|
if (!this.isTurnOff) {
|
|
3039
|
+
// if (this.lsCcdNumber !== this.ccdCaseNumber) {
|
|
3040
|
+
// this.router.navigateByUrl(`/ccd-search?takePayment=true`);
|
|
3041
|
+
// }
|
|
2400
3042
|
this.caseTransactionsService.getPaymentGroups(this.ccdCaseNumber).subscribe((/**
|
|
2401
3043
|
* @param {?} paymentGroups
|
|
2402
3044
|
* @return {?}
|
|
@@ -2414,22 +3056,23 @@ class CaseTransactionsComponent {
|
|
|
2414
3056
|
*/
|
|
2415
3057
|
(data) => this.orderRef = data));
|
|
2416
3058
|
this.goToOrderViewDetailSection(this.orderRef);
|
|
2417
|
-
// this.viewStatus = 'order-full-view';
|
|
2418
3059
|
}
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
3060
|
+
else {
|
|
3061
|
+
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
3062
|
+
* @param {?} response
|
|
3063
|
+
* @return {?}
|
|
3064
|
+
*/
|
|
3065
|
+
response => {
|
|
3066
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
3067
|
+
}), (/**
|
|
3068
|
+
* @param {?} error
|
|
3069
|
+
* @return {?}
|
|
3070
|
+
*/
|
|
3071
|
+
(error) => {
|
|
3072
|
+
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
3073
|
+
this.isCPODown = true;
|
|
3074
|
+
}));
|
|
3075
|
+
}
|
|
2433
3076
|
}), (/**
|
|
2434
3077
|
* @param {?} error
|
|
2435
3078
|
* @return {?}
|
|
@@ -2456,7 +3099,7 @@ class CaseTransactionsComponent {
|
|
|
2456
3099
|
* @return {?}
|
|
2457
3100
|
*/
|
|
2458
3101
|
response => {
|
|
2459
|
-
this.cpoDetails = JSON.parse(response).
|
|
3102
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
2460
3103
|
}), (/**
|
|
2461
3104
|
* @param {?} error
|
|
2462
3105
|
* @return {?}
|
|
@@ -2741,16 +3384,6 @@ class CaseTransactionsComponent {
|
|
|
2741
3384
|
this.paymentLibComponent.viewName = 'fee-summary';
|
|
2742
3385
|
}
|
|
2743
3386
|
}
|
|
2744
|
-
/**
|
|
2745
|
-
* @param {?} event
|
|
2746
|
-
* @return {?}
|
|
2747
|
-
*/
|
|
2748
|
-
goToCaseTransationPage(event) {
|
|
2749
|
-
event.preventDefault();
|
|
2750
|
-
this.isFromServiceRequestPage = false;
|
|
2751
|
-
this.viewStatus = 'main';
|
|
2752
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
2753
|
-
}
|
|
2754
3387
|
/**
|
|
2755
3388
|
* @return {?}
|
|
2756
3389
|
*/
|
|
@@ -3228,6 +3861,7 @@ class CaseTransactionsComponent {
|
|
|
3228
3861
|
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
3229
3862
|
this.viewStatus = 'issuerefund';
|
|
3230
3863
|
this.payment = payment;
|
|
3864
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3231
3865
|
this.isRefundRemission = true;
|
|
3232
3866
|
}
|
|
3233
3867
|
}
|
|
@@ -3302,6 +3936,7 @@ class CaseTransactionsComponent {
|
|
|
3302
3936
|
*/
|
|
3303
3937
|
chkIsRefundRemissionBtnEnable() {
|
|
3304
3938
|
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
3939
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3305
3940
|
this.orderDetail.forEach((/**
|
|
3306
3941
|
* @param {?} orderDetail
|
|
3307
3942
|
* @return {?}
|
|
@@ -3327,20 +3962,12 @@ class CaseTransactionsComponent {
|
|
|
3327
3962
|
}
|
|
3328
3963
|
}
|
|
3329
3964
|
}
|
|
3330
|
-
/**
|
|
3331
|
-
* @param {?} orderRef
|
|
3332
|
-
* @return {?}
|
|
3333
|
-
*/
|
|
3334
|
-
loadPBAAccountPage(orderRef) {
|
|
3335
|
-
this.paymentLibComponent.pbaPayOrderRef = orderRef;
|
|
3336
|
-
this.paymentLibComponent.viewName = 'pba-payment';
|
|
3337
|
-
}
|
|
3338
3965
|
}
|
|
3339
3966
|
CaseTransactionsComponent.decorators = [
|
|
3340
3967
|
{ type: Component, args: [{
|
|
3341
3968
|
selector: 'ccpay-case-transactions',
|
|
3342
|
-
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 <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 <div class=\"govuk-grid-column-full\">\n <!-- <div *ngIf=\"serviveRequestValue === 'true'\"> -->\n <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span>\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable)\">\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 <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\">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\" *ngIf=\"serviceRequestValue === 'false'\">\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\">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\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\" *ngIf=\"serviceRequestValue === 'false'\">\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 <tr class=\"govuk-table__row\" *ngIf=\"serviceRequestValue !== 'false'\">\n <td class=\"govuk-table__header col-51\" colspan=\"2\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Quantity</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</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=\"serviceRequestValue === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"serviceRequestValue !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\" *ngIf=\"serviceRequestValue === 'false'\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\" *ngIf=\"serviceRequestValue !== 'false'\">{{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 alignright\" *ngIf=\"serviceRequestValue === 'false'\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\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\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 <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=\"serviceRequestValue === '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 \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\"></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>",
|
|
3343
|
-
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}.
|
|
3969
|
+
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n \n <div class=\"govuk-grid-row\">\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div class=\"govuk-grid-row\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div>\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [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 \n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \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 ></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<ccpay-contact-details></ccpay-contact-details>\n</main>\n</div>\n\n\n",
|
|
3970
|
+
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%}"]
|
|
3344
3971
|
}] }
|
|
3345
3972
|
];
|
|
3346
3973
|
/** @nocollapse */
|
|
@@ -3353,7 +3980,8 @@ CaseTransactionsComponent.ctorParameters = () => [
|
|
|
3353
3980
|
{ type: OrderslistService }
|
|
3354
3981
|
];
|
|
3355
3982
|
CaseTransactionsComponent.propDecorators = {
|
|
3356
|
-
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }]
|
|
3983
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
3984
|
+
isTakePayment: [{ type: Input }]
|
|
3357
3985
|
};
|
|
3358
3986
|
|
|
3359
3987
|
/**
|
|
@@ -5485,10 +6113,12 @@ class PostRefundRetroRemission {
|
|
|
5485
6113
|
/**
|
|
5486
6114
|
* @param {?} payment_reference
|
|
5487
6115
|
* @param {?} refund_reason
|
|
6116
|
+
* @param {?} contactDeatils
|
|
5488
6117
|
*/
|
|
5489
|
-
constructor(payment_reference, refund_reason) {
|
|
6118
|
+
constructor(payment_reference, refund_reason, contactDeatils) {
|
|
5490
6119
|
this.payment_reference = payment_reference;
|
|
5491
6120
|
this.refund_reason = refund_reason;
|
|
6121
|
+
this.contact_details = contactDeatils;
|
|
5492
6122
|
}
|
|
5493
6123
|
}
|
|
5494
6124
|
|
|
@@ -5499,9 +6129,11 @@ class PostRefundRetroRemission {
|
|
|
5499
6129
|
class PostIssueRefundRetroRemission {
|
|
5500
6130
|
/**
|
|
5501
6131
|
* @param {?} remissionReference
|
|
6132
|
+
* @param {?} contactDeatils
|
|
5502
6133
|
*/
|
|
5503
|
-
constructor(remissionReference) {
|
|
6134
|
+
constructor(remissionReference, contactDeatils) {
|
|
5504
6135
|
this.remissionReference = remissionReference;
|
|
6136
|
+
this.contact_details = contactDeatils;
|
|
5505
6137
|
}
|
|
5506
6138
|
}
|
|
5507
6139
|
|
|
@@ -5509,8 +6141,6 @@ class PostIssueRefundRetroRemission {
|
|
|
5509
6141
|
* @fileoverview added by tsickle
|
|
5510
6142
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5511
6143
|
*/
|
|
5512
|
-
/** @type {?} */
|
|
5513
|
-
const BS_ENABLE_FLAG$3 = 'bulk-scan-enabling-fe';
|
|
5514
6144
|
class AddRemissionComponent {
|
|
5515
6145
|
/**
|
|
5516
6146
|
* @param {?} formBuilder
|
|
@@ -5589,12 +6219,6 @@ class AddRemissionComponent {
|
|
|
5589
6219
|
Validators.required,
|
|
5590
6220
|
Validators.pattern(`(${this.pattern1})|(${this.pattern2})`)
|
|
5591
6221
|
])),
|
|
5592
|
-
// remissionCode: new FormControl('', Validators.compose([ [A-Za-z]{2}[0-9]{2} [0-9]{6}
|
|
5593
|
-
// Validators.required,
|
|
5594
|
-
// // 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})$/')
|
|
5595
|
-
// // Validators.pattern('^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$'),
|
|
5596
|
-
// 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}))$/')
|
|
5597
|
-
// ])),
|
|
5598
6222
|
amount: new FormControl('', Validators.compose([
|
|
5599
6223
|
Validators.required,
|
|
5600
6224
|
Validators.pattern('^[0-9]+(\.[0-9]{1,2})?$')
|
|
@@ -5655,7 +6279,6 @@ class AddRemissionComponent {
|
|
|
5655
6279
|
const isRemissionLessThanFee = this.fee.calculated_amount > remissionctrls.amount.value;
|
|
5656
6280
|
this.remissionForm.controls['refundReason'].setErrors(null);
|
|
5657
6281
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
5658
|
-
//this.remissionForm.controls['amount'].setErrors(null);
|
|
5659
6282
|
if (this.remissionForm.dirty && this.remissionForm.valid && isRemissionLessThanFee) {
|
|
5660
6283
|
this.viewStatus = 'confirmation';
|
|
5661
6284
|
}
|
|
@@ -5859,6 +6482,15 @@ class AddRemissionComponent {
|
|
|
5859
6482
|
//}
|
|
5860
6483
|
}
|
|
5861
6484
|
}
|
|
6485
|
+
/**
|
|
6486
|
+
* @return {?}
|
|
6487
|
+
*/
|
|
6488
|
+
gotoAmountRetroRemission() {
|
|
6489
|
+
this.viewStatus = 'processretroremissonpage';
|
|
6490
|
+
this.viewCompStatus = '';
|
|
6491
|
+
this.isRefundRemission = true;
|
|
6492
|
+
this.errorMessage = '';
|
|
6493
|
+
}
|
|
5862
6494
|
/**
|
|
5863
6495
|
* @return {?}
|
|
5864
6496
|
*/
|
|
@@ -5868,6 +6500,19 @@ class AddRemissionComponent {
|
|
|
5868
6500
|
this.isRefundRemission = true;
|
|
5869
6501
|
this.errorMessage = '';
|
|
5870
6502
|
}
|
|
6503
|
+
/**
|
|
6504
|
+
* @param {?=} note
|
|
6505
|
+
* @return {?}
|
|
6506
|
+
*/
|
|
6507
|
+
gotoProcessRetroRemission(note) {
|
|
6508
|
+
if (note) {
|
|
6509
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
6510
|
+
}
|
|
6511
|
+
this.viewStatus = 'remissionAddressPage';
|
|
6512
|
+
this.viewCompStatus = '';
|
|
6513
|
+
this.isRefundRemission = true;
|
|
6514
|
+
this.errorMessage = '';
|
|
6515
|
+
}
|
|
5871
6516
|
/**
|
|
5872
6517
|
* @return {?}
|
|
5873
6518
|
*/
|
|
@@ -5912,7 +6557,7 @@ class AddRemissionComponent {
|
|
|
5912
6557
|
this.remissionReference = this.remission.remission_reference;
|
|
5913
6558
|
}
|
|
5914
6559
|
/** @type {?} */
|
|
5915
|
-
const requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
6560
|
+
const requestBody = new PostIssueRefundRetroRemission(this.remissionReference, this.contactDetailsObj);
|
|
5916
6561
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
|
|
5917
6562
|
* @param {?} response
|
|
5918
6563
|
* @return {?}
|
|
@@ -5954,13 +6599,13 @@ class AddRemissionComponent {
|
|
|
5954
6599
|
else if (this.selectedRefundReason.includes('Other') && this.remissionForm.controls['reason'].value !== '') {
|
|
5955
6600
|
this.refundHasError = false;
|
|
5956
6601
|
this.refundReason += '-' + this.remissionForm.controls['reason'].value;
|
|
5957
|
-
this.displayRefundReason = this.remissionForm.controls['reason'].value;
|
|
6602
|
+
this.displayRefundReason = this.selectedRefundReason + '-' + this.remissionForm.controls['reason'].value;
|
|
5958
6603
|
if (this.isFromRefundListPage) {
|
|
5959
|
-
this.refundListReason.emit({ reason: this.
|
|
6604
|
+
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
5960
6605
|
}
|
|
5961
6606
|
else {
|
|
5962
6607
|
this.viewCompStatus = '';
|
|
5963
|
-
this.viewStatus = '
|
|
6608
|
+
this.viewStatus = 'contactDetailsPage';
|
|
5964
6609
|
}
|
|
5965
6610
|
}
|
|
5966
6611
|
else {
|
|
@@ -5971,7 +6616,7 @@ class AddRemissionComponent {
|
|
|
5971
6616
|
}
|
|
5972
6617
|
else {
|
|
5973
6618
|
this.viewCompStatus = '';
|
|
5974
|
-
this.viewStatus = '
|
|
6619
|
+
this.viewStatus = 'contactDetailsPage';
|
|
5975
6620
|
}
|
|
5976
6621
|
}
|
|
5977
6622
|
}
|
|
@@ -5988,13 +6633,27 @@ class AddRemissionComponent {
|
|
|
5988
6633
|
this.isReasonEmpty = false;
|
|
5989
6634
|
}
|
|
5990
6635
|
/**
|
|
6636
|
+
* @param {?=} note
|
|
5991
6637
|
* @return {?}
|
|
5992
6638
|
*/
|
|
5993
|
-
|
|
5994
|
-
|
|
6639
|
+
gotoContactDetailsPage(note) {
|
|
6640
|
+
if (note) {
|
|
6641
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
6642
|
+
}
|
|
5995
6643
|
this.errorMessage = '';
|
|
5996
|
-
this.
|
|
5997
|
-
this.
|
|
6644
|
+
this.viewCompStatus = '';
|
|
6645
|
+
this.viewStatus = 'contactDetailsPage';
|
|
6646
|
+
this.isRefundRemission = true;
|
|
6647
|
+
this.errorMessage = false;
|
|
6648
|
+
}
|
|
6649
|
+
/**
|
|
6650
|
+
* @return {?}
|
|
6651
|
+
*/
|
|
6652
|
+
changeIssueRefundReason() {
|
|
6653
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
6654
|
+
this.errorMessage = '';
|
|
6655
|
+
this.refundHasError = false;
|
|
6656
|
+
this.isReasonEmpty = false;
|
|
5998
6657
|
this.viewCompStatus = 'issuerefund';
|
|
5999
6658
|
this.viewStatus = '';
|
|
6000
6659
|
this.isRefundRemission = true;
|
|
@@ -6009,7 +6668,7 @@ class AddRemissionComponent {
|
|
|
6009
6668
|
this.retroRemission = true;
|
|
6010
6669
|
}
|
|
6011
6670
|
/** @type {?} */
|
|
6012
|
-
const requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
6671
|
+
const requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason, this.contactDetailsObj);
|
|
6013
6672
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
6014
6673
|
* @param {?} response
|
|
6015
6674
|
* @return {?}
|
|
@@ -6044,7 +6703,7 @@ class AddRemissionComponent {
|
|
|
6044
6703
|
this.retroRemission = true;
|
|
6045
6704
|
}
|
|
6046
6705
|
/** @type {?} */
|
|
6047
|
-
const requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
6706
|
+
const requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission', this.contactDetailsObj);
|
|
6048
6707
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
6049
6708
|
* @param {?} response
|
|
6050
6709
|
* @return {?}
|
|
@@ -6110,95 +6769,141 @@ class AddRemissionComponent {
|
|
|
6110
6769
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
6111
6770
|
}
|
|
6112
6771
|
}
|
|
6772
|
+
/**
|
|
6773
|
+
* @param {?} obj
|
|
6774
|
+
* @param {?} type
|
|
6775
|
+
* @return {?}
|
|
6776
|
+
*/
|
|
6777
|
+
getContactDetails(obj, type) {
|
|
6778
|
+
this.contactDetailsObj = obj;
|
|
6779
|
+
this.viewCompStatus = '';
|
|
6780
|
+
this.viewStatus = type;
|
|
6781
|
+
}
|
|
6113
6782
|
/**
|
|
6114
6783
|
* @param {?} event
|
|
6115
6784
|
* @return {?}
|
|
6116
6785
|
*/
|
|
6117
6786
|
gotoServiceRequestPage(event) {
|
|
6787
|
+
this.errorMessage = '';
|
|
6118
6788
|
event.preventDefault();
|
|
6119
|
-
if (this.
|
|
6120
|
-
this.
|
|
6121
|
-
this.
|
|
6122
|
-
}
|
|
6123
|
-
if (this.isFromServiceRequestPage) {
|
|
6124
|
-
//this.paymentLibComponent.TAKEPAYMENT = false;
|
|
6125
|
-
this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
6126
|
-
this.viewStatus = 'main';
|
|
6127
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6128
|
-
this.OrderslistService.setisFromServiceRequestPage(true);
|
|
6129
|
-
this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
6789
|
+
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
6790
|
+
this.viewStatus = 'order-full-view';
|
|
6791
|
+
this.viewCompStatus = '';
|
|
6130
6792
|
}
|
|
6131
|
-
if (this.isFromRefundListPage) {
|
|
6793
|
+
else if (this.isFromRefundListPage) {
|
|
6132
6794
|
this.paymentLibComponent.iscancelClicked = true;
|
|
6133
6795
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
6134
6796
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6135
6797
|
}
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
this.
|
|
6147
|
-
this.
|
|
6148
|
-
|
|
6149
|
-
this.
|
|
6150
|
-
this.
|
|
6151
|
-
this.
|
|
6152
|
-
this.
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
6156
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6157
|
-
// },
|
|
6158
|
-
// err => {
|
|
6159
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
6160
|
-
// }
|
|
6161
|
-
// );
|
|
6162
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
6163
|
-
/** @type {?} */
|
|
6164
|
-
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6165
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6166
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6167
|
-
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6168
|
-
partUrl += `&caseType=${this.caseType}`;
|
|
6169
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6170
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6171
|
-
if (this.isFromPaymentDetailPage) {
|
|
6172
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6173
|
-
}
|
|
6174
|
-
if (!this.paymentLibComponent.TAKEPAYMENT) {
|
|
6175
|
-
this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
6176
|
-
}
|
|
6177
|
-
if (this.paymentLibComponent.SERVICEREQUEST) {
|
|
6178
|
-
/** @type {?} */
|
|
6179
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
6180
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
6181
|
-
* @return {?}
|
|
6182
|
-
*/
|
|
6183
|
-
() => false);
|
|
6184
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6185
|
-
this.router.navigateByUrl(url);
|
|
6186
|
-
}
|
|
6187
|
-
else {
|
|
6188
|
-
/** @type {?} */
|
|
6189
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6190
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
6798
|
+
else {
|
|
6799
|
+
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
6800
|
+
this.paymentLibComponent.paymentGroupReference = this.paymentLibComponent.paymentGroupReference;
|
|
6801
|
+
this.paymentLibComponent.paymentReference = this.payment.reference;
|
|
6802
|
+
this.paymentLibComponent.viewName = 'payment-view';
|
|
6803
|
+
this.OrderslistService.setOrderRef(this.orderRef);
|
|
6804
|
+
this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
|
|
6805
|
+
this.OrderslistService.setorderCreated(this.orderCreated);
|
|
6806
|
+
this.OrderslistService.setorderDetail(this.orderDetail);
|
|
6807
|
+
this.OrderslistService.setorderParty(this.orderParty);
|
|
6808
|
+
this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
|
|
6809
|
+
this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
|
|
6810
|
+
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
6811
|
+
this.viewStatus = 'payment-view';
|
|
6812
|
+
this.sendOrderDetail = this.orderDetail;
|
|
6813
|
+
this.sendOrderRef = this.orderRef;
|
|
6814
|
+
if (this.LOGGEDINUSERROLES === undefined) {
|
|
6815
|
+
this.OrderslistService.getUserRolesList().subscribe((/**
|
|
6816
|
+
* @param {?} data
|
|
6191
6817
|
* @return {?}
|
|
6192
6818
|
*/
|
|
6193
|
-
() =>
|
|
6194
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6195
|
-
this.router.navigateByUrl(url);
|
|
6819
|
+
(data) => this.LOGGEDINUSERROLES = data));
|
|
6196
6820
|
}
|
|
6821
|
+
this.viewCompStatus = '';
|
|
6197
6822
|
}
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
}
|
|
6823
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
6824
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
6825
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
6826
|
+
// }
|
|
6827
|
+
// if (this.isFromServiceRequestPage) {
|
|
6828
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
6829
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
6830
|
+
// this.viewStatus = 'main'
|
|
6831
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
6832
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
6833
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
6834
|
+
// }
|
|
6835
|
+
// if ( this.isFromRefundListPage ) {
|
|
6836
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
6837
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
6838
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6839
|
+
// }
|
|
6840
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
6841
|
+
// if(this.payment) {
|
|
6842
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
6843
|
+
// }
|
|
6844
|
+
// if (this.isFromServiceRequestPage) {
|
|
6845
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
6846
|
+
// } else {
|
|
6847
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
6848
|
+
// }
|
|
6849
|
+
// this.errorMessage = '';
|
|
6850
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
6851
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
6852
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
6853
|
+
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
6854
|
+
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
6855
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6856
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
6857
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6858
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6859
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6860
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6861
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
6862
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6863
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6864
|
+
// if(this.isFromPaymentDetailPage) {
|
|
6865
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
6866
|
+
// }
|
|
6867
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
6868
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
6869
|
+
// }
|
|
6870
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
6871
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
6872
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
6873
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
6874
|
+
// this.router.navigateByUrl(url);
|
|
6875
|
+
// } else {
|
|
6876
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6877
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
6878
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
6879
|
+
// this.router.navigateByUrl(url);
|
|
6880
|
+
// }
|
|
6881
|
+
// } else {
|
|
6882
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
6883
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6884
|
+
// }
|
|
6885
|
+
}
|
|
6886
|
+
/**
|
|
6887
|
+
* @return {?}
|
|
6888
|
+
*/
|
|
6889
|
+
gotoAddressPage() {
|
|
6890
|
+
this.errorMessage = '';
|
|
6891
|
+
this.viewCompStatus = 'addrefundforremission';
|
|
6892
|
+
this.viewStatus = '';
|
|
6893
|
+
this.isRefundRemission = true;
|
|
6894
|
+
this.errorMessage = false;
|
|
6895
|
+
}
|
|
6896
|
+
/**
|
|
6897
|
+
* @param {?} event
|
|
6898
|
+
* @return {?}
|
|
6899
|
+
*/
|
|
6900
|
+
gotoRemissionSuccess(event) {
|
|
6901
|
+
event.preventDefault();
|
|
6902
|
+
this.errorMessage = '';
|
|
6903
|
+
this.viewCompStatus = '';
|
|
6904
|
+
this.viewStatus = 'retroremissionconfirmationpage';
|
|
6905
|
+
this.isRefundRemission = true;
|
|
6906
|
+
this.errorMessage = false;
|
|
6202
6907
|
}
|
|
6203
6908
|
/**
|
|
6204
6909
|
* @return {?}
|
|
@@ -6207,20 +6912,12 @@ class AddRemissionComponent {
|
|
|
6207
6912
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6208
6913
|
this.errorMessage = '';
|
|
6209
6914
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6915
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
6210
6916
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
6211
6917
|
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
6212
6918
|
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
6213
6919
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6214
|
-
|
|
6215
|
-
// features => {
|
|
6216
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
6217
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6218
|
-
// },
|
|
6219
|
-
// err => {
|
|
6220
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
6221
|
-
// }
|
|
6222
|
-
// );
|
|
6223
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
6920
|
+
this.resetOrderData();
|
|
6224
6921
|
/** @type {?} */
|
|
6225
6922
|
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6226
6923
|
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
@@ -6229,9 +6926,6 @@ class AddRemissionComponent {
|
|
|
6229
6926
|
partUrl += `&caseType=${this.caseType}`;
|
|
6230
6927
|
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6231
6928
|
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6232
|
-
if (this.isFromPaymentDetailPage) {
|
|
6233
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6234
|
-
}
|
|
6235
6929
|
/** @type {?} */
|
|
6236
6930
|
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6237
6931
|
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
@@ -6247,54 +6941,22 @@ class AddRemissionComponent {
|
|
|
6247
6941
|
*/
|
|
6248
6942
|
gotoCasetransationPageCancelBtnClicked(event) {
|
|
6249
6943
|
event.preventDefault();
|
|
6250
|
-
if (this.paymentLibComponent.
|
|
6251
|
-
this.
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
this.paymentLibComponent.
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
|
|
6259
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6260
|
-
this.errorMessage = '';
|
|
6261
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6262
|
-
//this.paymentLibComponent.TAKEPAYMENT = true;
|
|
6263
|
-
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
6264
|
-
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
6265
|
-
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
6266
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6267
|
-
this.paymentViewService.getBSfeature().subscribe((/**
|
|
6268
|
-
* @param {?} features
|
|
6269
|
-
* @return {?}
|
|
6270
|
-
*/
|
|
6271
|
-
features => {
|
|
6944
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
6945
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6946
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
6947
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
6948
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6949
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
6950
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
6951
|
+
this.resetOrderData();
|
|
6272
6952
|
/** @type {?} */
|
|
6273
|
-
let
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
this.paymentLibComponent.
|
|
6279
|
-
|
|
6280
|
-
* @param {?} err
|
|
6281
|
-
* @return {?}
|
|
6282
|
-
*/
|
|
6283
|
-
err => {
|
|
6284
|
-
this.paymentLibComponent.ISBSENABLE = false;
|
|
6285
|
-
}));
|
|
6286
|
-
/** @type {?} */
|
|
6287
|
-
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6288
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6289
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6290
|
-
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6291
|
-
partUrl += `&caseType=${this.caseType}`;
|
|
6292
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6293
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6294
|
-
if (this.isFromPaymentDetailPage) {
|
|
6295
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6296
|
-
}
|
|
6297
|
-
if (!this.paymentLibComponent.SERVICEREQUEST) {
|
|
6953
|
+
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6954
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6955
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6956
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6957
|
+
partUrl += `&caseType=${this.caseType}`;
|
|
6958
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6959
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6298
6960
|
/** @type {?} */
|
|
6299
6961
|
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6300
6962
|
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
@@ -6305,16 +6967,69 @@ class AddRemissionComponent {
|
|
|
6305
6967
|
this.router.navigateByUrl(url);
|
|
6306
6968
|
}
|
|
6307
6969
|
else {
|
|
6970
|
+
if (this.paymentLibComponent.REFUNDLIST) {
|
|
6971
|
+
this.paymentLibComponent.viewName = 'refund-list';
|
|
6972
|
+
return;
|
|
6973
|
+
}
|
|
6974
|
+
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
6975
|
+
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
6976
|
+
}
|
|
6977
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
6978
|
+
this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
|
|
6979
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6980
|
+
this.errorMessage = '';
|
|
6981
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6982
|
+
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
6983
|
+
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
6984
|
+
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
6985
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6986
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
6308
6987
|
/** @type {?} */
|
|
6309
|
-
|
|
6310
|
-
this.
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
this.
|
|
6315
|
-
this.
|
|
6988
|
+
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6989
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6990
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6991
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6992
|
+
partUrl += `&caseType=${this.caseType}`;
|
|
6993
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6994
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6995
|
+
if (this.isFromPaymentDetailPage) {
|
|
6996
|
+
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6997
|
+
}
|
|
6998
|
+
if (!this.paymentLibComponent.SERVICEREQUEST) {
|
|
6999
|
+
/** @type {?} */
|
|
7000
|
+
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7001
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7002
|
+
* @return {?}
|
|
7003
|
+
*/
|
|
7004
|
+
() => false);
|
|
7005
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7006
|
+
this.router.navigateByUrl(url);
|
|
7007
|
+
}
|
|
7008
|
+
else {
|
|
7009
|
+
/** @type {?} */
|
|
7010
|
+
const url = `/payment-history/${this.ccdCaseNumber}?selectedOption=${this.option}${partUrl}`;
|
|
7011
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7012
|
+
* @return {?}
|
|
7013
|
+
*/
|
|
7014
|
+
() => false);
|
|
7015
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7016
|
+
this.router.navigateByUrl(url);
|
|
7017
|
+
}
|
|
6316
7018
|
}
|
|
6317
7019
|
}
|
|
7020
|
+
/**
|
|
7021
|
+
* @return {?}
|
|
7022
|
+
*/
|
|
7023
|
+
resetOrderData() {
|
|
7024
|
+
this.OrderslistService.setOrderRef(null);
|
|
7025
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
7026
|
+
this.OrderslistService.setorderCreated(null);
|
|
7027
|
+
this.OrderslistService.setorderDetail(null);
|
|
7028
|
+
this.OrderslistService.setorderParty(null);
|
|
7029
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
7030
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
7031
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
7032
|
+
}
|
|
6318
7033
|
/**
|
|
6319
7034
|
* @param {?} currency
|
|
6320
7035
|
* @return {?}
|
|
@@ -6329,8 +7044,8 @@ class AddRemissionComponent {
|
|
|
6329
7044
|
AddRemissionComponent.decorators = [
|
|
6330
7045
|
{ type: Component, args: [{
|
|
6331
7046
|
selector: 'ccpay-add-remission',
|
|
6332
|
-
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 <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",
|
|
6333
|
-
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}"]
|
|
7047
|
+
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)=\"gotoCasetransationPage()\" 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 [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission()\">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\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\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint\">\n Payment reference: {{this.payment.reference}}\n </span>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"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 <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{this.payment.reference}}\n </span>\n <ccpay-contact-details\n [addressObj] = notification\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 <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 <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(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoContactDetailsPage()\"> 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 <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Refund reference: {{refundReference}}\n </span>\n <ccpay-contact-details \n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'addrefundcheckandanswer')\"\n (redirectToIssueRefund)=\"gotoServiceRequestPage($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'addrefundcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{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(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage()\">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",
|
|
7048
|
+
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-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%}.margin-top--size{margin-top:-30px}.contactDetails-width{width:70%}"]
|
|
6334
7049
|
}] }
|
|
6335
7050
|
];
|
|
6336
7051
|
/** @nocollapse */
|
|
@@ -6356,12 +7071,22 @@ AddRemissionComponent.propDecorators = {
|
|
|
6356
7071
|
isOldPcipalOff: [{ type: Input }],
|
|
6357
7072
|
isNewPcipalOff: [{ type: Input }],
|
|
6358
7073
|
isStrategicFixEnable: [{ type: Input }],
|
|
6359
|
-
orderStatus: [{ type: Input }],
|
|
6360
7074
|
paidAmount: [{ type: Input }],
|
|
6361
7075
|
isFromRefundListPage: [{ type: Input }],
|
|
6362
7076
|
isFromPaymentDetailPage: [{ type: Input }],
|
|
6363
7077
|
isFromServiceRequestPage: [{ type: Input }],
|
|
6364
7078
|
feeamount: [{ type: Input }],
|
|
7079
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
7080
|
+
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
7081
|
+
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
7082
|
+
orderStatus: [{ type: Input, args: ['orderStatus',] }],
|
|
7083
|
+
orderParty: [{ type: Input, args: ['orderParty',] }],
|
|
7084
|
+
orderCreated: [{ type: Input, args: ['orderCreated',] }],
|
|
7085
|
+
orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
|
|
7086
|
+
takePayment: [{ type: Input, args: ['takepayment',] }],
|
|
7087
|
+
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
7088
|
+
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
7089
|
+
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
6365
7090
|
cancelRemission: [{ type: Output }],
|
|
6366
7091
|
refundListReason: [{ type: Output }],
|
|
6367
7092
|
refundListAmount: [{ type: Output }]
|
|
@@ -6966,13 +7691,17 @@ class TableComponent {
|
|
|
6966
7691
|
* @param {?} paymentLibComponent
|
|
6967
7692
|
* @param {?} cdRef
|
|
6968
7693
|
* @param {?} OrderslistService
|
|
7694
|
+
* @param {?} router
|
|
7695
|
+
* @param {?} activeRoute
|
|
6969
7696
|
*/
|
|
6970
|
-
constructor(paymentLibComponent, cdRef, OrderslistService$$1) {
|
|
7697
|
+
constructor(paymentLibComponent, cdRef, OrderslistService$$1, router, activeRoute) {
|
|
6971
7698
|
this.paymentLibComponent = paymentLibComponent;
|
|
6972
7699
|
this.cdRef = cdRef;
|
|
6973
7700
|
this.OrderslistService = OrderslistService$$1;
|
|
7701
|
+
this.router = router;
|
|
7702
|
+
this.activeRoute = activeRoute;
|
|
6974
7703
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
6975
|
-
this.displayedColumns = ['ccd_case_number', 'refund_reference', '
|
|
7704
|
+
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
6976
7705
|
}
|
|
6977
7706
|
/**
|
|
6978
7707
|
* @return {?}
|
|
@@ -7039,11 +7768,11 @@ class TableComponent {
|
|
|
7039
7768
|
}
|
|
7040
7769
|
/**
|
|
7041
7770
|
* @param {?} refundReference
|
|
7042
|
-
* @param {?}
|
|
7771
|
+
* @param {?} refundData
|
|
7043
7772
|
* @return {?}
|
|
7044
7773
|
*/
|
|
7045
|
-
goToRefundProcessComponent(refundReference,
|
|
7046
|
-
this.paymentLibComponent.refundlistsource =
|
|
7774
|
+
goToRefundProcessComponent(refundReference, refundData) {
|
|
7775
|
+
this.paymentLibComponent.refundlistsource = refundData;
|
|
7047
7776
|
this.paymentLibComponent.refundReference = refundReference;
|
|
7048
7777
|
this.paymentLibComponent.viewName = 'process-refund';
|
|
7049
7778
|
}
|
|
@@ -7065,21 +7794,23 @@ class TableComponent {
|
|
|
7065
7794
|
* @return {?}
|
|
7066
7795
|
*/
|
|
7067
7796
|
goToCaseReview(ccdCaseNumber, refundData) {
|
|
7068
|
-
|
|
7797
|
+
this.router.navigate([`/cases/case-details/${ccdCaseNumber}`], { relativeTo: this.activeRoute });
|
|
7069
7798
|
}
|
|
7070
7799
|
}
|
|
7071
7800
|
TableComponent.decorators = [
|
|
7072
7801
|
{ type: Component, args: [{
|
|
7073
7802
|
selector: 'ccpay-table',
|
|
7074
|
-
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
|
|
7075
|
-
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:#
|
|
7803
|
+
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",
|
|
7804
|
+
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}"]
|
|
7076
7805
|
}] }
|
|
7077
7806
|
];
|
|
7078
7807
|
/** @nocollapse */
|
|
7079
7808
|
TableComponent.ctorParameters = () => [
|
|
7080
7809
|
{ type: PaymentLibComponent },
|
|
7081
7810
|
{ type: ChangeDetectorRef },
|
|
7082
|
-
{ type: OrderslistService }
|
|
7811
|
+
{ type: OrderslistService },
|
|
7812
|
+
{ type: Router },
|
|
7813
|
+
{ type: ActivatedRoute }
|
|
7083
7814
|
];
|
|
7084
7815
|
TableComponent.propDecorators = {
|
|
7085
7816
|
DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
|
|
@@ -7089,6 +7820,25 @@ TableComponent.propDecorators = {
|
|
|
7089
7820
|
sort: [{ type: ViewChild, args: [MatSort,] }]
|
|
7090
7821
|
};
|
|
7091
7822
|
|
|
7823
|
+
/**
|
|
7824
|
+
* @fileoverview added by tsickle
|
|
7825
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7826
|
+
*/
|
|
7827
|
+
class IPutNotificationRequest {
|
|
7828
|
+
/**
|
|
7829
|
+
* @param {?} contactDetails
|
|
7830
|
+
* @param {?} notificationType
|
|
7831
|
+
*/
|
|
7832
|
+
constructor(contactDetails, notificationType) {
|
|
7833
|
+
if (notificationType === 'EMAIL') {
|
|
7834
|
+
this.recipient_email_address = contactDetails;
|
|
7835
|
+
}
|
|
7836
|
+
else if (notificationType === 'LETTER') {
|
|
7837
|
+
this.recipient_postal_address = contactDetails;
|
|
7838
|
+
}
|
|
7839
|
+
}
|
|
7840
|
+
}
|
|
7841
|
+
|
|
7092
7842
|
/**
|
|
7093
7843
|
* @fileoverview added by tsickle
|
|
7094
7844
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -7108,28 +7858,24 @@ class IResubmitRefundRequest {
|
|
|
7108
7858
|
* @fileoverview added by tsickle
|
|
7109
7859
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7110
7860
|
*/
|
|
7111
|
-
/** @type {?} */
|
|
7112
|
-
const BS_ENABLE_FLAG$4 = 'bulk-scan-enabling-fe';
|
|
7113
7861
|
class RefundStatusComponent {
|
|
7114
7862
|
/**
|
|
7115
7863
|
* @param {?} formBuilder
|
|
7116
7864
|
* @param {?} refundService
|
|
7865
|
+
* @param {?} notificationService
|
|
7117
7866
|
* @param {?} paymentLibComponent
|
|
7118
|
-
* @param {?} paymentViewService
|
|
7119
|
-
* @param {?} router
|
|
7120
7867
|
* @param {?} OrderslistService
|
|
7121
7868
|
*/
|
|
7122
|
-
constructor(formBuilder, refundService,
|
|
7869
|
+
constructor(formBuilder, refundService, notificationService, paymentLibComponent, OrderslistService$$1) {
|
|
7123
7870
|
this.formBuilder = formBuilder;
|
|
7124
7871
|
this.refundService = refundService;
|
|
7872
|
+
this.notificationService = notificationService;
|
|
7125
7873
|
this.paymentLibComponent = paymentLibComponent;
|
|
7126
|
-
this.paymentViewService = paymentViewService;
|
|
7127
|
-
this.router = router;
|
|
7128
7874
|
this.OrderslistService = OrderslistService$$1;
|
|
7129
7875
|
this.LOGGEDINUSERROLES = [];
|
|
7130
7876
|
this.rejectedRefundList = [];
|
|
7131
|
-
this.approvalStatus = '
|
|
7132
|
-
this.rejectStatus = '
|
|
7877
|
+
this.approvalStatus = 'Sent for approval';
|
|
7878
|
+
this.rejectStatus = 'Update required';
|
|
7133
7879
|
this.errorMessage = null;
|
|
7134
7880
|
this.refundButtonState = '';
|
|
7135
7881
|
this.isAmountEmpty = false;
|
|
@@ -7138,6 +7884,9 @@ class RefundStatusComponent {
|
|
|
7138
7884
|
this.isRemissionLessThanFeeError = false;
|
|
7139
7885
|
this.refundHasError = false;
|
|
7140
7886
|
this.refundReasons = [];
|
|
7887
|
+
this.isResendOperationSuccess = false;
|
|
7888
|
+
this.isEditDetailsClicked = false;
|
|
7889
|
+
this.isEditAddressDeatilsClicked = false;
|
|
7141
7890
|
this.isRefundBtnDisabled = true;
|
|
7142
7891
|
this.isLastUpdatedByCurrentUser = true;
|
|
7143
7892
|
this.isProcessRefund = false;
|
|
@@ -7157,70 +7906,66 @@ class RefundStatusComponent {
|
|
|
7157
7906
|
* @return {?}
|
|
7158
7907
|
*/
|
|
7159
7908
|
ngOnInit() {
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7909
|
+
this.resetRemissionForm([false, false, false, false], 'All');
|
|
7910
|
+
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
7911
|
+
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
7912
|
+
if (this.paymentLibComponent.isRefundStatusView) {
|
|
7913
|
+
this.viewName = 'refundview';
|
|
7914
|
+
this.OrderslistService.getRefundView().subscribe((/**
|
|
7915
|
+
* @param {?} data
|
|
7916
|
+
* @return {?}
|
|
7917
|
+
*/
|
|
7918
|
+
(data) => this.refundlist = data));
|
|
7919
|
+
this.OrderslistService.getCCDCaseNumberforRefund.subscribe((/**
|
|
7920
|
+
* @param {?} data
|
|
7921
|
+
* @return {?}
|
|
7922
|
+
*/
|
|
7923
|
+
(data) => this.ccdCaseNumber = data));
|
|
7924
|
+
}
|
|
7925
|
+
else {
|
|
7926
|
+
this.viewName = 'refundstatuslist';
|
|
7927
|
+
this.refundService.getRefundStatusList(this.ccdCaseNumber).subscribe((/**
|
|
7928
|
+
* @param {?} refundList
|
|
7929
|
+
* @return {?}
|
|
7930
|
+
*/
|
|
7931
|
+
refundList => {
|
|
7932
|
+
this.rejectedRefundList = refundList['refund_list'];
|
|
7933
|
+
})),
|
|
7934
|
+
(/**
|
|
7935
|
+
* @param {?} error
|
|
7176
7936
|
* @return {?}
|
|
7177
7937
|
*/
|
|
7178
|
-
(
|
|
7938
|
+
(error) => {
|
|
7939
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
7940
|
+
});
|
|
7941
|
+
}
|
|
7942
|
+
this.refundStatusForm = this.formBuilder.group({
|
|
7943
|
+
amount: new FormControl('', Validators.compose([
|
|
7944
|
+
Validators.required,
|
|
7945
|
+
Validators.pattern('^[0-9]+(\.[0-9]{1,2})?$')
|
|
7946
|
+
])),
|
|
7947
|
+
refundReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7948
|
+
reason: new FormControl()
|
|
7949
|
+
});
|
|
7950
|
+
if (this.refundlist !== undefined) {
|
|
7951
|
+
this.getRefundsNotification();
|
|
7952
|
+
this.getRefundsStatusHistoryList();
|
|
7953
|
+
if (this.LOGGEDINUSERROLES.some((/**
|
|
7954
|
+
* @param {?} i
|
|
7955
|
+
* @return {?}
|
|
7956
|
+
*/
|
|
7957
|
+
i => i.includes('payments-refund-approver')))) {
|
|
7958
|
+
this.isProcessRefund = true;
|
|
7959
|
+
this.refundButtonState = this.refundlist.refund_status.name;
|
|
7960
|
+
return;
|
|
7179
7961
|
}
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
this.rejectedRefundList = refundList['refund_list'];
|
|
7188
|
-
})),
|
|
7189
|
-
(/**
|
|
7190
|
-
* @param {?} error
|
|
7191
|
-
* @return {?}
|
|
7192
|
-
*/
|
|
7193
|
-
(error) => {
|
|
7194
|
-
this.errorMessage = error.replace(/"/g, "");
|
|
7195
|
-
});
|
|
7196
|
-
}
|
|
7197
|
-
this.refundStatusForm = this.formBuilder.group({
|
|
7198
|
-
amount: new FormControl('', Validators.compose([
|
|
7199
|
-
Validators.required,
|
|
7200
|
-
Validators.pattern('^[0-9]+(\.[0-9]{1,2})?$')
|
|
7201
|
-
])),
|
|
7202
|
-
refundReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7203
|
-
reason: new FormControl()
|
|
7204
|
-
});
|
|
7205
|
-
if (this.refundlist !== undefined) {
|
|
7206
|
-
this.getRefundsStatusHistoryList();
|
|
7207
|
-
if (this.LOGGEDINUSERROLES.some((/**
|
|
7208
|
-
* @param {?} i
|
|
7209
|
-
* @return {?}
|
|
7210
|
-
*/
|
|
7211
|
-
i => i.includes('payments-refund-approver')))) {
|
|
7212
|
-
this.isProcessRefund = true;
|
|
7213
|
-
this.refundButtonState = this.refundlist.refund_status.name;
|
|
7214
|
-
return;
|
|
7215
|
-
}
|
|
7216
|
-
if (this.LOGGEDINUSERROLES.some((/**
|
|
7217
|
-
* @param {?} i
|
|
7218
|
-
* @return {?}
|
|
7219
|
-
*/
|
|
7220
|
-
i => i.includes('payments-refund')))) {
|
|
7221
|
-
this.isProcessRefund = false;
|
|
7222
|
-
this.refundButtonState = this.refundlist.refund_status.name;
|
|
7223
|
-
}
|
|
7962
|
+
if (this.LOGGEDINUSERROLES.some((/**
|
|
7963
|
+
* @param {?} i
|
|
7964
|
+
* @return {?}
|
|
7965
|
+
*/
|
|
7966
|
+
i => i.includes('payments-refund')))) {
|
|
7967
|
+
this.isProcessRefund = false;
|
|
7968
|
+
this.refundButtonState = this.refundlist.refund_status.name;
|
|
7224
7969
|
}
|
|
7225
7970
|
}
|
|
7226
7971
|
}
|
|
@@ -7246,6 +7991,25 @@ class RefundStatusComponent {
|
|
|
7246
7991
|
});
|
|
7247
7992
|
}
|
|
7248
7993
|
}
|
|
7994
|
+
/**
|
|
7995
|
+
* @return {?}
|
|
7996
|
+
*/
|
|
7997
|
+
getRefundsNotification() {
|
|
7998
|
+
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
|
|
7999
|
+
* @param {?} refundsNotification
|
|
8000
|
+
* @return {?}
|
|
8001
|
+
*/
|
|
8002
|
+
refundsNotification => {
|
|
8003
|
+
this.notificationList = refundsNotification['notifications'];
|
|
8004
|
+
})),
|
|
8005
|
+
(/**
|
|
8006
|
+
* @param {?} error
|
|
8007
|
+
* @return {?}
|
|
8008
|
+
*/
|
|
8009
|
+
(error) => {
|
|
8010
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8011
|
+
});
|
|
8012
|
+
}
|
|
7249
8013
|
/**
|
|
7250
8014
|
* @param {?} refundlist
|
|
7251
8015
|
* @param {?} navigationpage
|
|
@@ -7263,40 +8027,11 @@ class RefundStatusComponent {
|
|
|
7263
8027
|
* @return {?}
|
|
7264
8028
|
*/
|
|
7265
8029
|
loadCaseTransactionPage() {
|
|
7266
|
-
this.
|
|
7267
|
-
|
|
8030
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8031
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7268
8032
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7269
|
-
this.
|
|
7270
|
-
|
|
7271
|
-
* @return {?}
|
|
7272
|
-
*/
|
|
7273
|
-
features => {
|
|
7274
|
-
/** @type {?} */
|
|
7275
|
-
let result = JSON.parse(features).filter((/**
|
|
7276
|
-
* @param {?} feature
|
|
7277
|
-
* @return {?}
|
|
7278
|
-
*/
|
|
7279
|
-
feature => feature.uid === BS_ENABLE_FLAG$4));
|
|
7280
|
-
this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
7281
|
-
}), (/**
|
|
7282
|
-
* @param {?} err
|
|
7283
|
-
* @return {?}
|
|
7284
|
-
*/
|
|
7285
|
-
err => {
|
|
7286
|
-
this.paymentLibComponent.ISBSENABLE = false;
|
|
7287
|
-
}));
|
|
7288
|
-
/** @type {?} */
|
|
7289
|
-
let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
7290
|
-
partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7291
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7292
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7293
|
-
partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7294
|
-
partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
7295
|
-
partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7296
|
-
partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7297
|
-
/** @type {?} */
|
|
7298
|
-
let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&${partUrl}`;
|
|
7299
|
-
this.router.navigateByUrl(url);
|
|
8033
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8034
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
7300
8035
|
}
|
|
7301
8036
|
/**
|
|
7302
8037
|
* @return {?}
|
|
@@ -7323,10 +8058,6 @@ class RefundStatusComponent {
|
|
|
7323
8058
|
this.errorMessage = false;
|
|
7324
8059
|
this.paymentLibComponent.isRefundStatusView = true;
|
|
7325
8060
|
this.ngOnInit();
|
|
7326
|
-
// this.viewName='refundview';
|
|
7327
|
-
// this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
7328
|
-
// this.paymentLibComponent.isRefundStatusView = true;
|
|
7329
|
-
// this.paymentLibComponent.isCallFromRefundList = true;
|
|
7330
8061
|
}
|
|
7331
8062
|
/**
|
|
7332
8063
|
* @return {?}
|
|
@@ -7339,7 +8070,7 @@ class RefundStatusComponent {
|
|
|
7339
8070
|
* @param {?} data
|
|
7340
8071
|
* @return {?}
|
|
7341
8072
|
*/
|
|
7342
|
-
data => data.status === '
|
|
8073
|
+
data => data.status.toLowerCase() === 'update required'))[0].notes;
|
|
7343
8074
|
this.refundService.getRefundReasons().subscribe((/**
|
|
7344
8075
|
* @param {?} refundReasons
|
|
7345
8076
|
* @return {?}
|
|
@@ -7485,6 +8216,103 @@ class RefundStatusComponent {
|
|
|
7485
8216
|
this.errorMessage = error.replace(/"/g, "");
|
|
7486
8217
|
}));
|
|
7487
8218
|
}
|
|
8219
|
+
/**
|
|
8220
|
+
* @param {?} note
|
|
8221
|
+
* @return {?}
|
|
8222
|
+
*/
|
|
8223
|
+
gotoEditAddressDetails(note) {
|
|
8224
|
+
this.notification = note;
|
|
8225
|
+
this.isEditDetailsClicked = true;
|
|
8226
|
+
this.viewName = 'refundEditView';
|
|
8227
|
+
}
|
|
8228
|
+
/**
|
|
8229
|
+
* @param {?} obj
|
|
8230
|
+
* @return {?}
|
|
8231
|
+
*/
|
|
8232
|
+
getContactDetails(obj) {
|
|
8233
|
+
this.addressDetails = obj;
|
|
8234
|
+
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
8235
|
+
}
|
|
8236
|
+
/**
|
|
8237
|
+
* @param {?=} note
|
|
8238
|
+
* @return {?}
|
|
8239
|
+
*/
|
|
8240
|
+
gotoEditDetailsPage(note) {
|
|
8241
|
+
if (note) {
|
|
8242
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8243
|
+
}
|
|
8244
|
+
this.isEditDetailsClicked = true;
|
|
8245
|
+
this.viewName = 'refundEditView';
|
|
8246
|
+
}
|
|
8247
|
+
/**
|
|
8248
|
+
* @return {?}
|
|
8249
|
+
*/
|
|
8250
|
+
submitEditDetail() {
|
|
8251
|
+
this.isResendOperationSuccess = false;
|
|
8252
|
+
/** @type {?} */
|
|
8253
|
+
const contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
8254
|
+
{
|
|
8255
|
+
address_line: this.addressDetails.address_line,
|
|
8256
|
+
city: this.addressDetails.city,
|
|
8257
|
+
county: this.addressDetails.county,
|
|
8258
|
+
country: this.addressDetails.country,
|
|
8259
|
+
postal_code: this.addressDetails.postal_code,
|
|
8260
|
+
};
|
|
8261
|
+
/** @type {?} */
|
|
8262
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
8263
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
|
|
8264
|
+
* @param {?} response
|
|
8265
|
+
* @return {?}
|
|
8266
|
+
*/
|
|
8267
|
+
(response) => {
|
|
8268
|
+
this.isResendOperationSuccess = response;
|
|
8269
|
+
}), (/**
|
|
8270
|
+
* @param {?} error
|
|
8271
|
+
* @return {?}
|
|
8272
|
+
*/
|
|
8273
|
+
(error) => {
|
|
8274
|
+
this.isResendOperationSuccess = false;
|
|
8275
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8276
|
+
}));
|
|
8277
|
+
}
|
|
8278
|
+
/**
|
|
8279
|
+
* @param {?} notification
|
|
8280
|
+
* @return {?}
|
|
8281
|
+
*/
|
|
8282
|
+
putResend(notification) {
|
|
8283
|
+
this.isResendOperationSuccess = false;
|
|
8284
|
+
/** @type {?} */
|
|
8285
|
+
const contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
8286
|
+
{
|
|
8287
|
+
address_line: notification.contact_details.address_line,
|
|
8288
|
+
city: notification.contact_details.city,
|
|
8289
|
+
county: notification.contact_details.county,
|
|
8290
|
+
country: notification.contact_details.country,
|
|
8291
|
+
postal_code: notification.contact_details.postal_code,
|
|
8292
|
+
};
|
|
8293
|
+
/** @type {?} */
|
|
8294
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
8295
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
|
|
8296
|
+
* @param {?} response
|
|
8297
|
+
* @return {?}
|
|
8298
|
+
*/
|
|
8299
|
+
(response) => {
|
|
8300
|
+
this.isResendOperationSuccess = response;
|
|
8301
|
+
}), (/**
|
|
8302
|
+
* @param {?} error
|
|
8303
|
+
* @return {?}
|
|
8304
|
+
*/
|
|
8305
|
+
(error) => {
|
|
8306
|
+
this.isResendOperationSuccess = false;
|
|
8307
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8308
|
+
}));
|
|
8309
|
+
}
|
|
8310
|
+
/**
|
|
8311
|
+
* @param {?} Event
|
|
8312
|
+
* @return {?}
|
|
8313
|
+
*/
|
|
8314
|
+
gotoCasetransationPageCancelBtnClicked(Event) {
|
|
8315
|
+
}
|
|
7488
8316
|
/**
|
|
7489
8317
|
* @param {?} refundReference
|
|
7490
8318
|
* @param {?} refundList
|
|
@@ -7499,17 +8327,16 @@ class RefundStatusComponent {
|
|
|
7499
8327
|
RefundStatusComponent.decorators = [
|
|
7500
8328
|
{ type: Component, args: [{
|
|
7501
8329
|
selector: 'ccpay-refund-status',
|
|
7502
|
-
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==='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 <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>",
|
|
7503
|
-
styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.white{color:#fff}"]
|
|
8330
|
+
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 && !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 <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === '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 </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage(addressDetails)\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage()\" 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>",
|
|
8331
|
+
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}"]
|
|
7504
8332
|
}] }
|
|
7505
8333
|
];
|
|
7506
8334
|
/** @nocollapse */
|
|
7507
8335
|
RefundStatusComponent.ctorParameters = () => [
|
|
7508
8336
|
{ type: FormBuilder },
|
|
7509
8337
|
{ type: RefundsService },
|
|
8338
|
+
{ type: NotificationService },
|
|
7510
8339
|
{ type: PaymentLibComponent },
|
|
7511
|
-
{ type: PaymentViewService },
|
|
7512
|
-
{ type: Router },
|
|
7513
8340
|
{ type: OrderslistService }
|
|
7514
8341
|
];
|
|
7515
8342
|
RefundStatusComponent.propDecorators = {
|
|
@@ -7517,198 +8344,450 @@ RefundStatusComponent.propDecorators = {
|
|
|
7517
8344
|
isOldPcipalOff: [{ type: Input }],
|
|
7518
8345
|
isNewPcipalOff: [{ type: Input }],
|
|
7519
8346
|
ccdCaseNumber: [{ type: Input }],
|
|
7520
|
-
isTurnOff: [{ type: Input }]
|
|
8347
|
+
isTurnOff: [{ type: Input }],
|
|
8348
|
+
orderParty: [{ type: Input }]
|
|
7521
8349
|
};
|
|
7522
8350
|
|
|
7523
8351
|
/**
|
|
7524
8352
|
* @fileoverview added by tsickle
|
|
7525
8353
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7526
8354
|
*/
|
|
7527
|
-
class
|
|
7528
|
-
/**
|
|
7529
|
-
* @param {?} amount
|
|
7530
|
-
*/
|
|
7531
|
-
constructor(amount) {
|
|
7532
|
-
this.amount = amount;
|
|
7533
|
-
this.currency = 'GBP';
|
|
7534
|
-
this.language = 'string';
|
|
7535
|
-
}
|
|
7536
|
-
}
|
|
7537
|
-
|
|
7538
|
-
/**
|
|
7539
|
-
* @fileoverview added by tsickle
|
|
7540
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7541
|
-
*/
|
|
7542
|
-
class IserviceRequestPbaPayment {
|
|
7543
|
-
/**
|
|
7544
|
-
* @param {?} account_number
|
|
7545
|
-
* @param {?} amount
|
|
7546
|
-
* @param {?} customer_reference
|
|
7547
|
-
*/
|
|
7548
|
-
constructor(account_number, amount, customer_reference) {
|
|
7549
|
-
this.account_number = account_number;
|
|
7550
|
-
this.amount = amount;
|
|
7551
|
-
this.currency = 'GBP';
|
|
7552
|
-
this.customer_reference = customer_reference;
|
|
7553
|
-
}
|
|
7554
|
-
}
|
|
7555
|
-
|
|
7556
|
-
/**
|
|
7557
|
-
* @fileoverview added by tsickle
|
|
7558
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7559
|
-
*/
|
|
7560
|
-
class PbaPaymentComponent {
|
|
8355
|
+
class ServiceRequestComponent {
|
|
7561
8356
|
/**
|
|
7562
8357
|
* @param {?} paymentLibComponent
|
|
7563
8358
|
* @param {?} paymentViewService
|
|
8359
|
+
* @param {?} OrderslistService
|
|
8360
|
+
* @param {?} router
|
|
7564
8361
|
*/
|
|
7565
|
-
constructor(paymentLibComponent, paymentViewService) {
|
|
8362
|
+
constructor(paymentLibComponent, paymentViewService, OrderslistService$$1, router) {
|
|
7566
8363
|
this.paymentLibComponent = paymentLibComponent;
|
|
7567
8364
|
this.paymentViewService = paymentViewService;
|
|
7568
|
-
this.
|
|
7569
|
-
this.
|
|
7570
|
-
this.
|
|
7571
|
-
this.
|
|
7572
|
-
this.
|
|
7573
|
-
this.
|
|
7574
|
-
this.
|
|
7575
|
-
this.
|
|
7576
|
-
this.
|
|
8365
|
+
this.OrderslistService = OrderslistService$$1;
|
|
8366
|
+
this.router = router;
|
|
8367
|
+
this.paymentGroups = [];
|
|
8368
|
+
this.payments = [];
|
|
8369
|
+
this.nonPayments = [];
|
|
8370
|
+
this.allPayments = [];
|
|
8371
|
+
this.remissions = [];
|
|
8372
|
+
this.fees = [];
|
|
8373
|
+
this.isRefundRemission = true;
|
|
8374
|
+
this.isAddFeeBtnEnabled = true;
|
|
8375
|
+
this.isExceptionRecord = false;
|
|
8376
|
+
this.isUnprocessedRecordSelected = false;
|
|
8377
|
+
this.isAnyFeeGroupAvilable = true;
|
|
8378
|
+
this.isHistoricGroupAvailable = false;
|
|
8379
|
+
this.isRemoveBtnDisabled = false;
|
|
8380
|
+
this.clAmountDue = 0;
|
|
8381
|
+
this.isFeeRecordsExist = false;
|
|
8382
|
+
this.isGrpOutstandingAmtPositive = false;
|
|
8383
|
+
this.isAddRemissionEnable = false;
|
|
8384
|
+
this.orderRemissionDetails = [];
|
|
8385
|
+
this.orderLevelFees = [];
|
|
8386
|
+
this.cpoDetails = null;
|
|
8387
|
+
this.isPBA = false;
|
|
8388
|
+
this.isIssueRefunfBtnEnable = false;
|
|
8389
|
+
this.isAddRemissionBtnEnabled = false;
|
|
8390
|
+
this.isRefundRemissionBtnEnable = false;
|
|
8391
|
+
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8392
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
8393
|
+
* @return {?}
|
|
8394
|
+
*/
|
|
8395
|
+
() => {
|
|
8396
|
+
return this.allowedRolesToAccessRefund.some((/**
|
|
8397
|
+
* @param {?} role
|
|
8398
|
+
* @return {?}
|
|
8399
|
+
*/
|
|
8400
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
8401
|
+
});
|
|
8402
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
8403
|
+
* @param {?} payment
|
|
8404
|
+
* @return {?}
|
|
8405
|
+
*/
|
|
8406
|
+
(payment) => {
|
|
8407
|
+
if (payment !== null && payment !== undefined) {
|
|
8408
|
+
/** @type {?} */
|
|
8409
|
+
let tmp4DayAgo = new Date();
|
|
8410
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
8411
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
8412
|
+
}
|
|
8413
|
+
});
|
|
7577
8414
|
}
|
|
7578
8415
|
/**
|
|
7579
8416
|
* @return {?}
|
|
7580
8417
|
*/
|
|
7581
8418
|
ngOnInit() {
|
|
7582
|
-
this.
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
this.
|
|
7586
|
-
.
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
8419
|
+
if (this.viewStatus === undefined) {
|
|
8420
|
+
this.viewStatus = this.paymentLibComponent.viewName;
|
|
8421
|
+
}
|
|
8422
|
+
if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.isFromPaymentDetailPage) {
|
|
8423
|
+
if (this.paymentLibComponent.isFromPaymentDetailPage && this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8424
|
+
this.OrderslistService.getorderRefs().subscribe((/**
|
|
8425
|
+
* @param {?} data
|
|
8426
|
+
* @return {?}
|
|
8427
|
+
*/
|
|
8428
|
+
(data) => this.orderRef = data));
|
|
8429
|
+
this.OrderslistService.getorderCCDEvents().subscribe((/**
|
|
8430
|
+
* @param {?} data
|
|
8431
|
+
* @return {?}
|
|
8432
|
+
*/
|
|
8433
|
+
(data) => this.orderCCDEvent = data));
|
|
8434
|
+
this.OrderslistService.getorderCreateds().subscribe((/**
|
|
8435
|
+
* @param {?} data
|
|
8436
|
+
* @return {?}
|
|
8437
|
+
*/
|
|
8438
|
+
(data) => this.orderCreated = data));
|
|
8439
|
+
this.OrderslistService.getorderDetail().subscribe((/**
|
|
8440
|
+
* @param {?} data
|
|
8441
|
+
* @return {?}
|
|
8442
|
+
*/
|
|
8443
|
+
(data) => this.orderDetail = data));
|
|
8444
|
+
this.OrderslistService.getorderPartys().subscribe((/**
|
|
8445
|
+
* @param {?} data
|
|
8446
|
+
* @return {?}
|
|
8447
|
+
*/
|
|
8448
|
+
(data) => this.orderParty = data));
|
|
8449
|
+
this.OrderslistService.getorderRemissionTotals().subscribe((/**
|
|
8450
|
+
* @param {?} data
|
|
8451
|
+
* @return {?}
|
|
8452
|
+
*/
|
|
8453
|
+
(data) => this.orderRemissionTotal = data));
|
|
8454
|
+
this.OrderslistService.getorderFeesTotals().subscribe((/**
|
|
8455
|
+
* @param {?} data
|
|
8456
|
+
* @return {?}
|
|
8457
|
+
*/
|
|
8458
|
+
(data) => this.orderFeesTotal = data));
|
|
8459
|
+
this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
|
|
8460
|
+
* @param {?} data
|
|
8461
|
+
* @return {?}
|
|
8462
|
+
*/
|
|
8463
|
+
(data) => this.orderTotalPayments = data));
|
|
8464
|
+
}
|
|
8465
|
+
}
|
|
8466
|
+
// if (this.takePayment) {
|
|
8467
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
8468
|
+
// }
|
|
8469
|
+
}
|
|
8470
|
+
/**
|
|
8471
|
+
* @param {?} event
|
|
8472
|
+
* @return {?}
|
|
8473
|
+
*/
|
|
8474
|
+
goToCaseTransationPage(event) {
|
|
8475
|
+
event.preventDefault();
|
|
8476
|
+
this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
8477
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8478
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8479
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8480
|
+
this.paymentLibComponent.isTakePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
8481
|
+
if (this.takePayment) {
|
|
8482
|
+
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
8483
|
+
}
|
|
8484
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
8485
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
8486
|
+
this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
8487
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8488
|
+
this.resetOrderData();
|
|
8489
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8490
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
8491
|
+
// this.OrderslistService.setpaymentPageView({ method: this.payment.method, payment_group_reference: this.paymentGroupRef, reference: this.payment.reference });
|
|
8492
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
8493
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
8494
|
+
/** @type {?} */
|
|
8495
|
+
let partUrl = this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
8496
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
8497
|
+
partUrl += this.paymentLibComponent.TAKEPAYMENT ? '&takePayment=true' : '&takePayment=false';
|
|
8498
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
8499
|
+
partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
8500
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
8501
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
8502
|
+
/** @type {?} */
|
|
8503
|
+
const url = `/payment-history/${this.paymentLibComponent.CCD_CASE_NUMBER}?view=case-transactions&selectedOption=${this.paymentLibComponent.SELECTED_OPTION}${partUrl}`;
|
|
8504
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7595
8505
|
* @return {?}
|
|
7596
8506
|
*/
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
8507
|
+
() => false);
|
|
8508
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
8509
|
+
this.router.navigateByUrl(url);
|
|
7600
8510
|
}
|
|
7601
8511
|
/**
|
|
7602
|
-
* @param {?}
|
|
8512
|
+
* @param {?} feeCode
|
|
7603
8513
|
* @return {?}
|
|
7604
8514
|
*/
|
|
7605
|
-
|
|
7606
|
-
if (
|
|
7607
|
-
this.
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
8515
|
+
chkForAddRemission(feeCode) {
|
|
8516
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
8517
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
8518
|
+
for (const remission of this.orderDetail[0]['remissions']) {
|
|
8519
|
+
if (remission.fee_code === feeCode) {
|
|
8520
|
+
return false;
|
|
8521
|
+
}
|
|
8522
|
+
}
|
|
8523
|
+
}
|
|
8524
|
+
return true;
|
|
7614
8525
|
}
|
|
7615
8526
|
else {
|
|
7616
|
-
|
|
8527
|
+
return false;
|
|
7617
8528
|
}
|
|
7618
8529
|
}
|
|
7619
8530
|
/**
|
|
7620
8531
|
* @return {?}
|
|
7621
8532
|
*/
|
|
7622
|
-
|
|
7623
|
-
this.
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
this.isPBAAccountPaymentSuccess = false;
|
|
7627
|
-
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
7628
|
-
/** @type {?} */
|
|
7629
|
-
const requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
|
|
7630
|
-
this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
7631
|
-
.subscribe((/**
|
|
7632
|
-
* @param {?} r
|
|
7633
|
-
* @return {?}
|
|
7634
|
-
*/
|
|
7635
|
-
r => {
|
|
7636
|
-
this.pbaAccountrPaymentResult = JSON.parse(r).data;
|
|
7637
|
-
this.isPBAAccountPaymentSuccess = true;
|
|
7638
|
-
}), (/**
|
|
7639
|
-
* @param {?} e
|
|
8533
|
+
chkForPBAPayment() {
|
|
8534
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
8535
|
+
this.orderDetail.forEach((/**
|
|
8536
|
+
* @param {?} orderDetail
|
|
7640
8537
|
* @return {?}
|
|
7641
8538
|
*/
|
|
7642
|
-
|
|
7643
|
-
if (
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
8539
|
+
orderDetail => {
|
|
8540
|
+
if (orderDetail.payments) {
|
|
8541
|
+
orderDetail.payments.forEach((/**
|
|
8542
|
+
* @param {?} payment
|
|
8543
|
+
* @return {?}
|
|
8544
|
+
*/
|
|
8545
|
+
payment => {
|
|
8546
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
8547
|
+
this.paymentLibComponent.paymentReference = payment.reference;
|
|
8548
|
+
this.isPBA = true;
|
|
8549
|
+
}
|
|
8550
|
+
}));
|
|
7651
8551
|
}
|
|
7652
8552
|
}));
|
|
8553
|
+
if (this.isPBA) {
|
|
8554
|
+
return true;
|
|
8555
|
+
}
|
|
8556
|
+
else {
|
|
8557
|
+
return false;
|
|
8558
|
+
}
|
|
7653
8559
|
}
|
|
7654
|
-
|
|
7655
|
-
|
|
8560
|
+
}
|
|
8561
|
+
/**
|
|
8562
|
+
* @param {?} fee
|
|
8563
|
+
* @return {?}
|
|
8564
|
+
*/
|
|
8565
|
+
addRemission(fee) {
|
|
8566
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
8567
|
+
this.feeId = fee;
|
|
8568
|
+
this.viewStatus = 'addremission';
|
|
8569
|
+
this.payment = this.orderDetail[0].payments[0];
|
|
8570
|
+
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
|
|
8571
|
+
* @param {?} paymentGroup
|
|
8572
|
+
* @return {?}
|
|
8573
|
+
*/
|
|
8574
|
+
paymentGroup => {
|
|
8575
|
+
this.paymentGroup = paymentGroup;
|
|
8576
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
8577
|
+
* @param {?} paymentGroupObj
|
|
8578
|
+
* @return {?}
|
|
8579
|
+
*/
|
|
8580
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
|
|
8581
|
+
this.payment = this.paymentGroup.payments[0];
|
|
8582
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
8583
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
8584
|
+
}), (/**
|
|
8585
|
+
* @param {?} error
|
|
8586
|
+
* @return {?}
|
|
8587
|
+
*/
|
|
8588
|
+
(error) => this.errorMessage = error.replace(/"/g, "")));
|
|
7656
8589
|
}
|
|
7657
8590
|
}
|
|
7658
8591
|
/**
|
|
8592
|
+
* @param {?} payment
|
|
8593
|
+
* @param {?} remission
|
|
8594
|
+
* @param {?} fees
|
|
7659
8595
|
* @return {?}
|
|
7660
8596
|
*/
|
|
7661
|
-
|
|
7662
|
-
this.
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
.subscribe((/**
|
|
7667
|
-
* @param {?} result
|
|
8597
|
+
addRefundForRemission(payment, remission, fees) {
|
|
8598
|
+
this.viewStatus = 'addrefundforremission';
|
|
8599
|
+
this.payment = payment;
|
|
8600
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
8601
|
+
* @param {?} paymentGroup
|
|
7668
8602
|
* @return {?}
|
|
7669
8603
|
*/
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
8604
|
+
paymentGroup => {
|
|
8605
|
+
this.paymentGroup = paymentGroup;
|
|
8606
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
8607
|
+
* @param {?} paymentGroupObj
|
|
8608
|
+
* @return {?}
|
|
8609
|
+
*/
|
|
8610
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.payment.reference)));
|
|
8611
|
+
this.payment = this.paymentGroup.payments[0];
|
|
8612
|
+
this.remissions = remission;
|
|
8613
|
+
this.remissionFeeAmt = fees.filter((/**
|
|
8614
|
+
* @param {?} data
|
|
8615
|
+
* @return {?}
|
|
8616
|
+
*/
|
|
8617
|
+
data => data.code === this.remissions['fee_code']))[0].net_amount;
|
|
8618
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
8619
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7674
8620
|
}), (/**
|
|
7675
8621
|
* @param {?} error
|
|
7676
8622
|
* @return {?}
|
|
7677
8623
|
*/
|
|
7678
|
-
error =>
|
|
7679
|
-
|
|
8624
|
+
(error) => this.errorMessage = error));
|
|
8625
|
+
}
|
|
8626
|
+
/**
|
|
8627
|
+
* @return {?}
|
|
8628
|
+
*/
|
|
8629
|
+
cancelRemoval() {
|
|
8630
|
+
this.viewStatus = 'main';
|
|
8631
|
+
}
|
|
8632
|
+
/**
|
|
8633
|
+
* @param {?} fee
|
|
8634
|
+
* @return {?}
|
|
8635
|
+
*/
|
|
8636
|
+
removeFee(fee) {
|
|
8637
|
+
this.isRemoveBtnDisabled = true;
|
|
8638
|
+
this.paymentViewService.deleteFeeFromPaymentGroup(fee).subscribe((/**
|
|
8639
|
+
* @param {?} success
|
|
8640
|
+
* @return {?}
|
|
8641
|
+
*/
|
|
8642
|
+
(success) => {
|
|
8643
|
+
window.location.reload();
|
|
8644
|
+
}), (/**
|
|
8645
|
+
* @param {?} error
|
|
8646
|
+
* @return {?}
|
|
8647
|
+
*/
|
|
8648
|
+
(error) => {
|
|
8649
|
+
this.errorMessage = error;
|
|
8650
|
+
this.isRemoveBtnDisabled = false;
|
|
7680
8651
|
}));
|
|
7681
8652
|
}
|
|
7682
8653
|
/**
|
|
8654
|
+
* @param {?} payment
|
|
7683
8655
|
* @return {?}
|
|
7684
8656
|
*/
|
|
7685
|
-
|
|
7686
|
-
this.
|
|
7687
|
-
|
|
7688
|
-
|
|
8657
|
+
chkIssueRefundBtnEnable(payment) {
|
|
8658
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
8659
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
8660
|
+
this.isIssueRefunfBtnEnable = true;
|
|
8661
|
+
}
|
|
8662
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
8663
|
+
return true;
|
|
8664
|
+
}
|
|
8665
|
+
else {
|
|
8666
|
+
return false;
|
|
8667
|
+
}
|
|
8668
|
+
}
|
|
8669
|
+
/**
|
|
8670
|
+
* @return {?}
|
|
8671
|
+
*/
|
|
8672
|
+
chkIsRefundRemissionBtnEnable() {
|
|
8673
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
8674
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8675
|
+
this.orderDetail.forEach((/**
|
|
8676
|
+
* @param {?} orderDetail
|
|
8677
|
+
* @return {?}
|
|
8678
|
+
*/
|
|
8679
|
+
orderDetail => {
|
|
8680
|
+
if (orderDetail.payments) {
|
|
8681
|
+
orderDetail.payments.forEach((/**
|
|
8682
|
+
* @param {?} payment
|
|
8683
|
+
* @return {?}
|
|
8684
|
+
*/
|
|
8685
|
+
payment => {
|
|
8686
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
8687
|
+
this.isRefundRemissionBtnEnable = true;
|
|
8688
|
+
}
|
|
8689
|
+
}));
|
|
8690
|
+
}
|
|
8691
|
+
}));
|
|
8692
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
8693
|
+
return true;
|
|
8694
|
+
}
|
|
8695
|
+
else {
|
|
8696
|
+
return false;
|
|
8697
|
+
}
|
|
8698
|
+
}
|
|
8699
|
+
}
|
|
8700
|
+
/**
|
|
8701
|
+
* @param {?} payment
|
|
8702
|
+
* @return {?}
|
|
8703
|
+
*/
|
|
8704
|
+
issueRefund(payment) {
|
|
8705
|
+
if (payment !== null && payment !== undefined) {
|
|
8706
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
8707
|
+
this.viewStatus = 'issuerefund';
|
|
8708
|
+
this.payment = payment;
|
|
8709
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8710
|
+
this.isRefundRemission = true;
|
|
8711
|
+
}
|
|
8712
|
+
}
|
|
8713
|
+
}
|
|
8714
|
+
/**
|
|
8715
|
+
* @param {?} paymentGroupReference
|
|
8716
|
+
* @param {?} paymentReference
|
|
8717
|
+
* @param {?} paymentMethod
|
|
8718
|
+
* @return {?}
|
|
8719
|
+
*/
|
|
8720
|
+
goToPayementView(paymentGroupReference, paymentReference, paymentMethod) {
|
|
8721
|
+
this.goToPaymentViewComponent({ paymentGroupReference, paymentReference, paymentMethod });
|
|
8722
|
+
}
|
|
8723
|
+
/**
|
|
8724
|
+
* @param {?} paymentGroup
|
|
8725
|
+
* @return {?}
|
|
8726
|
+
*/
|
|
8727
|
+
goToPaymentViewComponent(paymentGroup) {
|
|
8728
|
+
this.paymentLibComponent.paymentMethod = paymentGroup.paymentMethod;
|
|
7689
8729
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8730
|
+
this.paymentLibComponent.paymentGroupReference = paymentGroup.paymentGroupReference;
|
|
8731
|
+
this.paymentLibComponent.paymentReference = paymentGroup.paymentReference;
|
|
8732
|
+
this.OrderslistService.setOrderRef(this.orderRef);
|
|
8733
|
+
this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
|
|
8734
|
+
this.OrderslistService.setorderCreated(this.orderCreated);
|
|
8735
|
+
this.OrderslistService.setorderDetail(this.orderDetail);
|
|
8736
|
+
this.OrderslistService.setorderParty(this.orderParty);
|
|
8737
|
+
this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
|
|
8738
|
+
this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
|
|
8739
|
+
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
8740
|
+
this.viewStatus = 'payment-view';
|
|
8741
|
+
}
|
|
8742
|
+
/**
|
|
8743
|
+
* @return {?}
|
|
8744
|
+
*/
|
|
8745
|
+
resetOrderData() {
|
|
8746
|
+
this.OrderslistService.setOrderRef(null);
|
|
8747
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
8748
|
+
this.OrderslistService.setorderCreated(null);
|
|
8749
|
+
this.OrderslistService.setorderDetail(null);
|
|
8750
|
+
this.OrderslistService.setorderParty(null);
|
|
8751
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
8752
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
8753
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
7690
8754
|
}
|
|
7691
8755
|
}
|
|
7692
|
-
|
|
8756
|
+
ServiceRequestComponent.decorators = [
|
|
7693
8757
|
{ type: Component, args: [{
|
|
7694
|
-
selector: 'ccpay-
|
|
7695
|
-
template: "<ng-container *ngIf=\"viewStatus === 'pba-payment'\">\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()\" class=\"govuk-back-link pba-payments-19-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}}) has been put on hold or 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\">\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",
|
|
7696
|
-
styles: [".
|
|
8758
|
+
selector: 'ccpay-service-request',
|
|
8759
|
+
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div> -->\n\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>",
|
|
8760
|
+
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%}"]
|
|
7697
8761
|
}] }
|
|
7698
8762
|
];
|
|
7699
8763
|
/** @nocollapse */
|
|
7700
|
-
|
|
8764
|
+
ServiceRequestComponent.ctorParameters = () => [
|
|
7701
8765
|
{ type: PaymentLibComponent },
|
|
7702
|
-
{ type: PaymentViewService }
|
|
8766
|
+
{ type: PaymentViewService },
|
|
8767
|
+
{ type: OrderslistService },
|
|
8768
|
+
{ type: Router }
|
|
7703
8769
|
];
|
|
7704
|
-
|
|
7705
|
-
|
|
8770
|
+
ServiceRequestComponent.propDecorators = {
|
|
8771
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8772
|
+
viewStatus: [{ type: Input, args: ['viewStatus',] }],
|
|
8773
|
+
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
8774
|
+
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
8775
|
+
orderStatus: [{ type: Input, args: ['orderStatus',] }],
|
|
8776
|
+
orderParty: [{ type: Input, args: ['orderParty',] }],
|
|
8777
|
+
orderCreated: [{ type: Input, args: ['orderCreated',] }],
|
|
8778
|
+
orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
|
|
8779
|
+
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
8780
|
+
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
8781
|
+
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
8782
|
+
takePayment: [{ type: Input, args: ['takePayment',] }],
|
|
8783
|
+
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }]
|
|
7706
8784
|
};
|
|
7707
8785
|
|
|
7708
8786
|
/**
|
|
7709
8787
|
* @fileoverview added by tsickle
|
|
7710
8788
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7711
8789
|
*/
|
|
8790
|
+
// import { PbaPaymentComponent } from './components/pba-payment/pba-payment.component';
|
|
7712
8791
|
class PaymentLibModule {
|
|
7713
8792
|
}
|
|
7714
8793
|
PaymentLibModule.decorators = [
|
|
@@ -7728,7 +8807,8 @@ PaymentLibModule.decorators = [
|
|
|
7728
8807
|
PaymentLibComponent,
|
|
7729
8808
|
PaymentListComponent,
|
|
7730
8809
|
PaymentViewComponent,
|
|
7731
|
-
PbaPaymentComponent,
|
|
8810
|
+
// PbaPaymentComponent,
|
|
8811
|
+
ContactDetailsComponent,
|
|
7732
8812
|
ProcessRefundComponent,
|
|
7733
8813
|
RefundListComponent,
|
|
7734
8814
|
CardDetailsComponent,
|
|
@@ -7750,7 +8830,8 @@ PaymentLibModule.decorators = [
|
|
|
7750
8830
|
ReportsComponent,
|
|
7751
8831
|
ErrorBannerComponent,
|
|
7752
8832
|
TableComponent,
|
|
7753
|
-
RefundStatusComponent
|
|
8833
|
+
RefundStatusComponent,
|
|
8834
|
+
ServiceRequestComponent
|
|
7754
8835
|
],
|
|
7755
8836
|
exports: [PaymentLibComponent],
|
|
7756
8837
|
providers: [
|
|
@@ -7771,6 +8852,6 @@ PaymentLibModule.decorators = [
|
|
|
7771
8852
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7772
8853
|
*/
|
|
7773
8854
|
|
|
7774
|
-
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as
|
|
8855
|
+
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as ɵbc, AllocatePaymentsComponent as ɵx, CardDetailsComponent as ɵn, CaseTransactionsComponent as ɵba, ContactDetailsComponent as ɵi, ErrorBannerComponent as ɵbj, FeeSummaryComponent as ɵbb, MarkUnidentifiedPaymentComponent as ɵs, MarkUnsolicitedPaymentComponent as ɵu, PageNotFoundComponent as ɵp, PaymentListComponent as ɵb, PaymentViewComponent as ɵf, PbaDetailsComponent as ɵz, ProcessRefundComponent as ɵk, ProcessedPaymentsComponent as ɵw, RefundListComponent as ɵm, RefundStatusComponent as ɵbl, ReportsComponent as ɵbh, ServiceRequestComponent as ɵbm, 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 ɵj, OrderslistService as ɵa, PaymentListService as ɵc, PaymentViewService as ɵg, RefundsService as ɵl, ErrorHandlerService as ɵe, WebComponentHttpClient as ɵh, ConsoleLoggerService as ɵbn, LoggerService as ɵd, StatusHistoryService as ɵr, XlFileService as ɵbi };
|
|
7775
8856
|
|
|
7776
8857
|
//# sourceMappingURL=hmcts-ccpay-web-component.js.map
|