@hmcts/ccpay-web-component 5.0.1-beta16 → 5.0.1-beta160
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 +8447 -6427
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/hmcts-ccpay-web-component.js +42 -38
- package/esm2015/lib/components/add-remission/add-remission.component.js +296 -170
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +114 -80
- package/esm2015/lib/components/contact-details/contact-details.component.js +436 -0
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +1 -3
- package/esm2015/lib/components/payment-view/payment-view.component.js +105 -19
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +248 -0
- package/esm2015/lib/components/process-refund/process-refund.component.js +100 -9
- package/esm2015/lib/components/refund-list/refund-list.component.js +4 -4
- package/esm2015/lib/components/refund-status/refund-status.component.js +177 -51
- package/esm2015/lib/components/service-request/service-request.component.js +629 -0
- package/esm2015/lib/components/status-history/status-history.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +42 -19
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
- 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 +5 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +32 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
- package/esm2015/lib/payment-lib.component.js +62 -9
- package/esm2015/lib/payment-lib.module.js +8 -3
- package/esm2015/lib/payment-lib.service.js +31 -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 +35 -1
- package/esm2015/lib/services/refunds/refunds.service.js +25 -3
- package/esm2015/lib/services/shared/error-handler.service.js +38 -5
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
- package/esm5/hmcts-ccpay-web-component.js +42 -38
- package/esm5/lib/components/add-remission/add-remission.component.js +324 -171
- package/esm5/lib/components/case-transactions/case-transactions.component.js +123 -84
- package/esm5/lib/components/contact-details/contact-details.component.js +461 -0
- package/esm5/lib/components/fee-summary/fee-summary.component.js +1 -3
- package/esm5/lib/components/payment-view/payment-view.component.js +112 -19
- package/esm5/lib/components/pba-payment/pba-payment.component.js +269 -0
- package/esm5/lib/components/process-refund/process-refund.component.js +103 -9
- package/esm5/lib/components/refund-list/refund-list.component.js +4 -4
- package/esm5/lib/components/refund-status/refund-status.component.js +213 -61
- package/esm5/lib/components/service-request/service-request.component.js +721 -0
- package/esm5/lib/components/status-history/status-history.component.js +2 -2
- package/esm5/lib/components/table/table.component.js +44 -19
- package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
- 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 +5 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
- package/esm5/lib/payment-lib.component.js +58 -7
- package/esm5/lib/payment-lib.module.js +8 -3
- package/esm5/lib/payment-lib.service.js +45 -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 +48 -1
- package/esm5/lib/services/refunds/refunds.service.js +31 -3
- package/esm5/lib/services/shared/error-handler.service.js +38 -5
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
- package/fesm2015/hmcts-ccpay-web-component.js +2282 -515
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +8423 -6366
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +41 -37
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +23 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +8 -3
- package/lib/components/contact-details/contact-details.component.d.ts +49 -0
- package/lib/components/payment-view/payment-view.component.d.ts +14 -3
- package/lib/components/pba-payment/pba-payment.component.d.ts +33 -0
- package/lib/components/process-refund/process-refund.component.d.ts +12 -1
- package/lib/components/refund-status/refund-status.component.d.ts +23 -5
- package/lib/components/service-request/service-request.component.d.ts +106 -0
- package/lib/components/table/table.component.d.ts +6 -4
- 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 +3 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +8 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
- package/lib/payment-lib.component.d.ts +20 -1
- package/lib/payment-lib.service.d.ts +6 -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 +5 -0
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { _throw } from 'rxjs/observable/throw';
|
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
4
4
|
import { catchError } from 'rxjs/operators';
|
|
5
|
-
import { get } from 'local-storage';
|
|
6
5
|
import { Meta, DomSanitizer } from '@angular/platform-browser';
|
|
7
6
|
import { Location, formatDate, CommonModule } from '@angular/common';
|
|
8
7
|
import { saveAs } from 'file-saver';
|
|
@@ -12,9 +11,9 @@ import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
|
12
11
|
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
13
12
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
13
|
import { MatInputModule } from '@angular/material/input';
|
|
15
|
-
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
16
14
|
import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
17
|
-
import { Router } from '@angular/router';
|
|
15
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
16
|
+
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* @fileoverview added by tsickle
|
|
@@ -61,6 +60,32 @@ class PaymentLibService {
|
|
|
61
60
|
getRefundsApiRootUrl() {
|
|
62
61
|
return this.REFUNDS_API_ROOT;
|
|
63
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* @param {?} notificationapiRoot
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
setNoticationApiRootUrl(notificationapiRoot) {
|
|
68
|
+
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @return {?}
|
|
72
|
+
*/
|
|
73
|
+
getNoticationApiRootUrl() {
|
|
74
|
+
return this.NOTIFICATION_API_ROOT;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @param {?} cardPaymentReturnUrl
|
|
78
|
+
* @return {?}
|
|
79
|
+
*/
|
|
80
|
+
setCardPaymentReturnUrl(cardPaymentReturnUrl) {
|
|
81
|
+
this.CARDPAYMENTRETURNURL = cardPaymentReturnUrl;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @return {?}
|
|
85
|
+
*/
|
|
86
|
+
getCardPaymentReturnUrl() {
|
|
87
|
+
return this.CARDPAYMENTRETURNURL;
|
|
88
|
+
}
|
|
64
89
|
}
|
|
65
90
|
PaymentLibService.decorators = [
|
|
66
91
|
{ type: Injectable, args: [{
|
|
@@ -75,19 +100,304 @@ PaymentLibService.ctorParameters = () => [];
|
|
|
75
100
|
* @fileoverview added by tsickle
|
|
76
101
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
77
102
|
*/
|
|
78
|
-
|
|
103
|
+
class OrderslistService {
|
|
104
|
+
constructor() {
|
|
105
|
+
this.ordersList = new BehaviorSubject(null);
|
|
106
|
+
this.refundView = new BehaviorSubject(null);
|
|
107
|
+
this.caseType = new BehaviorSubject("");
|
|
108
|
+
this.getcaseType = this.caseType.asObservable();
|
|
109
|
+
this.feeExists = new BehaviorSubject(null);
|
|
110
|
+
this.getFeeExist = this.feeExists.asObservable();
|
|
111
|
+
this.ccdCaseNumber = new BehaviorSubject("");
|
|
112
|
+
this.getCCDCaseNumberforRefund = this.ccdCaseNumber.asObservable();
|
|
113
|
+
this.isFromServiceRequestPage = new BehaviorSubject(null);
|
|
114
|
+
this.getisFromServiceRequestPage = this.isFromServiceRequestPage.asObservable();
|
|
115
|
+
this.OrderRefId = new BehaviorSubject("");
|
|
116
|
+
this.getOrderRefId = this.OrderRefId.asObservable();
|
|
117
|
+
this.navigationPage = new BehaviorSubject("");
|
|
118
|
+
this.getnavigationPage = this.navigationPage.asObservable();
|
|
119
|
+
this.orderRef = new BehaviorSubject("");
|
|
120
|
+
this.getorderRef = this.orderRef.asObservable();
|
|
121
|
+
this.orderCCDEvent = new BehaviorSubject("");
|
|
122
|
+
this.getorderCCDEvent = this.caseType.asObservable();
|
|
123
|
+
this.orderCreated = new BehaviorSubject(null);
|
|
124
|
+
this.getorderCreated = this.orderCreated.asObservable();
|
|
125
|
+
this.orderParty = new BehaviorSubject("");
|
|
126
|
+
this.getorderParty = this.orderParty.asObservable();
|
|
127
|
+
this.orderRemissionTotal = new BehaviorSubject(null);
|
|
128
|
+
this.getorderRemissionTotal = this.orderRemissionTotal.asObservable();
|
|
129
|
+
this.orderFeesTotal = new BehaviorSubject(null);
|
|
130
|
+
this.getorderFeesTotal = this.orderFeesTotal.asObservable();
|
|
131
|
+
this.orderTotalPayments = new BehaviorSubject(null);
|
|
132
|
+
this.getorderTotalPayments = this.orderTotalPayments.asObservable();
|
|
133
|
+
this.rolesList = new BehaviorSubject(null);
|
|
134
|
+
this.orderDetail = new BehaviorSubject(null);
|
|
135
|
+
this.paymentPageView = new BehaviorSubject(null);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @param {?} orderLevelFees
|
|
139
|
+
* @return {?}
|
|
140
|
+
*/
|
|
141
|
+
setOrdersList(orderLevelFees) {
|
|
142
|
+
this.ordersList.next(Object.assign([], orderLevelFees));
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @return {?}
|
|
146
|
+
*/
|
|
147
|
+
getOrdersList() {
|
|
148
|
+
return this.ordersList;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @param {?} refundList
|
|
152
|
+
* @return {?}
|
|
153
|
+
*/
|
|
154
|
+
setRefundView(refundList) {
|
|
155
|
+
this.refundView.next(Object.assign([], refundList));
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @return {?}
|
|
159
|
+
*/
|
|
160
|
+
getRefundView() {
|
|
161
|
+
return this.refundView;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @param {?} caseType
|
|
165
|
+
* @return {?}
|
|
166
|
+
*/
|
|
167
|
+
setCaseType(caseType) {
|
|
168
|
+
this.caseType.next(caseType);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @return {?}
|
|
172
|
+
*/
|
|
173
|
+
getCaseType() {
|
|
174
|
+
return this.caseType;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @param {?} ccdCaseNumber
|
|
178
|
+
* @return {?}
|
|
179
|
+
*/
|
|
180
|
+
setCCDCaseNumber(ccdCaseNumber) {
|
|
181
|
+
this.ccdCaseNumber.next(ccdCaseNumber);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @return {?}
|
|
185
|
+
*/
|
|
186
|
+
getCCDCaseNumber() {
|
|
187
|
+
return this.ccdCaseNumber;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @param {?} feeExists
|
|
191
|
+
* @return {?}
|
|
192
|
+
*/
|
|
193
|
+
setFeeExists(feeExists) {
|
|
194
|
+
this.feeExists.next(feeExists);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @return {?}
|
|
198
|
+
*/
|
|
199
|
+
getFeeExists() {
|
|
200
|
+
return this.feeExists;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @param {?} isFromServiceRequestPage
|
|
204
|
+
* @return {?}
|
|
205
|
+
*/
|
|
206
|
+
setisFromServiceRequestPage(isFromServiceRequestPage) {
|
|
207
|
+
this.isFromServiceRequestPage.next(isFromServiceRequestPage);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @return {?}
|
|
211
|
+
*/
|
|
212
|
+
getisFromServiceRequestPages() {
|
|
213
|
+
return this.isFromServiceRequestPage;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @param {?} OrderRefId
|
|
217
|
+
* @return {?}
|
|
218
|
+
*/
|
|
219
|
+
setOrderRefId(OrderRefId) {
|
|
220
|
+
this.OrderRefId.next(OrderRefId);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @return {?}
|
|
224
|
+
*/
|
|
225
|
+
getSelectedOrderRefId() {
|
|
226
|
+
return this.OrderRefId;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @param {?} navigationPage
|
|
230
|
+
* @return {?}
|
|
231
|
+
*/
|
|
232
|
+
setnavigationPage(navigationPage) {
|
|
233
|
+
this.navigationPage.next(navigationPage);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @return {?}
|
|
237
|
+
*/
|
|
238
|
+
getnavigationPageValue() {
|
|
239
|
+
return this.navigationPage;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @param {?} paymentpageList
|
|
243
|
+
* @return {?}
|
|
244
|
+
*/
|
|
245
|
+
setpaymentPageView(paymentpageList) {
|
|
246
|
+
this.paymentPageView.next(Object.assign([], paymentpageList));
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* @return {?}
|
|
250
|
+
*/
|
|
251
|
+
getpaymentPageView() {
|
|
252
|
+
return this.paymentPageView;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @param {?} rolesList
|
|
256
|
+
* @return {?}
|
|
257
|
+
*/
|
|
258
|
+
setUserRolesList(rolesList) {
|
|
259
|
+
this.rolesList.next(Object.assign([], rolesList));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @return {?}
|
|
263
|
+
*/
|
|
264
|
+
getUserRolesList() {
|
|
265
|
+
return this.rolesList;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @param {?} orderDetail
|
|
269
|
+
* @return {?}
|
|
270
|
+
*/
|
|
271
|
+
setorderDetail(orderDetail) {
|
|
272
|
+
this.orderDetail.next(Object.assign([], orderDetail));
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @return {?}
|
|
276
|
+
*/
|
|
277
|
+
getorderDetail() {
|
|
278
|
+
return this.orderDetail;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* @param {?} orderRef
|
|
282
|
+
* @return {?}
|
|
283
|
+
*/
|
|
284
|
+
setOrderRef(orderRef) {
|
|
285
|
+
this.orderRef.next(orderRef);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* @return {?}
|
|
289
|
+
*/
|
|
290
|
+
getorderRefs() {
|
|
291
|
+
return this.orderRef;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @param {?} orderCCDEvent
|
|
295
|
+
* @return {?}
|
|
296
|
+
*/
|
|
297
|
+
setorderCCDEvent(orderCCDEvent) {
|
|
298
|
+
this.orderCCDEvent.next(orderCCDEvent);
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* @return {?}
|
|
302
|
+
*/
|
|
303
|
+
getorderCCDEvents() {
|
|
304
|
+
return this.orderCCDEvent;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @param {?} orderCreated
|
|
308
|
+
* @return {?}
|
|
309
|
+
*/
|
|
310
|
+
setorderCreated(orderCreated) {
|
|
311
|
+
this.orderCreated.next(orderCreated);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* @return {?}
|
|
315
|
+
*/
|
|
316
|
+
getorderCreateds() {
|
|
317
|
+
return this.orderCreated;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @param {?} orderParty
|
|
321
|
+
* @return {?}
|
|
322
|
+
*/
|
|
323
|
+
setorderParty(orderParty) {
|
|
324
|
+
this.orderParty.next(orderParty);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @return {?}
|
|
328
|
+
*/
|
|
329
|
+
getorderPartys() {
|
|
330
|
+
return this.orderParty;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @param {?} orderRemissionTotal
|
|
334
|
+
* @return {?}
|
|
335
|
+
*/
|
|
336
|
+
setorderRemissionTotal(orderRemissionTotal) {
|
|
337
|
+
this.orderRemissionTotal.next(orderRemissionTotal);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @return {?}
|
|
341
|
+
*/
|
|
342
|
+
getorderRemissionTotals() {
|
|
343
|
+
return this.orderRemissionTotal;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* @param {?} orderFeesTotal
|
|
347
|
+
* @return {?}
|
|
348
|
+
*/
|
|
349
|
+
setorderFeesTotal(orderFeesTotal) {
|
|
350
|
+
this.orderFeesTotal.next(orderFeesTotal);
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @return {?}
|
|
354
|
+
*/
|
|
355
|
+
getorderFeesTotals() {
|
|
356
|
+
return this.orderFeesTotal;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* @param {?} orderTotalPayments
|
|
360
|
+
* @return {?}
|
|
361
|
+
*/
|
|
362
|
+
setorderTotalPayments(orderTotalPayments) {
|
|
363
|
+
this.orderTotalPayments.next(orderTotalPayments);
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @return {?}
|
|
367
|
+
*/
|
|
368
|
+
getoorderTotalPaymentss() {
|
|
369
|
+
return this.orderTotalPayments;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
OrderslistService.decorators = [
|
|
373
|
+
{ type: Injectable, args: [{
|
|
374
|
+
providedIn: 'root'
|
|
375
|
+
},] }
|
|
376
|
+
];
|
|
377
|
+
/** @nocollapse */
|
|
378
|
+
OrderslistService.ctorParameters = () => [];
|
|
379
|
+
/** @nocollapse */ OrderslistService.ngInjectableDef = defineInjectable({ factory: function OrderslistService_Factory() { return new OrderslistService(); }, token: OrderslistService, providedIn: "root" });
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @fileoverview added by tsickle
|
|
383
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
384
|
+
*/
|
|
79
385
|
class PaymentLibComponent {
|
|
80
|
-
// pbaPayOrderRef: IPayment;
|
|
81
|
-
// isFromServiceRequestPage: boolean;
|
|
82
386
|
/**
|
|
83
387
|
* @param {?} paymentLibService
|
|
84
388
|
* @param {?} cd
|
|
389
|
+
* @param {?} OrderslistService
|
|
85
390
|
*/
|
|
86
|
-
constructor(paymentLibService, cd) {
|
|
391
|
+
constructor(paymentLibService, cd, OrderslistService$$1) {
|
|
87
392
|
this.paymentLibService = paymentLibService;
|
|
88
393
|
this.cd = cd;
|
|
394
|
+
this.OrderslistService = OrderslistService$$1;
|
|
89
395
|
this.unProcessedPaymentServiceId = null;
|
|
90
396
|
this.unProcessedPayment = null;
|
|
397
|
+
this.orderFeesTotal = 0.00;
|
|
398
|
+
this.orderRemissionTotal = 0.00;
|
|
399
|
+
this.orderTotalPayments = 0.00;
|
|
400
|
+
this.orderPendingPayments = 0.00;
|
|
91
401
|
}
|
|
92
402
|
/**
|
|
93
403
|
* @return {?}
|
|
@@ -102,6 +412,11 @@ class PaymentLibComponent {
|
|
|
102
412
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
103
413
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
104
414
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
415
|
+
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
416
|
+
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
417
|
+
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
418
|
+
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
419
|
+
}
|
|
105
420
|
if (this.PAYMENT_GROUP_REF) {
|
|
106
421
|
this.paymentGroupReference = this.PAYMENT_GROUP_REF;
|
|
107
422
|
}
|
|
@@ -121,6 +436,9 @@ class PaymentLibComponent {
|
|
|
121
436
|
else {
|
|
122
437
|
this.viewName = this.VIEW;
|
|
123
438
|
}
|
|
439
|
+
if (this.isTakePayment) {
|
|
440
|
+
this.TAKEPAYMENT = true;
|
|
441
|
+
}
|
|
124
442
|
}
|
|
125
443
|
}
|
|
126
444
|
PaymentLibComponent.decorators = [
|
|
@@ -139,9 +457,10 @@ PaymentLibComponent.decorators = [
|
|
|
139
457
|
[refundReference]="refundReference"
|
|
140
458
|
[refundlistsource]="refundlistsource"
|
|
141
459
|
></ccpay-process-refund>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
460
|
+
<ccpay-pba-payment *ngIf="viewName === 'pba-payment'"
|
|
461
|
+
[pbaPayOrderRef]="pbaPayOrderRef"
|
|
462
|
+
></ccpay-pba-payment>
|
|
463
|
+
<ccpay-case-transactions [isTakePayment]="isTakePayment" [LOGGEDINUSERROLES]="LOGGEDINUSERROLES" *ngIf="viewName === 'case-transactions'"></ccpay-case-transactions>
|
|
145
464
|
<app-mark-unidentified-payment *ngIf="viewName === 'unidentifiedPage'"
|
|
146
465
|
[caseType]="CASETYPE"></app-mark-unidentified-payment>
|
|
147
466
|
<app-mark-unsolicited-payment *ngIf="viewName === 'unsolicitedPage'"
|
|
@@ -165,12 +484,15 @@ PaymentLibComponent.decorators = [
|
|
|
165
484
|
/** @nocollapse */
|
|
166
485
|
PaymentLibComponent.ctorParameters = () => [
|
|
167
486
|
{ type: PaymentLibService },
|
|
168
|
-
{ type: ChangeDetectorRef }
|
|
487
|
+
{ type: ChangeDetectorRef },
|
|
488
|
+
{ type: OrderslistService }
|
|
169
489
|
];
|
|
170
490
|
PaymentLibComponent.propDecorators = {
|
|
171
491
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
172
492
|
BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
173
493
|
REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
|
|
494
|
+
NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
495
|
+
CARDPAYMENTRETURNURL: [{ type: Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
174
496
|
CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
|
|
175
497
|
EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
|
|
176
498
|
PAYMENT_METHOD: [{ type: Input, args: ['PAYMENT_METHOD',] }],
|
|
@@ -215,20 +537,53 @@ class ErrorHandlerService {
|
|
|
215
537
|
else {
|
|
216
538
|
// The backend returned an unsuccessful response code.
|
|
217
539
|
if (err.status === 404) {
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
540
|
+
if (typeof err.error === 'string' && err.error !== undefined) {
|
|
541
|
+
if (err.error.length > 60) {
|
|
542
|
+
if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500) {
|
|
543
|
+
errorMessage = 'Internal server error';
|
|
544
|
+
}
|
|
545
|
+
else {
|
|
546
|
+
if (err.error.length > 60) {
|
|
547
|
+
errorMessage = JSON.parse(err.error).error;
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
errorMessage = err.error;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
errorMessage = err.error;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
errorMessage = JSON.parse(err.error).error;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
else if (err.status === 500) {
|
|
563
|
+
errorMessage = 'Internal server error';
|
|
564
|
+
}
|
|
565
|
+
else if (err.error.messsage === undefined) {
|
|
226
566
|
if (typeof err.error === 'object') {
|
|
227
567
|
errorMessage = JSON.parse(JSON.stringify(err.error)).error;
|
|
228
568
|
}
|
|
229
569
|
else {
|
|
230
570
|
if (typeof err.error === 'string' && err.error !== undefined) {
|
|
231
|
-
|
|
571
|
+
if (err.error.length > 60) {
|
|
572
|
+
if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500) {
|
|
573
|
+
errorMessage = 'Internal server error';
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
if (err.error.length > 60) {
|
|
577
|
+
errorMessage = JSON.parse(err.error).error;
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
errorMessage = err.error;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
else {
|
|
585
|
+
errorMessage = err.error;
|
|
586
|
+
}
|
|
232
587
|
}
|
|
233
588
|
else {
|
|
234
589
|
errorMessage = JSON.parse(err.error).error;
|
|
@@ -470,11 +825,24 @@ class WebComponentHttpClient {
|
|
|
470
825
|
}
|
|
471
826
|
headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
472
827
|
if (csrfToken === null) {
|
|
473
|
-
|
|
828
|
+
if (document.cookie.split(';').find((/**
|
|
474
829
|
* @param {?} row
|
|
475
830
|
* @return {?}
|
|
476
831
|
*/
|
|
477
|
-
row => row.startsWith('
|
|
832
|
+
row => row.startsWith('XSRF-TOKEN'))) !== undefined) {
|
|
833
|
+
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
834
|
+
* @param {?} row
|
|
835
|
+
* @return {?}
|
|
836
|
+
*/
|
|
837
|
+
row => row.startsWith('XSRF-TOKEN'))).split('=')[1];
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
841
|
+
* @param {?} row
|
|
842
|
+
* @return {?}
|
|
843
|
+
*/
|
|
844
|
+
row => row.startsWith(' XSRF-TOKEN'))).split('=')[1];
|
|
845
|
+
}
|
|
478
846
|
}
|
|
479
847
|
else {
|
|
480
848
|
headers['CSRF-Token'] = csrfToken.content;
|
|
@@ -549,6 +917,40 @@ class PaymentViewService {
|
|
|
549
917
|
})
|
|
550
918
|
.pipe(catchError(this.errorHandlerService.handleError));
|
|
551
919
|
}
|
|
920
|
+
/**
|
|
921
|
+
* @return {?}
|
|
922
|
+
*/
|
|
923
|
+
getPBAaccountDetails() {
|
|
924
|
+
/** @type {?} */
|
|
925
|
+
const url = `${this.paymentLibService.API_ROOT}/pba-accounts`;
|
|
926
|
+
return this.http.get(url, { withCredentials: true }).pipe(catchError(this.errorHandlerService.handleError));
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* @param {?} serviceRef
|
|
930
|
+
* @param {?} body
|
|
931
|
+
* @return {?}
|
|
932
|
+
*/
|
|
933
|
+
postWays2PayCardPayment(serviceRef, body) {
|
|
934
|
+
/** @type {?} */
|
|
935
|
+
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/card-payments`;
|
|
936
|
+
/** @type {?} */
|
|
937
|
+
const rurl = this.paymentLibService.CARDPAYMENTRETURNURL.replace('.prod', '');
|
|
938
|
+
body['return-url'] = `${rurl}/payment`;
|
|
939
|
+
return this.https.post(url, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* @param {?} serviceRef
|
|
943
|
+
* @param {?} body
|
|
944
|
+
* @return {?}
|
|
945
|
+
*/
|
|
946
|
+
postPBAaccountPayment(serviceRef, body) {
|
|
947
|
+
/** @type {?} */
|
|
948
|
+
let randomKey = 'idam-key-' + Math.random().toString().split('.').join('-');
|
|
949
|
+
body['idempotency_key'] = randomKey;
|
|
950
|
+
/** @type {?} */
|
|
951
|
+
const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/pba-payments`;
|
|
952
|
+
return this.https.post(url, body);
|
|
953
|
+
}
|
|
552
954
|
/**
|
|
553
955
|
* @param {?} body
|
|
554
956
|
* @return {?}
|
|
@@ -696,155 +1098,6 @@ PaymentViewService.ctorParameters = () => [
|
|
|
696
1098
|
];
|
|
697
1099
|
/** @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" });
|
|
698
1100
|
|
|
699
|
-
/**
|
|
700
|
-
* @fileoverview added by tsickle
|
|
701
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
702
|
-
*/
|
|
703
|
-
class OrderslistService {
|
|
704
|
-
constructor() {
|
|
705
|
-
this.ordersList = new BehaviorSubject(null);
|
|
706
|
-
this.refundView = new BehaviorSubject(null);
|
|
707
|
-
this.caseType = new BehaviorSubject("");
|
|
708
|
-
this.getcaseType = this.caseType.asObservable();
|
|
709
|
-
this.feeExists = new BehaviorSubject(null);
|
|
710
|
-
this.getFeeExist = this.feeExists.asObservable();
|
|
711
|
-
this.ccdCaseNumber = new BehaviorSubject("");
|
|
712
|
-
this.getCCDCaseNumberforRefund = this.ccdCaseNumber.asObservable();
|
|
713
|
-
this.isFromServiceRequestPage = new BehaviorSubject(null);
|
|
714
|
-
this.getisFromServiceRequestPage = this.isFromServiceRequestPage.asObservable();
|
|
715
|
-
this.OrderRefId = new BehaviorSubject("");
|
|
716
|
-
this.getOrderRefId = this.OrderRefId.asObservable();
|
|
717
|
-
this.navigationPage = new BehaviorSubject("");
|
|
718
|
-
this.getnavigationPage = this.navigationPage.asObservable();
|
|
719
|
-
this.paymentPageView = new BehaviorSubject(null);
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* @param {?} orderLevelFees
|
|
723
|
-
* @return {?}
|
|
724
|
-
*/
|
|
725
|
-
setOrdersList(orderLevelFees) {
|
|
726
|
-
this.ordersList.next(Object.assign([], orderLevelFees));
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* @return {?}
|
|
730
|
-
*/
|
|
731
|
-
getOrdersList() {
|
|
732
|
-
return this.ordersList;
|
|
733
|
-
}
|
|
734
|
-
/**
|
|
735
|
-
* @param {?} refundList
|
|
736
|
-
* @return {?}
|
|
737
|
-
*/
|
|
738
|
-
setRefundView(refundList) {
|
|
739
|
-
this.refundView.next(Object.assign([], refundList));
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
* @return {?}
|
|
743
|
-
*/
|
|
744
|
-
getRefundView() {
|
|
745
|
-
return this.refundView;
|
|
746
|
-
}
|
|
747
|
-
/**
|
|
748
|
-
* @param {?} caseType
|
|
749
|
-
* @return {?}
|
|
750
|
-
*/
|
|
751
|
-
setCaseType(caseType) {
|
|
752
|
-
this.caseType.next(caseType);
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* @return {?}
|
|
756
|
-
*/
|
|
757
|
-
getCaseType() {
|
|
758
|
-
return this.caseType;
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* @param {?} ccdCaseNumber
|
|
762
|
-
* @return {?}
|
|
763
|
-
*/
|
|
764
|
-
setCCDCaseNumber(ccdCaseNumber) {
|
|
765
|
-
this.ccdCaseNumber.next(ccdCaseNumber);
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
* @return {?}
|
|
769
|
-
*/
|
|
770
|
-
getCCDCaseNumber() {
|
|
771
|
-
return this.ccdCaseNumber;
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* @param {?} feeExists
|
|
775
|
-
* @return {?}
|
|
776
|
-
*/
|
|
777
|
-
setFeeExists(feeExists) {
|
|
778
|
-
this.feeExists.next(feeExists);
|
|
779
|
-
}
|
|
780
|
-
/**
|
|
781
|
-
* @return {?}
|
|
782
|
-
*/
|
|
783
|
-
getFeeExists() {
|
|
784
|
-
return this.feeExists;
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* @param {?} isFromServiceRequestPage
|
|
788
|
-
* @return {?}
|
|
789
|
-
*/
|
|
790
|
-
setisFromServiceRequestPage(isFromServiceRequestPage) {
|
|
791
|
-
this.isFromServiceRequestPage.next(isFromServiceRequestPage);
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @return {?}
|
|
795
|
-
*/
|
|
796
|
-
getisFromServiceRequestPages() {
|
|
797
|
-
return this.isFromServiceRequestPage;
|
|
798
|
-
}
|
|
799
|
-
/**
|
|
800
|
-
* @param {?} OrderRefId
|
|
801
|
-
* @return {?}
|
|
802
|
-
*/
|
|
803
|
-
setOrderRefId(OrderRefId) {
|
|
804
|
-
this.OrderRefId.next(OrderRefId);
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* @return {?}
|
|
808
|
-
*/
|
|
809
|
-
getSelectedOrderRefId() {
|
|
810
|
-
return this.OrderRefId;
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* @param {?} navigationPage
|
|
814
|
-
* @return {?}
|
|
815
|
-
*/
|
|
816
|
-
setnavigationPage(navigationPage) {
|
|
817
|
-
this.navigationPage.next(navigationPage);
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* @return {?}
|
|
821
|
-
*/
|
|
822
|
-
getnavigationPageValue() {
|
|
823
|
-
return this.navigationPage;
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* @param {?} paymentpageList
|
|
827
|
-
* @return {?}
|
|
828
|
-
*/
|
|
829
|
-
setpaymentPageView(paymentpageList) {
|
|
830
|
-
this.paymentPageView.next(Object.assign([], paymentpageList));
|
|
831
|
-
}
|
|
832
|
-
/**
|
|
833
|
-
* @return {?}
|
|
834
|
-
*/
|
|
835
|
-
getpaymentPageView() {
|
|
836
|
-
return this.paymentPageView;
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
OrderslistService.decorators = [
|
|
840
|
-
{ type: Injectable, args: [{
|
|
841
|
-
providedIn: 'root'
|
|
842
|
-
},] }
|
|
843
|
-
];
|
|
844
|
-
/** @nocollapse */
|
|
845
|
-
OrderslistService.ctorParameters = () => [];
|
|
846
|
-
/** @nocollapse */ OrderslistService.ngInjectableDef = defineInjectable({ factory: function OrderslistService_Factory() { return new OrderslistService(); }, token: OrderslistService, providedIn: "root" });
|
|
847
|
-
|
|
848
1101
|
/**
|
|
849
1102
|
* @fileoverview added by tsickle
|
|
850
1103
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -943,7 +1196,6 @@ class PaymentViewComponent {
|
|
|
943
1196
|
/** @type {?} */
|
|
944
1197
|
const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
945
1198
|
this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
946
|
-
console.log(this.paymentGroup.payments[0] + '1');
|
|
947
1199
|
}), (/**
|
|
948
1200
|
* @param {?} error
|
|
949
1201
|
* @return {?}
|
|
@@ -968,25 +1220,72 @@ class PaymentViewComponent {
|
|
|
968
1220
|
goToPaymentList() {
|
|
969
1221
|
this.paymentLibComponent.viewName = 'payment-list';
|
|
970
1222
|
}
|
|
1223
|
+
/**
|
|
1224
|
+
* @return {?}
|
|
1225
|
+
*/
|
|
1226
|
+
goToServiceRequestPage() {
|
|
1227
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
1228
|
+
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
1229
|
+
this.paymentLibComponent.SERVICEREQUEST = 'true';
|
|
1230
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
1231
|
+
window.location.reload();
|
|
1232
|
+
}
|
|
971
1233
|
/**
|
|
972
1234
|
* @param {?} event
|
|
973
1235
|
* @return {?}
|
|
974
1236
|
*/
|
|
975
1237
|
goToCaseTransationPage(event) {
|
|
976
1238
|
event.preventDefault();
|
|
977
|
-
this.
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1239
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
1240
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
1241
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1242
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
1243
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
1244
|
+
this.resetOrderData();
|
|
1245
|
+
}
|
|
1246
|
+
else {
|
|
1247
|
+
this.OrderslistService.getorderRefs().subscribe((/**
|
|
1248
|
+
* @param {?} data
|
|
1249
|
+
* @return {?}
|
|
1250
|
+
*/
|
|
1251
|
+
(data) => this.orderRef = data));
|
|
1252
|
+
this.OrderslistService.getorderCCDEvents().subscribe((/**
|
|
1253
|
+
* @param {?} data
|
|
1254
|
+
* @return {?}
|
|
1255
|
+
*/
|
|
1256
|
+
(data) => this.orderCCDEvent = data));
|
|
1257
|
+
this.OrderslistService.getorderCreateds().subscribe((/**
|
|
1258
|
+
* @param {?} data
|
|
1259
|
+
* @return {?}
|
|
1260
|
+
*/
|
|
1261
|
+
(data) => this.orderCreated = data));
|
|
1262
|
+
this.OrderslistService.getorderDetail().subscribe((/**
|
|
1263
|
+
* @param {?} data
|
|
1264
|
+
* @return {?}
|
|
1265
|
+
*/
|
|
1266
|
+
(data) => this.orderDetail = data));
|
|
1267
|
+
this.OrderslistService.getorderPartys().subscribe((/**
|
|
1268
|
+
* @param {?} data
|
|
1269
|
+
* @return {?}
|
|
1270
|
+
*/
|
|
1271
|
+
(data) => this.orderParty = data));
|
|
1272
|
+
this.OrderslistService.getorderRemissionTotals().subscribe((/**
|
|
1273
|
+
* @param {?} data
|
|
1274
|
+
* @return {?}
|
|
1275
|
+
*/
|
|
1276
|
+
(data) => this.orderRemissionTotal = data));
|
|
1277
|
+
this.OrderslistService.getorderFeesTotals().subscribe((/**
|
|
1278
|
+
* @param {?} data
|
|
1279
|
+
* @return {?}
|
|
1280
|
+
*/
|
|
1281
|
+
(data) => this.orderFeesTotal = data));
|
|
1282
|
+
this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
|
|
1283
|
+
* @param {?} data
|
|
1284
|
+
* @return {?}
|
|
1285
|
+
*/
|
|
1286
|
+
(data) => this.orderTotalPayments = data));
|
|
1287
|
+
this.viewStatus = 'order-full-view';
|
|
1288
|
+
}
|
|
990
1289
|
}
|
|
991
1290
|
/**
|
|
992
1291
|
* @param {?} fee
|
|
@@ -1099,6 +1398,9 @@ class PaymentViewComponent {
|
|
|
1099
1398
|
this.paymentGroup = paymentgrp;
|
|
1100
1399
|
this.viewStatus = 'issuerefund';
|
|
1101
1400
|
this.isRefundRemission = true;
|
|
1401
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1402
|
+
this.isFromPaymentDetailPage = true;
|
|
1403
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1102
1404
|
}
|
|
1103
1405
|
}
|
|
1104
1406
|
}
|
|
@@ -1112,7 +1414,6 @@ class PaymentViewComponent {
|
|
|
1112
1414
|
for (const remission of remissions) {
|
|
1113
1415
|
if (remission.fee_code === feeCode) {
|
|
1114
1416
|
return remission;
|
|
1115
|
-
// this.isAddFeeBtnEnabled = true;
|
|
1116
1417
|
}
|
|
1117
1418
|
}
|
|
1118
1419
|
}
|
|
@@ -1167,12 +1468,25 @@ class PaymentViewComponent {
|
|
|
1167
1468
|
return false;
|
|
1168
1469
|
}
|
|
1169
1470
|
}
|
|
1471
|
+
/**
|
|
1472
|
+
* @return {?}
|
|
1473
|
+
*/
|
|
1474
|
+
resetOrderData() {
|
|
1475
|
+
this.OrderslistService.setOrderRef(null);
|
|
1476
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
1477
|
+
this.OrderslistService.setorderCreated(null);
|
|
1478
|
+
this.OrderslistService.setorderDetail(null);
|
|
1479
|
+
this.OrderslistService.setorderParty(null);
|
|
1480
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
1481
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
1482
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
1483
|
+
}
|
|
1170
1484
|
}
|
|
1171
1485
|
PaymentViewComponent.decorators = [
|
|
1172
1486
|
{ type: Component, args: [{
|
|
1173
1487
|
selector: 'ccpay-payment-view',
|
|
1174
|
-
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <!-- <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr> -->\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service reference</td>\n <td>{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td>{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td>{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td>{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td>{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td>{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td>{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n \n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n \n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n \n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n \n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n \n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n \n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n \n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n \n </div>\n \n </main>\n </div> -->\n<!-- </ng-container> --> \n",
|
|
1175
|
-
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}"]
|
|
1488
|
+
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]=\"!paymentGroup?.payments[0]?.refund_enable\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!fee.remission_enable\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!paymentGroup.payments[0].refund_enable\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [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 [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n\n\n\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",
|
|
1489
|
+
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}.text-transform::first-letter{text-transform:capitalize}.govuk-link{cursor:pointer}.mar-17{font-size:19px!important}"]
|
|
1176
1490
|
}] }
|
|
1177
1491
|
];
|
|
1178
1492
|
/** @nocollapse */
|
|
@@ -1192,7 +1506,14 @@ PaymentViewComponent.propDecorators = {
|
|
|
1192
1506
|
orderStatus: [{ type: Input }],
|
|
1193
1507
|
orderTotalPayments: [{ type: Input }],
|
|
1194
1508
|
payment: [{ type: Input }],
|
|
1195
|
-
LOGGEDINUSERROLES: [{ type: Input
|
|
1509
|
+
LOGGEDINUSERROLES: [{ type: Input }],
|
|
1510
|
+
orderParty: [{ type: Input }],
|
|
1511
|
+
orderCreated: [{ type: Input }],
|
|
1512
|
+
orderCCDEvent: [{ type: Input }],
|
|
1513
|
+
orderFeesTotal: [{ type: Input }],
|
|
1514
|
+
orderRemissionTotal: [{ type: Input }],
|
|
1515
|
+
orderDetail: [{ type: Input }],
|
|
1516
|
+
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }]
|
|
1196
1517
|
};
|
|
1197
1518
|
|
|
1198
1519
|
/**
|
|
@@ -1300,6 +1621,15 @@ class RefundsService {
|
|
|
1300
1621
|
postIssueRefund(body) {
|
|
1301
1622
|
return this.https.post(`${this.paymentLibService.REFUNDS_API_ROOT}/refund`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1302
1623
|
}
|
|
1624
|
+
/**
|
|
1625
|
+
* @param {?} body
|
|
1626
|
+
* @param {?} refundRef
|
|
1627
|
+
* @param {?} notificationType
|
|
1628
|
+
* @return {?}
|
|
1629
|
+
*/
|
|
1630
|
+
putResendOrEdit(body, refundRef, notificationType) {
|
|
1631
|
+
return this.https.put(`${this.paymentLibService.REFUNDS_API_ROOT}/resend/notification/${refundRef}?notificationType=${notificationType}`, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
1632
|
+
}
|
|
1303
1633
|
/**
|
|
1304
1634
|
* @param {?} body
|
|
1305
1635
|
* @param {?} refund_reference
|
|
@@ -1329,11 +1659,24 @@ class RefundsService {
|
|
|
1329
1659
|
}
|
|
1330
1660
|
headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
1331
1661
|
if (csrfToken.content === null) {
|
|
1332
|
-
|
|
1662
|
+
if (document.cookie.split(';').find((/**
|
|
1333
1663
|
* @param {?} row
|
|
1334
1664
|
* @return {?}
|
|
1335
1665
|
*/
|
|
1336
|
-
row => row.startsWith('
|
|
1666
|
+
row => row.startsWith('XSRF-TOKEN'))) !== undefined) {
|
|
1667
|
+
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
1668
|
+
* @param {?} row
|
|
1669
|
+
* @return {?}
|
|
1670
|
+
*/
|
|
1671
|
+
row => row.startsWith('XSRF-TOKEN'))).split('=')[1];
|
|
1672
|
+
}
|
|
1673
|
+
else {
|
|
1674
|
+
headers['CSRF-Token'] = document.cookie.split(';').find((/**
|
|
1675
|
+
* @param {?} row
|
|
1676
|
+
* @return {?}
|
|
1677
|
+
*/
|
|
1678
|
+
row => row.startsWith(' XSRF-TOKEN'))).split('=')[1];
|
|
1679
|
+
}
|
|
1337
1680
|
}
|
|
1338
1681
|
else {
|
|
1339
1682
|
headers['CSRF-Token'] = csrfToken.content;
|
|
@@ -1365,15 +1708,21 @@ RefundsService.ctorParameters = () => [
|
|
|
1365
1708
|
class ProcessRefundComponent {
|
|
1366
1709
|
/**
|
|
1367
1710
|
* @param {?} RefundsService
|
|
1711
|
+
* @param {?} paymentViewService
|
|
1368
1712
|
* @param {?} formBuilder
|
|
1369
1713
|
* @param {?} OrderslistService
|
|
1370
1714
|
* @param {?} paymentLibComponent
|
|
1715
|
+
* @param {?} router
|
|
1716
|
+
* @param {?} activeRoute
|
|
1371
1717
|
*/
|
|
1372
|
-
constructor(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent) {
|
|
1718
|
+
constructor(RefundsService$$1, paymentViewService, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
1373
1719
|
this.RefundsService = RefundsService$$1;
|
|
1720
|
+
this.paymentViewService = paymentViewService;
|
|
1374
1721
|
this.formBuilder = formBuilder;
|
|
1375
1722
|
this.OrderslistService = OrderslistService$$1;
|
|
1376
1723
|
this.paymentLibComponent = paymentLibComponent;
|
|
1724
|
+
this.router = router;
|
|
1725
|
+
this.activeRoute = activeRoute;
|
|
1377
1726
|
this.errorMessage = this.getErrorMessage(false, '', '', '');
|
|
1378
1727
|
this.sendmeback = null;
|
|
1379
1728
|
this.refundActionList = [];
|
|
@@ -1391,6 +1740,7 @@ class ProcessRefundComponent {
|
|
|
1391
1740
|
this.isReasonEmpty = false;
|
|
1392
1741
|
this.isReasonInvalid = false;
|
|
1393
1742
|
this.successMsg = null;
|
|
1743
|
+
this.cpoDetails = null;
|
|
1394
1744
|
this.isConfirmButtondisabled = true;
|
|
1395
1745
|
}
|
|
1396
1746
|
/**
|
|
@@ -1427,15 +1777,38 @@ class ProcessRefundComponent {
|
|
|
1427
1777
|
enterReasonField: new FormControl('', Validators.compose([
|
|
1428
1778
|
Validators.required,
|
|
1429
1779
|
Validators.maxLength(30),
|
|
1430
|
-
Validators.pattern('^([a-zA-Z0-9
|
|
1780
|
+
Validators.pattern('^([a-zA-Z0-9.\\s]*)$'),
|
|
1431
1781
|
])),
|
|
1432
1782
|
});
|
|
1783
|
+
this.ccdCaseNumber = this.refundlistsource.ccd_case_number;
|
|
1784
|
+
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
1785
|
+
* @param {?} response
|
|
1786
|
+
* @return {?}
|
|
1787
|
+
*/
|
|
1788
|
+
response => {
|
|
1789
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
1790
|
+
}), (/**
|
|
1791
|
+
* @param {?} error
|
|
1792
|
+
* @return {?}
|
|
1793
|
+
*/
|
|
1794
|
+
(error) => {
|
|
1795
|
+
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
1796
|
+
this.isCPODown = true;
|
|
1797
|
+
}));
|
|
1798
|
+
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
1799
|
+
this.isFromRefundListPage = true;
|
|
1800
|
+
}
|
|
1433
1801
|
}
|
|
1434
1802
|
/**
|
|
1435
1803
|
* @param {?} code
|
|
1436
1804
|
* @return {?}
|
|
1437
1805
|
*/
|
|
1438
1806
|
checkRefundActions(code) {
|
|
1807
|
+
this.refundActionsHasError = false;
|
|
1808
|
+
this.isReasonFieldEmpty = false;
|
|
1809
|
+
this.isReasonEmpty = false;
|
|
1810
|
+
this.isReasonInvalid = false;
|
|
1811
|
+
this.refundRejectReasonHasError = false;
|
|
1439
1812
|
if (code === 'Return to caseworker') {
|
|
1440
1813
|
this.isConfirmButtondisabled = true;
|
|
1441
1814
|
this.isSendMeBackClicked = true;
|
|
@@ -1593,18 +1966,45 @@ class ProcessRefundComponent {
|
|
|
1593
1966
|
*/
|
|
1594
1967
|
(data) => this.navigationpage = data));
|
|
1595
1968
|
if (this.navigationpage === 'casetransactions') {
|
|
1596
|
-
window.location.href
|
|
1969
|
+
// window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1970
|
+
// // this.OrderslistService.setnavigationPage('casetransactions');
|
|
1971
|
+
// // this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1972
|
+
// // this.paymentLibComponent.VIEW ='case-transactions';
|
|
1973
|
+
// // this.paymentLibComponent.viewName = 'case-transactions';
|
|
1974
|
+
// // this.paymentLibComponent.ISBSENABLE = true;
|
|
1975
|
+
// // this.paymentLibComponent.isRefundStatusView = false;
|
|
1976
|
+
this.paymentLibComponent.viewName = 'refundstatuslist';
|
|
1977
|
+
this.paymentLibComponent.isRefundStatusView = true;
|
|
1597
1978
|
}
|
|
1598
1979
|
else {
|
|
1980
|
+
this.paymentLibComponent.viewName = 'refundstatuslist';
|
|
1981
|
+
this.paymentLibComponent.isRefundStatusView = true;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* @return {?}
|
|
1986
|
+
*/
|
|
1987
|
+
loadRefundsHomePage() {
|
|
1988
|
+
if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
|
|
1989
|
+
//window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
1599
1990
|
this.paymentLibComponent.viewName = 'refund-list';
|
|
1600
1991
|
}
|
|
1992
|
+
else {
|
|
1993
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
1994
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1995
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
1996
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
1997
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
1998
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
1999
|
+
}
|
|
1601
2000
|
}
|
|
1602
2001
|
/**
|
|
1603
2002
|
* @return {?}
|
|
1604
2003
|
*/
|
|
1605
2004
|
redirecttoRefundListPage() {
|
|
1606
|
-
if (this.paymentLibComponent.
|
|
1607
|
-
window.location.href
|
|
2005
|
+
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2006
|
+
// window.location.href='/refund-list?takePayment=false&refundlist=true';
|
|
2007
|
+
this.paymentLibComponent.viewName = 'refund-list';
|
|
1608
2008
|
}
|
|
1609
2009
|
else {
|
|
1610
2010
|
this.loadRefundListPage();
|
|
@@ -1657,20 +2057,29 @@ class ProcessRefundComponent {
|
|
|
1657
2057
|
this.isReasonInvalid = vals[7];
|
|
1658
2058
|
}
|
|
1659
2059
|
}
|
|
2060
|
+
/**
|
|
2061
|
+
* @return {?}
|
|
2062
|
+
*/
|
|
2063
|
+
goToCaseReview() {
|
|
2064
|
+
this.router.navigate([`/cases/case-details/${this.ccdCaseNumber}`], { relativeTo: this.activeRoute });
|
|
2065
|
+
}
|
|
1660
2066
|
}
|
|
1661
2067
|
ProcessRefundComponent.decorators = [
|
|
1662
2068
|
{ type: Component, args: [{
|
|
1663
2069
|
selector: 'ccpay-process-refund',
|
|
1664
|
-
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
|
|
1665
|
-
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:
|
|
2070
|
+
template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent to</td>\n <td>{{cpoDetails?.responsibleParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent via</td>\n <td>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlistsource?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlistsource?.contact_details?.address_line}} {{refundlistsource?.contact_details?.city}} {{refundlistsource?.contact_details?.county}} {{refundlistsource?.contact_details?.country}} {{refundlistsource?.contact_details?.postal_code}}\n </div> \n </td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third reason-font\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n <input class=\"govuk-input govuk-!-width-one-third reason-font\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div *ngIf=\"!isFromRefundListPage\" class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundsHomePage()\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n</div>\n</form>\n </div>\n \n\n </main>\n \n <main class=\"govuk-main-wrapper govuk-main-wrapper--l success-page-padding--top25\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSuccesspageEnable}\" id=\"main-content\" role=\"main\" >\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel-refund--confirmation\">\n <h1 class=\"heading-xlarge\">\n {{successMsg}}\n </h1>\n </div>\n <p class=\"govuk-body process-refund-font\">\n <a (click) = \"goToCaseReview()\" class=\"govuk-link pointer\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
|
|
2071
|
+
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{float:left!important;font-size:19px;margin-top:2em!important}.remission{margin-bottom:7em}.process-refund-font{font-size:19px!important}.govuk-radios__conditional--hidden{display:none}.inline-error-message{color:#c11717;font-weight:700;margin-top:10px;border-color:#c11717}.inline-error-class{outline:#c11717 solid 3px;outline-offset:0;border-color:#c11717}.form-group-error{border-left:5px solid #c11717;padding-left:15px}.govuk-panel-refund--confirmation{color:#fff;background:#00703c}.process-refund__panel{display:flex;flex-direction:column;margin-left:25px;margin-top:30px}.button-margin--left25{margin-left:25px}.success-page-padding--top25{padding-top:25px}.margin{margin-top:5em}.marginright{margin-right:1.5em}.govuk-textarea{line-height:2.25}.reason-font{font-size:19px!important}.pointer{cursor:pointer}"]
|
|
1666
2072
|
}] }
|
|
1667
2073
|
];
|
|
1668
2074
|
/** @nocollapse */
|
|
1669
2075
|
ProcessRefundComponent.ctorParameters = () => [
|
|
1670
2076
|
{ type: RefundsService },
|
|
2077
|
+
{ type: PaymentViewService },
|
|
1671
2078
|
{ type: FormBuilder },
|
|
1672
2079
|
{ type: OrderslistService },
|
|
1673
|
-
{ type: PaymentLibComponent }
|
|
2080
|
+
{ type: PaymentLibComponent },
|
|
2081
|
+
{ type: Router },
|
|
2082
|
+
{ type: ActivatedRoute }
|
|
1674
2083
|
];
|
|
1675
2084
|
ProcessRefundComponent.propDecorators = {
|
|
1676
2085
|
refundReference: [{ type: Input }],
|
|
@@ -1689,10 +2098,10 @@ class RefundListComponent {
|
|
|
1689
2098
|
this.refundService = refundService;
|
|
1690
2099
|
this.submittedRefundList = [];
|
|
1691
2100
|
this.rejectedRefundList = [];
|
|
2101
|
+
// approvalStatus = 'Sent for approval';
|
|
2102
|
+
// rejectStatus = 'Update required';
|
|
1692
2103
|
this.approvalStatus = 'Sent for approval';
|
|
1693
2104
|
this.rejectStatus = 'Update required';
|
|
1694
|
-
// approvalStatus = 'sent for approval';
|
|
1695
|
-
// rejectStatus = 'sent back';
|
|
1696
2105
|
this.errorMessage = null;
|
|
1697
2106
|
this.isAuthorized = true;
|
|
1698
2107
|
}
|
|
@@ -1751,7 +2160,7 @@ class RefundListComponent {
|
|
|
1751
2160
|
RefundListComponent.decorators = [
|
|
1752
2161
|
{ type: Component, args: [{
|
|
1753
2162
|
selector: 'ccpay-refund-list',
|
|
1754
|
-
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
|
|
2163
|
+
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",
|
|
1755
2164
|
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%}"]
|
|
1756
2165
|
}] }
|
|
1757
2166
|
];
|
|
@@ -1948,7 +2357,7 @@ class StatusHistoryComponent {
|
|
|
1948
2357
|
StatusHistoryComponent.decorators = [
|
|
1949
2358
|
{ type: Component, args: [{
|
|
1950
2359
|
selector: 'ccpay-payment-statuses',
|
|
1951
|
-
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
|
|
2360
|
+
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",
|
|
1952
2361
|
styles: [""]
|
|
1953
2362
|
}] }
|
|
1954
2363
|
];
|
|
@@ -1961,6 +2370,409 @@ StatusHistoryComponent.propDecorators = {
|
|
|
1961
2370
|
isTakePayment: [{ type: Input }]
|
|
1962
2371
|
};
|
|
1963
2372
|
|
|
2373
|
+
/**
|
|
2374
|
+
* @fileoverview added by tsickle
|
|
2375
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2376
|
+
*/
|
|
2377
|
+
class NotificationService {
|
|
2378
|
+
/**
|
|
2379
|
+
* @param {?} http
|
|
2380
|
+
* @param {?} https
|
|
2381
|
+
* @param {?} errorHandlerService
|
|
2382
|
+
* @param {?} paymentLibService
|
|
2383
|
+
*/
|
|
2384
|
+
constructor(http, https, errorHandlerService, paymentLibService) {
|
|
2385
|
+
this.http = http;
|
|
2386
|
+
this.https = https;
|
|
2387
|
+
this.errorHandlerService = errorHandlerService;
|
|
2388
|
+
this.paymentLibService = paymentLibService;
|
|
2389
|
+
}
|
|
2390
|
+
/**
|
|
2391
|
+
* @param {?} reference
|
|
2392
|
+
* @return {?}
|
|
2393
|
+
*/
|
|
2394
|
+
getRefundNotification(reference) {
|
|
2395
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/notifications/${reference}`, {
|
|
2396
|
+
withCredentials: true
|
|
2397
|
+
})
|
|
2398
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2399
|
+
}
|
|
2400
|
+
/**
|
|
2401
|
+
* @param {?} postcode
|
|
2402
|
+
* @return {?}
|
|
2403
|
+
*/
|
|
2404
|
+
getAddressByPostcode(postcode) {
|
|
2405
|
+
return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/search/places/v1/postcode?postcode=${postcode}`, {
|
|
2406
|
+
withCredentials: true
|
|
2407
|
+
})
|
|
2408
|
+
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
NotificationService.decorators = [
|
|
2412
|
+
{ type: Injectable, args: [{
|
|
2413
|
+
providedIn: 'root'
|
|
2414
|
+
},] }
|
|
2415
|
+
];
|
|
2416
|
+
/** @nocollapse */
|
|
2417
|
+
NotificationService.ctorParameters = () => [
|
|
2418
|
+
{ type: HttpClient },
|
|
2419
|
+
{ type: WebComponentHttpClient },
|
|
2420
|
+
{ type: ErrorHandlerService },
|
|
2421
|
+
{ type: PaymentLibService }
|
|
2422
|
+
];
|
|
2423
|
+
/** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* @fileoverview added by tsickle
|
|
2427
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2428
|
+
*/
|
|
2429
|
+
class ContactDetailsComponent {
|
|
2430
|
+
/**
|
|
2431
|
+
* @param {?} formBuilder
|
|
2432
|
+
* @param {?} notificationService
|
|
2433
|
+
* @param {?} paymentLibComponent
|
|
2434
|
+
*/
|
|
2435
|
+
constructor(formBuilder, notificationService, paymentLibComponent) {
|
|
2436
|
+
this.formBuilder = formBuilder;
|
|
2437
|
+
this.notificationService = notificationService;
|
|
2438
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
2439
|
+
this.assignContactDetails = new EventEmitter();
|
|
2440
|
+
this.assignContactDetailsInFefundsList = new EventEmitter();
|
|
2441
|
+
this.redirectToIssueRefund = new EventEmitter();
|
|
2442
|
+
this.pageTitle = 'Payment status history';
|
|
2443
|
+
this.isEmailSAddressClicked = true;
|
|
2444
|
+
this.isShowPickAddress = false;
|
|
2445
|
+
this.isPostcodeClicked = false;
|
|
2446
|
+
this.isManualAddressClicked = false;
|
|
2447
|
+
this.addressPostcodeList = [];
|
|
2448
|
+
this.isAddressBoxEmpty = false;
|
|
2449
|
+
this.isEmailEmpty = false;
|
|
2450
|
+
this.emailHasError = false;
|
|
2451
|
+
this.isPostcodeEmpty = false;
|
|
2452
|
+
this.postcodeHasError = false;
|
|
2453
|
+
this.isaddressLine1Empty = false;
|
|
2454
|
+
this.addressLine1HasError = false;
|
|
2455
|
+
this.addressLine2HasError = false;
|
|
2456
|
+
this.isTownOrCityEmpty = false;
|
|
2457
|
+
this.townOrCityHasError = false;
|
|
2458
|
+
this.isCountyEmpty = false;
|
|
2459
|
+
this.countyHasError = false;
|
|
2460
|
+
this.isMPostcodeEmpty = false;
|
|
2461
|
+
this.mpostcodeHasError = false;
|
|
2462
|
+
this.isCountryEmpty = false;
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
* @return {?}
|
|
2466
|
+
*/
|
|
2467
|
+
ngOnInit() {
|
|
2468
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2469
|
+
this.emailAddressForm = this.formBuilder.group({
|
|
2470
|
+
email: new FormControl('', Validators.compose([
|
|
2471
|
+
Validators.required,
|
|
2472
|
+
Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
2473
|
+
]))
|
|
2474
|
+
});
|
|
2475
|
+
this.postCodeForm = this.formBuilder.group({
|
|
2476
|
+
postcode: new FormControl('', Validators.compose([
|
|
2477
|
+
Validators.required,
|
|
2478
|
+
Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
|
|
2479
|
+
]))
|
|
2480
|
+
});
|
|
2481
|
+
this.manualAddressForm = this.formBuilder.group({
|
|
2482
|
+
addressl1: new FormControl('', Validators.compose([
|
|
2483
|
+
Validators.required,
|
|
2484
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2485
|
+
])),
|
|
2486
|
+
addressl2: new FormControl('', Validators.compose([
|
|
2487
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2488
|
+
])),
|
|
2489
|
+
townorcity: new FormControl('', Validators.compose([
|
|
2490
|
+
Validators.required,
|
|
2491
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2492
|
+
])),
|
|
2493
|
+
county: new FormControl('', Validators.compose([
|
|
2494
|
+
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
2495
|
+
])),
|
|
2496
|
+
mpostcode: new FormControl('', Validators.compose([
|
|
2497
|
+
Validators.required,
|
|
2498
|
+
Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
|
|
2499
|
+
])),
|
|
2500
|
+
country: new FormControl('', Validators.compose([
|
|
2501
|
+
Validators.required
|
|
2502
|
+
]))
|
|
2503
|
+
});
|
|
2504
|
+
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
2505
|
+
this.setEditDetails();
|
|
2506
|
+
}
|
|
2507
|
+
if (this.isEditOperationInRefundList === undefined) {
|
|
2508
|
+
this.isEditOperationInRefundList = false;
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
/**
|
|
2512
|
+
* @return {?}
|
|
2513
|
+
*/
|
|
2514
|
+
setEditDetails() {
|
|
2515
|
+
if (this.addressObj.notification_type === 'EMAIL') {
|
|
2516
|
+
this.isEmailSAddressClicked = true;
|
|
2517
|
+
this.isPostcodeClicked = false;
|
|
2518
|
+
this.isManualAddressClicked = false;
|
|
2519
|
+
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
2520
|
+
}
|
|
2521
|
+
else if (this.addressObj.notification_type === 'LETTER') {
|
|
2522
|
+
this.isEmailSAddressClicked = false;
|
|
2523
|
+
this.isPostcodeClicked = true;
|
|
2524
|
+
this.isManualAddressClicked = true;
|
|
2525
|
+
this.manualAddressForm.patchValue({
|
|
2526
|
+
addressl1: this.addressObj.contact_details.address_line,
|
|
2527
|
+
townorcity: this.addressObj.contact_details.city,
|
|
2528
|
+
county: this.addressObj.contact_details.county,
|
|
2529
|
+
country: this.addressObj.contact_details.country,
|
|
2530
|
+
mpostcode: this.addressObj.contact_details.postal_code
|
|
2531
|
+
});
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
/**
|
|
2535
|
+
* @param {?} type
|
|
2536
|
+
* @param {?} isLinkedClied
|
|
2537
|
+
* @return {?}
|
|
2538
|
+
*/
|
|
2539
|
+
selectContactOption(type, isLinkedClied) {
|
|
2540
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2541
|
+
if (type === 'Email' && isLinkedClied === 'false') {
|
|
2542
|
+
this.isEmailSAddressClicked = true;
|
|
2543
|
+
this.isPostcodeClicked = false;
|
|
2544
|
+
this.isManualAddressClicked = false;
|
|
2545
|
+
}
|
|
2546
|
+
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
2547
|
+
this.isEmailSAddressClicked = false;
|
|
2548
|
+
this.isPostcodeClicked = true;
|
|
2549
|
+
this.isManualAddressClicked = false;
|
|
2550
|
+
}
|
|
2551
|
+
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
2552
|
+
this.isEmailSAddressClicked = false;
|
|
2553
|
+
this.isPostcodeClicked = true;
|
|
2554
|
+
this.isManualAddressClicked = true;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
/**
|
|
2558
|
+
* @return {?}
|
|
2559
|
+
*/
|
|
2560
|
+
finalFormSubmit() {
|
|
2561
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2562
|
+
if (this.isEmailSAddressClicked) {
|
|
2563
|
+
/** @type {?} */
|
|
2564
|
+
const emailField = this.emailAddressForm.controls.email;
|
|
2565
|
+
if (this.emailAddressForm.valid) {
|
|
2566
|
+
if (!this.isEditOperationInRefundList) {
|
|
2567
|
+
this.assignContactDetails.emit({
|
|
2568
|
+
email: emailField.value,
|
|
2569
|
+
notification_type: 'EMAIL'
|
|
2570
|
+
});
|
|
2571
|
+
}
|
|
2572
|
+
else {
|
|
2573
|
+
this.assignContactDetailsInFefundsList.emit({
|
|
2574
|
+
email: emailField.value,
|
|
2575
|
+
notification_type: 'EMAIL'
|
|
2576
|
+
});
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
else {
|
|
2580
|
+
if (emailField.value == '') {
|
|
2581
|
+
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2582
|
+
}
|
|
2583
|
+
if (emailField.value != '' && emailField.invalid) {
|
|
2584
|
+
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
2589
|
+
this.postcodeValidation('FS');
|
|
2590
|
+
}
|
|
2591
|
+
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
2592
|
+
/** @type {?} */
|
|
2593
|
+
const fieldCtrls = this.manualAddressForm.controls;
|
|
2594
|
+
if (this.manualAddressForm.valid) {
|
|
2595
|
+
if (!this.isEditOperationInRefundList) {
|
|
2596
|
+
this.assignContactDetails.emit({
|
|
2597
|
+
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
2598
|
+
city: fieldCtrls.townorcity.value,
|
|
2599
|
+
county: fieldCtrls.county.value,
|
|
2600
|
+
postal_code: fieldCtrls.mpostcode.value,
|
|
2601
|
+
country: fieldCtrls.country.value,
|
|
2602
|
+
notification_type: 'LETTER'
|
|
2603
|
+
});
|
|
2604
|
+
}
|
|
2605
|
+
else {
|
|
2606
|
+
this.assignContactDetailsInFefundsList.emit({
|
|
2607
|
+
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
2608
|
+
city: fieldCtrls.townorcity.value,
|
|
2609
|
+
county: fieldCtrls.county.value,
|
|
2610
|
+
postal_code: fieldCtrls.mpostcode.value,
|
|
2611
|
+
country: fieldCtrls.country.value,
|
|
2612
|
+
notification_type: 'LETTER'
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
else {
|
|
2617
|
+
if (fieldCtrls.addressl1.value == '') {
|
|
2618
|
+
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
2619
|
+
}
|
|
2620
|
+
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
2621
|
+
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
2622
|
+
}
|
|
2623
|
+
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
2624
|
+
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
2625
|
+
}
|
|
2626
|
+
if (fieldCtrls.townorcity.value == '') {
|
|
2627
|
+
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
2628
|
+
}
|
|
2629
|
+
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
2630
|
+
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
2631
|
+
}
|
|
2632
|
+
if (fieldCtrls.county.value == '') {
|
|
2633
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
2634
|
+
}
|
|
2635
|
+
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
2636
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
2637
|
+
}
|
|
2638
|
+
if (fieldCtrls.mpostcode.value == '') {
|
|
2639
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
2640
|
+
}
|
|
2641
|
+
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
2642
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
2643
|
+
}
|
|
2644
|
+
if (fieldCtrls.country.value == '') {
|
|
2645
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
/**
|
|
2651
|
+
* @param {?} str
|
|
2652
|
+
* @return {?}
|
|
2653
|
+
*/
|
|
2654
|
+
postcodeValidation(str) {
|
|
2655
|
+
/** @type {?} */
|
|
2656
|
+
const postcodeField = this.postCodeForm.controls.postcode;
|
|
2657
|
+
if (this.postCodeForm.valid) {
|
|
2658
|
+
if (str === 'FA') {
|
|
2659
|
+
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe((/**
|
|
2660
|
+
* @param {?} refundsNotification
|
|
2661
|
+
* @return {?}
|
|
2662
|
+
*/
|
|
2663
|
+
refundsNotification => {
|
|
2664
|
+
this.addressPostcodeList = refundsNotification['data']['results'];
|
|
2665
|
+
this.isShowPickAddress = true;
|
|
2666
|
+
})),
|
|
2667
|
+
(/**
|
|
2668
|
+
* @param {?} error
|
|
2669
|
+
* @return {?}
|
|
2670
|
+
*/
|
|
2671
|
+
(error) => {
|
|
2672
|
+
this.isShowPickAddress = false;
|
|
2673
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
2674
|
+
});
|
|
2675
|
+
}
|
|
2676
|
+
else if (str === 'FS') {
|
|
2677
|
+
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
2678
|
+
this.isAddressBoxEmpty = false;
|
|
2679
|
+
/** @type {?} */
|
|
2680
|
+
let addressLine = "";
|
|
2681
|
+
/** @type {?} */
|
|
2682
|
+
let addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
2683
|
+
for (let i = 0; i < addressArray.length - 2; i++) {
|
|
2684
|
+
addressLine += addressArray[i];
|
|
2685
|
+
}
|
|
2686
|
+
this.assignContactDetails.emit({
|
|
2687
|
+
address_line: addressLine,
|
|
2688
|
+
city: this.postcodeAddress.POST_TOWN,
|
|
2689
|
+
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
2690
|
+
postal_code: this.postcodeAddress.POSTCODE,
|
|
2691
|
+
country: 'United Kingdom',
|
|
2692
|
+
notification_type: 'LETTER'
|
|
2693
|
+
});
|
|
2694
|
+
}
|
|
2695
|
+
else {
|
|
2696
|
+
this.isAddressBoxEmpty = true;
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
else {
|
|
2701
|
+
if (postcodeField.value == '') {
|
|
2702
|
+
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2703
|
+
}
|
|
2704
|
+
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
2705
|
+
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
/**
|
|
2710
|
+
* @param {?} event
|
|
2711
|
+
* @return {?}
|
|
2712
|
+
*/
|
|
2713
|
+
redirection(event) {
|
|
2714
|
+
this.redirectToIssueRefund.emit(event);
|
|
2715
|
+
}
|
|
2716
|
+
/**
|
|
2717
|
+
* @param {?} val
|
|
2718
|
+
* @param {?} field
|
|
2719
|
+
* @return {?}
|
|
2720
|
+
*/
|
|
2721
|
+
resetForm(val, field) {
|
|
2722
|
+
if (field === 'email' || field === 'all') {
|
|
2723
|
+
this.isEmailEmpty = val[0];
|
|
2724
|
+
this.emailHasError = val[1];
|
|
2725
|
+
}
|
|
2726
|
+
if (field === 'postcode' || field === 'all') {
|
|
2727
|
+
this.isPostcodeEmpty = val[2];
|
|
2728
|
+
this.postcodeHasError = val[3];
|
|
2729
|
+
}
|
|
2730
|
+
if (field === 'address1' || field === 'all') {
|
|
2731
|
+
this.isaddressLine1Empty = val[4];
|
|
2732
|
+
this.addressLine1HasError = val[5];
|
|
2733
|
+
}
|
|
2734
|
+
if (field === 'address2' || field === 'all') {
|
|
2735
|
+
this.addressLine2HasError = val[6];
|
|
2736
|
+
}
|
|
2737
|
+
if (field === 'town' || field === 'all') {
|
|
2738
|
+
this.isTownOrCityEmpty = val[7];
|
|
2739
|
+
this.townOrCityHasError = val[8];
|
|
2740
|
+
}
|
|
2741
|
+
if (field === 'county' || field === 'all') {
|
|
2742
|
+
this.isCountyEmpty = val[9];
|
|
2743
|
+
this.countyHasError = val[10];
|
|
2744
|
+
}
|
|
2745
|
+
if (field === 'mpostcode' || field === 'all') {
|
|
2746
|
+
this.isMPostcodeEmpty = val[11];
|
|
2747
|
+
this.mpostcodeHasError = val[12];
|
|
2748
|
+
}
|
|
2749
|
+
if (field === 'country' || field === 'all') {
|
|
2750
|
+
this.isCountryEmpty = val[13];
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
ContactDetailsComponent.decorators = [
|
|
2755
|
+
{ type: Component, args: [{
|
|
2756
|
+
selector: 'ccpay-contact-details',
|
|
2757
|
+
template: "<fieldset class=\"govuk-fieldset contact-details--size\">\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n <div class=\"govuk-form-group\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s govuk-font19px\">\n {{ isEditOperation ? 'Edit contact information' : 'Contact information' }}\n </legend>\n <div id=\"contact-hint\" class=\"govuk-hint govuk-font19px\">\n Notifications will be sent via email or post when this refund is issued or rejected. You can only choose one option.\n </div>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact\" name=\"contact\" (click)=\"selectContactOption('Email', 'false')\" type=\"radio\" value=\"email\" [checked]=\"isEmailSAddressClicked\" aria-controls=\"conditional-contact\" aria-expanded=\"true\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact\">\n Email\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-email\" *ngIf=\"isEmailSAddressClicked\">\n <form [formGroup]=\"emailAddressForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label \" for=\"email\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this email address.</span>\n </label>\n\n <div id=\"email-hint\" class=\"govuk-hint\">\n </div>\n <input class=\"govuk-input govuk-font19px\" id=\"email\" name=\"\" type=\"email\" [ngClass]=\"{ 'inline-error-class': isEmailEmpty || emailHasError }\" value=\"{{addressObj?.contact_details?.email}}\" formControlName=\"email\" aria-describedby=\"email-hint\">\n <p class=\"inline-error-message\" *ngIf=\"isEmailEmpty || emailHasError\">\n <span *ngIf=\"isEmailEmpty\">Enter a email address.</span>\n <span *ngIf=\"emailHasError\">Enter a valid email address.</span>\n </p>\n </div>\n </form>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact-2\" name=\"contact\" (click)=\"selectContactOption('Postcode', 'false')\" type=\"radio\" [checked]=\"isPostcodeClicked\" value=\"post\" aria-controls=\"conditional-contact-2\" aria-expanded=\"false\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact-2\">\n Post\n </label>\n </div>\n <div class=\"govuk-radios__conditional govuk-radios__conditional--hidden\" id=\"conditional-contact-postcode\" *ngIf=\"isPostcodeClicked && !isManualAddressClicked\">\n <form [formGroup]=\"postCodeForm\" novalidate>\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Postcode\n </label>\n <div class=\"postcode-align-css\">\n <div class=\"govuk-form-group govuk-margin-right-10px\">\n <input class=\"govuk-input govuk-input--width-10\" id=\"address-postcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isPostcodeEmpty || postcodeHasError }\" formControlName=\"postcode\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isPostcodeEmpty || postcodeHasError\">\n <span *ngIf=\"isPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"postcodeHasError\">Enter a valid postcode.</span>\n </p>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-button--secondary govuk-font19px\" (click)=\"postcodeValidation('FA')\" data-module=\"govuk-button\">\n Find address\n </button>\n </div>\n </div>\n </form>\n <div class=\"govuk-form-group govuk-margin-btm-20px\" *ngIf=\"isShowPickAddress\">\n <label class=\"govuk-label govuk-font19px\" for=\"country\">\n Pick an address\n </label>\n <select class=\"govuk-select govuk-font19px\" [(ngModel)]=\"postcodeAddress\" id=\"postcodeAddress\" [ngClass]=\"{ 'inline-error-class': isAddressBoxEmpty }\" name=\"postcodeAddress\">\n <option *ngFor=\"let address of addressPostcodeList;\" [ngValue]=\"address.DPA\" > {{address.DPA.ADDRESS}}</option>\n </select> \n <p class=\"inline-error-message\" *ngIf=\"isAddressBoxEmpty\">\n <span *ngIf=\"isAddressBoxEmpty\">Please select an address.</span>\n </p>\n </div>\n <details class=\"govuk-details\" data-module=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span class=\"govuk-details__summary-text govuk-font19px\">\n <a href=\"Javascript:void(0);\" (click)=\"selectContactOption('Postcode', 'true')\"> Enter address manually</a>\n </span>\n </summary>\n </details>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-manual\" *ngIf=\"isPostcodeClicked && isManualAddressClicked\">\n <form [formGroup]=\"manualAddressForm\" novalidate>\n\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-line-1\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Building and street <span class=\"govuk-visually-hidden\">line 1 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-1\" name=\"address-line-1\" [ngClass]=\"{ 'inline-error-class': isaddressLine1Empty || addressLine1HasError }\" value=\"{{addressObj?.contact_details?.address_line}}\" formControlName=\"addressl1\" type=\"text\" autocomplete=\"address-line1\">\n <p class=\"inline-error-message\" *ngIf=\"isaddressLine1Empty || addressLine1HasError\">\n <span *ngIf=\"isaddressLine1Empty\">Enter a Building and street.</span>\n <span *ngIf=\"addressLine1HasError\">Enter a valid Building and street.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"address-line-2\">\n <span class=\"govuk-visually-hidden govuk-font19px\">Building and street line 2 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-2\" name=\"address-line-2\" [ngClass]=\"{ 'inline-error-class': addressLine2HasError}\" formControlName=\"addressl2\" type=\"text\" autocomplete=\"address-line2\">\n <p class=\"inline-error-message\" *ngIf=\"addressLine2HasError\">\n <span *ngIf=\"addressLine2HasError\">Enter a valid Building and street line 2 of 2.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-town\">\n Town or city\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-town\" name=\"address-town\" [ngClass]=\"{ 'inline-error-class': isTownOrCityEmpty || townOrCityHasError}\" value=\"{{addressObj?.contact_details?.city}}\" formControlName=\"townorcity\" type=\"text\" autocomplete=\"address-level2\">\n <p class=\"inline-error-message\" *ngIf=\"isTownOrCityEmpty || townOrCityHasError\">\n <span *ngIf=\"isTownOrCityEmpty\">Enter a town or city.</span>\n <span *ngIf=\"townOrCityHasError\">Enter a town or city.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-county\">\n County\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-county\" [ngClass]=\"{ 'inline-error-class': isCountyEmpty || countyHasError}\" value=\"{{addressObj?.contact_details?.county}}\" formControlName=\"county\" name=\"address-county\" type=\"text\">\n <p class=\"inline-error-message\" *ngIf=\"isCountyEmpty || countyHasError\">\n <span *ngIf=\"isCountyEmpty\">Enter a County.</span>\n <span *ngIf=\"countyHasError\">Enter a valid County.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n Postcode\n </label>\n <input class=\"govuk-input govuk-input--width-10 govuk-font19px\" id=\"address-postcode\" formControlName=\"mpostcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isMPostcodeEmpty || mpostcodeHasError}\" value=\"{{addressObj?.contact_details?.postal_code}}\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isMPostcodeEmpty || mpostcodeHasError\">\n <span *ngIf=\"isMPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"mpostcodeHasError\">Enter a valid postcode.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"country\">\n Country\n </label>\n <select class=\"govuk-select govuk-font19px\" id=\"country\" name=\"country\" [ngClass]=\"{'inline-error-class': isCountryEmpty}\" formControlName=\"country\">\n <option value=\"\" selected=\"selected\">Please select</option>\n <option value=\"United Kingdom\" selected=\"{{ addressObj?.contact_details?.country ? 'selected' : '' }}\">United Kingdom</option>\n </select>\n <p class=\"inline-error-message\" *ngIf=\"isCountryEmpty\">\n <span *ngIf=\"isCountryEmpty\">Select a Country.</span>\n </p> \n </div>\n </form>\n </div>\n </div>\n </fieldset>\n </div>\n <!---FORM--->\n </div>\n\n<hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n</fieldset>\n<div class=\"govuk-button-group\">\n<button type=\"submit\" class=\"button govuk-button--secondary govuk-font19px\" (click)=\"redirection($event)\"> Previous </button>\n \n<button type=\"submit\" class=\"button govuk-button govuk-font19px\" (click)=\"finalFormSubmit()\">\n Continue\n</button>\n</div>",
|
|
2758
|
+
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}"]
|
|
2759
|
+
}] }
|
|
2760
|
+
];
|
|
2761
|
+
/** @nocollapse */
|
|
2762
|
+
ContactDetailsComponent.ctorParameters = () => [
|
|
2763
|
+
{ type: FormBuilder },
|
|
2764
|
+
{ type: NotificationService },
|
|
2765
|
+
{ type: PaymentLibComponent }
|
|
2766
|
+
];
|
|
2767
|
+
ContactDetailsComponent.propDecorators = {
|
|
2768
|
+
isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
|
|
2769
|
+
isEditOperationInRefundList: [{ type: Input, args: ['isEditOperationInRefundList',] }],
|
|
2770
|
+
addressObj: [{ type: Input, args: ['addressObj',] }],
|
|
2771
|
+
assignContactDetails: [{ type: Output }],
|
|
2772
|
+
assignContactDetailsInFefundsList: [{ type: Output }],
|
|
2773
|
+
redirectToIssueRefund: [{ type: Output }]
|
|
2774
|
+
};
|
|
2775
|
+
|
|
1964
2776
|
/**
|
|
1965
2777
|
* @fileoverview added by tsickle
|
|
1966
2778
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -2265,12 +3077,12 @@ class CaseTransactionsComponent {
|
|
|
2265
3077
|
this.clAmountDue = 0;
|
|
2266
3078
|
this.isFeeRecordsExist = false;
|
|
2267
3079
|
this.isGrpOutstandingAmtPositive = false;
|
|
2268
|
-
this.lsCcdNumber = get('ccdNumber');
|
|
2269
3080
|
//Order changes
|
|
2270
3081
|
this.orderDetail = [];
|
|
2271
3082
|
this.isAddRemissionEnable = false;
|
|
2272
3083
|
this.orderRemissionDetails = [];
|
|
2273
3084
|
this.orderLevelFees = [];
|
|
3085
|
+
this.ispaymentGroupApisuccess = false;
|
|
2274
3086
|
this.cpoDetails = null;
|
|
2275
3087
|
this.orderFeesTotal = 0.00;
|
|
2276
3088
|
this.orderRemissionTotal = 0.00;
|
|
@@ -2281,6 +3093,8 @@ class CaseTransactionsComponent {
|
|
|
2281
3093
|
this.isAddRemissionBtnEnabled = false;
|
|
2282
3094
|
this.isRefundRemissionBtnEnable = false;
|
|
2283
3095
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
3096
|
+
this.isEligible4PBAPayment = ['pui-finance-manager', 'pui-user-manager', 'pui-organisation-manager', 'pui-case-manager'];
|
|
3097
|
+
this.currentDate = new Date();
|
|
2284
3098
|
this.check4AllowedRoles2AccessRefund = (/**
|
|
2285
3099
|
* @return {?}
|
|
2286
3100
|
*/
|
|
@@ -2291,6 +3105,16 @@ class CaseTransactionsComponent {
|
|
|
2291
3105
|
*/
|
|
2292
3106
|
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
2293
3107
|
});
|
|
3108
|
+
this.check4AllowedRoles2AccessPBApayment = (/**
|
|
3109
|
+
* @return {?}
|
|
3110
|
+
*/
|
|
3111
|
+
() => {
|
|
3112
|
+
return this.isEligible4PBAPayment.some((/**
|
|
3113
|
+
* @param {?} role
|
|
3114
|
+
* @return {?}
|
|
3115
|
+
*/
|
|
3116
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
3117
|
+
});
|
|
2294
3118
|
this.allowFurtherAccessAfter4Days = (/**
|
|
2295
3119
|
* @param {?} payment
|
|
2296
3120
|
* @return {?}
|
|
@@ -2316,6 +3140,13 @@ class CaseTransactionsComponent {
|
|
|
2316
3140
|
*/
|
|
2317
3141
|
(data) => this.paymentView = data));
|
|
2318
3142
|
}
|
|
3143
|
+
if ((this.LOGGEDINUSERROLES === undefined || this.LOGGEDINUSERROLES.length === 0) && this.OrderslistService.getUserRolesList() !== null) {
|
|
3144
|
+
this.OrderslistService.getUserRolesList().subscribe((/**
|
|
3145
|
+
* @param {?} data
|
|
3146
|
+
* @return {?}
|
|
3147
|
+
*/
|
|
3148
|
+
(data) => this.LOGGEDINUSERROLES = data));
|
|
3149
|
+
}
|
|
2319
3150
|
if (this.OrderslistService.getnavigationPageValue() !== null) {
|
|
2320
3151
|
this.OrderslistService.getnavigationPageValue().subscribe((/**
|
|
2321
3152
|
* @param {?} data
|
|
@@ -2334,12 +3165,12 @@ class CaseTransactionsComponent {
|
|
|
2334
3165
|
}
|
|
2335
3166
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
2336
3167
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
2337
|
-
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST;
|
|
2338
|
-
if (this.paymentLibComponent.SERVICEREQUEST === 'true') {
|
|
2339
|
-
this.
|
|
3168
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
|
|
3169
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3170
|
+
this.serviceRequestValue = 'true';
|
|
2340
3171
|
}
|
|
2341
3172
|
else {
|
|
2342
|
-
this.
|
|
3173
|
+
this.serviceRequestValue = 'false';
|
|
2343
3174
|
}
|
|
2344
3175
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
2345
3176
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -2349,9 +3180,9 @@ class CaseTransactionsComponent {
|
|
|
2349
3180
|
this.isOldPcipalOff = this.paymentLibComponent.ISOLDPCIPALOFF;
|
|
2350
3181
|
this.isStrategicFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
2351
3182
|
if (!this.isTurnOff) {
|
|
2352
|
-
if (this.lsCcdNumber !== this.ccdCaseNumber) {
|
|
2353
|
-
|
|
2354
|
-
}
|
|
3183
|
+
// if (this.lsCcdNumber !== this.ccdCaseNumber) {
|
|
3184
|
+
// this.router.navigateByUrl(`/ccd-search?takePayment=true`);
|
|
3185
|
+
// }
|
|
2355
3186
|
this.caseTransactionsService.getPaymentGroups(this.ccdCaseNumber).subscribe((/**
|
|
2356
3187
|
* @param {?} paymentGroups
|
|
2357
3188
|
* @return {?}
|
|
@@ -2369,28 +3200,29 @@ class CaseTransactionsComponent {
|
|
|
2369
3200
|
*/
|
|
2370
3201
|
(data) => this.orderRef = data));
|
|
2371
3202
|
this.goToOrderViewDetailSection(this.orderRef);
|
|
2372
|
-
// this.viewStatus = 'order-full-view';
|
|
2373
3203
|
}
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
3204
|
+
else {
|
|
3205
|
+
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
3206
|
+
* @param {?} response
|
|
3207
|
+
* @return {?}
|
|
3208
|
+
*/
|
|
3209
|
+
response => {
|
|
3210
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
3211
|
+
}), (/**
|
|
3212
|
+
* @param {?} error
|
|
3213
|
+
* @return {?}
|
|
3214
|
+
*/
|
|
3215
|
+
(error) => {
|
|
3216
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
3217
|
+
this.isCPODown = true;
|
|
3218
|
+
}));
|
|
3219
|
+
}
|
|
2388
3220
|
}), (/**
|
|
2389
3221
|
* @param {?} error
|
|
2390
3222
|
* @return {?}
|
|
2391
3223
|
*/
|
|
2392
3224
|
(error) => {
|
|
2393
|
-
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")
|
|
3225
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
2394
3226
|
this.isAnyFeeGroupAvilable = false;
|
|
2395
3227
|
this.setDefaults();
|
|
2396
3228
|
}));
|
|
@@ -2411,13 +3243,13 @@ class CaseTransactionsComponent {
|
|
|
2411
3243
|
* @return {?}
|
|
2412
3244
|
*/
|
|
2413
3245
|
response => {
|
|
2414
|
-
this.cpoDetails = JSON.parse(response).
|
|
3246
|
+
this.cpoDetails = JSON.parse(response).content[0];
|
|
2415
3247
|
}), (/**
|
|
2416
3248
|
* @param {?} error
|
|
2417
3249
|
* @return {?}
|
|
2418
3250
|
*/
|
|
2419
3251
|
(error) => {
|
|
2420
|
-
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")
|
|
3252
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
2421
3253
|
this.setDefaults();
|
|
2422
3254
|
this.isCPODown = true;
|
|
2423
3255
|
}));
|
|
@@ -2426,7 +3258,7 @@ class CaseTransactionsComponent {
|
|
|
2426
3258
|
* @return {?}
|
|
2427
3259
|
*/
|
|
2428
3260
|
(error) => {
|
|
2429
|
-
this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")
|
|
3261
|
+
this.errorMessage = (/** @type {?} */ (error)) ? error.replace(/"/g, "") : "";
|
|
2430
3262
|
this.isAnyFeeGroupAvilable = false;
|
|
2431
3263
|
this.setDefaults();
|
|
2432
3264
|
}));
|
|
@@ -2564,17 +3396,13 @@ class CaseTransactionsComponent {
|
|
|
2564
3396
|
}
|
|
2565
3397
|
}));
|
|
2566
3398
|
}
|
|
2567
|
-
this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
2568
|
-
if (
|
|
2569
|
-
this.orderStatus =
|
|
3399
|
+
// this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3400
|
+
if (paymentGroup.service_request_status === 'Paid') {
|
|
3401
|
+
this.orderStatus = paymentGroup.service_request_status;
|
|
2570
3402
|
this.orderAddBtnEnable = false;
|
|
2571
3403
|
}
|
|
2572
|
-
else if (
|
|
2573
|
-
this.orderStatus =
|
|
2574
|
-
this.orderAddBtnEnable = true;
|
|
2575
|
-
}
|
|
2576
|
-
else {
|
|
2577
|
-
this.orderStatus = 'Not paid';
|
|
3404
|
+
else if (paymentGroup.service_request_status === 'Partially paid' || paymentGroup.service_request_status === 'Not paid') {
|
|
3405
|
+
this.orderStatus = paymentGroup.service_request_status;
|
|
2578
3406
|
this.orderAddBtnEnable = true;
|
|
2579
3407
|
}
|
|
2580
3408
|
//this.orderLevelFees.push({orderRefId:paymentGroup['payment_group_reference'],orderTotalFees: this.orderFeesTotal,orderStatus: this.orderStatus,orderParty:'Santosh', orderCCDEvent:'Case Creation',orderCreated: new Date(), orderAddBtnEnable: this.orderAddBtnEnable}); this.cpoDetails['createdTimestamp']
|
|
@@ -2658,18 +3486,17 @@ class CaseTransactionsComponent {
|
|
|
2658
3486
|
}));
|
|
2659
3487
|
}
|
|
2660
3488
|
}
|
|
3489
|
+
this.orderStatus = orderDetail.service_request_status;
|
|
2661
3490
|
}));
|
|
2662
|
-
this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3491
|
+
//this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
2663
3492
|
// this.orderRef = orderReferenceObj.orderRefId;
|
|
2664
|
-
if (this.orderPendingPayments <= 0.00) {
|
|
2665
|
-
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
this.orderStatus = 'Not paid';
|
|
2672
|
-
}
|
|
3493
|
+
// if (this.orderPendingPayments <= 0.00) {
|
|
3494
|
+
// this.orderStatus = 'Paid';
|
|
3495
|
+
// } else if (this.orderFeesTotal > 0 && (this.orderTotalPayments > 0 || this.orderRemissionTotal > 0) && (this.orderTotalPayments < this.orderPendingPayments)) {
|
|
3496
|
+
// this.orderStatus = 'Partially paid'
|
|
3497
|
+
// } else {
|
|
3498
|
+
// this.orderStatus = 'Not paid'
|
|
3499
|
+
// }
|
|
2673
3500
|
if (this.cpoDetails !== null) {
|
|
2674
3501
|
this.orderParty = this.cpoDetails['responsibleParty'];
|
|
2675
3502
|
this.orderCreated = this.cpoDetails['createdTimestamp'];
|
|
@@ -2696,16 +3523,6 @@ class CaseTransactionsComponent {
|
|
|
2696
3523
|
this.paymentLibComponent.viewName = 'fee-summary';
|
|
2697
3524
|
}
|
|
2698
3525
|
}
|
|
2699
|
-
/**
|
|
2700
|
-
* @param {?} event
|
|
2701
|
-
* @return {?}
|
|
2702
|
-
*/
|
|
2703
|
-
goToCaseTransationPage(event) {
|
|
2704
|
-
event.preventDefault();
|
|
2705
|
-
this.isFromServiceRequestPage = false;
|
|
2706
|
-
this.viewStatus = 'main';
|
|
2707
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
2708
|
-
}
|
|
2709
3526
|
/**
|
|
2710
3527
|
* @return {?}
|
|
2711
3528
|
*/
|
|
@@ -2835,20 +3652,22 @@ class CaseTransactionsComponent {
|
|
|
2835
3652
|
fee => {
|
|
2836
3653
|
feesTotal = feesTotal + fee.calculated_amount;
|
|
2837
3654
|
this.isRemissionsMatch = false;
|
|
2838
|
-
paymentGroup.remissions
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
3655
|
+
if (paymentGroup.remissions) {
|
|
3656
|
+
paymentGroup.remissions.forEach((/**
|
|
3657
|
+
* @param {?} rem
|
|
3658
|
+
* @return {?}
|
|
3659
|
+
*/
|
|
3660
|
+
rem => {
|
|
3661
|
+
if (rem.fee_code === fee.code) {
|
|
3662
|
+
this.isRemissionsMatch = true;
|
|
3663
|
+
fee['remissions'] = rem;
|
|
3664
|
+
// if(!fees.find(k => k.code=fee.code))
|
|
3665
|
+
// {
|
|
3666
|
+
fees.push(fee);
|
|
3667
|
+
//}
|
|
3668
|
+
}
|
|
3669
|
+
}));
|
|
3670
|
+
}
|
|
2852
3671
|
if (!this.isRemissionsMatch) {
|
|
2853
3672
|
fees.push(fee);
|
|
2854
3673
|
}
|
|
@@ -3011,7 +3830,7 @@ class CaseTransactionsComponent {
|
|
|
3011
3830
|
* @param {?} error
|
|
3012
3831
|
* @return {?}
|
|
3013
3832
|
*/
|
|
3014
|
-
(error) => this.errorMessage = error.replace(/"/g, "")));
|
|
3833
|
+
(error) => this.errorMessage = error ? error.replace(/"/g, "") : ""));
|
|
3015
3834
|
}
|
|
3016
3835
|
}
|
|
3017
3836
|
/**
|
|
@@ -3057,6 +3876,16 @@ class CaseTransactionsComponent {
|
|
|
3057
3876
|
event.preventDefault();
|
|
3058
3877
|
this.paymentLibComponent.viewName = 'remission';
|
|
3059
3878
|
}
|
|
3879
|
+
/**
|
|
3880
|
+
* @return {?}
|
|
3881
|
+
*/
|
|
3882
|
+
goToServiceRequestPage() {
|
|
3883
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
3884
|
+
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
3885
|
+
this.paymentLibComponent.SERVICEREQUEST = 'true';
|
|
3886
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3887
|
+
window.location.reload();
|
|
3888
|
+
}
|
|
3060
3889
|
/**
|
|
3061
3890
|
* @param {?} event
|
|
3062
3891
|
* @return {?}
|
|
@@ -3183,6 +4012,7 @@ class CaseTransactionsComponent {
|
|
|
3183
4012
|
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
3184
4013
|
this.viewStatus = 'issuerefund';
|
|
3185
4014
|
this.payment = payment;
|
|
4015
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3186
4016
|
this.isRefundRemission = true;
|
|
3187
4017
|
}
|
|
3188
4018
|
}
|
|
@@ -3257,6 +4087,7 @@ class CaseTransactionsComponent {
|
|
|
3257
4087
|
*/
|
|
3258
4088
|
chkIsRefundRemissionBtnEnable() {
|
|
3259
4089
|
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
4090
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3260
4091
|
this.orderDetail.forEach((/**
|
|
3261
4092
|
* @param {?} orderDetail
|
|
3262
4093
|
* @return {?}
|
|
@@ -3282,12 +4113,20 @@ class CaseTransactionsComponent {
|
|
|
3282
4113
|
}
|
|
3283
4114
|
}
|
|
3284
4115
|
}
|
|
4116
|
+
/**
|
|
4117
|
+
* @param {?} orderRef
|
|
4118
|
+
* @return {?}
|
|
4119
|
+
*/
|
|
4120
|
+
loadPBAAccountPage(orderRef) {
|
|
4121
|
+
this.paymentLibComponent.pbaPayOrderRef = orderRef;
|
|
4122
|
+
this.paymentLibComponent.viewName = 'pba-payment';
|
|
4123
|
+
}
|
|
3285
4124
|
}
|
|
3286
4125
|
CaseTransactionsComponent.decorators = [
|
|
3287
4126
|
{ type: Component, args: [{
|
|
3288
4127
|
selector: 'ccpay-case-transactions',
|
|
3289
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n <!-- <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments> -->\n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n <!-- <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Sorry, there is a problem with the service\n </h2>\n <p>Payment requests and payments cannot currently be shown. Try again.</p>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div> -->\n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <!-- <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"8\">No payments recorded</td>\n </tbody> -->\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n \n <div class=\"govuk-grid-row\">\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div class=\"govuk-grid-row\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div>\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\">\n <!-- <div *ngIf=\"errorMessage\">\n <div *ngIf=\"isCPODown && isAnyFeeGroupAvilable\" class=\" error govuk-inset-text govuk-!-margin-top-7\">\n No party information currently available - try again later.\n </div>\n <div *ngIf=\"!isAnyFeeGroupAvilable\" class=\"error\">\n <h3 class=\"govuk-heading-m govuk-!-margin-top-7 govuk-!-margin-bottom-1\">Sorry, there is a problem with the service</h3>\n <p>Payment requests and payments cannot currently be shown. Try again.</p>\n </div>\n </div> -->\n \n <div class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviveRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n <!-- <ng-container *ngIf=\"allPayments?.length === 0\">\n <br/>No payments.\n </ng-container> -->\n </div>\n </div>\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status [ccdCaseNumber]=\"ccdCaseNumber\" ></ccpay-refund-status>\n </div>\n\n \n </div>\n\n \n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div *ngIf=\"takePayment\" class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div> -->\n\n <!-- remissions -->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n </ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n </div>\n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n \n </ng-container>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n\n</main>\n</div>",
|
|
3290
|
-
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%}"]
|
|
4128
|
+
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n</main>\n</div>\n\n\n",
|
|
4129
|
+
styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.govuk-heading-lw{width:70%}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.of-visible{overflow:visible!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}.govuk-padding-btm{padding-bottom:50px}.govuk-margin-btm-20px{margin-bottom:20px}"]
|
|
3291
4130
|
}] }
|
|
3292
4131
|
];
|
|
3293
4132
|
/** @nocollapse */
|
|
@@ -3300,7 +4139,8 @@ CaseTransactionsComponent.ctorParameters = () => [
|
|
|
3300
4139
|
{ type: OrderslistService }
|
|
3301
4140
|
];
|
|
3302
4141
|
CaseTransactionsComponent.propDecorators = {
|
|
3303
|
-
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }]
|
|
4142
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4143
|
+
isTakePayment: [{ type: Input }]
|
|
3304
4144
|
};
|
|
3305
4145
|
|
|
3306
4146
|
/**
|
|
@@ -3376,7 +4216,6 @@ class FeeSummaryComponent {
|
|
|
3376
4216
|
this.isRemissionsExist = false;
|
|
3377
4217
|
this.isRemissionsMatch = false;
|
|
3378
4218
|
}
|
|
3379
|
-
;
|
|
3380
4219
|
/**
|
|
3381
4220
|
* @return {?}
|
|
3382
4221
|
*/
|
|
@@ -5432,10 +6271,12 @@ class PostRefundRetroRemission {
|
|
|
5432
6271
|
/**
|
|
5433
6272
|
* @param {?} payment_reference
|
|
5434
6273
|
* @param {?} refund_reason
|
|
6274
|
+
* @param {?} contactDeatils
|
|
5435
6275
|
*/
|
|
5436
|
-
constructor(payment_reference, refund_reason) {
|
|
6276
|
+
constructor(payment_reference, refund_reason, contactDeatils) {
|
|
5437
6277
|
this.payment_reference = payment_reference;
|
|
5438
6278
|
this.refund_reason = refund_reason;
|
|
6279
|
+
this.contact_details = contactDeatils;
|
|
5439
6280
|
}
|
|
5440
6281
|
}
|
|
5441
6282
|
|
|
@@ -5446,9 +6287,11 @@ class PostRefundRetroRemission {
|
|
|
5446
6287
|
class PostIssueRefundRetroRemission {
|
|
5447
6288
|
/**
|
|
5448
6289
|
* @param {?} remissionReference
|
|
6290
|
+
* @param {?} contactDeatils
|
|
5449
6291
|
*/
|
|
5450
|
-
constructor(remissionReference) {
|
|
6292
|
+
constructor(remissionReference, contactDeatils) {
|
|
5451
6293
|
this.remissionReference = remissionReference;
|
|
6294
|
+
this.contact_details = contactDeatils;
|
|
5452
6295
|
}
|
|
5453
6296
|
}
|
|
5454
6297
|
|
|
@@ -5456,8 +6299,6 @@ class PostIssueRefundRetroRemission {
|
|
|
5456
6299
|
* @fileoverview added by tsickle
|
|
5457
6300
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5458
6301
|
*/
|
|
5459
|
-
/** @type {?} */
|
|
5460
|
-
const BS_ENABLE_FLAG$3 = 'bulk-scan-enabling-fe';
|
|
5461
6302
|
class AddRemissionComponent {
|
|
5462
6303
|
/**
|
|
5463
6304
|
* @param {?} formBuilder
|
|
@@ -5536,12 +6377,6 @@ class AddRemissionComponent {
|
|
|
5536
6377
|
Validators.required,
|
|
5537
6378
|
Validators.pattern(`(${this.pattern1})|(${this.pattern2})`)
|
|
5538
6379
|
])),
|
|
5539
|
-
// remissionCode: new FormControl('', Validators.compose([ [A-Za-z]{2}[0-9]{2} [0-9]{6}
|
|
5540
|
-
// Validators.required,
|
|
5541
|
-
// // 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})$/')
|
|
5542
|
-
// // Validators.pattern('^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$'),
|
|
5543
|
-
// 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}))$/')
|
|
5544
|
-
// ])),
|
|
5545
6380
|
amount: new FormControl('', Validators.compose([
|
|
5546
6381
|
Validators.required,
|
|
5547
6382
|
Validators.pattern('^[0-9]+(\.[0-9]{1,2})?$')
|
|
@@ -5602,7 +6437,6 @@ class AddRemissionComponent {
|
|
|
5602
6437
|
const isRemissionLessThanFee = this.fee.calculated_amount > remissionctrls.amount.value;
|
|
5603
6438
|
this.remissionForm.controls['refundReason'].setErrors(null);
|
|
5604
6439
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
5605
|
-
//this.remissionForm.controls['amount'].setErrors(null);
|
|
5606
6440
|
if (this.remissionForm.dirty && this.remissionForm.valid && isRemissionLessThanFee) {
|
|
5607
6441
|
this.viewStatus = 'confirmation';
|
|
5608
6442
|
}
|
|
@@ -5806,6 +6640,15 @@ class AddRemissionComponent {
|
|
|
5806
6640
|
//}
|
|
5807
6641
|
}
|
|
5808
6642
|
}
|
|
6643
|
+
/**
|
|
6644
|
+
* @return {?}
|
|
6645
|
+
*/
|
|
6646
|
+
gotoAmountRetroRemission() {
|
|
6647
|
+
this.viewStatus = 'processretroremissonpage';
|
|
6648
|
+
this.viewCompStatus = '';
|
|
6649
|
+
this.isRefundRemission = true;
|
|
6650
|
+
this.errorMessage = '';
|
|
6651
|
+
}
|
|
5809
6652
|
/**
|
|
5810
6653
|
* @return {?}
|
|
5811
6654
|
*/
|
|
@@ -5815,6 +6658,19 @@ class AddRemissionComponent {
|
|
|
5815
6658
|
this.isRefundRemission = true;
|
|
5816
6659
|
this.errorMessage = '';
|
|
5817
6660
|
}
|
|
6661
|
+
/**
|
|
6662
|
+
* @param {?=} note
|
|
6663
|
+
* @return {?}
|
|
6664
|
+
*/
|
|
6665
|
+
gotoProcessRetroRemission(note) {
|
|
6666
|
+
if (note) {
|
|
6667
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
6668
|
+
}
|
|
6669
|
+
this.viewStatus = 'remissionAddressPage';
|
|
6670
|
+
this.viewCompStatus = '';
|
|
6671
|
+
this.isRefundRemission = true;
|
|
6672
|
+
this.errorMessage = '';
|
|
6673
|
+
}
|
|
5818
6674
|
/**
|
|
5819
6675
|
* @return {?}
|
|
5820
6676
|
*/
|
|
@@ -5859,7 +6715,7 @@ class AddRemissionComponent {
|
|
|
5859
6715
|
this.remissionReference = this.remission.remission_reference;
|
|
5860
6716
|
}
|
|
5861
6717
|
/** @type {?} */
|
|
5862
|
-
const requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
6718
|
+
const requestBody = new PostIssueRefundRetroRemission(this.remissionReference, this.contactDetailsObj);
|
|
5863
6719
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
|
|
5864
6720
|
* @param {?} response
|
|
5865
6721
|
* @return {?}
|
|
@@ -5901,13 +6757,13 @@ class AddRemissionComponent {
|
|
|
5901
6757
|
else if (this.selectedRefundReason.includes('Other') && this.remissionForm.controls['reason'].value !== '') {
|
|
5902
6758
|
this.refundHasError = false;
|
|
5903
6759
|
this.refundReason += '-' + this.remissionForm.controls['reason'].value;
|
|
5904
|
-
this.displayRefundReason = this.remissionForm.controls['reason'].value;
|
|
6760
|
+
this.displayRefundReason = this.selectedRefundReason + '-' + this.remissionForm.controls['reason'].value;
|
|
5905
6761
|
if (this.isFromRefundListPage) {
|
|
5906
|
-
this.refundListReason.emit({ reason: this.
|
|
6762
|
+
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
5907
6763
|
}
|
|
5908
6764
|
else {
|
|
5909
6765
|
this.viewCompStatus = '';
|
|
5910
|
-
this.viewStatus = '
|
|
6766
|
+
this.viewStatus = 'contactDetailsPage';
|
|
5911
6767
|
}
|
|
5912
6768
|
}
|
|
5913
6769
|
else {
|
|
@@ -5918,7 +6774,7 @@ class AddRemissionComponent {
|
|
|
5918
6774
|
}
|
|
5919
6775
|
else {
|
|
5920
6776
|
this.viewCompStatus = '';
|
|
5921
|
-
this.viewStatus = '
|
|
6777
|
+
this.viewStatus = 'contactDetailsPage';
|
|
5922
6778
|
}
|
|
5923
6779
|
}
|
|
5924
6780
|
}
|
|
@@ -5934,6 +6790,20 @@ class AddRemissionComponent {
|
|
|
5934
6790
|
this.refundHasError = false;
|
|
5935
6791
|
this.isReasonEmpty = false;
|
|
5936
6792
|
}
|
|
6793
|
+
/**
|
|
6794
|
+
* @param {?=} note
|
|
6795
|
+
* @return {?}
|
|
6796
|
+
*/
|
|
6797
|
+
gotoContactDetailsPage(note) {
|
|
6798
|
+
if (note) {
|
|
6799
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
6800
|
+
}
|
|
6801
|
+
this.errorMessage = '';
|
|
6802
|
+
this.viewCompStatus = '';
|
|
6803
|
+
this.viewStatus = 'contactDetailsPage';
|
|
6804
|
+
this.isRefundRemission = true;
|
|
6805
|
+
this.errorMessage = false;
|
|
6806
|
+
}
|
|
5937
6807
|
/**
|
|
5938
6808
|
* @return {?}
|
|
5939
6809
|
*/
|
|
@@ -5956,7 +6826,7 @@ class AddRemissionComponent {
|
|
|
5956
6826
|
this.retroRemission = true;
|
|
5957
6827
|
}
|
|
5958
6828
|
/** @type {?} */
|
|
5959
|
-
const requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
6829
|
+
const requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason, this.contactDetailsObj);
|
|
5960
6830
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
5961
6831
|
* @param {?} response
|
|
5962
6832
|
* @return {?}
|
|
@@ -5991,7 +6861,7 @@ class AddRemissionComponent {
|
|
|
5991
6861
|
this.retroRemission = true;
|
|
5992
6862
|
}
|
|
5993
6863
|
/** @type {?} */
|
|
5994
|
-
const requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
6864
|
+
const requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission', this.contactDetailsObj);
|
|
5995
6865
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
5996
6866
|
* @param {?} response
|
|
5997
6867
|
* @return {?}
|
|
@@ -6057,95 +6927,145 @@ class AddRemissionComponent {
|
|
|
6057
6927
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
6058
6928
|
}
|
|
6059
6929
|
}
|
|
6930
|
+
/**
|
|
6931
|
+
* @param {?} obj
|
|
6932
|
+
* @param {?} type
|
|
6933
|
+
* @return {?}
|
|
6934
|
+
*/
|
|
6935
|
+
getContactDetails(obj, type) {
|
|
6936
|
+
this.contactDetailsObj = obj;
|
|
6937
|
+
this.viewCompStatus = '';
|
|
6938
|
+
this.viewStatus = type;
|
|
6939
|
+
}
|
|
6060
6940
|
/**
|
|
6061
6941
|
* @param {?} event
|
|
6062
6942
|
* @return {?}
|
|
6063
6943
|
*/
|
|
6064
6944
|
gotoServiceRequestPage(event) {
|
|
6945
|
+
this.errorMessage = '';
|
|
6065
6946
|
event.preventDefault();
|
|
6066
|
-
if (this.
|
|
6067
|
-
this.
|
|
6068
|
-
this.
|
|
6069
|
-
}
|
|
6070
|
-
if (this.isFromServiceRequestPage) {
|
|
6071
|
-
//this.paymentLibComponent.TAKEPAYMENT = false;
|
|
6072
|
-
this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
6073
|
-
this.viewStatus = 'main';
|
|
6074
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
6075
|
-
this.OrderslistService.setisFromServiceRequestPage(true);
|
|
6076
|
-
this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
6947
|
+
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
6948
|
+
this.viewStatus = 'order-full-view';
|
|
6949
|
+
this.viewCompStatus = '';
|
|
6077
6950
|
}
|
|
6078
|
-
if (this.isFromRefundListPage) {
|
|
6951
|
+
else if (this.isFromRefundListPage) {
|
|
6079
6952
|
this.paymentLibComponent.iscancelClicked = true;
|
|
6080
6953
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
6081
6954
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6082
6955
|
}
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
this.
|
|
6094
|
-
this.
|
|
6095
|
-
|
|
6096
|
-
this.
|
|
6097
|
-
this.
|
|
6098
|
-
this.
|
|
6099
|
-
this.
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
6103
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6104
|
-
// },
|
|
6105
|
-
// err => {
|
|
6106
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
6107
|
-
// }
|
|
6108
|
-
// );
|
|
6109
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
6110
|
-
/** @type {?} */
|
|
6111
|
-
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6112
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6113
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6114
|
-
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6115
|
-
partUrl += `&caseType=${this.caseType}`;
|
|
6116
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6117
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6118
|
-
if (this.isFromPaymentDetailPage) {
|
|
6119
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6120
|
-
}
|
|
6121
|
-
if (!this.paymentLibComponent.TAKEPAYMENT) {
|
|
6122
|
-
this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
6123
|
-
}
|
|
6124
|
-
if (this.paymentLibComponent.SERVICEREQUEST) {
|
|
6125
|
-
/** @type {?} */
|
|
6126
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
6127
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
6128
|
-
* @return {?}
|
|
6129
|
-
*/
|
|
6130
|
-
() => false);
|
|
6131
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6132
|
-
this.router.navigateByUrl(url);
|
|
6133
|
-
}
|
|
6134
|
-
else {
|
|
6135
|
-
/** @type {?} */
|
|
6136
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6137
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
6956
|
+
else {
|
|
6957
|
+
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
6958
|
+
this.paymentLibComponent.paymentGroupReference = this.paymentLibComponent.paymentGroupReference;
|
|
6959
|
+
this.paymentLibComponent.paymentReference = this.payment.reference;
|
|
6960
|
+
this.paymentLibComponent.viewName = 'payment-view';
|
|
6961
|
+
this.OrderslistService.setOrderRef(this.orderRef);
|
|
6962
|
+
this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
|
|
6963
|
+
this.OrderslistService.setorderCreated(this.orderCreated);
|
|
6964
|
+
this.OrderslistService.setorderDetail(this.orderDetail);
|
|
6965
|
+
this.OrderslistService.setorderParty(this.orderParty);
|
|
6966
|
+
this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
|
|
6967
|
+
this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
|
|
6968
|
+
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
6969
|
+
this.viewStatus = 'payment-view';
|
|
6970
|
+
this.sendOrderDetail = this.orderDetail;
|
|
6971
|
+
this.sendOrderRef = this.orderRef;
|
|
6972
|
+
if (this.LOGGEDINUSERROLES === undefined) {
|
|
6973
|
+
this.OrderslistService.getUserRolesList().subscribe((/**
|
|
6974
|
+
* @param {?} data
|
|
6138
6975
|
* @return {?}
|
|
6139
6976
|
*/
|
|
6140
|
-
() =>
|
|
6141
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6142
|
-
this.router.navigateByUrl(url);
|
|
6977
|
+
(data) => this.LOGGEDINUSERROLES = data));
|
|
6143
6978
|
}
|
|
6979
|
+
this.viewCompStatus = '';
|
|
6144
6980
|
}
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6981
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
6982
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
6983
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
6984
|
+
// }
|
|
6985
|
+
// if (this.isFromServiceRequestPage) {
|
|
6986
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
6987
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
6988
|
+
// this.viewStatus = 'main'
|
|
6989
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
6990
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
6991
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
6992
|
+
// }
|
|
6993
|
+
// if ( this.isFromRefundListPage ) {
|
|
6994
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
6995
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
6996
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
6997
|
+
// }
|
|
6998
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
6999
|
+
// if(this.payment) {
|
|
7000
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7001
|
+
// }
|
|
7002
|
+
// if (this.isFromServiceRequestPage) {
|
|
7003
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7004
|
+
// } else {
|
|
7005
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7006
|
+
// }
|
|
7007
|
+
// this.errorMessage = '';
|
|
7008
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7009
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7010
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7011
|
+
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7012
|
+
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7013
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7014
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7015
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7016
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7017
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7018
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7019
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7020
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7021
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7022
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7023
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7024
|
+
// }
|
|
7025
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7026
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7027
|
+
// }
|
|
7028
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7029
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7030
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7031
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7032
|
+
// this.router.navigateByUrl(url);
|
|
7033
|
+
// } else {
|
|
7034
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7035
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7036
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7037
|
+
// this.router.navigateByUrl(url);
|
|
7038
|
+
// }
|
|
7039
|
+
// } else {
|
|
7040
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7041
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7042
|
+
// }
|
|
7043
|
+
}
|
|
7044
|
+
/**
|
|
7045
|
+
* @param {?=} note
|
|
7046
|
+
* @return {?}
|
|
7047
|
+
*/
|
|
7048
|
+
gotoAddressPage(note) {
|
|
7049
|
+
if (note) {
|
|
7050
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
6148
7051
|
}
|
|
7052
|
+
this.errorMessage = '';
|
|
7053
|
+
this.viewCompStatus = 'addrefundforremission';
|
|
7054
|
+
this.viewStatus = '';
|
|
7055
|
+
this.isRefundRemission = true;
|
|
7056
|
+
this.errorMessage = false;
|
|
7057
|
+
}
|
|
7058
|
+
/**
|
|
7059
|
+
* @param {?} event
|
|
7060
|
+
* @return {?}
|
|
7061
|
+
*/
|
|
7062
|
+
gotoRemissionSuccess(event) {
|
|
7063
|
+
event.preventDefault();
|
|
7064
|
+
this.errorMessage = '';
|
|
7065
|
+
this.viewCompStatus = '';
|
|
7066
|
+
this.viewStatus = 'retroremissionconfirmationpage';
|
|
7067
|
+
this.isRefundRemission = true;
|
|
7068
|
+
this.errorMessage = false;
|
|
6149
7069
|
}
|
|
6150
7070
|
/**
|
|
6151
7071
|
* @return {?}
|
|
@@ -6154,20 +7074,12 @@ class AddRemissionComponent {
|
|
|
6154
7074
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
6155
7075
|
this.errorMessage = '';
|
|
6156
7076
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7077
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
6157
7078
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
6158
7079
|
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
6159
7080
|
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
6160
7081
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
6161
|
-
|
|
6162
|
-
// features => {
|
|
6163
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
6164
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6165
|
-
// },
|
|
6166
|
-
// err => {
|
|
6167
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
6168
|
-
// }
|
|
6169
|
-
// );
|
|
6170
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
7082
|
+
this.resetOrderData();
|
|
6171
7083
|
/** @type {?} */
|
|
6172
7084
|
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6173
7085
|
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
@@ -6176,9 +7088,6 @@ class AddRemissionComponent {
|
|
|
6176
7088
|
partUrl += `&caseType=${this.caseType}`;
|
|
6177
7089
|
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6178
7090
|
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6179
|
-
if (this.isFromPaymentDetailPage) {
|
|
6180
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6181
|
-
}
|
|
6182
7091
|
/** @type {?} */
|
|
6183
7092
|
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6184
7093
|
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
@@ -6194,74 +7103,95 @@ class AddRemissionComponent {
|
|
|
6194
7103
|
*/
|
|
6195
7104
|
gotoCasetransationPageCancelBtnClicked(event) {
|
|
6196
7105
|
event.preventDefault();
|
|
6197
|
-
if (this.paymentLibComponent.
|
|
6198
|
-
this.
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
this.paymentLibComponent.
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
* @param {?} feature
|
|
6222
|
-
* @return {?}
|
|
6223
|
-
*/
|
|
6224
|
-
feature => feature.uid === BS_ENABLE_FLAG$3));
|
|
6225
|
-
this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
6226
|
-
}), (/**
|
|
6227
|
-
* @param {?} err
|
|
6228
|
-
* @return {?}
|
|
6229
|
-
*/
|
|
6230
|
-
err => {
|
|
6231
|
-
this.paymentLibComponent.ISBSENABLE = false;
|
|
6232
|
-
}));
|
|
6233
|
-
/** @type {?} */
|
|
6234
|
-
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
6235
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
6236
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6237
|
-
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6238
|
-
partUrl += `&caseType=${this.caseType}`;
|
|
6239
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6240
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6241
|
-
if (this.isFromPaymentDetailPage) {
|
|
6242
|
-
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
6243
|
-
}
|
|
6244
|
-
if (!this.paymentLibComponent.SERVICEREQUEST) {
|
|
6245
|
-
/** @type {?} */
|
|
6246
|
-
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
6247
|
-
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
6248
|
-
* @return {?}
|
|
6249
|
-
*/
|
|
6250
|
-
() => false);
|
|
6251
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
6252
|
-
this.router.navigateByUrl(url);
|
|
7106
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
7107
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7108
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7109
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
7110
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7111
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
7112
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
7113
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7114
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7115
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7116
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7117
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7118
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7119
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7120
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7121
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7122
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7123
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7124
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7125
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7126
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7127
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7128
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7129
|
+
// this.router.navigateByUrl(url);
|
|
6253
7130
|
}
|
|
6254
7131
|
else {
|
|
7132
|
+
if (this.paymentLibComponent.REFUNDLIST) {
|
|
7133
|
+
this.paymentLibComponent.viewName = 'refund-list';
|
|
7134
|
+
return;
|
|
7135
|
+
}
|
|
7136
|
+
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7137
|
+
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7138
|
+
}
|
|
7139
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7140
|
+
this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
|
|
7141
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7142
|
+
this.errorMessage = '';
|
|
7143
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7144
|
+
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7145
|
+
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7146
|
+
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7147
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7148
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
6255
7149
|
/** @type {?} */
|
|
6256
|
-
|
|
6257
|
-
this.
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
this.
|
|
6262
|
-
this.
|
|
7150
|
+
let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7151
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7152
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7153
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7154
|
+
partUrl += `&caseType=${this.caseType}`;
|
|
7155
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7156
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7157
|
+
if (this.isFromPaymentDetailPage) {
|
|
7158
|
+
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
7159
|
+
}
|
|
7160
|
+
if (!this.paymentLibComponent.SERVICEREQUEST) {
|
|
7161
|
+
/** @type {?} */
|
|
7162
|
+
const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7163
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7164
|
+
* @return {?}
|
|
7165
|
+
*/
|
|
7166
|
+
() => false);
|
|
7167
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7168
|
+
this.router.navigateByUrl(url);
|
|
7169
|
+
}
|
|
7170
|
+
else {
|
|
7171
|
+
/** @type {?} */
|
|
7172
|
+
const url = `/payment-history/${this.ccdCaseNumber}?selectedOption=${this.option}${partUrl}`;
|
|
7173
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7174
|
+
* @return {?}
|
|
7175
|
+
*/
|
|
7176
|
+
() => false);
|
|
7177
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
7178
|
+
this.router.navigateByUrl(url);
|
|
7179
|
+
}
|
|
6263
7180
|
}
|
|
6264
7181
|
}
|
|
7182
|
+
/**
|
|
7183
|
+
* @return {?}
|
|
7184
|
+
*/
|
|
7185
|
+
resetOrderData() {
|
|
7186
|
+
this.OrderslistService.setOrderRef(null);
|
|
7187
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
7188
|
+
this.OrderslistService.setorderCreated(null);
|
|
7189
|
+
this.OrderslistService.setorderDetail(null);
|
|
7190
|
+
this.OrderslistService.setorderParty(null);
|
|
7191
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
7192
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
7193
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
7194
|
+
}
|
|
6265
7195
|
/**
|
|
6266
7196
|
* @param {?} currency
|
|
6267
7197
|
* @return {?}
|
|
@@ -6276,8 +7206,8 @@ class AddRemissionComponent {
|
|
|
6276
7206
|
AddRemissionComponent.decorators = [
|
|
6277
7207
|
{ type: Component, args: [{
|
|
6278
7208
|
selector: 'ccpay-add-remission',
|
|
6279
|
-
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a (click)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
6280
|
-
styles: [".add-remission .button{padding:.5em;font-size:19px;font-weight:200;margin:20px 2px}.add-remission td.govuk-table__cell{width:50%}.add-remission .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.add-remission .govuk-label--s,.add-remission .govuk-warning-text__text,.add-remission .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.add-remission .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.add-remission .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.add-remission .govuk-button,.add-remission .govuk-link{margin-right:1em;font-size:19px;font-weight:200}.add-remission .govuk-button-group{padding-top:2em}.add-remission .heading-medium{margin-top:.875em}.add-remission .heading-large{margin-top:.25em}.add-remission .govuk-panel--confirmation{color:#fff;background:#00703c}.add-remission .govuk-panel__title{font-size:5rem}.add-remission .govuk-body,.add-remission .govuk-body-m{font-size:2.1875rem}.add-remission .govuk-radios__item{clear:initial!important;display:inline-block;width:45%!important}.add-remission .govuk-radios__conditional{padding-top:12px!important}.add-remission .radio,.add-remission .right{float:right}.govuk-input{font-size:19px}.govuk-select{font-size:19px;font-weight:400}.govuk-input--width-10{max-width:50ex}.govuk-label--m{font-size:19px;font-weight:400}.govuk-error-summary__body{font-size:19px!important}.govuk-error-summary__title{font-size:24px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}"]
|
|
7209
|
+
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n <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 pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n\n <ng-container *ngIf=\"viewStatus === 'remissionAddressPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission(contactDetailsObj)\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\"> Submit refund </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\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 govuk-font19px\" 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(contactDetailsObj)\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{this.payment.reference}}\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)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [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",
|
|
7210
|
+
styles: [".add-remission .button{padding:.5em;font-size:19px;font-weight:200;margin:20px 2px}.add-remission td.govuk-table__cell{width:50%}.add-remission .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.add-remission .right{cursor:pointer}.add-remission .govuk-label--s,.add-remission .govuk-warning-text__text,.add-remission .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.add-remission .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.add-remission .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.add-remission .govuk-button,.add-remission .govuk-link{margin-right:1em;font-size:19px;font-weight:200}.add-remission .govuk-button-group{padding-top:2em}.add-remission .heading-medium{margin-top:.875em}.add-remission .heading-large{margin-top:.25em}.add-remission .govuk-panel--confirmation{color:#fff;background:#00703c}.add-remission .govuk-panel__title{font-size:5rem}.add-remission .govuk-body,.add-remission .govuk-body-m{font-size:2.1875rem}.add-remission .govuk-radios__item{clear:initial!important;display:inline-block;width:45%!important}.add-remission .govuk-radios__conditional{padding-top:12px!important}.add-remission .radio,.add-remission .right{float:right}.govuk-font19px,.govuk-input{font-size:19px}.govuk-select{font-size:19px;font-weight:400}.govuk-input--width-10{max-width:50ex}.govuk-label--m{font-size:19px;font-weight:400}.govuk-error-summary__body{font-size:19px!important}.govuk-error-summary__title{font-size:24px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}.margin-top--size{margin-top:-30px}.contactDetails-width{width:70%}.right{cursor:pointer}.form-hint{font-size:19px!important}"]
|
|
6281
7211
|
}] }
|
|
6282
7212
|
];
|
|
6283
7213
|
/** @nocollapse */
|
|
@@ -6303,12 +7233,22 @@ AddRemissionComponent.propDecorators = {
|
|
|
6303
7233
|
isOldPcipalOff: [{ type: Input }],
|
|
6304
7234
|
isNewPcipalOff: [{ type: Input }],
|
|
6305
7235
|
isStrategicFixEnable: [{ type: Input }],
|
|
6306
|
-
orderStatus: [{ type: Input }],
|
|
6307
7236
|
paidAmount: [{ type: Input }],
|
|
6308
7237
|
isFromRefundListPage: [{ type: Input }],
|
|
6309
7238
|
isFromPaymentDetailPage: [{ type: Input }],
|
|
6310
7239
|
isFromServiceRequestPage: [{ type: Input }],
|
|
6311
7240
|
feeamount: [{ type: Input }],
|
|
7241
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
7242
|
+
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
7243
|
+
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
7244
|
+
orderStatus: [{ type: Input, args: ['orderStatus',] }],
|
|
7245
|
+
orderParty: [{ type: Input, args: ['orderParty',] }],
|
|
7246
|
+
orderCreated: [{ type: Input, args: ['orderCreated',] }],
|
|
7247
|
+
orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
|
|
7248
|
+
takePayment: [{ type: Input, args: ['takepayment',] }],
|
|
7249
|
+
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
7250
|
+
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
7251
|
+
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
6312
7252
|
cancelRemission: [{ type: Output }],
|
|
6313
7253
|
refundListReason: [{ type: Output }],
|
|
6314
7254
|
refundListAmount: [{ type: Output }]
|
|
@@ -6913,13 +7853,15 @@ class TableComponent {
|
|
|
6913
7853
|
* @param {?} paymentLibComponent
|
|
6914
7854
|
* @param {?} cdRef
|
|
6915
7855
|
* @param {?} OrderslistService
|
|
6916
|
-
* @param {?}
|
|
7856
|
+
* @param {?} router
|
|
7857
|
+
* @param {?} activeRoute
|
|
6917
7858
|
*/
|
|
6918
|
-
constructor(paymentLibComponent, cdRef, OrderslistService$$1,
|
|
7859
|
+
constructor(paymentLibComponent, cdRef, OrderslistService$$1, router, activeRoute) {
|
|
6919
7860
|
this.paymentLibComponent = paymentLibComponent;
|
|
6920
7861
|
this.cdRef = cdRef;
|
|
6921
7862
|
this.OrderslistService = OrderslistService$$1;
|
|
6922
|
-
this.
|
|
7863
|
+
this.router = router;
|
|
7864
|
+
this.activeRoute = activeRoute;
|
|
6923
7865
|
// displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
|
|
6924
7866
|
this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
|
|
6925
7867
|
}
|
|
@@ -6945,13 +7887,26 @@ class TableComponent {
|
|
|
6945
7887
|
*/
|
|
6946
7888
|
(r, { user_full_name }) => (r[user_full_name] = '', r)), {});
|
|
6947
7889
|
this.userLst = Object.keys(this.userLst);
|
|
7890
|
+
this.userLst.sort((/**
|
|
7891
|
+
* @param {?} a
|
|
7892
|
+
* @param {?} b
|
|
7893
|
+
* @return {?}
|
|
7894
|
+
*/
|
|
7895
|
+
(a, b) => a.toString().localeCompare(b)));
|
|
7896
|
+
this.serviceLst = this.refundList.reduce((/**
|
|
7897
|
+
* @param {?} r
|
|
7898
|
+
* @param {?} __1
|
|
7899
|
+
* @return {?}
|
|
7900
|
+
*/
|
|
7901
|
+
(r, { service_type }) => (r[service_type] = '', r)), {});
|
|
7902
|
+
this.serviceLst = Object.keys(this.serviceLst);
|
|
7903
|
+
this.serviceLst.sort((/**
|
|
7904
|
+
* @param {?} a
|
|
7905
|
+
* @param {?} b
|
|
7906
|
+
* @return {?}
|
|
7907
|
+
*/
|
|
7908
|
+
(a, b) => a.toString().localeCompare(b)));
|
|
6948
7909
|
}
|
|
6949
|
-
this.userLst.sort((/**
|
|
6950
|
-
* @param {?} a
|
|
6951
|
-
* @param {?} b
|
|
6952
|
-
* @return {?}
|
|
6953
|
-
*/
|
|
6954
|
-
(a, b) => a.toString().localeCompare(b)));
|
|
6955
7910
|
}
|
|
6956
7911
|
/**
|
|
6957
7912
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -6988,11 +7943,11 @@ class TableComponent {
|
|
|
6988
7943
|
}
|
|
6989
7944
|
/**
|
|
6990
7945
|
* @param {?} refundReference
|
|
6991
|
-
* @param {?}
|
|
7946
|
+
* @param {?} refundData
|
|
6992
7947
|
* @return {?}
|
|
6993
7948
|
*/
|
|
6994
|
-
goToRefundProcessComponent(refundReference,
|
|
6995
|
-
this.paymentLibComponent.refundlistsource =
|
|
7949
|
+
goToRefundProcessComponent(refundReference, refundData) {
|
|
7950
|
+
this.paymentLibComponent.refundlistsource = refundData;
|
|
6996
7951
|
this.paymentLibComponent.refundReference = refundReference;
|
|
6997
7952
|
this.paymentLibComponent.viewName = 'process-refund';
|
|
6998
7953
|
}
|
|
@@ -7014,14 +7969,14 @@ class TableComponent {
|
|
|
7014
7969
|
* @return {?}
|
|
7015
7970
|
*/
|
|
7016
7971
|
goToCaseReview(ccdCaseNumber, refundData) {
|
|
7017
|
-
this.
|
|
7972
|
+
this.router.navigate([`/cases/case-details/${ccdCaseNumber}`], { relativeTo: this.activeRoute });
|
|
7018
7973
|
}
|
|
7019
7974
|
}
|
|
7020
7975
|
TableComponent.decorators = [
|
|
7021
7976
|
{ type: Component, args: [{
|
|
7022
7977
|
selector: 'ccpay-table',
|
|
7023
|
-
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
|
|
7024
|
-
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:#
|
|
7978
|
+
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=\"govuk-form-group float-left-padding\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by service:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All services</option>\n <option *ngFor=\"let name of serviceLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n \n<div *ngIf=\"dataSource.data.length > 0\" class=\"example-container\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccd_case_number\">\n <mat-header-cell *matHeaderCellDef >Case reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.ccd_case_number | ccdHyphens }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"refund_reference\">\n <mat-header-cell *matHeaderCellDef > Refund reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.refund_reference}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"user_full_name\">\n <mat-header-cell *matHeaderCellDef > Submitted by </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.user_full_name }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_created\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date created </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.date_created | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_updated\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Last updated</mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.date_updated | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container *ngIf=\"isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" > <a href=\"javascript:void(0)\" (click)=\"goToCaseReview(row.ccd_case_number, row)\">Review case</a> <a href=\"javascript:void(0)\" (click)=\"goToRefundProcessComponent(row.refund_reference, row)\">Process refund</a></mat-cell>\n </ng-container>\n \n <ng-container *ngIf=\"!isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef > Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\"> <a href=\"javascript:void(0)\" (click)=\"goToRefundViewComponent(row.refund_reference, row)\">Review refund</a></mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\">\n </mat-row>\n </mat-table>\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 100]\"></mat-paginator>\n</div>\n\n<div class=\"govuk-label dropdpwn\" *ngIf=\"dataSource.data.length === 0\">No records to display</div>\n",
|
|
7979
|
+
styles: [".mat-header-row{min-height:27px}.mat-cell{padding:0 10px 0 0;text-align:left;word-wrap:break-word;white-space:inherit!important;font-size:19px;line-height:25px;font-family:nta,Arial,sans-serif;font-weight:400}.mat-table{color:#0b0c0c;display:table;font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:1px;box-sizing:border-box;text-indent:initial;border-spacing:0;border-collapse:collapse;font-size:1.1875rem;line-height:1.31578947;table-layout:fixed;width:102%}.mat-header-cell{text-align:left;font-weight:700;padding:10px 10px 10px 0;word-wrap:break-word;font-size:19px;line-height:25px;color:#0b0c0c;cursor:pointer;font-family:inherit}.dropdpwn{display:inline-block;margin-right:10px;font-size:19px}.mat-column-ccdCaseNumber{flex:3em}.mat-column-refundReference{flex:6em}.mat-column-reason{flex:2em}.govuk-select{font-size:19px;font-weight:400}.govuk-error-summary__title{font-size:24px!important}.float-left-padding{padding-left:19em}"]
|
|
7025
7980
|
}] }
|
|
7026
7981
|
];
|
|
7027
7982
|
/** @nocollapse */
|
|
@@ -7029,7 +7984,8 @@ TableComponent.ctorParameters = () => [
|
|
|
7029
7984
|
{ type: PaymentLibComponent },
|
|
7030
7985
|
{ type: ChangeDetectorRef },
|
|
7031
7986
|
{ type: OrderslistService },
|
|
7032
|
-
{ type: Router }
|
|
7987
|
+
{ type: Router },
|
|
7988
|
+
{ type: ActivatedRoute }
|
|
7033
7989
|
];
|
|
7034
7990
|
TableComponent.propDecorators = {
|
|
7035
7991
|
DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
|
|
@@ -7043,14 +7999,18 @@ TableComponent.propDecorators = {
|
|
|
7043
7999
|
* @fileoverview added by tsickle
|
|
7044
8000
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7045
8001
|
*/
|
|
7046
|
-
class
|
|
8002
|
+
class IPutNotificationRequest {
|
|
7047
8003
|
/**
|
|
7048
|
-
* @param {?}
|
|
7049
|
-
* @param {?}
|
|
8004
|
+
* @param {?} contactDetails
|
|
8005
|
+
* @param {?} notificationType
|
|
7050
8006
|
*/
|
|
7051
|
-
constructor(
|
|
7052
|
-
|
|
7053
|
-
|
|
8007
|
+
constructor(contactDetails, notificationType) {
|
|
8008
|
+
if (notificationType === 'EMAIL') {
|
|
8009
|
+
this.recipient_email_address = contactDetails;
|
|
8010
|
+
}
|
|
8011
|
+
else if (notificationType === 'LETTER') {
|
|
8012
|
+
this.recipient_postal_address = contactDetails;
|
|
8013
|
+
}
|
|
7054
8014
|
}
|
|
7055
8015
|
}
|
|
7056
8016
|
|
|
@@ -7058,29 +8018,39 @@ class IResubmitRefundRequest {
|
|
|
7058
8018
|
* @fileoverview added by tsickle
|
|
7059
8019
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7060
8020
|
*/
|
|
7061
|
-
class
|
|
7062
|
-
|
|
8021
|
+
class IResubmitRefundRequest {
|
|
8022
|
+
/**
|
|
8023
|
+
* @param {?} refund_reason
|
|
8024
|
+
* @param {?} amount
|
|
8025
|
+
*/
|
|
8026
|
+
constructor(refund_reason, amount) {
|
|
8027
|
+
this.refund_reason = refund_reason;
|
|
8028
|
+
this.amount = amount;
|
|
8029
|
+
}
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
/**
|
|
8033
|
+
* @fileoverview added by tsickle
|
|
8034
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8035
|
+
*/
|
|
8036
|
+
class RefundStatusComponent {
|
|
7063
8037
|
/**
|
|
7064
8038
|
* @param {?} formBuilder
|
|
7065
8039
|
* @param {?} refundService
|
|
8040
|
+
* @param {?} notificationService
|
|
7066
8041
|
* @param {?} paymentLibComponent
|
|
7067
|
-
* @param {?} paymentViewService
|
|
7068
|
-
* @param {?} router
|
|
7069
8042
|
* @param {?} OrderslistService
|
|
7070
8043
|
*/
|
|
7071
|
-
constructor(formBuilder, refundService,
|
|
8044
|
+
constructor(formBuilder, refundService, notificationService, paymentLibComponent, OrderslistService$$1) {
|
|
7072
8045
|
this.formBuilder = formBuilder;
|
|
7073
8046
|
this.refundService = refundService;
|
|
8047
|
+
this.notificationService = notificationService;
|
|
7074
8048
|
this.paymentLibComponent = paymentLibComponent;
|
|
7075
|
-
this.paymentViewService = paymentViewService;
|
|
7076
|
-
this.router = router;
|
|
7077
8049
|
this.OrderslistService = OrderslistService$$1;
|
|
7078
8050
|
this.LOGGEDINUSERROLES = [];
|
|
7079
8051
|
this.rejectedRefundList = [];
|
|
7080
8052
|
this.approvalStatus = 'Sent for approval';
|
|
7081
8053
|
this.rejectStatus = 'Update required';
|
|
7082
|
-
// approvalStatus = 'sent for approval';
|
|
7083
|
-
// rejectStatus = 'sent back';
|
|
7084
8054
|
this.errorMessage = null;
|
|
7085
8055
|
this.refundButtonState = '';
|
|
7086
8056
|
this.isAmountEmpty = false;
|
|
@@ -7089,21 +8059,31 @@ class RefundStatusComponent {
|
|
|
7089
8059
|
this.isRemissionLessThanFeeError = false;
|
|
7090
8060
|
this.refundHasError = false;
|
|
7091
8061
|
this.refundReasons = [];
|
|
8062
|
+
this.isResendOperationSuccess = false;
|
|
8063
|
+
this.isEditDetailsClicked = false;
|
|
8064
|
+
this.isEditAddressDeatilsClicked = false;
|
|
7092
8065
|
this.isRefundBtnDisabled = true;
|
|
7093
8066
|
this.isLastUpdatedByCurrentUser = true;
|
|
7094
8067
|
this.isProcessRefund = false;
|
|
8068
|
+
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8069
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
8070
|
+
* @return {?}
|
|
8071
|
+
*/
|
|
8072
|
+
() => {
|
|
8073
|
+
return this.allowedRolesToAccessRefund.some((/**
|
|
8074
|
+
* @param {?} role
|
|
8075
|
+
* @return {?}
|
|
8076
|
+
*/
|
|
8077
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
8078
|
+
});
|
|
7095
8079
|
}
|
|
7096
8080
|
/**
|
|
7097
8081
|
* @return {?}
|
|
7098
8082
|
*/
|
|
7099
8083
|
ngOnInit() {
|
|
7100
|
-
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
7101
8084
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
7102
8085
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
7103
8086
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
7104
|
-
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7105
|
-
// this.viewName = 'reviewandsubmitview';
|
|
7106
|
-
// }
|
|
7107
8087
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
7108
8088
|
this.viewName = 'refundview';
|
|
7109
8089
|
this.OrderslistService.getRefundView().subscribe((/**
|
|
@@ -7143,6 +8123,7 @@ class RefundStatusComponent {
|
|
|
7143
8123
|
reason: new FormControl()
|
|
7144
8124
|
});
|
|
7145
8125
|
if (this.refundlist !== undefined) {
|
|
8126
|
+
this.getRefundsNotification();
|
|
7146
8127
|
this.getRefundsStatusHistoryList();
|
|
7147
8128
|
if (this.LOGGEDINUSERROLES.some((/**
|
|
7148
8129
|
* @param {?} i
|
|
@@ -7162,13 +8143,7 @@ class RefundStatusComponent {
|
|
|
7162
8143
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
7163
8144
|
}
|
|
7164
8145
|
}
|
|
7165
|
-
// }
|
|
7166
8146
|
}
|
|
7167
|
-
// check4AllowedRoles2AccessRefund = (): boolean => {
|
|
7168
|
-
// return this.allowedRolesToAccessRefund.some(role =>
|
|
7169
|
-
// this.LOGGEDINUSERROLES.indexOf(role) !== -1
|
|
7170
|
-
// );
|
|
7171
|
-
// }
|
|
7172
8147
|
/**
|
|
7173
8148
|
* @return {?}
|
|
7174
8149
|
*/
|
|
@@ -7191,6 +8166,25 @@ class RefundStatusComponent {
|
|
|
7191
8166
|
});
|
|
7192
8167
|
}
|
|
7193
8168
|
}
|
|
8169
|
+
/**
|
|
8170
|
+
* @return {?}
|
|
8171
|
+
*/
|
|
8172
|
+
getRefundsNotification() {
|
|
8173
|
+
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
|
|
8174
|
+
* @param {?} refundsNotification
|
|
8175
|
+
* @return {?}
|
|
8176
|
+
*/
|
|
8177
|
+
refundsNotification => {
|
|
8178
|
+
this.notificationList = refundsNotification['notifications'];
|
|
8179
|
+
})),
|
|
8180
|
+
(/**
|
|
8181
|
+
* @param {?} error
|
|
8182
|
+
* @return {?}
|
|
8183
|
+
*/
|
|
8184
|
+
(error) => {
|
|
8185
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8186
|
+
});
|
|
8187
|
+
}
|
|
7194
8188
|
/**
|
|
7195
8189
|
* @param {?} refundlist
|
|
7196
8190
|
* @param {?} navigationpage
|
|
@@ -7208,22 +8202,11 @@ class RefundStatusComponent {
|
|
|
7208
8202
|
* @return {?}
|
|
7209
8203
|
*/
|
|
7210
8204
|
loadCaseTransactionPage() {
|
|
7211
|
-
this.
|
|
7212
|
-
|
|
8205
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8206
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7213
8207
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7214
8208
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
7215
|
-
|
|
7216
|
-
let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
7217
|
-
partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7218
|
-
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7219
|
-
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7220
|
-
partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7221
|
-
partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
7222
|
-
partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7223
|
-
partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7224
|
-
/** @type {?} */
|
|
7225
|
-
let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&${partUrl}`;
|
|
7226
|
-
this.router.navigateByUrl(url);
|
|
8209
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
7227
8210
|
}
|
|
7228
8211
|
/**
|
|
7229
8212
|
* @return {?}
|
|
@@ -7250,10 +8233,6 @@ class RefundStatusComponent {
|
|
|
7250
8233
|
this.errorMessage = false;
|
|
7251
8234
|
this.paymentLibComponent.isRefundStatusView = true;
|
|
7252
8235
|
this.ngOnInit();
|
|
7253
|
-
// this.viewName='refundview';
|
|
7254
|
-
// this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
7255
|
-
// this.paymentLibComponent.isRefundStatusView = true;
|
|
7256
|
-
// this.paymentLibComponent.isCallFromRefundList = true;
|
|
7257
8236
|
}
|
|
7258
8237
|
/**
|
|
7259
8238
|
* @return {?}
|
|
@@ -7412,6 +8391,113 @@ class RefundStatusComponent {
|
|
|
7412
8391
|
this.errorMessage = error.replace(/"/g, "");
|
|
7413
8392
|
}));
|
|
7414
8393
|
}
|
|
8394
|
+
/**
|
|
8395
|
+
* @param {?} note
|
|
8396
|
+
* @return {?}
|
|
8397
|
+
*/
|
|
8398
|
+
gotoEditAddressDetails(note) {
|
|
8399
|
+
this.notification = note;
|
|
8400
|
+
this.isEditDetailsClicked = true;
|
|
8401
|
+
this.viewName = 'refundEditView';
|
|
8402
|
+
}
|
|
8403
|
+
/**
|
|
8404
|
+
* @param {?} obj
|
|
8405
|
+
* @return {?}
|
|
8406
|
+
*/
|
|
8407
|
+
getContactDetails(obj) {
|
|
8408
|
+
this.addressDetails = obj;
|
|
8409
|
+
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
8410
|
+
}
|
|
8411
|
+
/**
|
|
8412
|
+
* @param {?} obj
|
|
8413
|
+
* @return {?}
|
|
8414
|
+
*/
|
|
8415
|
+
getContactDetailsForRefundList(obj) {
|
|
8416
|
+
this.refundlist.contact_details = obj;
|
|
8417
|
+
this.isEditDetailsClicked = false;
|
|
8418
|
+
this.isRefundBtnDisabled = false;
|
|
8419
|
+
this.viewName = 'reviewandsubmitview';
|
|
8420
|
+
}
|
|
8421
|
+
/**
|
|
8422
|
+
* @param {?=} note
|
|
8423
|
+
* @return {?}
|
|
8424
|
+
*/
|
|
8425
|
+
gotoEditDetailsPage(note) {
|
|
8426
|
+
if (note) {
|
|
8427
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8428
|
+
}
|
|
8429
|
+
this.isEditDetailsClicked = true;
|
|
8430
|
+
this.viewName = 'refundEditView';
|
|
8431
|
+
}
|
|
8432
|
+
/**
|
|
8433
|
+
* @return {?}
|
|
8434
|
+
*/
|
|
8435
|
+
submitEditDetail() {
|
|
8436
|
+
this.isResendOperationSuccess = false;
|
|
8437
|
+
/** @type {?} */
|
|
8438
|
+
const contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
8439
|
+
{
|
|
8440
|
+
address_line: this.addressDetails.address_line,
|
|
8441
|
+
city: this.addressDetails.city,
|
|
8442
|
+
county: this.addressDetails.county,
|
|
8443
|
+
country: this.addressDetails.country,
|
|
8444
|
+
postal_code: this.addressDetails.postal_code,
|
|
8445
|
+
};
|
|
8446
|
+
/** @type {?} */
|
|
8447
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
8448
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
|
|
8449
|
+
* @param {?} response
|
|
8450
|
+
* @return {?}
|
|
8451
|
+
*/
|
|
8452
|
+
(response) => {
|
|
8453
|
+
this.isResendOperationSuccess = response;
|
|
8454
|
+
}), (/**
|
|
8455
|
+
* @param {?} error
|
|
8456
|
+
* @return {?}
|
|
8457
|
+
*/
|
|
8458
|
+
(error) => {
|
|
8459
|
+
this.isResendOperationSuccess = false;
|
|
8460
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8461
|
+
}));
|
|
8462
|
+
}
|
|
8463
|
+
/**
|
|
8464
|
+
* @param {?} notification
|
|
8465
|
+
* @return {?}
|
|
8466
|
+
*/
|
|
8467
|
+
putResend(notification) {
|
|
8468
|
+
this.isResendOperationSuccess = false;
|
|
8469
|
+
/** @type {?} */
|
|
8470
|
+
const contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
8471
|
+
{
|
|
8472
|
+
address_line: notification.contact_details.address_line,
|
|
8473
|
+
city: notification.contact_details.city,
|
|
8474
|
+
county: notification.contact_details.county,
|
|
8475
|
+
country: notification.contact_details.country,
|
|
8476
|
+
postal_code: notification.contact_details.postal_code,
|
|
8477
|
+
};
|
|
8478
|
+
/** @type {?} */
|
|
8479
|
+
const resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
8480
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
|
|
8481
|
+
* @param {?} response
|
|
8482
|
+
* @return {?}
|
|
8483
|
+
*/
|
|
8484
|
+
(response) => {
|
|
8485
|
+
this.isResendOperationSuccess = response;
|
|
8486
|
+
}), (/**
|
|
8487
|
+
* @param {?} error
|
|
8488
|
+
* @return {?}
|
|
8489
|
+
*/
|
|
8490
|
+
(error) => {
|
|
8491
|
+
this.isResendOperationSuccess = false;
|
|
8492
|
+
this.errorMessage = error.replace(/"/g, "");
|
|
8493
|
+
}));
|
|
8494
|
+
}
|
|
8495
|
+
/**
|
|
8496
|
+
* @param {?} Event
|
|
8497
|
+
* @return {?}
|
|
8498
|
+
*/
|
|
8499
|
+
gotoCasetransationPageCancelBtnClicked(Event) {
|
|
8500
|
+
}
|
|
7415
8501
|
/**
|
|
7416
8502
|
* @param {?} refundReference
|
|
7417
8503
|
* @param {?} refundList
|
|
@@ -7426,17 +8512,16 @@ class RefundStatusComponent {
|
|
|
7426
8512
|
RefundStatusComponent.decorators = [
|
|
7427
8513
|
{ type: Component, args: [{
|
|
7428
8514
|
selector: 'ccpay-refund-status',
|
|
7429
|
-
template: "<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview'\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\">\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview'\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadCaseTransactionPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>",
|
|
7430
|
-
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}"]
|
|
8515
|
+
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n\n <!-- Notification sent details -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Notifications sent</h2>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Sent to</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Sent via</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Actions</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"notificationList\">\n <tr class=\"govuk-table__row\" *ngFor=\"let notification of notificationList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{notification.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderParty}}</td>\n <td class=\"govuk-table__cell whitespace-inherit col-40\">\n <div *ngIf=\"notification?.notification_type === 'EMAIL'\">\n <strong>Email</strong><br>\n {{notification?.contact_details?.email}}\n </div>\n <div *ngIf=\"notification?.notification_type === 'LETTER'\">\n <strong>Post</strong><br>\n {{notification?.contact_details?.address_line}} {{notification?.contact_details?.city}} {{notification?.contact_details?.county}} {{notification?.contact_details?.country}} {{notification?.contact_details?.postal_code}}\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a> | <a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"!notificationList\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\" colspan=\"4\">No record found ... </td>\n </tr>\n </tbody>\n </table> \n </div>\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Change refund details</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">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' && refundlist?.reason !== 'Over payment'\"\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' && refundlist?.reason !== 'Over payment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n <a class=\"govuk-link\" href=\"Javascript:void(0)\" *ngIf=\"refundlist?.contact_details !=null\" class=\"govuk-link right\" (click)=\"gotoEditDetailsPage(refundlist?.contact_details)\">\n Change\n </a>\n </td>\n </tr> \n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === '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 [isEditOperationInRefundList] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetailsInFefundsList)=\"getContactDetailsForRefundList($event)\"\n (redirectToIssueRefund)=\"gotoCasetransationPageCancelBtnClicked($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewName === 'revieweditdetailsconfirmationpage' && !isResendOperationSuccess && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSCHECKANDANSWERPAGE'> \n <h1 class=\"govuk-heading-l\">Check your answers</h1>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Refund reference\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ refundlist?.refund_reference}}\n </dd>\n <span class=\"govuk-summary-list__actions\"></span> \n </div>\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Send via\n <br/>\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage(addressDetails)\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage(addressDetails)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"submitEditDetail()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Send notification\n </button>\n </div>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n",
|
|
8516
|
+
styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-40{width:40%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.font-size-19px{font-size:19px}.white{color:#fff}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}"]
|
|
7431
8517
|
}] }
|
|
7432
8518
|
];
|
|
7433
8519
|
/** @nocollapse */
|
|
7434
8520
|
RefundStatusComponent.ctorParameters = () => [
|
|
7435
8521
|
{ type: FormBuilder },
|
|
7436
8522
|
{ type: RefundsService },
|
|
8523
|
+
{ type: NotificationService },
|
|
7437
8524
|
{ type: PaymentLibComponent },
|
|
7438
|
-
{ type: PaymentViewService },
|
|
7439
|
-
{ type: Router },
|
|
7440
8525
|
{ type: OrderslistService }
|
|
7441
8526
|
];
|
|
7442
8527
|
RefundStatusComponent.propDecorators = {
|
|
@@ -7444,14 +8529,693 @@ RefundStatusComponent.propDecorators = {
|
|
|
7444
8529
|
isOldPcipalOff: [{ type: Input }],
|
|
7445
8530
|
isNewPcipalOff: [{ type: Input }],
|
|
7446
8531
|
ccdCaseNumber: [{ type: Input }],
|
|
7447
|
-
isTurnOff: [{ type: Input }]
|
|
8532
|
+
isTurnOff: [{ type: Input }],
|
|
8533
|
+
orderParty: [{ type: Input }]
|
|
8534
|
+
};
|
|
8535
|
+
|
|
8536
|
+
/**
|
|
8537
|
+
* @fileoverview added by tsickle
|
|
8538
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8539
|
+
*/
|
|
8540
|
+
class ServiceRequestComponent {
|
|
8541
|
+
/**
|
|
8542
|
+
* @param {?} paymentLibComponent
|
|
8543
|
+
* @param {?} paymentViewService
|
|
8544
|
+
* @param {?} OrderslistService
|
|
8545
|
+
* @param {?} router
|
|
8546
|
+
*/
|
|
8547
|
+
constructor(paymentLibComponent, paymentViewService, OrderslistService$$1, router) {
|
|
8548
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
8549
|
+
this.paymentViewService = paymentViewService;
|
|
8550
|
+
this.OrderslistService = OrderslistService$$1;
|
|
8551
|
+
this.router = router;
|
|
8552
|
+
this.goToServiceRquestComponent = new EventEmitter();
|
|
8553
|
+
this.paymentGroups = [];
|
|
8554
|
+
this.payments = [];
|
|
8555
|
+
this.nonPayments = [];
|
|
8556
|
+
this.allPayments = [];
|
|
8557
|
+
this.remissions = [];
|
|
8558
|
+
this.fees = [];
|
|
8559
|
+
this.isRefundRemission = true;
|
|
8560
|
+
this.isAddFeeBtnEnabled = true;
|
|
8561
|
+
this.isExceptionRecord = false;
|
|
8562
|
+
this.isUnprocessedRecordSelected = false;
|
|
8563
|
+
this.isAnyFeeGroupAvilable = true;
|
|
8564
|
+
this.isHistoricGroupAvailable = false;
|
|
8565
|
+
this.isRemoveBtnDisabled = false;
|
|
8566
|
+
this.clAmountDue = 0;
|
|
8567
|
+
this.isFeeRecordsExist = false;
|
|
8568
|
+
this.isGrpOutstandingAmtPositive = false;
|
|
8569
|
+
this.isAddRemissionEnable = false;
|
|
8570
|
+
this.orderRemissionDetails = [];
|
|
8571
|
+
this.orderLevelFees = [];
|
|
8572
|
+
this.cpoDetails = null;
|
|
8573
|
+
this.isPBA = false;
|
|
8574
|
+
this.isIssueRefunfBtnEnable = false;
|
|
8575
|
+
this.isAddRemissionBtnEnabled = false;
|
|
8576
|
+
this.isRefundRemissionBtnEnable = false;
|
|
8577
|
+
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8578
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
8579
|
+
* @return {?}
|
|
8580
|
+
*/
|
|
8581
|
+
() => {
|
|
8582
|
+
return this.allowedRolesToAccessRefund.some((/**
|
|
8583
|
+
* @param {?} role
|
|
8584
|
+
* @return {?}
|
|
8585
|
+
*/
|
|
8586
|
+
role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
|
|
8587
|
+
});
|
|
8588
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
8589
|
+
* @param {?} payment
|
|
8590
|
+
* @return {?}
|
|
8591
|
+
*/
|
|
8592
|
+
(payment) => {
|
|
8593
|
+
if (payment !== null && payment !== undefined) {
|
|
8594
|
+
/** @type {?} */
|
|
8595
|
+
let tmp4DayAgo = new Date();
|
|
8596
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
8597
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
8598
|
+
}
|
|
8599
|
+
});
|
|
8600
|
+
}
|
|
8601
|
+
/**
|
|
8602
|
+
* @return {?}
|
|
8603
|
+
*/
|
|
8604
|
+
ngOnInit() {
|
|
8605
|
+
if (this.viewStatus === undefined) {
|
|
8606
|
+
this.viewStatus = this.paymentLibComponent.viewName;
|
|
8607
|
+
}
|
|
8608
|
+
if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.isFromPaymentDetailPage) {
|
|
8609
|
+
if (this.paymentLibComponent.isFromPaymentDetailPage && this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8610
|
+
this.OrderslistService.getorderRefs().subscribe((/**
|
|
8611
|
+
* @param {?} data
|
|
8612
|
+
* @return {?}
|
|
8613
|
+
*/
|
|
8614
|
+
(data) => this.orderRef = data));
|
|
8615
|
+
this.OrderslistService.getorderCCDEvents().subscribe((/**
|
|
8616
|
+
* @param {?} data
|
|
8617
|
+
* @return {?}
|
|
8618
|
+
*/
|
|
8619
|
+
(data) => this.orderCCDEvent = data));
|
|
8620
|
+
this.OrderslistService.getorderCreateds().subscribe((/**
|
|
8621
|
+
* @param {?} data
|
|
8622
|
+
* @return {?}
|
|
8623
|
+
*/
|
|
8624
|
+
(data) => this.orderCreated = data));
|
|
8625
|
+
this.OrderslistService.getorderDetail().subscribe((/**
|
|
8626
|
+
* @param {?} data
|
|
8627
|
+
* @return {?}
|
|
8628
|
+
*/
|
|
8629
|
+
(data) => this.orderDetail = data));
|
|
8630
|
+
this.OrderslistService.getorderPartys().subscribe((/**
|
|
8631
|
+
* @param {?} data
|
|
8632
|
+
* @return {?}
|
|
8633
|
+
*/
|
|
8634
|
+
(data) => this.orderParty = data));
|
|
8635
|
+
this.OrderslistService.getorderRemissionTotals().subscribe((/**
|
|
8636
|
+
* @param {?} data
|
|
8637
|
+
* @return {?}
|
|
8638
|
+
*/
|
|
8639
|
+
(data) => this.orderRemissionTotal = data));
|
|
8640
|
+
this.OrderslistService.getorderFeesTotals().subscribe((/**
|
|
8641
|
+
* @param {?} data
|
|
8642
|
+
* @return {?}
|
|
8643
|
+
*/
|
|
8644
|
+
(data) => this.orderFeesTotal = data));
|
|
8645
|
+
this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
|
|
8646
|
+
* @param {?} data
|
|
8647
|
+
* @return {?}
|
|
8648
|
+
*/
|
|
8649
|
+
(data) => this.orderTotalPayments = data));
|
|
8650
|
+
}
|
|
8651
|
+
}
|
|
8652
|
+
// if (this.takePayment) {
|
|
8653
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
8654
|
+
// }
|
|
8655
|
+
}
|
|
8656
|
+
/**
|
|
8657
|
+
* @return {?}
|
|
8658
|
+
*/
|
|
8659
|
+
goToServiceRequestPage() {
|
|
8660
|
+
this.goToServiceRquestComponent.emit();
|
|
8661
|
+
}
|
|
8662
|
+
/**
|
|
8663
|
+
* @param {?} event
|
|
8664
|
+
* @return {?}
|
|
8665
|
+
*/
|
|
8666
|
+
goToCaseTransationPage(event) {
|
|
8667
|
+
event.preventDefault();
|
|
8668
|
+
this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
8669
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8670
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8671
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8672
|
+
this.paymentLibComponent.isTakePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
8673
|
+
if (this.takePayment) {
|
|
8674
|
+
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
8675
|
+
}
|
|
8676
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
8677
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
8678
|
+
if (this.isServiceRequest !== 'false') {
|
|
8679
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8680
|
+
}
|
|
8681
|
+
this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
8682
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8683
|
+
this.resetOrderData();
|
|
8684
|
+
/** @type {?} */
|
|
8685
|
+
let partUrl = this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
8686
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
8687
|
+
if (this.isServiceRequest === 'false') {
|
|
8688
|
+
partUrl += this.paymentLibComponent.TAKEPAYMENT ? '&takePayment=true' : '&takePayment=false';
|
|
8689
|
+
}
|
|
8690
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
8691
|
+
partUrl += this.isServiceRequest !== 'false' ? '&servicerequest=true' : '&servicerequest=false';
|
|
8692
|
+
partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
8693
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
8694
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
8695
|
+
/** @type {?} */
|
|
8696
|
+
const url = `/payment-history/${this.paymentLibComponent.CCD_CASE_NUMBER}?view=case-transactions&selectedOption=${this.paymentLibComponent.SELECTED_OPTION}${partUrl}`;
|
|
8697
|
+
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
8698
|
+
* @return {?}
|
|
8699
|
+
*/
|
|
8700
|
+
() => false);
|
|
8701
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
8702
|
+
this.router.navigateByUrl(url);
|
|
8703
|
+
}
|
|
8704
|
+
/**
|
|
8705
|
+
* @param {?} feeCode
|
|
8706
|
+
* @return {?}
|
|
8707
|
+
*/
|
|
8708
|
+
chkForAddRemission(feeCode) {
|
|
8709
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
8710
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
8711
|
+
for (const remission of this.orderDetail[0]['remissions']) {
|
|
8712
|
+
if (remission.fee_code === feeCode) {
|
|
8713
|
+
return false;
|
|
8714
|
+
}
|
|
8715
|
+
}
|
|
8716
|
+
}
|
|
8717
|
+
return true;
|
|
8718
|
+
}
|
|
8719
|
+
else {
|
|
8720
|
+
return false;
|
|
8721
|
+
}
|
|
8722
|
+
}
|
|
8723
|
+
/**
|
|
8724
|
+
* @return {?}
|
|
8725
|
+
*/
|
|
8726
|
+
chkForPBAPayment() {
|
|
8727
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
8728
|
+
this.orderDetail.forEach((/**
|
|
8729
|
+
* @param {?} orderDetail
|
|
8730
|
+
* @return {?}
|
|
8731
|
+
*/
|
|
8732
|
+
orderDetail => {
|
|
8733
|
+
if (orderDetail.payments) {
|
|
8734
|
+
orderDetail.payments.forEach((/**
|
|
8735
|
+
* @param {?} payment
|
|
8736
|
+
* @return {?}
|
|
8737
|
+
*/
|
|
8738
|
+
payment => {
|
|
8739
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
8740
|
+
this.paymentLibComponent.paymentReference = payment.reference;
|
|
8741
|
+
this.isPBA = true;
|
|
8742
|
+
}
|
|
8743
|
+
}));
|
|
8744
|
+
}
|
|
8745
|
+
}));
|
|
8746
|
+
if (this.isPBA) {
|
|
8747
|
+
return true;
|
|
8748
|
+
}
|
|
8749
|
+
else {
|
|
8750
|
+
return false;
|
|
8751
|
+
}
|
|
8752
|
+
}
|
|
8753
|
+
}
|
|
8754
|
+
/**
|
|
8755
|
+
* @param {?} fee
|
|
8756
|
+
* @return {?}
|
|
8757
|
+
*/
|
|
8758
|
+
addRemission(fee) {
|
|
8759
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
8760
|
+
this.feeId = fee;
|
|
8761
|
+
this.viewStatus = 'addremission';
|
|
8762
|
+
this.payment = this.orderDetail[0].payments[0];
|
|
8763
|
+
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
|
|
8764
|
+
* @param {?} paymentGroup
|
|
8765
|
+
* @return {?}
|
|
8766
|
+
*/
|
|
8767
|
+
paymentGroup => {
|
|
8768
|
+
this.paymentGroup = paymentGroup;
|
|
8769
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
8770
|
+
* @param {?} paymentGroupObj
|
|
8771
|
+
* @return {?}
|
|
8772
|
+
*/
|
|
8773
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
|
|
8774
|
+
this.payment = this.paymentGroup.payments[0];
|
|
8775
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
8776
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
8777
|
+
}), (/**
|
|
8778
|
+
* @param {?} error
|
|
8779
|
+
* @return {?}
|
|
8780
|
+
*/
|
|
8781
|
+
(error) => this.errorMessage = error.replace(/"/g, "")));
|
|
8782
|
+
}
|
|
8783
|
+
}
|
|
8784
|
+
/**
|
|
8785
|
+
* @param {?} payment
|
|
8786
|
+
* @param {?} remission
|
|
8787
|
+
* @param {?} fees
|
|
8788
|
+
* @return {?}
|
|
8789
|
+
*/
|
|
8790
|
+
addRefundForRemission(payment, remission, fees) {
|
|
8791
|
+
this.viewStatus = 'addrefundforremission';
|
|
8792
|
+
this.payment = payment;
|
|
8793
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
8794
|
+
* @param {?} paymentGroup
|
|
8795
|
+
* @return {?}
|
|
8796
|
+
*/
|
|
8797
|
+
paymentGroup => {
|
|
8798
|
+
this.paymentGroup = paymentGroup;
|
|
8799
|
+
this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
|
|
8800
|
+
* @param {?} paymentGroupObj
|
|
8801
|
+
* @return {?}
|
|
8802
|
+
*/
|
|
8803
|
+
paymentGroupObj => paymentGroupObj['reference'].includes(this.payment.reference)));
|
|
8804
|
+
this.payment = this.paymentGroup.payments[0];
|
|
8805
|
+
this.remissions = remission;
|
|
8806
|
+
this.remissionFeeAmt = fees.filter((/**
|
|
8807
|
+
* @param {?} data
|
|
8808
|
+
* @return {?}
|
|
8809
|
+
*/
|
|
8810
|
+
data => data.code === this.remissions['fee_code']))[0].net_amount;
|
|
8811
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
8812
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
8813
|
+
}), (/**
|
|
8814
|
+
* @param {?} error
|
|
8815
|
+
* @return {?}
|
|
8816
|
+
*/
|
|
8817
|
+
(error) => this.errorMessage = error));
|
|
8818
|
+
}
|
|
8819
|
+
/**
|
|
8820
|
+
* @return {?}
|
|
8821
|
+
*/
|
|
8822
|
+
cancelRemoval() {
|
|
8823
|
+
this.viewStatus = 'main';
|
|
8824
|
+
}
|
|
8825
|
+
/**
|
|
8826
|
+
* @param {?} fee
|
|
8827
|
+
* @return {?}
|
|
8828
|
+
*/
|
|
8829
|
+
removeFee(fee) {
|
|
8830
|
+
this.isRemoveBtnDisabled = true;
|
|
8831
|
+
this.paymentViewService.deleteFeeFromPaymentGroup(fee).subscribe((/**
|
|
8832
|
+
* @param {?} success
|
|
8833
|
+
* @return {?}
|
|
8834
|
+
*/
|
|
8835
|
+
(success) => {
|
|
8836
|
+
window.location.reload();
|
|
8837
|
+
}), (/**
|
|
8838
|
+
* @param {?} error
|
|
8839
|
+
* @return {?}
|
|
8840
|
+
*/
|
|
8841
|
+
(error) => {
|
|
8842
|
+
this.errorMessage = error;
|
|
8843
|
+
this.isRemoveBtnDisabled = false;
|
|
8844
|
+
}));
|
|
8845
|
+
}
|
|
8846
|
+
/**
|
|
8847
|
+
* @param {?} payment
|
|
8848
|
+
* @return {?}
|
|
8849
|
+
*/
|
|
8850
|
+
chkIssueRefundBtnEnable(payment) {
|
|
8851
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
8852
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
8853
|
+
this.isIssueRefunfBtnEnable = true;
|
|
8854
|
+
}
|
|
8855
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
8856
|
+
return true;
|
|
8857
|
+
}
|
|
8858
|
+
else {
|
|
8859
|
+
return false;
|
|
8860
|
+
}
|
|
8861
|
+
}
|
|
8862
|
+
/**
|
|
8863
|
+
* @return {?}
|
|
8864
|
+
*/
|
|
8865
|
+
chkIsRefundRemissionBtnEnable() {
|
|
8866
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
8867
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8868
|
+
this.orderDetail.forEach((/**
|
|
8869
|
+
* @param {?} orderDetail
|
|
8870
|
+
* @return {?}
|
|
8871
|
+
*/
|
|
8872
|
+
orderDetail => {
|
|
8873
|
+
if (orderDetail.payments) {
|
|
8874
|
+
orderDetail.payments.forEach((/**
|
|
8875
|
+
* @param {?} payment
|
|
8876
|
+
* @return {?}
|
|
8877
|
+
*/
|
|
8878
|
+
payment => {
|
|
8879
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
8880
|
+
this.isRefundRemissionBtnEnable = true;
|
|
8881
|
+
}
|
|
8882
|
+
}));
|
|
8883
|
+
}
|
|
8884
|
+
}));
|
|
8885
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
8886
|
+
return true;
|
|
8887
|
+
}
|
|
8888
|
+
else {
|
|
8889
|
+
return false;
|
|
8890
|
+
}
|
|
8891
|
+
}
|
|
8892
|
+
}
|
|
8893
|
+
/**
|
|
8894
|
+
* @param {?} payment
|
|
8895
|
+
* @return {?}
|
|
8896
|
+
*/
|
|
8897
|
+
issueRefund(payment) {
|
|
8898
|
+
if (payment !== null && payment !== undefined) {
|
|
8899
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
8900
|
+
this.viewStatus = 'issuerefund';
|
|
8901
|
+
this.payment = payment;
|
|
8902
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8903
|
+
this.isRefundRemission = true;
|
|
8904
|
+
}
|
|
8905
|
+
}
|
|
8906
|
+
}
|
|
8907
|
+
// goToServiceRequestPage(event: any) {
|
|
8908
|
+
// event.preventDefault();
|
|
8909
|
+
// this.isFromServiceRequestPage = true;
|
|
8910
|
+
// this.viewStatus = 'main'
|
|
8911
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
8912
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
8913
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
8914
|
+
// }
|
|
8915
|
+
/**
|
|
8916
|
+
* @param {?} paymentGroupReference
|
|
8917
|
+
* @param {?} paymentReference
|
|
8918
|
+
* @param {?} paymentMethod
|
|
8919
|
+
* @return {?}
|
|
8920
|
+
*/
|
|
8921
|
+
goToPayementView(paymentGroupReference, paymentReference, paymentMethod) {
|
|
8922
|
+
this.goToPaymentViewComponent({ paymentGroupReference, paymentReference, paymentMethod });
|
|
8923
|
+
}
|
|
8924
|
+
/**
|
|
8925
|
+
* @param {?} paymentGroup
|
|
8926
|
+
* @return {?}
|
|
8927
|
+
*/
|
|
8928
|
+
goToPaymentViewComponent(paymentGroup) {
|
|
8929
|
+
this.paymentLibComponent.paymentMethod = paymentGroup.paymentMethod;
|
|
8930
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8931
|
+
this.paymentLibComponent.paymentGroupReference = paymentGroup.paymentGroupReference;
|
|
8932
|
+
this.paymentLibComponent.paymentReference = paymentGroup.paymentReference;
|
|
8933
|
+
this.OrderslistService.setOrderRef(this.orderRef);
|
|
8934
|
+
this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
|
|
8935
|
+
this.OrderslistService.setorderCreated(this.orderCreated);
|
|
8936
|
+
this.OrderslistService.setorderDetail(this.orderDetail);
|
|
8937
|
+
this.OrderslistService.setorderParty(this.orderParty);
|
|
8938
|
+
this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
|
|
8939
|
+
this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
|
|
8940
|
+
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
8941
|
+
this.viewStatus = 'payment-view';
|
|
8942
|
+
}
|
|
8943
|
+
/**
|
|
8944
|
+
* @return {?}
|
|
8945
|
+
*/
|
|
8946
|
+
resetOrderData() {
|
|
8947
|
+
this.OrderslistService.setOrderRef(null);
|
|
8948
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
8949
|
+
this.OrderslistService.setorderCreated(null);
|
|
8950
|
+
this.OrderslistService.setorderDetail(null);
|
|
8951
|
+
this.OrderslistService.setorderParty(null);
|
|
8952
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
8953
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
8954
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
8955
|
+
}
|
|
8956
|
+
}
|
|
8957
|
+
ServiceRequestComponent.decorators = [
|
|
8958
|
+
{ type: Component, args: [{
|
|
8959
|
+
selector: 'ccpay-service-request',
|
|
8960
|
+
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!order.payments[0].refund_enable\" (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]=\"!payment.refund_enable\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>",
|
|
8961
|
+
styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}#bckLnksize{font-size:16px!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}"]
|
|
8962
|
+
}] }
|
|
8963
|
+
];
|
|
8964
|
+
/** @nocollapse */
|
|
8965
|
+
ServiceRequestComponent.ctorParameters = () => [
|
|
8966
|
+
{ type: PaymentLibComponent },
|
|
8967
|
+
{ type: PaymentViewService },
|
|
8968
|
+
{ type: OrderslistService },
|
|
8969
|
+
{ type: Router }
|
|
8970
|
+
];
|
|
8971
|
+
ServiceRequestComponent.propDecorators = {
|
|
8972
|
+
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8973
|
+
viewStatus: [{ type: Input, args: ['viewStatus',] }],
|
|
8974
|
+
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
8975
|
+
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
8976
|
+
orderStatus: [{ type: Input, args: ['orderStatus',] }],
|
|
8977
|
+
orderParty: [{ type: Input, args: ['orderParty',] }],
|
|
8978
|
+
orderCreated: [{ type: Input, args: ['orderCreated',] }],
|
|
8979
|
+
orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
|
|
8980
|
+
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
8981
|
+
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
8982
|
+
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
8983
|
+
takePayment: [{ type: Input, args: ['takePayment',] }],
|
|
8984
|
+
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }],
|
|
8985
|
+
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
8986
|
+
goToServiceRquestComponent: [{ type: Output }]
|
|
8987
|
+
};
|
|
8988
|
+
|
|
8989
|
+
/**
|
|
8990
|
+
* @fileoverview added by tsickle
|
|
8991
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8992
|
+
*/
|
|
8993
|
+
class IserviceRequestCardPayment {
|
|
8994
|
+
/**
|
|
8995
|
+
* @param {?} amount
|
|
8996
|
+
*/
|
|
8997
|
+
constructor(amount) {
|
|
8998
|
+
this.amount = amount;
|
|
8999
|
+
this.currency = 'GBP';
|
|
9000
|
+
this.language = 'string';
|
|
9001
|
+
}
|
|
9002
|
+
}
|
|
9003
|
+
|
|
9004
|
+
/**
|
|
9005
|
+
* @fileoverview added by tsickle
|
|
9006
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9007
|
+
*/
|
|
9008
|
+
class IserviceRequestPbaPayment {
|
|
9009
|
+
/**
|
|
9010
|
+
* @param {?} account_number
|
|
9011
|
+
* @param {?} amount
|
|
9012
|
+
* @param {?} customer_reference
|
|
9013
|
+
* @param {?} orgName
|
|
9014
|
+
*/
|
|
9015
|
+
constructor(account_number, amount, customer_reference, orgName) {
|
|
9016
|
+
this.account_number = account_number;
|
|
9017
|
+
this.amount = amount;
|
|
9018
|
+
this.currency = 'GBP';
|
|
9019
|
+
this.customer_reference = customer_reference;
|
|
9020
|
+
this.organisation_name = orgName;
|
|
9021
|
+
}
|
|
9022
|
+
}
|
|
9023
|
+
|
|
9024
|
+
/**
|
|
9025
|
+
* @fileoverview added by tsickle
|
|
9026
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9027
|
+
*/
|
|
9028
|
+
class PbaPaymentComponent {
|
|
9029
|
+
/**
|
|
9030
|
+
* @param {?} paymentLibComponent
|
|
9031
|
+
* @param {?} paymentViewService
|
|
9032
|
+
*/
|
|
9033
|
+
constructor(paymentLibComponent, paymentViewService) {
|
|
9034
|
+
this.paymentLibComponent = paymentLibComponent;
|
|
9035
|
+
this.paymentViewService = paymentViewService;
|
|
9036
|
+
this.isPBAAccountHold = false;
|
|
9037
|
+
this.isCardPaymentSuccess = true;
|
|
9038
|
+
this.isInSufficiantFund = false;
|
|
9039
|
+
this.isPBAAccountNotExist = false;
|
|
9040
|
+
this.isPBAServerError = false;
|
|
9041
|
+
this.isGetPBAAccountSucceed = false;
|
|
9042
|
+
this.selectedPbaAccount = '';
|
|
9043
|
+
this.pbaAccountRef = '';
|
|
9044
|
+
this.isPbaAccountSelected = false;
|
|
9045
|
+
this.isCardPaymentSelected = false;
|
|
9046
|
+
this.isPBADropdownSelected = false;
|
|
9047
|
+
this.isContinueButtondisabled = true;
|
|
9048
|
+
this.isPBAAccountPaymentSuccess = false;
|
|
9049
|
+
this.orgName = '';
|
|
9050
|
+
}
|
|
9051
|
+
/**
|
|
9052
|
+
* @return {?}
|
|
9053
|
+
*/
|
|
9054
|
+
ngOnInit() {
|
|
9055
|
+
this.pbaPayOrderRef = this.paymentLibComponent.pbaPayOrderRef;
|
|
9056
|
+
this.viewStatus = 'pba-payment';
|
|
9057
|
+
this.errorMsg = null;
|
|
9058
|
+
this.paymentViewService.getPBAaccountDetails()
|
|
9059
|
+
.subscribe((/**
|
|
9060
|
+
* @param {?} result
|
|
9061
|
+
* @return {?}
|
|
9062
|
+
*/
|
|
9063
|
+
result => {
|
|
9064
|
+
this.isGetPBAAccountSucceed = true;
|
|
9065
|
+
this.orgName = result.organisationEntityResponse.name;
|
|
9066
|
+
this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
|
|
9067
|
+
}), (/**
|
|
9068
|
+
* @param {?} error
|
|
9069
|
+
* @return {?}
|
|
9070
|
+
*/
|
|
9071
|
+
error => {
|
|
9072
|
+
this.errorMsg = error;
|
|
9073
|
+
}));
|
|
9074
|
+
}
|
|
9075
|
+
/**
|
|
9076
|
+
* @param {?} args
|
|
9077
|
+
* @return {?}
|
|
9078
|
+
*/
|
|
9079
|
+
selectpbaaccount(args) {
|
|
9080
|
+
if (args.currentTarget.id === 'pbaAccountNumber') {
|
|
9081
|
+
this.isPBADropdownSelected = true;
|
|
9082
|
+
this.selectedPbaAccount = args.target.value;
|
|
9083
|
+
}
|
|
9084
|
+
if (args.currentTarget.id === 'pbaAccountRef') {
|
|
9085
|
+
this.pbaAccountRef = args.target.value;
|
|
9086
|
+
}
|
|
9087
|
+
if (this.selectedPbaAccount !== '' && this.pbaAccountRef !== "") {
|
|
9088
|
+
this.isContinueButtondisabled = false;
|
|
9089
|
+
}
|
|
9090
|
+
else {
|
|
9091
|
+
this.isContinueButtondisabled = true;
|
|
9092
|
+
}
|
|
9093
|
+
}
|
|
9094
|
+
/**
|
|
9095
|
+
* @return {?}
|
|
9096
|
+
*/
|
|
9097
|
+
saveAndContinue() {
|
|
9098
|
+
if (this.isPbaAccountSelected) {
|
|
9099
|
+
this.isInSufficiantFund = false;
|
|
9100
|
+
this.isPBAAccountNotExist = false;
|
|
9101
|
+
this.isPBAServerError = false;
|
|
9102
|
+
this.isPBAAccountPaymentSuccess = false;
|
|
9103
|
+
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
9104
|
+
/** @type {?} */
|
|
9105
|
+
const requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
|
|
9106
|
+
this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
9107
|
+
.subscribe((/**
|
|
9108
|
+
* @param {?} r
|
|
9109
|
+
* @return {?}
|
|
9110
|
+
*/
|
|
9111
|
+
r => {
|
|
9112
|
+
try {
|
|
9113
|
+
this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
9114
|
+
}
|
|
9115
|
+
catch (e) {
|
|
9116
|
+
this.pbaAccountrPaymentResult = r;
|
|
9117
|
+
}
|
|
9118
|
+
this.isPBAAccountPaymentSuccess = true;
|
|
9119
|
+
}), (/**
|
|
9120
|
+
* @param {?} e
|
|
9121
|
+
* @return {?}
|
|
9122
|
+
*/
|
|
9123
|
+
e => {
|
|
9124
|
+
if (e.status == '402') {
|
|
9125
|
+
this.isInSufficiantFund = true;
|
|
9126
|
+
}
|
|
9127
|
+
else if (e.status == '410') {
|
|
9128
|
+
this.isPBAAccountNotExist = true;
|
|
9129
|
+
}
|
|
9130
|
+
else if (e.status == '412') {
|
|
9131
|
+
this.isPBAAccountHold = true;
|
|
9132
|
+
}
|
|
9133
|
+
else {
|
|
9134
|
+
this.isPBAServerError = true;
|
|
9135
|
+
}
|
|
9136
|
+
}));
|
|
9137
|
+
}
|
|
9138
|
+
else {
|
|
9139
|
+
this.isPBAServerError = true;
|
|
9140
|
+
}
|
|
9141
|
+
}
|
|
9142
|
+
else if (this.isCardPaymentSelected) {
|
|
9143
|
+
this.cardPayment();
|
|
9144
|
+
}
|
|
9145
|
+
}
|
|
9146
|
+
/**
|
|
9147
|
+
* @return {?}
|
|
9148
|
+
*/
|
|
9149
|
+
cardPayment() {
|
|
9150
|
+
this.isCardPaymentSuccess = true;
|
|
9151
|
+
/** @type {?} */
|
|
9152
|
+
const requestBody = new IserviceRequestCardPayment(this.pbaPayOrderRef.orderTotalFees);
|
|
9153
|
+
this.paymentViewService.postWays2PayCardPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
9154
|
+
.subscribe((/**
|
|
9155
|
+
* @param {?} result
|
|
9156
|
+
* @return {?}
|
|
9157
|
+
*/
|
|
9158
|
+
result => {
|
|
9159
|
+
/** @type {?} */
|
|
9160
|
+
const paymentUrl = JSON.parse(result).next_url;
|
|
9161
|
+
window.location.href = paymentUrl;
|
|
9162
|
+
}), (/**
|
|
9163
|
+
* @param {?} error
|
|
9164
|
+
* @return {?}
|
|
9165
|
+
*/
|
|
9166
|
+
error => {
|
|
9167
|
+
this.isCardPaymentSuccess = false;
|
|
9168
|
+
}));
|
|
9169
|
+
}
|
|
9170
|
+
/**
|
|
9171
|
+
* @param {?} type
|
|
9172
|
+
* @return {?}
|
|
9173
|
+
*/
|
|
9174
|
+
selectPaymentMethod(type) {
|
|
9175
|
+
if (type === 'PBA') {
|
|
9176
|
+
this.isPbaAccountSelected = true;
|
|
9177
|
+
this.isCardPaymentSelected = false;
|
|
9178
|
+
this.isPBADropdownSelected = false;
|
|
9179
|
+
this.isContinueButtondisabled = true;
|
|
9180
|
+
this.selectedPbaAccount = null;
|
|
9181
|
+
}
|
|
9182
|
+
else if (type === 'CARD') {
|
|
9183
|
+
this.isPbaAccountSelected = false;
|
|
9184
|
+
this.isCardPaymentSelected = true;
|
|
9185
|
+
this.isPBADropdownSelected = false;
|
|
9186
|
+
this.isContinueButtondisabled = false;
|
|
9187
|
+
}
|
|
9188
|
+
}
|
|
9189
|
+
/**
|
|
9190
|
+
* @return {?}
|
|
9191
|
+
*/
|
|
9192
|
+
gotoCasetransationPage() {
|
|
9193
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
9194
|
+
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
9195
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
9196
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9197
|
+
}
|
|
9198
|
+
}
|
|
9199
|
+
PbaPaymentComponent.decorators = [
|
|
9200
|
+
{ type: Component, args: [{
|
|
9201
|
+
selector: 'ccpay-pba-payment',
|
|
9202
|
+
template: "<ng-container *ngIf=\"viewStatus === 'pba-payment'\">\n\n <div class=\"govuk-breadcrumbs\" *ngIf=\"!errorMsg && !isPBAAccountPaymentSuccess && !isCardPaymentSuccess\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-back-link pba-payments-16-font\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"pba-payment\" *ngIf=\"(pbaAccountList?.length > 0 || errorMsg) && !isInSufficiantFund && !isPBAAccountNotExist && !isPBAServerError && !isPBAAccountHold && !isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n \n <div *ngIf=\"errorMsg\" class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\" >\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account cannot be found.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you know your organisation has a PBA, try again.\n </li>\n <li class=\"pba-payments-error-16-font\">\n You can also pay by credit or debit card.\n </li>\n </ul>\n </div>\n </div>\n <!-- <h1 class=\"heading-medium margin-top-10-px\">Pay fee using Payment by Account (PBA)</h1> -->\n <div class=\"govuk-form-group margin-top-10-px\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\">\n Amount to pay \n </label>\n <span class=\"pba-payments-19-font\">{{pbaPayOrderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</span>\n </div>\n\n <div class=\"govuk-form-group\" *ngIf=\"!errorMsg\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"contact-hint\">\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"pbaAccount\" name=\"paymentSelection\" type=\"radio\" value=\"PBA\" (click)=\"selectPaymentMethod('PBA')\" data-aria-controls=\"pba-account\">\n <label class=\"govuk-label govuk-radios__label pba-payments-19-font pba-payments-font-bld\" for=\"pbaAccount\">\n Pay fee using Payment by Account (PBA)\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact\" *ngIf=\"isPbaAccountSelected\">\n <div class=\"govuk-form-group pba-payments-select-box--size\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\" for=\"pbaAccountNumber\">\n Select a PBA \n </label>\n <select class=\"form-control short-input\" id=\"pbaAccountNumber\" (change)=\"selectpbaaccount($event)\">\n <option value=\"\" selected='selected'>Select option</option>\n <option *ngFor=\"let pbaAccount of pbaAccountList;\" value=\"{{pbaAccount}}\">{{pbaAccount}}</option>\n </select>\n </div>\n <div class=\"govuk-form-group\" *ngIf=\"!errorMsg && selectedPbaAccount\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-24-font\" for=\"pbaAccountNumber\">\n Enter a reference for your PBA account statements \n </label>\n <div id=\"event-name-hint\" class=\"govuk-hint pba-payments-19-font pba-payment-width\">\n This should be your own unique reference to identify the case. It will appear on your statements.\n </div>\n <input class=\"govuk-input pba-payments-ref-box--size pba-payments-19-font\" id=\"pbaAccountRef\" (change)=\"selectpbaaccount($event)\" name=\"pbaAccountRef\" type=\"text\" aria-describedby=\"pbaAccountRef-hint\">\n </div>\n \n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"cardPayment\" name=\"paymentSelection\" type=\"radio\" value=\"card\" (click)=\"selectPaymentMethod('CARD')\" data-aria-controls=\"card-payment\">\n <label class=\"govuk-label govuk-radios__label pba-payments-19-font pba-payments-font-bld\" for=\"cardPayment\">\n Pay by credit or debit card\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n\n <div class=\"govuk-button--group\" *ngIf=\"errorMsg\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n <div class=\"govuk-button--group\" *ngIf=\"!errorMsg\">\n <button type=\"submit\" [disabled]=\"isContinueButtondisabled\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"saveAndContinue()\">\n <span *ngIf=\"!isPBADropdownSelected\">Continue</span>\n <span *ngIf=\"isPBADropdownSelected\">Confirm payment</span>\n </button>\n </div>\n </div>\n<ng-container *ngIf=\"pbaAccountList?.length <= 0 && !errorMsg && isGetPBAAccountSucceed && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n <h2 class=\"warning-heading-m\">You don\u2019t have a registered PBA.</h2>\n </strong>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Pay by credit or debit card</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n We recommend that you apply to get a new PBA to pay for fees.\n </p>\n <p class=\"govuk-bod ypba-payments-19-font\">\n you can also pay by credit or debit card if you need to pay now\n </p>\n <p class=\"govuk-body\">\n <button type=\"submit\" (click)=\"cardPayment()\" class=\"button pba-payments-19-font pba-payments-20-margin\">\n Pay by card\n </button>\n </p>\n \n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Register an existing PBA with MyHMCTS</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You may find it easier in future to pay by PBA, your organisation administrator will need to \n email <a href=\"mailto: MyHMCTSsupport@justice.gov.uk\">MyHMCTSsupport@justice.gov.uk</a> to ask for your PBA to be registered with your \n MyHMCTS account. You should include your organisation name and PBA number.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n It can then take up to 3 days for your account to be updated. You\u2019ll need to start your claim \n again to pay the fee.\n </p>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Apply to get a new PBA </h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You\u2019ll need to provide details for you and your organisation, including the required credit\n limit for your account.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Once your account has been registered, you\u2019ll need to start your claim again to pay the fee.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Read more information on <a target=\"_blank\" href=\"https://www.gov.uk/guidance/hmcts-payment-by-account-for-online-services\">registering for PBA</a>.\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isInSufficiantFund && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n You don't have enough funds in your PBA account to pay for this fee.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you have already topped up your PBA account, wait up to 24 hours for the new balance to become available.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a> or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAAccountNotExist && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account ({{selectedPbaAccount}}) no longer exists.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font govuk-body-width\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a> or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAAccountHold && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account ({{selectedPbaAccount}}) has been put on hold.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font govuk-body-width\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a> or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAServerError && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel--confirmation pba-payments--confirmation\">\n <h1 class=\"govuk-panel__title pba-payments--title\">\n Payment successful\n </h1>\n <div class=\"govuk-panel__body pba-payments__body\">\n Your payment reference is <br><strong>{{pbaAccountrPaymentResult.payment_reference}}</strong>\n </div>\n </div>\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <!-- <p class=\"govuk-body pba-payments-19-font\">\n you can also <a href=\"javascript:void(0)\" (click)=\"cardPayment()\" >pay by credit or debit card</a>.\n </p> -->\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n</ng-container>\n\n\n\n",
|
|
9203
|
+
styles: [".pba-payments-govuk__label{font-weight:700;line-height:1.31578947}.pba-payments-19-font{font-size:19px}.pba-payments-font-bld{font-weight:700}.pba-payments-16-font{font-size:16px}.pba-payments-24-font{font-size:24px}.pba-payments-20-margin{margin-bottom:20px}.pba-payments-select-box--size{width:40%}.pba-payments-error-box--size{width:80%}.pba-payments-ref-box--size{width:60%}.pba-payments-error-16-font{font-size:16px;line-height:34px}.pba-payments-margin-10{margin-right:10px}.pba-payments-margin-top-10{margin-top:15px}.pba-payments-heading-lg{font-size:40px;font-weight:700;line-height:72px}.pba-payments--confirmation{background:#00703c!important}.pba-payments__body{font-size:36px!important}.pba-payments--title{font-size:48px!important}.warning-heading-m{font-size:29px;font-weight:700}.pba-payment-width{width:75%}.margin-top-10-px{margin-top:10px}.govuk-error-summary:focus{outline:#fd0 solid 3px}.govuk-body-width{width:750px}"]
|
|
9204
|
+
}] }
|
|
9205
|
+
];
|
|
9206
|
+
/** @nocollapse */
|
|
9207
|
+
PbaPaymentComponent.ctorParameters = () => [
|
|
9208
|
+
{ type: PaymentLibComponent },
|
|
9209
|
+
{ type: PaymentViewService }
|
|
9210
|
+
];
|
|
9211
|
+
PbaPaymentComponent.propDecorators = {
|
|
9212
|
+
pbaPayOrderRef: [{ type: Input }]
|
|
7448
9213
|
};
|
|
7449
9214
|
|
|
7450
9215
|
/**
|
|
7451
9216
|
* @fileoverview added by tsickle
|
|
7452
9217
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7453
9218
|
*/
|
|
7454
|
-
// import { PbaPaymentComponent } from './components/pba-payment/pba-payment.component';
|
|
7455
9219
|
class PaymentLibModule {
|
|
7456
9220
|
}
|
|
7457
9221
|
PaymentLibModule.decorators = [
|
|
@@ -7472,6 +9236,8 @@ PaymentLibModule.decorators = [
|
|
|
7472
9236
|
PaymentListComponent,
|
|
7473
9237
|
PaymentViewComponent,
|
|
7474
9238
|
// PbaPaymentComponent,
|
|
9239
|
+
ContactDetailsComponent,
|
|
9240
|
+
PbaPaymentComponent,
|
|
7475
9241
|
ProcessRefundComponent,
|
|
7476
9242
|
RefundListComponent,
|
|
7477
9243
|
CardDetailsComponent,
|
|
@@ -7493,7 +9259,8 @@ PaymentLibModule.decorators = [
|
|
|
7493
9259
|
ReportsComponent,
|
|
7494
9260
|
ErrorBannerComponent,
|
|
7495
9261
|
TableComponent,
|
|
7496
|
-
RefundStatusComponent
|
|
9262
|
+
RefundStatusComponent,
|
|
9263
|
+
ServiceRequestComponent
|
|
7497
9264
|
],
|
|
7498
9265
|
exports: [PaymentLibComponent],
|
|
7499
9266
|
providers: [
|
|
@@ -7514,6 +9281,6 @@ PaymentLibModule.decorators = [
|
|
|
7514
9281
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7515
9282
|
*/
|
|
7516
9283
|
|
|
7517
|
-
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as
|
|
9284
|
+
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as ɵbd, AllocatePaymentsComponent as ɵy, CardDetailsComponent as ɵo, CaseTransactionsComponent as ɵbb, ContactDetailsComponent as ɵi, ErrorBannerComponent as ɵbk, FeeSummaryComponent as ɵbc, MarkUnidentifiedPaymentComponent as ɵt, MarkUnsolicitedPaymentComponent as ɵv, PageNotFoundComponent as ɵq, PaymentListComponent as ɵb, PaymentViewComponent as ɵf, PbaDetailsComponent as ɵba, PbaPaymentComponent as ɵk, ProcessRefundComponent as ɵl, ProcessedPaymentsComponent as ɵx, RefundListComponent as ɵn, RefundStatusComponent as ɵbm, ReportsComponent as ɵbi, ServiceRequestComponent as ɵbn, StatusHistoryComponent as ɵr, TableComponent as ɵbl, UnprocessedPaymentsComponent as ɵw, CapitalizePipe as ɵbf, CcdHyphensPipe as ɵbe, keyValuePipe as ɵbg, SanitizeHtmlPipe as ɵbh, BulkScaningPaymentService as ɵu, CardDetailsService as ɵp, CaseTransactionsService as ɵz, NotificationService as ɵj, OrderslistService as ɵa, PaymentListService as ɵc, PaymentViewService as ɵg, RefundsService as ɵm, ErrorHandlerService as ɵe, WebComponentHttpClient as ɵh, ConsoleLoggerService as ɵbo, LoggerService as ɵd, StatusHistoryService as ɵs, XlFileService as ɵbj };
|
|
7518
9285
|
|
|
7519
9286
|
//# sourceMappingURL=hmcts-ccpay-web-component.js.map
|