@hmcts/ccpay-web-component 5.0.5-beta02 → 5.0.5-beta03
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccpay-web-component.umd.js +675 -2055
- 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 +31 -33
- package/esm2015/lib/components/add-remission/add-remission.component.js +126 -697
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +12 -17
- package/esm2015/lib/components/payment-view/payment-view.component.js +158 -187
- package/esm2015/lib/components/process-refund/process-refund.component.js +28 -49
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +30 -211
- package/esm2015/lib/components/reports/reports.component.js +6 -2
- package/esm2015/lib/components/service-request/service-request.component.js +146 -237
- package/esm2015/lib/components/table/table.component.js +9 -24
- package/esm2015/lib/interfaces/IFee.js +1 -13
- package/esm2015/lib/interfaces/IPayment.js +1 -7
- package/esm2015/lib/interfaces/IPaymentFailure.js +33 -0
- package/esm2015/lib/interfaces/IRefundList.js +1 -7
- package/esm2015/lib/interfaces/IRemission.js +1 -7
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -20
- package/esm2015/lib/payment-lib.component.js +6 -9
- package/esm2015/lib/payment-lib.module.js +1 -3
- package/esm2015/lib/payment-lib.service.js +1 -16
- package/esm2015/lib/services/payment-view/payment-view.service.js +10 -1
- package/esm2015/lib/services/refunds/refunds.service.js +1 -10
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +131 -819
- package/esm5/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm5/lib/components/fee-summary/fee-summary.component.js +12 -17
- package/esm5/lib/components/payment-view/payment-view.component.js +179 -213
- package/esm5/lib/components/process-refund/process-refund.component.js +78 -52
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +28 -247
- package/esm5/lib/components/reports/reports.component.js +6 -2
- package/esm5/lib/components/service-request/service-request.component.js +176 -278
- package/esm5/lib/components/table/table.component.js +9 -27
- package/esm5/lib/interfaces/IFee.js +1 -13
- package/esm5/lib/interfaces/IPayment.js +1 -7
- package/esm5/lib/interfaces/IPaymentFailure.js +33 -0
- package/esm5/lib/interfaces/IRefundList.js +1 -7
- package/esm5/lib/interfaces/IRemission.js +1 -7
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -16
- package/esm5/lib/payment-lib.component.js +5 -9
- package/esm5/lib/payment-lib.module.js +1 -3
- package/esm5/lib/payment-lib.service.js +1 -23
- package/esm5/lib/services/payment-view/payment-view.service.js +14 -1
- package/esm5/lib/services/refunds/refunds.service.js +1 -16
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +539 -1802
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +644 -2062
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +30 -32
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +3 -45
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -2
- package/lib/components/payment-view/payment-view.component.d.ts +13 -23
- package/lib/components/process-refund/process-refund.component.d.ts +1 -6
- package/lib/components/refund-status/refund-status.component.d.ts +6 -34
- package/lib/components/service-request/service-request.component.d.ts +9 -28
- package/lib/components/table/table.component.d.ts +0 -1
- package/lib/interfaces/IFee.d.ts +0 -6
- package/lib/interfaces/IPayment.d.ts +0 -3
- package/lib/interfaces/IPaymentFailure.d.ts +13 -0
- package/lib/interfaces/IRefundList.d.ts +0 -4
- package/lib/interfaces/IRemission.d.ts +0 -3
- package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
- package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -7
- package/lib/payment-lib.component.d.ts +1 -2
- package/lib/payment-lib.service.d.ts +0 -3
- package/lib/services/payment-view/payment-view.service.d.ts +1 -0
- package/lib/services/refunds/refunds.service.d.ts +0 -2
- package/package.json +1 -5
- package/esm2015/lib/components/contact-details/contact-details.component.js +0 -447
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
- package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm2015/lib/interfaces/IRefundFee.js +0 -21
- package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm2015/lib/services/notification/notification.service.js +0 -85
- package/esm5/lib/components/contact-details/contact-details.component.js +0 -472
- package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
- package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm5/lib/interfaces/IRefundFee.js +0 -21
- package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm5/lib/services/notification/notification.service.js +0 -89
- package/lib/components/contact-details/contact-details.component.d.ts +0 -49
- package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
- package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
- package/lib/interfaces/IRefundFee.d.ts +0 -7
- package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
- package/lib/services/notification/notification.service.d.ts +0 -15
|
@@ -71,26 +71,6 @@
|
|
|
71
71
|
function () {
|
|
72
72
|
return this.REFUNDS_API_ROOT;
|
|
73
73
|
};
|
|
74
|
-
/**
|
|
75
|
-
* @param {?} notificationapiRoot
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
PaymentLibService.prototype.setNoticationApiRootUrl = /**
|
|
79
|
-
* @param {?} notificationapiRoot
|
|
80
|
-
* @return {?}
|
|
81
|
-
*/
|
|
82
|
-
function (notificationapiRoot) {
|
|
83
|
-
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
PaymentLibService.prototype.getNoticationApiRootUrl = /**
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
function () {
|
|
92
|
-
return this.NOTIFICATION_API_ROOT;
|
|
93
|
-
};
|
|
94
74
|
/**
|
|
95
75
|
* @param {?} cardPaymentReturnUrl
|
|
96
76
|
* @return {?}
|
|
@@ -541,7 +521,6 @@
|
|
|
541
521
|
this.cd = cd;
|
|
542
522
|
this.OrderslistService = OrderslistService$$1;
|
|
543
523
|
this.unProcessedPaymentServiceId = null;
|
|
544
|
-
this.isFromPayBubble = false;
|
|
545
524
|
this.unProcessedPayment = null;
|
|
546
525
|
this.orderFeesTotal = 0.00;
|
|
547
526
|
this.orderRemissionTotal = 0.00;
|
|
@@ -567,7 +546,6 @@
|
|
|
567
546
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
568
547
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
569
548
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
570
|
-
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
571
549
|
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
572
550
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
573
551
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
@@ -598,7 +576,7 @@
|
|
|
598
576
|
PaymentLibComponent.decorators = [
|
|
599
577
|
{ type: i0.Component, args: [{
|
|
600
578
|
selector: 'ccpay-payment-lib',
|
|
601
|
-
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\"\n [API_ROOT]=\"API_ROOT\"\n *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [
|
|
579
|
+
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\"\n [API_ROOT]=\"API_ROOT\"\n *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [ISPAYMENTSTATUSENABLED] = \"ISPAYMENTSTATUSENABLED\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'case-transactions'\"></ccpay-case-transactions>\n <app-mark-unidentified-payment *ngIf=\"viewName === 'unidentifiedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unidentified-payment>\n <app-mark-unsolicited-payment *ngIf=\"viewName === 'unsolicitedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unsolicited-payment>\n <app-allocate-payments *ngIf=\"viewName === 'allocate-payments'\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n ></app-allocate-payments>\n <ccpay-fee-summary *ngIf=\"viewName === 'fee-summary'\"\n [ccdCaseNumber]=\"CCD_CASE_NUMBER\" \n [paymentGroupRef]=\"paymentGroupReference\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"\n ></ccpay-fee-summary>\n <ccpay-reports *ngIf=\"viewName === 'reports'\"></ccpay-reports>\n "
|
|
602
580
|
}] }
|
|
603
581
|
];
|
|
604
582
|
/** @nocollapse */
|
|
@@ -613,7 +591,6 @@
|
|
|
613
591
|
API_ROOT: [{ type: i0.Input, args: ['API_ROOT',] }],
|
|
614
592
|
BULKSCAN_API_ROOT: [{ type: i0.Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
615
593
|
REFUNDS_API_ROOT: [{ type: i0.Input, args: ['REFUNDS_API_ROOT',] }],
|
|
616
|
-
NOTIFICATION_API_ROOT: [{ type: i0.Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
617
594
|
CARDPAYMENTRETURNURL: [{ type: i0.Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
618
595
|
CCD_CASE_NUMBER: [{ type: i0.Input, args: ['CCD_CASE_NUMBER',] }],
|
|
619
596
|
EXC_REFERENCE: [{ type: i0.Input, args: ['EXC_REFERENCE',] }],
|
|
@@ -631,6 +608,7 @@
|
|
|
631
608
|
CASETYPE: [{ type: i0.Input, args: ['CASETYPE',] }],
|
|
632
609
|
ISOLDPCIPALOFF: [{ type: i0.Input, args: ['ISOLDPCIPALOFF',] }],
|
|
633
610
|
ISNEWPCIPALOFF: [{ type: i0.Input, args: ['ISNEWPCIPALOFF',] }],
|
|
611
|
+
ISPAYMENTSTATUSENABLED: [{ type: i0.Input, args: ['ISPAYMENTSTATUSENABLED',] }],
|
|
634
612
|
rootUrl: [{ type: i0.Input, args: ['rootUrl',] }],
|
|
635
613
|
REFUNDLIST: [{ type: i0.Input, args: ['REFUNDLIST',] }],
|
|
636
614
|
USERID: [{ type: i0.Input, args: ['USERID',] }],
|
|
@@ -1387,6 +1365,19 @@
|
|
|
1387
1365
|
function (body) {
|
|
1388
1366
|
return this.https.post(this.paymentLibService.API_ROOT + "/refund-retro-remission", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
1389
1367
|
};
|
|
1368
|
+
/**
|
|
1369
|
+
* @param {?} paymentReference
|
|
1370
|
+
* @return {?}
|
|
1371
|
+
*/
|
|
1372
|
+
PaymentViewService.prototype.getPaymentFailure = /**
|
|
1373
|
+
* @param {?} paymentReference
|
|
1374
|
+
* @return {?}
|
|
1375
|
+
*/
|
|
1376
|
+
function (paymentReference) {
|
|
1377
|
+
return this.https.get(this.paymentLibService.API_ROOT + "/payment-failures/" + paymentReference, {
|
|
1378
|
+
withCredentials: true
|
|
1379
|
+
}).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
1380
|
+
};
|
|
1390
1381
|
PaymentViewService.decorators = [
|
|
1391
1382
|
{ type: i0.Injectable, args: [{
|
|
1392
1383
|
providedIn: 'root'
|
|
@@ -1406,28 +1397,13 @@
|
|
|
1406
1397
|
return PaymentViewService;
|
|
1407
1398
|
}());
|
|
1408
1399
|
|
|
1409
|
-
/**
|
|
1410
|
-
* @fileoverview added by tsickle
|
|
1411
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1412
|
-
*/
|
|
1413
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
1414
|
-
function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1415
|
-
this.contact_details = contact_details;
|
|
1416
|
-
this.fees = fees;
|
|
1417
|
-
this.payment_reference = payment_reference;
|
|
1418
|
-
this.refund_reason = refund_reason;
|
|
1419
|
-
this.total_refund_amount = total_refund_amount;
|
|
1420
|
-
this.is_over_payment = is_over_payment === 'op';
|
|
1421
|
-
}
|
|
1422
|
-
return PostRefundRetroRemission;
|
|
1423
|
-
}());
|
|
1424
|
-
|
|
1425
1400
|
/**
|
|
1426
1401
|
* @fileoverview added by tsickle
|
|
1427
1402
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1428
1403
|
*/
|
|
1429
1404
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1430
1405
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1406
|
+
var _this = this;
|
|
1431
1407
|
this.paymentViewService = paymentViewService;
|
|
1432
1408
|
this.paymentLibComponent = paymentLibComponent;
|
|
1433
1409
|
this.cd = cd;
|
|
@@ -1437,7 +1413,28 @@
|
|
|
1437
1413
|
this.isIssueRefunfBtnEnable = false;
|
|
1438
1414
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1439
1415
|
this.remissions = [];
|
|
1440
|
-
this.
|
|
1416
|
+
this.allPaymentsFailure = [];
|
|
1417
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
1418
|
+
* @return {?}
|
|
1419
|
+
*/function () {
|
|
1420
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
1421
|
+
* @param {?} role
|
|
1422
|
+
* @return {?}
|
|
1423
|
+
*/function (role) {
|
|
1424
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1425
|
+
}));
|
|
1426
|
+
});
|
|
1427
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
1428
|
+
* @param {?} payment
|
|
1429
|
+
* @return {?}
|
|
1430
|
+
*/function (payment) {
|
|
1431
|
+
if (payment !== null && payment !== undefined) {
|
|
1432
|
+
/** @type {?} */
|
|
1433
|
+
var tmp4DayAgo = new Date();
|
|
1434
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1435
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1441
1438
|
}
|
|
1442
1439
|
/**
|
|
1443
1440
|
* @return {?}
|
|
@@ -1488,7 +1485,6 @@
|
|
|
1488
1485
|
}
|
|
1489
1486
|
}));
|
|
1490
1487
|
paymentGroup.fees = fees;
|
|
1491
|
-
_this.paymentFees = fees;
|
|
1492
1488
|
_this.paymentGroup = paymentGroup;
|
|
1493
1489
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1494
1490
|
* @param {?} paymentGroupObj
|
|
@@ -1501,6 +1497,30 @@
|
|
|
1501
1497
|
* @param {?} error
|
|
1502
1498
|
* @return {?}
|
|
1503
1499
|
*/function (error) { return _this.errorMessage = error; }));
|
|
1500
|
+
this.paymentViewService.getPaymentFailure(this.paymentLibComponent.paymentReference).subscribe({
|
|
1501
|
+
next: ( /**
|
|
1502
|
+
* @param {?} res
|
|
1503
|
+
* @return {?}
|
|
1504
|
+
*/function (res) {
|
|
1505
|
+
JSON.parse(res).payment_failure_list.reverse().forEach(( /**
|
|
1506
|
+
* @param {?} payments
|
|
1507
|
+
* @return {?}
|
|
1508
|
+
*/function (payments) {
|
|
1509
|
+
_this.allPaymentsFailure.push(payments.payment_failure_initiated);
|
|
1510
|
+
if (payments.payment_failure_closed) {
|
|
1511
|
+
_this.allPaymentsFailure.push(payments.payment_failure_closed);
|
|
1512
|
+
}
|
|
1513
|
+
}));
|
|
1514
|
+
_this.allPaymentsFailure = _this.allPaymentsFailure.reverse();
|
|
1515
|
+
}),
|
|
1516
|
+
error: ( /**
|
|
1517
|
+
* @param {?} e
|
|
1518
|
+
* @return {?}
|
|
1519
|
+
*/function (e) {
|
|
1520
|
+
_this.allPaymentsFailure = [];
|
|
1521
|
+
_this.errorMsg = "Server error";
|
|
1522
|
+
})
|
|
1523
|
+
});
|
|
1504
1524
|
};
|
|
1505
1525
|
Object.defineProperty(PaymentViewComponent.prototype, "isCardPayment", {
|
|
1506
1526
|
get: /**
|
|
@@ -1532,23 +1552,6 @@
|
|
|
1532
1552
|
/**
|
|
1533
1553
|
* @return {?}
|
|
1534
1554
|
*/
|
|
1535
|
-
PaymentViewComponent.prototype.getOverPaymentValue = /**
|
|
1536
|
-
* @return {?}
|
|
1537
|
-
*/
|
|
1538
|
-
function () {
|
|
1539
|
-
/** @type {?} */
|
|
1540
|
-
var feesOverPayment = 0;
|
|
1541
|
-
this.paymentGroup.fees.forEach(( /**
|
|
1542
|
-
* @param {?} fee
|
|
1543
|
-
* @return {?}
|
|
1544
|
-
*/function (fee) {
|
|
1545
|
-
feesOverPayment += fee.over_payment;
|
|
1546
|
-
}));
|
|
1547
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1548
|
-
};
|
|
1549
|
-
/**
|
|
1550
|
-
* @return {?}
|
|
1551
|
-
*/
|
|
1552
1555
|
PaymentViewComponent.prototype.goToServiceRequestPage = /**
|
|
1553
1556
|
* @return {?}
|
|
1554
1557
|
*/
|
|
@@ -1623,7 +1626,7 @@
|
|
|
1623
1626
|
*/
|
|
1624
1627
|
function (fee) {
|
|
1625
1628
|
var _this = this;
|
|
1626
|
-
if (this.
|
|
1629
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
1627
1630
|
this.feeId = fee;
|
|
1628
1631
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe(( /**
|
|
1629
1632
|
* @param {?} paymentGroup
|
|
@@ -1661,62 +1664,6 @@
|
|
|
1661
1664
|
}
|
|
1662
1665
|
return false;
|
|
1663
1666
|
};
|
|
1664
|
-
/**
|
|
1665
|
-
* @return {?}
|
|
1666
|
-
*/
|
|
1667
|
-
PaymentViewComponent.prototype.processRefund = /**
|
|
1668
|
-
* @return {?}
|
|
1669
|
-
*/
|
|
1670
|
-
function () {
|
|
1671
|
-
var _this = this;
|
|
1672
|
-
this.isConfirmationBtnDisabled = true;
|
|
1673
|
-
this.errorMessage = '';
|
|
1674
|
-
/** @type {?} */
|
|
1675
|
-
var obj = this.paymentGroup.fees[0];
|
|
1676
|
-
this.fees = [{ id: obj.id,
|
|
1677
|
-
code: obj.code,
|
|
1678
|
-
version: obj.version,
|
|
1679
|
-
apportion_amount: obj.apportion_amount,
|
|
1680
|
-
calculated_amount: obj.calculated_amount,
|
|
1681
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1682
|
-
volume: obj.volume,
|
|
1683
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
1684
|
-
/** @type {?} */
|
|
1685
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1686
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
1687
|
-
* @param {?} response
|
|
1688
|
-
* @return {?}
|
|
1689
|
-
*/function (response) {
|
|
1690
|
-
if (JSON.parse(response)) {
|
|
1691
|
-
_this.viewCompStatus = '';
|
|
1692
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
1693
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
1694
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
1695
|
-
}
|
|
1696
|
-
}), ( /**
|
|
1697
|
-
* @param {?} error
|
|
1698
|
-
* @return {?}
|
|
1699
|
-
*/function (error) {
|
|
1700
|
-
_this.errorMessage = error;
|
|
1701
|
-
_this.isConfirmationBtnDisabled = false;
|
|
1702
|
-
_this.cd.detectChanges();
|
|
1703
|
-
}));
|
|
1704
|
-
};
|
|
1705
|
-
/**
|
|
1706
|
-
* @param {?=} note
|
|
1707
|
-
* @return {?}
|
|
1708
|
-
*/
|
|
1709
|
-
PaymentViewComponent.prototype.gotoAddressPage = /**
|
|
1710
|
-
* @param {?=} note
|
|
1711
|
-
* @return {?}
|
|
1712
|
-
*/
|
|
1713
|
-
function (note) {
|
|
1714
|
-
if (note) {
|
|
1715
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1716
|
-
}
|
|
1717
|
-
this.errorMessage = '';
|
|
1718
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1719
|
-
};
|
|
1720
1667
|
/**
|
|
1721
1668
|
* @param {?} payment
|
|
1722
1669
|
* @param {?} remission
|
|
@@ -1731,40 +1678,56 @@
|
|
|
1731
1678
|
*/
|
|
1732
1679
|
function (payment, remission, fees) {
|
|
1733
1680
|
var _this = this;
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
*/function (paymentGroup) {
|
|
1739
|
-
_this.paymentGroup = paymentGroup;
|
|
1740
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1741
|
-
* @param {?} paymentGroupObj
|
|
1681
|
+
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1682
|
+
this.payment = payment;
|
|
1683
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
1684
|
+
* @param {?} paymentGroup
|
|
1742
1685
|
* @return {?}
|
|
1743
|
-
*/function (
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1686
|
+
*/function (paymentGroup) {
|
|
1687
|
+
_this.paymentGroup = paymentGroup;
|
|
1688
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1689
|
+
* @param {?} paymentGroupObj
|
|
1690
|
+
* @return {?}
|
|
1691
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1692
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1693
|
+
_this.remissions = remission;
|
|
1694
|
+
_this.remissionFeeAmt = fees.filter(( /**
|
|
1695
|
+
* @param {?} data
|
|
1696
|
+
* @return {?}
|
|
1697
|
+
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1698
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1699
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1700
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1701
|
+
}), ( /**
|
|
1702
|
+
* @param {?} error
|
|
1748
1703
|
* @return {?}
|
|
1749
|
-
*/function (
|
|
1750
|
-
|
|
1751
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1752
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1753
|
-
}), ( /**
|
|
1754
|
-
* @param {?} error
|
|
1755
|
-
* @return {?}
|
|
1756
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
1757
|
-
//}
|
|
1704
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
1705
|
+
}
|
|
1758
1706
|
};
|
|
1759
1707
|
/**
|
|
1760
1708
|
* @return {?}
|
|
1761
1709
|
*/
|
|
1762
|
-
PaymentViewComponent.prototype.
|
|
1710
|
+
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
1763
1711
|
* @return {?}
|
|
1764
1712
|
*/
|
|
1765
1713
|
function () {
|
|
1766
|
-
|
|
1767
|
-
this.
|
|
1714
|
+
var _this = this;
|
|
1715
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1716
|
+
this.paymentGroup.payments.forEach(( /**
|
|
1717
|
+
* @param {?} payment
|
|
1718
|
+
* @return {?}
|
|
1719
|
+
*/function (payment) {
|
|
1720
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1721
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1722
|
+
}
|
|
1723
|
+
}));
|
|
1724
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1725
|
+
return true;
|
|
1726
|
+
}
|
|
1727
|
+
else {
|
|
1728
|
+
return false;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1768
1731
|
};
|
|
1769
1732
|
/**
|
|
1770
1733
|
* @param {?} paymentgrp
|
|
@@ -1776,18 +1739,13 @@
|
|
|
1776
1739
|
*/
|
|
1777
1740
|
function (paymentgrp) {
|
|
1778
1741
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1779
|
-
if (this.
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
this.isRefundRemission = true;
|
|
1787
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1788
|
-
this.isFromPaymentDetailPage = true;
|
|
1789
|
-
this.isFromServiceRequestPage = false;
|
|
1790
|
-
}
|
|
1742
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1743
|
+
this.paymentGroup = paymentgrp;
|
|
1744
|
+
this.viewStatus = 'issuerefund';
|
|
1745
|
+
this.isRefundRemission = true;
|
|
1746
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1747
|
+
this.isFromPaymentDetailPage = true;
|
|
1748
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1791
1749
|
}
|
|
1792
1750
|
}
|
|
1793
1751
|
};
|
|
@@ -1832,131 +1790,124 @@
|
|
|
1832
1790
|
* @param {?} payment
|
|
1833
1791
|
* @return {?}
|
|
1834
1792
|
*/
|
|
1835
|
-
PaymentViewComponent.prototype.
|
|
1793
|
+
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
1836
1794
|
* @param {?} payment
|
|
1837
1795
|
* @return {?}
|
|
1838
1796
|
*/
|
|
1839
1797
|
function (payment) {
|
|
1840
|
-
if (
|
|
1841
|
-
|
|
1798
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
1799
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
1800
|
+
this.isIssueRefunfBtnEnable = true;
|
|
1801
|
+
}
|
|
1802
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
1803
|
+
return true;
|
|
1842
1804
|
}
|
|
1843
1805
|
else {
|
|
1844
1806
|
return false;
|
|
1845
1807
|
}
|
|
1846
1808
|
};
|
|
1847
1809
|
/**
|
|
1848
|
-
* @param {?} remission
|
|
1849
1810
|
* @return {?}
|
|
1850
1811
|
*/
|
|
1851
|
-
PaymentViewComponent.prototype.
|
|
1852
|
-
* @param {?} remission
|
|
1812
|
+
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
1853
1813
|
* @return {?}
|
|
1854
1814
|
*/
|
|
1855
|
-
function (
|
|
1856
|
-
if (
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1815
|
+
function () {
|
|
1816
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1817
|
+
/** @type {?} */
|
|
1818
|
+
var payment = this.paymentGroup.payments[0];
|
|
1819
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1820
|
+
return true;
|
|
1821
|
+
}
|
|
1860
1822
|
return false;
|
|
1861
1823
|
}
|
|
1862
1824
|
};
|
|
1863
1825
|
/**
|
|
1864
|
-
* @param {?}
|
|
1826
|
+
* @param {?} feeCode
|
|
1865
1827
|
* @return {?}
|
|
1866
1828
|
*/
|
|
1867
|
-
PaymentViewComponent.prototype.
|
|
1868
|
-
* @param {?}
|
|
1829
|
+
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
1830
|
+
* @param {?} feeCode
|
|
1869
1831
|
* @return {?}
|
|
1870
1832
|
*/
|
|
1871
|
-
function (
|
|
1872
|
-
|
|
1873
|
-
|
|
1833
|
+
function (feeCode) {
|
|
1834
|
+
var e_2, _a;
|
|
1835
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
1836
|
+
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1837
|
+
try {
|
|
1838
|
+
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1839
|
+
var remission = _c.value;
|
|
1840
|
+
if (remission.fee_code === feeCode) {
|
|
1841
|
+
return false;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
catch (e_2_1) {
|
|
1846
|
+
e_2 = { error: e_2_1 };
|
|
1847
|
+
}
|
|
1848
|
+
finally {
|
|
1849
|
+
try {
|
|
1850
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
1851
|
+
_a.call(_b);
|
|
1852
|
+
}
|
|
1853
|
+
finally {
|
|
1854
|
+
if (e_2)
|
|
1855
|
+
throw e_2.error;
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
return true;
|
|
1859
|
+
}
|
|
1860
|
+
return true;
|
|
1874
1861
|
}
|
|
1875
1862
|
else {
|
|
1876
1863
|
return false;
|
|
1877
1864
|
}
|
|
1878
1865
|
};
|
|
1879
1866
|
/**
|
|
1880
|
-
* @param {?} paymentType
|
|
1881
1867
|
* @return {?}
|
|
1882
1868
|
*/
|
|
1883
|
-
PaymentViewComponent.prototype.
|
|
1884
|
-
* @param {?} paymentType
|
|
1869
|
+
PaymentViewComponent.prototype.resetOrderData = /**
|
|
1885
1870
|
* @return {?}
|
|
1886
1871
|
*/
|
|
1887
|
-
function (
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1872
|
+
function () {
|
|
1873
|
+
this.OrderslistService.setOrderRef(null);
|
|
1874
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
1875
|
+
this.OrderslistService.setorderCreated(null);
|
|
1876
|
+
this.OrderslistService.setorderDetail(null);
|
|
1877
|
+
this.OrderslistService.setorderParty(null);
|
|
1878
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
1879
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
1880
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
1890
1881
|
};
|
|
1891
1882
|
/**
|
|
1892
|
-
* @param {?}
|
|
1883
|
+
* @param {?} payment
|
|
1893
1884
|
* @return {?}
|
|
1894
1885
|
*/
|
|
1895
|
-
PaymentViewComponent.prototype.
|
|
1896
|
-
* @param {?}
|
|
1886
|
+
PaymentViewComponent.prototype.goToPaymentFailuePage = /**
|
|
1887
|
+
* @param {?} payment
|
|
1897
1888
|
* @return {?}
|
|
1898
1889
|
*/
|
|
1899
|
-
function (
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1903
|
-
}
|
|
1904
|
-
else if (this.paymentType === 'fp') {
|
|
1905
|
-
this.isFullyRefund = true;
|
|
1906
|
-
this.paymentGroup = paymentgrp;
|
|
1907
|
-
this.viewStatus = 'issuerefund';
|
|
1908
|
-
this.viewCompStatus = "";
|
|
1909
|
-
this.isRefundRemission = true;
|
|
1910
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1911
|
-
this.isFromPaymentDetailPage = true;
|
|
1912
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1913
|
-
}
|
|
1890
|
+
function (payment) {
|
|
1891
|
+
this.viewStatus = 'payment-failure';
|
|
1892
|
+
this.selectedPaymentsStatus = payment;
|
|
1914
1893
|
};
|
|
1915
1894
|
/**
|
|
1916
1895
|
* @param {?} event
|
|
1917
1896
|
* @return {?}
|
|
1918
1897
|
*/
|
|
1919
|
-
PaymentViewComponent.prototype.
|
|
1898
|
+
PaymentViewComponent.prototype.goBackToPaymentView = /**
|
|
1920
1899
|
* @param {?} event
|
|
1921
1900
|
* @return {?}
|
|
1922
1901
|
*/
|
|
1923
1902
|
function (event) {
|
|
1924
1903
|
event.preventDefault();
|
|
1925
|
-
this.
|
|
1926
|
-
};
|
|
1927
|
-
/**
|
|
1928
|
-
* @param {?} obj
|
|
1929
|
-
* @return {?}
|
|
1930
|
-
*/
|
|
1931
|
-
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1932
|
-
* @param {?} obj
|
|
1933
|
-
* @return {?}
|
|
1934
|
-
*/
|
|
1935
|
-
function (obj) {
|
|
1936
|
-
this.contactDetailsObj = obj;
|
|
1937
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1938
|
-
};
|
|
1939
|
-
/**
|
|
1940
|
-
* @return {?}
|
|
1941
|
-
*/
|
|
1942
|
-
PaymentViewComponent.prototype.resetOrderData = /**
|
|
1943
|
-
* @return {?}
|
|
1944
|
-
*/
|
|
1945
|
-
function () {
|
|
1946
|
-
this.OrderslistService.setOrderRef(null);
|
|
1947
|
-
this.OrderslistService.setorderCCDEvent(null);
|
|
1948
|
-
this.OrderslistService.setorderCreated(null);
|
|
1949
|
-
this.OrderslistService.setorderDetail(null);
|
|
1950
|
-
this.OrderslistService.setorderParty(null);
|
|
1951
|
-
this.OrderslistService.setorderTotalPayments(null);
|
|
1952
|
-
this.OrderslistService.setorderRemissionTotal(null);
|
|
1953
|
-
this.OrderslistService.setorderFeesTotal(null);
|
|
1904
|
+
this.viewStatus = 'paymentview';
|
|
1954
1905
|
};
|
|
1955
1906
|
PaymentViewComponent.decorators = [
|
|
1956
1907
|
{ type: i0.Component, args: [{
|
|
1957
1908
|
selector: 'ccpay-payment-view',
|
|
1958
|
-
template: "<div class=\"payment-view-section\">\n<ng-container *ngIf=\"viewStatus === 'paymentview' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.over_payment > 0\">\n <td class=\"bold tb-col-w\">Over payment</td>\n <td class=\"tb-col-w\">\u00A3{{ getOverPaymentValue() | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [fees] =\"paymentFees\"\n [isFullyRefund] = \"isFullyRefund\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n \n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n\n\n\n</ng-container>\n</div>\n<div class=\"over-payment\">\n<ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroup?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComponent()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroup)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event)\"\n(redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroup.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n\n</ng-container>\n</div>",
|
|
1959
|
-
styles: [".
|
|
1909
|
+
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n<div *ngIf=\"ISPAYMENTSTATUSENABLED === 'Disable'\">\n <div class=\"column\">\n <h2 class=\"heading-medium\">Disputed payment history</h2>\n </div>\n \n <!-- <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\" *ngIf=\"errorMsg\">\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 {{ errorMsg }}\n </div>\n </div> -->\n <div>\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th>Amount</th>\n <th>Date</th>\n <th>Payment reference</th>\n <th>Event</th>\n <th></th>\n </tr>\n </thead> \n <tbody *ngIf=\"!errorMsg && allPaymentsFailure.length > 0\">\n <tr *ngFor=\"let payment of allPaymentsFailure\">\n <td>{{ payment.status }}</td>\n <td>\u00A3{{ payment.disputed_amount | number:'.2' }}</td>\n <td>{{(payment.representment_date ? payment.representment_date : payment.failure_event_date_time) | date:'dd MMM yyyy'}}</td>\n <td>{{ payment.payment_reference }}</td>\n <td >{{ payment.failure_type }}</td>\n <td>\n \n <a href=\"javascript:void(0)\" (click)=\"goToPaymentFailuePage(payment)\">Review</a>\n\n </td>\n </tr>\n </tbody>\n <tbody *ngIf=\"errorMsg || allPaymentsFailure.length === 0\">\n <tr>\n <td colspan=\"6\"> No disputed payment history available. </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </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 </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 </div>\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</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-failure'\">\n <div class=\"payment-failure-alignment\">\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)=\"goBackToPaymentView($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Failure event details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold\">Failure reference</td>\n <td>\t{{selectedPaymentsStatus.failure_reference}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure reason</td>\n <td>\t{{selectedPaymentsStatus.failure_reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment reference</td>\n <td>{{ selectedPaymentsStatus.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment amount</td>\n <td> \u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Disputed amount</td>\n <td>\t{{selectedPaymentsStatus.disputed_amount | number:'.2'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Additional reference</td>\n <td>\t{{selectedPaymentsStatus.additional_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure type</td>\n <td>\t{{ selectedPaymentsStatus.failure_type }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure event date and time</td>\n <td> {{ selectedPaymentsStatus.failure_event_date_time | date:'dd MMM yyyy HH:mm:ss' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.has_amount_debited\">\n <td class=\"bold\">Has disputed amount debited</td>\n <td>\t{{selectedPaymentsStatus.has_amount_debited}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_status\">\n <td class=\"bold\">Representment status</td>\n <td>\t{{selectedPaymentsStatus.representment_status === 'yes'? 'Success' : 'Failure'}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_date\">\n <td class=\"bold\">Representment date</td>\n <td>\t{{selectedPaymentsStatus.representment_date | date:'dd MMM yyyy HH:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n</ng-container>",
|
|
1910
|
+
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}.payment-failure-alignment{margin-bottom:50px}"]
|
|
1960
1911
|
}] }
|
|
1961
1912
|
];
|
|
1962
1913
|
/** @nocollapse */
|
|
@@ -1979,6 +1930,7 @@
|
|
|
1979
1930
|
orderTotalPayments: [{ type: i0.Input }],
|
|
1980
1931
|
payment: [{ type: i0.Input }],
|
|
1981
1932
|
LOGGEDINUSERROLES: [{ type: i0.Input }],
|
|
1933
|
+
ISPAYMENTSTATUSENABLED: [{ type: i0.Input }],
|
|
1982
1934
|
orderParty: [{ type: i0.Input }],
|
|
1983
1935
|
orderCreated: [{ type: i0.Input }],
|
|
1984
1936
|
orderCCDEvent: [{ type: i0.Input }],
|
|
@@ -2124,21 +2076,6 @@
|
|
|
2124
2076
|
function (body) {
|
|
2125
2077
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2126
2078
|
};
|
|
2127
|
-
/**
|
|
2128
|
-
* @param {?} body
|
|
2129
|
-
* @param {?} refundRef
|
|
2130
|
-
* @param {?} notificationType
|
|
2131
|
-
* @return {?}
|
|
2132
|
-
*/
|
|
2133
|
-
RefundsService.prototype.putResendOrEdit = /**
|
|
2134
|
-
* @param {?} body
|
|
2135
|
-
* @param {?} refundRef
|
|
2136
|
-
* @param {?} notificationType
|
|
2137
|
-
* @return {?}
|
|
2138
|
-
*/
|
|
2139
|
-
function (body, refundRef, notificationType) {
|
|
2140
|
-
return this.https.put(this.paymentLibService.REFUNDS_API_ROOT + "/resend/notification/" + refundRef + "?notificationType=" + notificationType, body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2141
|
-
};
|
|
2142
2079
|
/**
|
|
2143
2080
|
* @param {?} body
|
|
2144
2081
|
* @param {?} refund_reference
|
|
@@ -2223,9 +2160,8 @@
|
|
|
2223
2160
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2224
2161
|
*/
|
|
2225
2162
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2226
|
-
function ProcessRefundComponent(RefundsService$$1,
|
|
2163
|
+
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2227
2164
|
this.RefundsService = RefundsService$$1;
|
|
2228
|
-
this.paymentViewService = paymentViewService;
|
|
2229
2165
|
this.formBuilder = formBuilder;
|
|
2230
2166
|
this.OrderslistService = OrderslistService$$1;
|
|
2231
2167
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2248,7 +2184,6 @@
|
|
|
2248
2184
|
this.isReasonEmpty = false;
|
|
2249
2185
|
this.isReasonInvalid = false;
|
|
2250
2186
|
this.successMsg = null;
|
|
2251
|
-
this.cpoDetails = null;
|
|
2252
2187
|
this.isConfirmButtondisabled = true;
|
|
2253
2188
|
}
|
|
2254
2189
|
/**
|
|
@@ -2294,18 +2229,6 @@
|
|
|
2294
2229
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2295
2230
|
this.isFromRefundListPage = true;
|
|
2296
2231
|
}
|
|
2297
|
-
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe(( /**
|
|
2298
|
-
* @param {?} response
|
|
2299
|
-
* @return {?}
|
|
2300
|
-
*/function (response) {
|
|
2301
|
-
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2302
|
-
}), ( /**
|
|
2303
|
-
* @param {?} error
|
|
2304
|
-
* @return {?}
|
|
2305
|
-
*/function (error) {
|
|
2306
|
-
_this.errorMessage = ( /** @type {?} */(error.replace(/"/g, "")));
|
|
2307
|
-
_this.isCPODown = true;
|
|
2308
|
-
}));
|
|
2309
2232
|
};
|
|
2310
2233
|
/**
|
|
2311
2234
|
* @param {?} code
|
|
@@ -2539,29 +2462,89 @@
|
|
|
2539
2462
|
this.loadRefundListPage();
|
|
2540
2463
|
}
|
|
2541
2464
|
};
|
|
2465
|
+
// loadCaseTransactionPage() {
|
|
2466
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2467
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2468
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2469
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2470
|
+
// features => {
|
|
2471
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2472
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2473
|
+
// },
|
|
2474
|
+
// err => {
|
|
2475
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2476
|
+
// }
|
|
2477
|
+
// );
|
|
2478
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2479
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2480
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2481
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2482
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2483
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2484
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2485
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2486
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2487
|
+
// this.router.navigateByUrl(url);
|
|
2488
|
+
// }
|
|
2489
|
+
// loadCaseTransactionPage() {
|
|
2490
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2491
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2492
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2493
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2494
|
+
// features => {
|
|
2495
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2496
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2497
|
+
// },
|
|
2498
|
+
// err => {
|
|
2499
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2500
|
+
// }
|
|
2501
|
+
// );
|
|
2502
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2503
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2504
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2505
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2506
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2507
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2508
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2509
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2510
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2511
|
+
// this.router.navigateByUrl(url);
|
|
2512
|
+
// }
|
|
2542
2513
|
/**
|
|
2543
|
-
* @return {?}
|
|
2544
|
-
*/
|
|
2545
|
-
ProcessRefundComponent.prototype.loadCaseTransactionPage = /**
|
|
2546
|
-
* @return {?}
|
|
2547
|
-
*/
|
|
2548
|
-
function () {
|
|
2549
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
2550
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
2551
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
2552
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
2553
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
2554
|
-
};
|
|
2555
|
-
/**
|
|
2556
|
-
* @param {?} vals
|
|
2557
|
-
* @param {?} field
|
|
2558
|
-
* @return {?}
|
|
2559
|
-
*/
|
|
2560
|
-
ProcessRefundComponent.prototype.resetForm = /**
|
|
2561
2514
|
* @param {?} vals
|
|
2562
2515
|
* @param {?} field
|
|
2563
2516
|
* @return {?}
|
|
2564
2517
|
*/
|
|
2518
|
+
ProcessRefundComponent.prototype.resetForm =
|
|
2519
|
+
// loadCaseTransactionPage() {
|
|
2520
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2521
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2522
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2523
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2524
|
+
// features => {
|
|
2525
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2526
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2527
|
+
// },
|
|
2528
|
+
// err => {
|
|
2529
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2530
|
+
// }
|
|
2531
|
+
// );
|
|
2532
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2533
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2534
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2535
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2536
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2537
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2538
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2539
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2540
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2541
|
+
// this.router.navigateByUrl(url);
|
|
2542
|
+
// }
|
|
2543
|
+
/**
|
|
2544
|
+
* @param {?} vals
|
|
2545
|
+
* @param {?} field
|
|
2546
|
+
* @return {?}
|
|
2547
|
+
*/
|
|
2565
2548
|
function (vals, field) {
|
|
2566
2549
|
if (field === 'action' || field === 'all') {
|
|
2567
2550
|
this.refundActionsHasError = vals[0];
|
|
@@ -2587,19 +2570,12 @@
|
|
|
2587
2570
|
* @return {?}
|
|
2588
2571
|
*/
|
|
2589
2572
|
function () {
|
|
2590
|
-
|
|
2591
|
-
var isPayBubble = this.paymentLibComponent.isFromPayBubble;
|
|
2592
|
-
if (isPayBubble) {
|
|
2593
|
-
this.loadCaseTransactionPage();
|
|
2594
|
-
}
|
|
2595
|
-
else {
|
|
2596
|
-
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2597
|
-
}
|
|
2573
|
+
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2598
2574
|
};
|
|
2599
2575
|
ProcessRefundComponent.decorators = [
|
|
2600
2576
|
{ type: i0.Component, args: [{
|
|
2601
2577
|
selector: 'ccpay-process-refund',
|
|
2602
|
-
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
|
|
2578
|
+
template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third reason-font\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n <input class=\"govuk-input govuk-!-width-one-third reason-font\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div *ngIf=\"!isFromRefundListPage\" class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundsHomePage()\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n</div>\n</form>\n </div>\n \n\n </main>\n \n <main class=\"govuk-main-wrapper govuk-main-wrapper--l success-page-padding--top25\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSuccesspageEnable}\" id=\"main-content\" role=\"main\" >\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel-refund--confirmation\">\n <h1 class=\"heading-xlarge\">\n {{successMsg}}\n </h1>\n </div>\n <p class=\"govuk-body process-refund-font\">\n <a (click) = \"goToCaseReview()\" class=\"govuk-link pointer\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
|
|
2603
2579
|
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}"]
|
|
2604
2580
|
}] }
|
|
2605
2581
|
];
|
|
@@ -2607,7 +2583,6 @@
|
|
|
2607
2583
|
ProcessRefundComponent.ctorParameters = function () {
|
|
2608
2584
|
return [
|
|
2609
2585
|
{ type: RefundsService },
|
|
2610
|
-
{ type: PaymentViewService },
|
|
2611
2586
|
{ type: forms.FormBuilder },
|
|
2612
2587
|
{ type: OrderslistService },
|
|
2613
2588
|
{ type: PaymentLibComponent },
|
|
@@ -2631,10 +2606,10 @@
|
|
|
2631
2606
|
this.refundService = refundService;
|
|
2632
2607
|
this.submittedRefundList = [];
|
|
2633
2608
|
this.rejectedRefundList = [];
|
|
2634
|
-
// approvalStatus = 'Sent for approval';
|
|
2635
|
-
// rejectStatus = 'Update required';
|
|
2636
2609
|
this.approvalStatus = 'Sent for approval';
|
|
2637
2610
|
this.rejectStatus = 'Update required';
|
|
2611
|
+
// approvalStatus = 'sent for approval';
|
|
2612
|
+
// rejectStatus = 'sent back';
|
|
2638
2613
|
this.errorMessage = null;
|
|
2639
2614
|
this.isAuthorized = true;
|
|
2640
2615
|
}
|
|
@@ -2914,449 +2889,6 @@
|
|
|
2914
2889
|
return StatusHistoryComponent;
|
|
2915
2890
|
}());
|
|
2916
2891
|
|
|
2917
|
-
/**
|
|
2918
|
-
* @fileoverview added by tsickle
|
|
2919
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2920
|
-
*/
|
|
2921
|
-
var NotificationService = /** @class */ (function () {
|
|
2922
|
-
function NotificationService(http, https, errorHandlerService, paymentLibService) {
|
|
2923
|
-
this.http = http;
|
|
2924
|
-
this.https = https;
|
|
2925
|
-
this.errorHandlerService = errorHandlerService;
|
|
2926
|
-
this.paymentLibService = paymentLibService;
|
|
2927
|
-
}
|
|
2928
|
-
/**
|
|
2929
|
-
* @param {?} reference
|
|
2930
|
-
* @return {?}
|
|
2931
|
-
*/
|
|
2932
|
-
NotificationService.prototype.getRefundNotification = /**
|
|
2933
|
-
* @param {?} reference
|
|
2934
|
-
* @return {?}
|
|
2935
|
-
*/
|
|
2936
|
-
function (reference) {
|
|
2937
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/notifications/" + reference, {
|
|
2938
|
-
withCredentials: true
|
|
2939
|
-
})
|
|
2940
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2941
|
-
};
|
|
2942
|
-
/**
|
|
2943
|
-
* @param {?} postcode
|
|
2944
|
-
* @return {?}
|
|
2945
|
-
*/
|
|
2946
|
-
NotificationService.prototype.getAddressByPostcode = /**
|
|
2947
|
-
* @param {?} postcode
|
|
2948
|
-
* @return {?}
|
|
2949
|
-
*/
|
|
2950
|
-
function (postcode) {
|
|
2951
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/search/places/v1/postcode?postcode=" + postcode, {
|
|
2952
|
-
withCredentials: true
|
|
2953
|
-
})
|
|
2954
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2955
|
-
};
|
|
2956
|
-
NotificationService.decorators = [
|
|
2957
|
-
{ type: i0.Injectable, args: [{
|
|
2958
|
-
providedIn: 'root'
|
|
2959
|
-
},] }
|
|
2960
|
-
];
|
|
2961
|
-
/** @nocollapse */
|
|
2962
|
-
NotificationService.ctorParameters = function () {
|
|
2963
|
-
return [
|
|
2964
|
-
{ type: i1.HttpClient },
|
|
2965
|
-
{ type: WebComponentHttpClient },
|
|
2966
|
-
{ type: ErrorHandlerService },
|
|
2967
|
-
{ type: PaymentLibService }
|
|
2968
|
-
];
|
|
2969
|
-
};
|
|
2970
|
-
/** @nocollapse */ NotificationService.ngInjectableDef = i0.defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0.inject(i1.HttpClient), i0.inject(WebComponentHttpClient), i0.inject(ErrorHandlerService), i0.inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
2971
|
-
return NotificationService;
|
|
2972
|
-
}());
|
|
2973
|
-
|
|
2974
|
-
/**
|
|
2975
|
-
* @fileoverview added by tsickle
|
|
2976
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2977
|
-
*/
|
|
2978
|
-
var ContactDetailsComponent = /** @class */ (function () {
|
|
2979
|
-
function ContactDetailsComponent(formBuilder, notificationService, paymentLibComponent) {
|
|
2980
|
-
this.formBuilder = formBuilder;
|
|
2981
|
-
this.notificationService = notificationService;
|
|
2982
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
2983
|
-
this.assignContactDetails = new i0.EventEmitter();
|
|
2984
|
-
this.assignContactDetailsInFefundsList = new i0.EventEmitter();
|
|
2985
|
-
this.redirectToIssueRefund = new i0.EventEmitter();
|
|
2986
|
-
this.pageTitle = 'Payment status history';
|
|
2987
|
-
this.isEmailSAddressClicked = true;
|
|
2988
|
-
this.isShowPickAddress = false;
|
|
2989
|
-
this.isPostcodeClicked = false;
|
|
2990
|
-
this.isManualAddressClicked = false;
|
|
2991
|
-
this.addressPostcodeList = [];
|
|
2992
|
-
this.isAddressBoxEmpty = false;
|
|
2993
|
-
this.isEmailEmpty = false;
|
|
2994
|
-
this.emailHasError = false;
|
|
2995
|
-
this.isPostcodeEmpty = false;
|
|
2996
|
-
this.postcodeHasError = false;
|
|
2997
|
-
this.isaddressLine1Empty = false;
|
|
2998
|
-
this.addressLine1HasError = false;
|
|
2999
|
-
this.addressLine2HasError = false;
|
|
3000
|
-
this.isTownOrCityEmpty = false;
|
|
3001
|
-
this.townOrCityHasError = false;
|
|
3002
|
-
this.isCountyEmpty = false;
|
|
3003
|
-
this.countyHasError = false;
|
|
3004
|
-
this.isMPostcodeEmpty = false;
|
|
3005
|
-
this.mpostcodeHasError = false;
|
|
3006
|
-
this.isCountryEmpty = false;
|
|
3007
|
-
}
|
|
3008
|
-
/**
|
|
3009
|
-
* @return {?}
|
|
3010
|
-
*/
|
|
3011
|
-
ContactDetailsComponent.prototype.ngOnInit = /**
|
|
3012
|
-
* @return {?}
|
|
3013
|
-
*/
|
|
3014
|
-
function () {
|
|
3015
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3016
|
-
this.emailAddressForm = this.formBuilder.group({
|
|
3017
|
-
email: new forms.FormControl('', forms.Validators.compose([
|
|
3018
|
-
forms.Validators.required,
|
|
3019
|
-
forms.Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
3020
|
-
]))
|
|
3021
|
-
});
|
|
3022
|
-
this.postCodeForm = this.formBuilder.group({
|
|
3023
|
-
postcode: new forms.FormControl('', forms.Validators.compose([
|
|
3024
|
-
forms.Validators.required,
|
|
3025
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3026
|
-
]))
|
|
3027
|
-
});
|
|
3028
|
-
this.manualAddressForm = this.formBuilder.group({
|
|
3029
|
-
addressl1: new forms.FormControl('', forms.Validators.compose([
|
|
3030
|
-
forms.Validators.required,
|
|
3031
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3032
|
-
])),
|
|
3033
|
-
addressl2: new forms.FormControl('', forms.Validators.compose([
|
|
3034
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3035
|
-
])),
|
|
3036
|
-
townorcity: new forms.FormControl('', forms.Validators.compose([
|
|
3037
|
-
forms.Validators.required,
|
|
3038
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3039
|
-
])),
|
|
3040
|
-
county: new forms.FormControl('', forms.Validators.compose([
|
|
3041
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3042
|
-
])),
|
|
3043
|
-
mpostcode: new forms.FormControl('', forms.Validators.compose([
|
|
3044
|
-
forms.Validators.required,
|
|
3045
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3046
|
-
])),
|
|
3047
|
-
country: new forms.FormControl('', forms.Validators.compose([
|
|
3048
|
-
forms.Validators.required
|
|
3049
|
-
]))
|
|
3050
|
-
});
|
|
3051
|
-
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
3052
|
-
this.setEditDetails();
|
|
3053
|
-
}
|
|
3054
|
-
if (this.isEditOperationInRefundList === undefined) {
|
|
3055
|
-
this.isEditOperationInRefundList = false;
|
|
3056
|
-
}
|
|
3057
|
-
};
|
|
3058
|
-
/**
|
|
3059
|
-
* @return {?}
|
|
3060
|
-
*/
|
|
3061
|
-
ContactDetailsComponent.prototype.setEditDetails = /**
|
|
3062
|
-
* @return {?}
|
|
3063
|
-
*/
|
|
3064
|
-
function () {
|
|
3065
|
-
if (this.addressObj.notification_type === 'EMAIL') {
|
|
3066
|
-
this.isEmailSAddressClicked = true;
|
|
3067
|
-
this.isPostcodeClicked = false;
|
|
3068
|
-
this.isManualAddressClicked = false;
|
|
3069
|
-
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
3070
|
-
}
|
|
3071
|
-
else if (this.addressObj.notification_type === 'LETTER') {
|
|
3072
|
-
this.isEmailSAddressClicked = false;
|
|
3073
|
-
this.isPostcodeClicked = true;
|
|
3074
|
-
this.isManualAddressClicked = true;
|
|
3075
|
-
this.manualAddressForm.patchValue({
|
|
3076
|
-
addressl1: this.addressObj.contact_details.address_line,
|
|
3077
|
-
townorcity: this.addressObj.contact_details.city,
|
|
3078
|
-
county: this.addressObj.contact_details.county,
|
|
3079
|
-
country: this.addressObj.contact_details.country,
|
|
3080
|
-
mpostcode: this.addressObj.contact_details.postal_code
|
|
3081
|
-
});
|
|
3082
|
-
}
|
|
3083
|
-
};
|
|
3084
|
-
/**
|
|
3085
|
-
* @param {?} type
|
|
3086
|
-
* @param {?} isLinkedClied
|
|
3087
|
-
* @return {?}
|
|
3088
|
-
*/
|
|
3089
|
-
ContactDetailsComponent.prototype.selectContactOption = /**
|
|
3090
|
-
* @param {?} type
|
|
3091
|
-
* @param {?} isLinkedClied
|
|
3092
|
-
* @return {?}
|
|
3093
|
-
*/
|
|
3094
|
-
function (type, isLinkedClied) {
|
|
3095
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3096
|
-
if (type === 'Email' && isLinkedClied === 'false') {
|
|
3097
|
-
this.isEmailSAddressClicked = true;
|
|
3098
|
-
this.isPostcodeClicked = false;
|
|
3099
|
-
this.isManualAddressClicked = false;
|
|
3100
|
-
}
|
|
3101
|
-
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
3102
|
-
this.isEmailSAddressClicked = false;
|
|
3103
|
-
this.isPostcodeClicked = true;
|
|
3104
|
-
this.isManualAddressClicked = false;
|
|
3105
|
-
}
|
|
3106
|
-
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
3107
|
-
this.isEmailSAddressClicked = false;
|
|
3108
|
-
this.isPostcodeClicked = true;
|
|
3109
|
-
this.isManualAddressClicked = true;
|
|
3110
|
-
}
|
|
3111
|
-
};
|
|
3112
|
-
/**
|
|
3113
|
-
* @return {?}
|
|
3114
|
-
*/
|
|
3115
|
-
ContactDetailsComponent.prototype.finalFormSubmit = /**
|
|
3116
|
-
* @return {?}
|
|
3117
|
-
*/
|
|
3118
|
-
function () {
|
|
3119
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3120
|
-
if (this.isEmailSAddressClicked) {
|
|
3121
|
-
/** @type {?} */
|
|
3122
|
-
var emailField = this.emailAddressForm.controls.email;
|
|
3123
|
-
if (this.emailAddressForm.valid) {
|
|
3124
|
-
if (!this.isEditOperationInRefundList) {
|
|
3125
|
-
this.assignContactDetails.emit({
|
|
3126
|
-
email: emailField.value,
|
|
3127
|
-
notification_type: 'EMAIL'
|
|
3128
|
-
});
|
|
3129
|
-
}
|
|
3130
|
-
else {
|
|
3131
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3132
|
-
email: emailField.value,
|
|
3133
|
-
notification_type: 'EMAIL'
|
|
3134
|
-
});
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3137
|
-
else {
|
|
3138
|
-
if (emailField.value == '') {
|
|
3139
|
-
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3140
|
-
}
|
|
3141
|
-
if (emailField.value != '' && emailField.invalid) {
|
|
3142
|
-
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3143
|
-
}
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
3147
|
-
this.postcodeValidation('FS');
|
|
3148
|
-
}
|
|
3149
|
-
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
3150
|
-
/** @type {?} */
|
|
3151
|
-
var fieldCtrls = this.manualAddressForm.controls;
|
|
3152
|
-
if (this.manualAddressForm.valid) {
|
|
3153
|
-
if (!this.isEditOperationInRefundList) {
|
|
3154
|
-
this.assignContactDetails.emit({
|
|
3155
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3156
|
-
city: fieldCtrls.townorcity.value,
|
|
3157
|
-
county: fieldCtrls.county.value,
|
|
3158
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3159
|
-
country: fieldCtrls.country.value,
|
|
3160
|
-
notification_type: 'LETTER'
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
else {
|
|
3164
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3165
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3166
|
-
city: fieldCtrls.townorcity.value,
|
|
3167
|
-
county: fieldCtrls.county.value,
|
|
3168
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3169
|
-
country: fieldCtrls.country.value,
|
|
3170
|
-
notification_type: 'LETTER'
|
|
3171
|
-
});
|
|
3172
|
-
}
|
|
3173
|
-
}
|
|
3174
|
-
else {
|
|
3175
|
-
if (fieldCtrls.addressl1.value == '') {
|
|
3176
|
-
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
3177
|
-
}
|
|
3178
|
-
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
3179
|
-
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
3180
|
-
}
|
|
3181
|
-
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
3182
|
-
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
3183
|
-
}
|
|
3184
|
-
if (fieldCtrls.townorcity.value == '') {
|
|
3185
|
-
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
3186
|
-
}
|
|
3187
|
-
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
3188
|
-
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
3189
|
-
}
|
|
3190
|
-
if (fieldCtrls.county.value == '') {
|
|
3191
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
3192
|
-
}
|
|
3193
|
-
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
3194
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
3195
|
-
}
|
|
3196
|
-
if (fieldCtrls.mpostcode.value == '') {
|
|
3197
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
3198
|
-
}
|
|
3199
|
-
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
3200
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
3201
|
-
}
|
|
3202
|
-
if (fieldCtrls.country.value == '') {
|
|
3203
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
}
|
|
3207
|
-
};
|
|
3208
|
-
/**
|
|
3209
|
-
* @param {?} str
|
|
3210
|
-
* @return {?}
|
|
3211
|
-
*/
|
|
3212
|
-
ContactDetailsComponent.prototype.postcodeValidation = /**
|
|
3213
|
-
* @param {?} str
|
|
3214
|
-
* @return {?}
|
|
3215
|
-
*/
|
|
3216
|
-
function (str) {
|
|
3217
|
-
var _this = this;
|
|
3218
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3219
|
-
/** @type {?} */
|
|
3220
|
-
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3221
|
-
if (this.postCodeForm.valid) {
|
|
3222
|
-
if (str === 'FA') {
|
|
3223
|
-
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe(( /**
|
|
3224
|
-
* @param {?} refundsNotification
|
|
3225
|
-
* @return {?}
|
|
3226
|
-
*/function (refundsNotification) {
|
|
3227
|
-
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3228
|
-
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3229
|
-
if (!_this.isShowPickAddress) {
|
|
3230
|
-
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3231
|
-
}
|
|
3232
|
-
})),
|
|
3233
|
-
( /**
|
|
3234
|
-
* @param {?} error
|
|
3235
|
-
* @return {?}
|
|
3236
|
-
*/function (error) {
|
|
3237
|
-
_this.isShowPickAddress = false;
|
|
3238
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
3239
|
-
});
|
|
3240
|
-
}
|
|
3241
|
-
else if (str === 'FS') {
|
|
3242
|
-
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
3243
|
-
this.isAddressBoxEmpty = false;
|
|
3244
|
-
/** @type {?} */
|
|
3245
|
-
var addressLine = "";
|
|
3246
|
-
/** @type {?} */
|
|
3247
|
-
var addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
3248
|
-
for (var i = 0; i < addressArray.length - 2; i++) {
|
|
3249
|
-
addressLine += addressArray[i];
|
|
3250
|
-
}
|
|
3251
|
-
/** @type {?} */
|
|
3252
|
-
var addressObject = {
|
|
3253
|
-
address_line: addressLine,
|
|
3254
|
-
city: this.postcodeAddress.POST_TOWN,
|
|
3255
|
-
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
3256
|
-
postal_code: this.postcodeAddress.POSTCODE,
|
|
3257
|
-
country: 'United Kingdom',
|
|
3258
|
-
notification_type: 'LETTER'
|
|
3259
|
-
};
|
|
3260
|
-
if (!this.isEditOperationInRefundList) {
|
|
3261
|
-
this.assignContactDetails.emit(addressObject);
|
|
3262
|
-
}
|
|
3263
|
-
else {
|
|
3264
|
-
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3267
|
-
else {
|
|
3268
|
-
this.isAddressBoxEmpty = true;
|
|
3269
|
-
}
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
else {
|
|
3273
|
-
if (postcodeField.value == '') {
|
|
3274
|
-
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3275
|
-
}
|
|
3276
|
-
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
3277
|
-
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3278
|
-
}
|
|
3279
|
-
}
|
|
3280
|
-
};
|
|
3281
|
-
/**
|
|
3282
|
-
* @param {?} event
|
|
3283
|
-
* @return {?}
|
|
3284
|
-
*/
|
|
3285
|
-
ContactDetailsComponent.prototype.redirection = /**
|
|
3286
|
-
* @param {?} event
|
|
3287
|
-
* @return {?}
|
|
3288
|
-
*/
|
|
3289
|
-
function (event) {
|
|
3290
|
-
this.redirectToIssueRefund.emit(event);
|
|
3291
|
-
};
|
|
3292
|
-
/**
|
|
3293
|
-
* @param {?} val
|
|
3294
|
-
* @param {?} field
|
|
3295
|
-
* @return {?}
|
|
3296
|
-
*/
|
|
3297
|
-
ContactDetailsComponent.prototype.resetForm = /**
|
|
3298
|
-
* @param {?} val
|
|
3299
|
-
* @param {?} field
|
|
3300
|
-
* @return {?}
|
|
3301
|
-
*/
|
|
3302
|
-
function (val, field) {
|
|
3303
|
-
if (field === 'email' || field === 'all') {
|
|
3304
|
-
this.isEmailEmpty = val[0];
|
|
3305
|
-
this.emailHasError = val[1];
|
|
3306
|
-
}
|
|
3307
|
-
if (field === 'postcode' || field === 'all') {
|
|
3308
|
-
this.isPostcodeEmpty = val[2];
|
|
3309
|
-
this.postcodeHasError = val[3];
|
|
3310
|
-
}
|
|
3311
|
-
if (field === 'address1' || field === 'all') {
|
|
3312
|
-
this.isaddressLine1Empty = val[4];
|
|
3313
|
-
this.addressLine1HasError = val[5];
|
|
3314
|
-
}
|
|
3315
|
-
if (field === 'address2' || field === 'all') {
|
|
3316
|
-
this.addressLine2HasError = val[6];
|
|
3317
|
-
}
|
|
3318
|
-
if (field === 'town' || field === 'all') {
|
|
3319
|
-
this.isTownOrCityEmpty = val[7];
|
|
3320
|
-
this.townOrCityHasError = val[8];
|
|
3321
|
-
}
|
|
3322
|
-
if (field === 'county' || field === 'all') {
|
|
3323
|
-
this.isCountyEmpty = val[9];
|
|
3324
|
-
this.countyHasError = val[10];
|
|
3325
|
-
}
|
|
3326
|
-
if (field === 'mpostcode' || field === 'all') {
|
|
3327
|
-
this.isMPostcodeEmpty = val[11];
|
|
3328
|
-
this.mpostcodeHasError = val[12];
|
|
3329
|
-
}
|
|
3330
|
-
if (field === 'country' || field === 'all') {
|
|
3331
|
-
this.isCountryEmpty = val[13];
|
|
3332
|
-
}
|
|
3333
|
-
};
|
|
3334
|
-
ContactDetailsComponent.decorators = [
|
|
3335
|
-
{ type: i0.Component, args: [{
|
|
3336
|
-
selector: 'ccpay-contact-details',
|
|
3337
|
-
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>",
|
|
3338
|
-
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}"]
|
|
3339
|
-
}] }
|
|
3340
|
-
];
|
|
3341
|
-
/** @nocollapse */
|
|
3342
|
-
ContactDetailsComponent.ctorParameters = function () {
|
|
3343
|
-
return [
|
|
3344
|
-
{ type: forms.FormBuilder },
|
|
3345
|
-
{ type: NotificationService },
|
|
3346
|
-
{ type: PaymentLibComponent }
|
|
3347
|
-
];
|
|
3348
|
-
};
|
|
3349
|
-
ContactDetailsComponent.propDecorators = {
|
|
3350
|
-
isEditOperation: [{ type: i0.Input, args: ['isEditOperation',] }],
|
|
3351
|
-
isEditOperationInRefundList: [{ type: i0.Input, args: ['isEditOperationInRefundList',] }],
|
|
3352
|
-
addressObj: [{ type: i0.Input, args: ['addressObj',] }],
|
|
3353
|
-
assignContactDetails: [{ type: i0.Output }],
|
|
3354
|
-
assignContactDetailsInFefundsList: [{ type: i0.Output }],
|
|
3355
|
-
redirectToIssueRefund: [{ type: i0.Output }]
|
|
3356
|
-
};
|
|
3357
|
-
return ContactDetailsComponent;
|
|
3358
|
-
}());
|
|
3359
|
-
|
|
3360
2892
|
/**
|
|
3361
2893
|
* @fileoverview added by tsickle
|
|
3362
2894
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3710,7 +3242,6 @@
|
|
|
3710
3242
|
this.viewStatus = 'main';
|
|
3711
3243
|
this.isRemoveBtnDisabled = false;
|
|
3712
3244
|
this.clAmountDue = 0;
|
|
3713
|
-
this.overPaymentAmount = 0;
|
|
3714
3245
|
this.isFeeRecordsExist = false;
|
|
3715
3246
|
this.isGrpOutstandingAmtPositive = false;
|
|
3716
3247
|
//Order changes
|
|
@@ -3808,7 +3339,6 @@
|
|
|
3808
3339
|
}
|
|
3809
3340
|
else {
|
|
3810
3341
|
this.serviceRequestValue = 'false';
|
|
3811
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3812
3342
|
}
|
|
3813
3343
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3814
3344
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -4012,7 +3542,6 @@
|
|
|
4012
3542
|
* @return {?}
|
|
4013
3543
|
*/function (fee) {
|
|
4014
3544
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4015
|
-
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
4016
3545
|
}));
|
|
4017
3546
|
}
|
|
4018
3547
|
if (paymentGroup.remissions) {
|
|
@@ -4024,15 +3553,10 @@
|
|
|
4024
3553
|
}));
|
|
4025
3554
|
}
|
|
4026
3555
|
if (paymentGroup.payments) {
|
|
4027
|
-
/** @type {?} */
|
|
4028
|
-
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4029
3556
|
paymentGroup.payments.forEach(( /**
|
|
4030
3557
|
* @param {?} payment
|
|
4031
3558
|
* @return {?}
|
|
4032
3559
|
*/function (payment) {
|
|
4033
|
-
if (isFeeOverPaymentExist_1) {
|
|
4034
|
-
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4035
|
-
}
|
|
4036
3560
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4037
3561
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4038
3562
|
}
|
|
@@ -4500,22 +4024,23 @@
|
|
|
4500
4024
|
*/
|
|
4501
4025
|
function (payment, remission, fees) {
|
|
4502
4026
|
var _this = this;
|
|
4503
|
-
this.
|
|
4027
|
+
this.viewStatus = 'addrefundforremission';
|
|
4028
|
+
this.payment = payment;
|
|
4029
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
4504
4030
|
* @param {?} paymentGroup
|
|
4505
4031
|
* @return {?}
|
|
4506
4032
|
*/function (paymentGroup) {
|
|
4507
4033
|
_this.paymentGroup = paymentGroup;
|
|
4508
|
-
_this.paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
4034
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
4509
4035
|
* @param {?} paymentGroupObj
|
|
4510
4036
|
* @return {?}
|
|
4511
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
4037
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
4512
4038
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4513
4039
|
_this.remissions = remission;
|
|
4514
4040
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
4515
4041
|
* @param {?} data
|
|
4516
4042
|
* @return {?}
|
|
4517
4043
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4518
|
-
_this.viewStatus = 'addrefundforremission';
|
|
4519
4044
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4520
4045
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4521
4046
|
}), ( /**
|
|
@@ -4808,21 +4333,16 @@
|
|
|
4808
4333
|
* @return {?}
|
|
4809
4334
|
*/
|
|
4810
4335
|
function (payment) {
|
|
4811
|
-
if (
|
|
4812
|
-
|
|
4336
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4337
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4338
|
+
this.isIssueRefunfBtnEnable = true;
|
|
4339
|
+
}
|
|
4340
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
4341
|
+
return true;
|
|
4813
4342
|
}
|
|
4814
4343
|
else {
|
|
4815
4344
|
return false;
|
|
4816
4345
|
}
|
|
4817
|
-
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4818
|
-
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4819
|
-
// this.isIssueRefunfBtnEnable = true;
|
|
4820
|
-
// }
|
|
4821
|
-
// if (this.isIssueRefunfBtnEnable) {
|
|
4822
|
-
// return true;
|
|
4823
|
-
// } else {
|
|
4824
|
-
// return false;
|
|
4825
|
-
// };
|
|
4826
4346
|
};
|
|
4827
4347
|
/**
|
|
4828
4348
|
* @return {?}
|
|
@@ -4872,7 +4392,7 @@
|
|
|
4872
4392
|
CaseTransactionsComponent.decorators = [
|
|
4873
4393
|
{ type: i0.Component, args: [{
|
|
4874
4394
|
selector: 'ccpay-case-transactions',
|
|
4875
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Over payment</td>\n\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ overPaymentAmount | currency :'GBP':'symbol':'1.2-2'}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [paymentGroupList] = \"paymentGroups\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n</main>\n</div>\n\n\n",
|
|
4395
|
+
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 [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\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 [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\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\n</main>\n</div>\n\n\n",
|
|
4876
4396
|
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}"]
|
|
4877
4397
|
}] }
|
|
4878
4398
|
];
|
|
@@ -4889,8 +4409,7 @@
|
|
|
4889
4409
|
};
|
|
4890
4410
|
CaseTransactionsComponent.propDecorators = {
|
|
4891
4411
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4892
|
-
isTakePayment: [{ type: i0.Input }]
|
|
4893
|
-
isFromServiceRequestPage: [{ type: i0.Input }]
|
|
4412
|
+
isTakePayment: [{ type: i0.Input }]
|
|
4894
4413
|
};
|
|
4895
4414
|
return CaseTransactionsComponent;
|
|
4896
4415
|
}());
|
|
@@ -5110,23 +4629,18 @@
|
|
|
5110
4629
|
if (fee.calculated_amount === 0) {
|
|
5111
4630
|
_this.isFeeAmountZero = true;
|
|
5112
4631
|
}
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
fee['remissions'] = rem;
|
|
5122
|
-
fees.push(fee);
|
|
5123
|
-
}
|
|
5124
|
-
}));
|
|
5125
|
-
if (!_this.isRemissionsMatch) {
|
|
4632
|
+
_this.isRemissionsMatch = false;
|
|
4633
|
+
paymentGroup.remissions.forEach(( /**
|
|
4634
|
+
* @param {?} rem
|
|
4635
|
+
* @return {?}
|
|
4636
|
+
*/function (rem) {
|
|
4637
|
+
if (rem.fee_code === fee.code) {
|
|
4638
|
+
_this.isRemissionsMatch = true;
|
|
4639
|
+
fee['remissions'] = rem;
|
|
5126
4640
|
fees.push(fee);
|
|
5127
4641
|
}
|
|
5128
|
-
}
|
|
5129
|
-
|
|
4642
|
+
}));
|
|
4643
|
+
if (!_this.isRemissionsMatch) {
|
|
5130
4644
|
fees.push(fee);
|
|
5131
4645
|
}
|
|
5132
4646
|
}));
|
|
@@ -7166,14 +6680,25 @@
|
|
|
7166
6680
|
return AddRetroRemissionRequest;
|
|
7167
6681
|
}());
|
|
7168
6682
|
|
|
6683
|
+
/**
|
|
6684
|
+
* @fileoverview added by tsickle
|
|
6685
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6686
|
+
*/
|
|
6687
|
+
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6688
|
+
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6689
|
+
this.payment_reference = payment_reference;
|
|
6690
|
+
this.refund_reason = refund_reason;
|
|
6691
|
+
}
|
|
6692
|
+
return PostRefundRetroRemission;
|
|
6693
|
+
}());
|
|
6694
|
+
|
|
7169
6695
|
/**
|
|
7170
6696
|
* @fileoverview added by tsickle
|
|
7171
6697
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7172
6698
|
*/
|
|
7173
6699
|
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
7174
|
-
function PostIssueRefundRetroRemission(remissionReference
|
|
6700
|
+
function PostIssueRefundRetroRemission(remissionReference) {
|
|
7175
6701
|
this.remissionReference = remissionReference;
|
|
7176
|
-
this.contact_details = contactDeatils;
|
|
7177
6702
|
}
|
|
7178
6703
|
return PostIssueRefundRetroRemission;
|
|
7179
6704
|
}());
|
|
@@ -7195,7 +6720,6 @@
|
|
|
7195
6720
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
7196
6721
|
this.refundListReason = new i0.EventEmitter();
|
|
7197
6722
|
this.refundListAmount = new i0.EventEmitter();
|
|
7198
|
-
this.refundFees = new i0.EventEmitter();
|
|
7199
6723
|
this.refund = {
|
|
7200
6724
|
reason: {
|
|
7201
6725
|
duplicate: 'Duplicate payment',
|
|
@@ -7224,8 +6748,6 @@
|
|
|
7224
6748
|
this.isRemissionApplied = false;
|
|
7225
6749
|
// refundReasons: any[] = [];
|
|
7226
6750
|
this.commonRefundReasons = [];
|
|
7227
|
-
this.class = '';
|
|
7228
|
-
this.errorMsg = new Array();
|
|
7229
6751
|
}
|
|
7230
6752
|
/**
|
|
7231
6753
|
* @return {?}
|
|
@@ -7235,8 +6757,6 @@
|
|
|
7235
6757
|
*/
|
|
7236
6758
|
function () {
|
|
7237
6759
|
var _this = this;
|
|
7238
|
-
this.errorMessage = '';
|
|
7239
|
-
this.errorMsg = [];
|
|
7240
6760
|
this.default = 'Select a different reason';
|
|
7241
6761
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
7242
6762
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -7248,7 +6768,6 @@
|
|
|
7248
6768
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
7249
6769
|
}
|
|
7250
6770
|
if (this.payment) {
|
|
7251
|
-
this.paymentReference = this.payment.reference;
|
|
7252
6771
|
this.remessionPayment = this.payment;
|
|
7253
6772
|
if (this.payment.status === 'Success') {
|
|
7254
6773
|
this.isPaymentSuccess = true;
|
|
@@ -7267,68 +6786,15 @@
|
|
|
7267
6786
|
])),
|
|
7268
6787
|
refundReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7269
6788
|
refundDDReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7270
|
-
reason: new forms.FormControl()
|
|
7271
|
-
feeAmount: new forms.FormControl(),
|
|
7272
|
-
feesList: this.formBuilder.array([])
|
|
6789
|
+
reason: new forms.FormControl()
|
|
7273
6790
|
});
|
|
7274
6791
|
/** @type {?} */
|
|
7275
6792
|
var remissionctrls = this.remissionForm.controls;
|
|
7276
6793
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7277
|
-
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
7278
|
-
this.paymentReference = this.refundPaymentReference;
|
|
7279
|
-
}
|
|
7280
|
-
else {
|
|
7281
|
-
this.paymentReference = this.payment.reference;
|
|
7282
|
-
}
|
|
7283
|
-
if (this.isFromServiceRequestPage) {
|
|
7284
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe(( /**
|
|
7285
|
-
* @param {?} paymentGroup
|
|
7286
|
-
* @return {?}
|
|
7287
|
-
*/function (paymentGroup) {
|
|
7288
|
-
/** @type {?} */
|
|
7289
|
-
var fees = [];
|
|
7290
|
-
paymentGroup.fees.forEach(( /**
|
|
7291
|
-
* @param {?} fee
|
|
7292
|
-
* @return {?}
|
|
7293
|
-
*/function (fee) {
|
|
7294
|
-
_this.isRemissionsMatch = false;
|
|
7295
|
-
paymentGroup.remissions.forEach(( /**
|
|
7296
|
-
* @param {?} rem
|
|
7297
|
-
* @return {?}
|
|
7298
|
-
*/function (rem) {
|
|
7299
|
-
if (rem.fee_code === fee.code) {
|
|
7300
|
-
_this.isRemissionsMatch = true;
|
|
7301
|
-
fee['remissions'] = rem;
|
|
7302
|
-
fees.push(fee);
|
|
7303
|
-
}
|
|
7304
|
-
}));
|
|
7305
|
-
if (!_this.isRemissionsMatch) {
|
|
7306
|
-
fees.push(fee);
|
|
7307
|
-
}
|
|
7308
|
-
}));
|
|
7309
|
-
paymentGroup.fees = fees;
|
|
7310
|
-
_this.paymentFees = fees;
|
|
7311
|
-
_this.fees = fees;
|
|
7312
|
-
_this.paymentGroup = paymentGroup;
|
|
7313
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
7314
|
-
* @param {?} paymentGroupObj
|
|
7315
|
-
* @return {?}
|
|
7316
|
-
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7317
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7318
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7319
|
-
_this.refundFeesList();
|
|
7320
|
-
}), ( /**
|
|
7321
|
-
* @param {?} error
|
|
7322
|
-
* @return {?}
|
|
7323
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7324
|
-
}
|
|
7325
|
-
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7326
|
-
this.refundFeesList();
|
|
7327
|
-
}
|
|
7328
6794
|
if (this.viewCompStatus === '') {
|
|
7329
6795
|
this.viewStatus = 'main';
|
|
7330
6796
|
}
|
|
7331
|
-
if (this.viewCompStatus === '
|
|
6797
|
+
if (this.viewCompStatus === 'issuerefund') {
|
|
7332
6798
|
this.refundService.getRefundReasons().subscribe(( /**
|
|
7333
6799
|
* @param {?} refundReasons
|
|
7334
6800
|
* @return {?}
|
|
@@ -7340,7 +6806,7 @@
|
|
|
7340
6806
|
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
7341
6807
|
* @param {?} data
|
|
7342
6808
|
* @return {?}
|
|
7343
|
-
*/function (data) { return data.name !== 'Retrospective remission'
|
|
6809
|
+
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7344
6810
|
_this.cd.detectChanges();
|
|
7345
6811
|
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
7346
6812
|
* @param {?} data
|
|
@@ -7353,160 +6819,10 @@
|
|
|
7353
6819
|
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
7354
6820
|
_this.cd.detectChanges();
|
|
7355
6821
|
}));
|
|
7356
|
-
this.refundReason = this.changeRefundReason;
|
|
7357
6822
|
}
|
|
7358
6823
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
7359
6824
|
this.viewStatus = 'processretroremissonpage';
|
|
7360
6825
|
}
|
|
7361
|
-
if (this.orderDetail !== undefined) {
|
|
7362
|
-
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe(( /**
|
|
7363
|
-
* @param {?} paymentGroup
|
|
7364
|
-
* @return {?}
|
|
7365
|
-
*/function (paymentGroup) {
|
|
7366
|
-
_this.fees = paymentGroup.fees;
|
|
7367
|
-
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7368
|
-
}), ( /**
|
|
7369
|
-
* @param {?} error
|
|
7370
|
-
* @return {?}
|
|
7371
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7372
|
-
}
|
|
7373
|
-
};
|
|
7374
|
-
/**
|
|
7375
|
-
* @return {?}
|
|
7376
|
-
*/
|
|
7377
|
-
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7378
|
-
* @return {?}
|
|
7379
|
-
*/
|
|
7380
|
-
function () {
|
|
7381
|
-
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7382
|
-
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7383
|
-
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7384
|
-
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7385
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
7386
|
-
};
|
|
7387
|
-
/**
|
|
7388
|
-
* @return {?}
|
|
7389
|
-
*/
|
|
7390
|
-
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7391
|
-
* @return {?}
|
|
7392
|
-
*/
|
|
7393
|
-
function () {
|
|
7394
|
-
/** @type {?} */
|
|
7395
|
-
var creds = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7396
|
-
// if(creds.controls.length > 0) {
|
|
7397
|
-
for (var i = 0; i < this.fees.length; i++) {
|
|
7398
|
-
creds.push(this.formBuilder.group({
|
|
7399
|
-
id: this.fees[i].id,
|
|
7400
|
-
code: this.fees[i].code,
|
|
7401
|
-
volume: this.fees[i].volume,
|
|
7402
|
-
calculated_amount: this.fees[i].calculated_amount,
|
|
7403
|
-
apportion_amount: this.fees[i].apportion_amount,
|
|
7404
|
-
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7405
|
-
description: this.fees[i].description,
|
|
7406
|
-
net_amount: this.fees[i].net_amount,
|
|
7407
|
-
version: this.fees[i].version,
|
|
7408
|
-
refund_amount: [''],
|
|
7409
|
-
selected: [''],
|
|
7410
|
-
updated_volume: this.fees[i].volume
|
|
7411
|
-
}));
|
|
7412
|
-
}
|
|
7413
|
-
this.cd.detectChanges();
|
|
7414
|
-
//}
|
|
7415
|
-
};
|
|
7416
|
-
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7417
|
-
get: /**
|
|
7418
|
-
* @return {?}
|
|
7419
|
-
*/ function () {
|
|
7420
|
-
/** @type {?} */
|
|
7421
|
-
var dd = ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7422
|
-
return ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7423
|
-
},
|
|
7424
|
-
enumerable: true,
|
|
7425
|
-
configurable: true
|
|
7426
|
-
});
|
|
7427
|
-
/**
|
|
7428
|
-
* @return {?}
|
|
7429
|
-
*/
|
|
7430
|
-
AddRemissionComponent.prototype.noneSelected = /**
|
|
7431
|
-
* @return {?}
|
|
7432
|
-
*/
|
|
7433
|
-
function () {
|
|
7434
|
-
if (this.isFullyRefund) {
|
|
7435
|
-
return false;
|
|
7436
|
-
}
|
|
7437
|
-
else {
|
|
7438
|
-
if (!this.feesList.controls.some(( /**
|
|
7439
|
-
* @param {?} item
|
|
7440
|
-
* @return {?}
|
|
7441
|
-
*/function (item) { return item.get('selected').value === true; }))) {
|
|
7442
|
-
this.errorMsg = [];
|
|
7443
|
-
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7444
|
-
* @param {?} el
|
|
7445
|
-
* @return {?}
|
|
7446
|
-
*/function (el) {
|
|
7447
|
-
el.classList.remove('inline-error-class');
|
|
7448
|
-
}));
|
|
7449
|
-
}
|
|
7450
|
-
return !this.feesList.controls.some(( /**
|
|
7451
|
-
* @param {?} item
|
|
7452
|
-
* @return {?}
|
|
7453
|
-
*/function (item) { return item.get('selected').value === true; }));
|
|
7454
|
-
}
|
|
7455
|
-
};
|
|
7456
|
-
/**
|
|
7457
|
-
* @param {?} i
|
|
7458
|
-
* @param {?} v1
|
|
7459
|
-
* @param {?} AppAmt
|
|
7460
|
-
* @param {?} Volume
|
|
7461
|
-
* @return {?}
|
|
7462
|
-
*/
|
|
7463
|
-
AddRemissionComponent.prototype.check_en = /**
|
|
7464
|
-
* @param {?} i
|
|
7465
|
-
* @param {?} v1
|
|
7466
|
-
* @param {?} AppAmt
|
|
7467
|
-
* @param {?} Volume
|
|
7468
|
-
* @return {?}
|
|
7469
|
-
*/
|
|
7470
|
-
function (i, v1, AppAmt, Volume) {
|
|
7471
|
-
/** @type {?} */
|
|
7472
|
-
var ele = ( /** @type {?} */(document.getElementById(v1)));
|
|
7473
|
-
/** @type {?} */
|
|
7474
|
-
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7475
|
-
if (ele.checked) {
|
|
7476
|
-
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7477
|
-
formArray.at(i).get('volume').setValue(Volume);
|
|
7478
|
-
formArray.at(i).get('selected').setValue(true);
|
|
7479
|
-
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7480
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7481
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7482
|
-
if (Volume === 1) {
|
|
7483
|
-
(( /** @type {?} */(document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7484
|
-
}
|
|
7485
|
-
else {
|
|
7486
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7487
|
-
}
|
|
7488
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7489
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7490
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7491
|
-
}
|
|
7492
|
-
this.cd.detectChanges();
|
|
7493
|
-
}
|
|
7494
|
-
else {
|
|
7495
|
-
this.errorMsg = [];
|
|
7496
|
-
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7497
|
-
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7498
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7499
|
-
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7500
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7501
|
-
if (Volume > 1) {
|
|
7502
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7503
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7504
|
-
}
|
|
7505
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7506
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7507
|
-
}
|
|
7508
|
-
this.cd.detectChanges();
|
|
7509
|
-
}
|
|
7510
6826
|
};
|
|
7511
6827
|
/**
|
|
7512
6828
|
* @return {?}
|
|
@@ -7631,8 +6947,6 @@
|
|
|
7631
6947
|
*/
|
|
7632
6948
|
function () {
|
|
7633
6949
|
this.errorMessage = false;
|
|
7634
|
-
// this.isFromCheckAnsPage = true;
|
|
7635
|
-
this.errorMsg = [];
|
|
7636
6950
|
this.viewStatus = '';
|
|
7637
6951
|
this.isRefundRemission = false;
|
|
7638
6952
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -7643,14 +6957,8 @@
|
|
|
7643
6957
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
7644
6958
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
7645
6959
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
this.viewStatus = "processretroremissonpage";
|
|
7649
|
-
}
|
|
7650
|
-
else {
|
|
7651
|
-
this.viewCompStatus = '';
|
|
7652
|
-
this.viewStatus = 'checkretroremissionpage';
|
|
7653
|
-
}
|
|
6960
|
+
this.viewCompStatus = '';
|
|
6961
|
+
this.viewStatus = "processretroremissonpage";
|
|
7654
6962
|
}
|
|
7655
6963
|
else {
|
|
7656
6964
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -7681,8 +6989,6 @@
|
|
|
7681
6989
|
*/
|
|
7682
6990
|
function () {
|
|
7683
6991
|
this.errorMessage = false;
|
|
7684
|
-
this.isFromCheckAnsPage = false;
|
|
7685
|
-
this.errorMsg = [];
|
|
7686
6992
|
if (this.isRefundRemission) {
|
|
7687
6993
|
this.paymentLibComponent.iscancelClicked = true;
|
|
7688
6994
|
this.refundListAmount.emit();
|
|
@@ -7700,7 +7006,6 @@
|
|
|
7700
7006
|
this.viewCompStatus = "addremission";
|
|
7701
7007
|
this.isRefundRemission = true;
|
|
7702
7008
|
this.errorMessage = '';
|
|
7703
|
-
this.errorMsg = [];
|
|
7704
7009
|
if (this.isFromPaymentDetailPage) {
|
|
7705
7010
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7706
7011
|
}
|
|
@@ -7756,47 +7061,14 @@
|
|
|
7756
7061
|
/**
|
|
7757
7062
|
* @return {?}
|
|
7758
7063
|
*/
|
|
7759
|
-
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7760
|
-
* @return {?}
|
|
7761
|
-
*/
|
|
7762
|
-
function () {
|
|
7763
|
-
this.isFromCheckAnsPage = false;
|
|
7764
|
-
this.viewStatus = 'processretroremissonpage';
|
|
7765
|
-
this.viewCompStatus = '';
|
|
7766
|
-
// this.isRefundRemission = true;
|
|
7767
|
-
this.errorMessage = '';
|
|
7768
|
-
};
|
|
7769
|
-
/**
|
|
7770
|
-
* @return {?}
|
|
7771
|
-
*/
|
|
7772
7064
|
AddRemissionComponent.prototype.gotoProcessRetroRemissionPage = /**
|
|
7773
7065
|
* @return {?}
|
|
7774
7066
|
*/
|
|
7775
7067
|
function () {
|
|
7776
|
-
this.isFromCheckAnsPage = true;
|
|
7777
7068
|
this.viewStatus = '';
|
|
7778
7069
|
this.viewCompStatus = 'addremission';
|
|
7779
7070
|
this.isRefundRemission = true;
|
|
7780
7071
|
this.errorMessage = '';
|
|
7781
|
-
this.errorMsg = [];
|
|
7782
|
-
};
|
|
7783
|
-
/**
|
|
7784
|
-
* @param {?=} note
|
|
7785
|
-
* @return {?}
|
|
7786
|
-
*/
|
|
7787
|
-
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7788
|
-
* @param {?=} note
|
|
7789
|
-
* @return {?}
|
|
7790
|
-
*/
|
|
7791
|
-
function (note) {
|
|
7792
|
-
if (note) {
|
|
7793
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7794
|
-
}
|
|
7795
|
-
this.isFromCheckAnsPage = true;
|
|
7796
|
-
this.viewStatus = 'remissionAddressPage';
|
|
7797
|
-
this.viewCompStatus = '';
|
|
7798
|
-
this.isRefundRemission = true;
|
|
7799
|
-
this.errorMessage = '';
|
|
7800
7072
|
};
|
|
7801
7073
|
/**
|
|
7802
7074
|
* @return {?}
|
|
@@ -7840,7 +7112,6 @@
|
|
|
7840
7112
|
function () {
|
|
7841
7113
|
var _this = this;
|
|
7842
7114
|
this.errorMessage = '';
|
|
7843
|
-
this.errorMsg = [];
|
|
7844
7115
|
this.isConfirmationBtnDisabled = true;
|
|
7845
7116
|
if (this.isRefundRemission) {
|
|
7846
7117
|
this.retroRemission = true;
|
|
@@ -7849,7 +7120,7 @@
|
|
|
7849
7120
|
this.remissionReference = this.remission.remission_reference;
|
|
7850
7121
|
}
|
|
7851
7122
|
/** @type {?} */
|
|
7852
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference
|
|
7123
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7853
7124
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe(( /**
|
|
7854
7125
|
* @param {?} response
|
|
7855
7126
|
* @return {?}
|
|
@@ -7885,13 +7156,7 @@
|
|
|
7885
7156
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
7886
7157
|
this.isFromRefundListPage = true;
|
|
7887
7158
|
}
|
|
7888
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7889
|
-
* @param {?} a
|
|
7890
|
-
* @param {?} c
|
|
7891
|
-
* @return {?}
|
|
7892
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7893
7159
|
this.errorMessage = '';
|
|
7894
|
-
this.errorMsg = [];
|
|
7895
7160
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
7896
7161
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
7897
7162
|
this.refundHasError = true;
|
|
@@ -7907,41 +7172,19 @@
|
|
|
7907
7172
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
7908
7173
|
}
|
|
7909
7174
|
else {
|
|
7910
|
-
if (this.isFromCheckAnsPage) {
|
|
7911
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7912
|
-
* @param {?} a
|
|
7913
|
-
* @param {?} c
|
|
7914
|
-
* @return {?}
|
|
7915
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7916
|
-
this.isFromCheckAnsPage = false;
|
|
7917
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7918
|
-
this.viewCompStatus = '';
|
|
7919
|
-
return;
|
|
7920
|
-
}
|
|
7921
7175
|
this.viewCompStatus = '';
|
|
7922
|
-
this.viewStatus = '
|
|
7176
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7923
7177
|
}
|
|
7924
7178
|
}
|
|
7925
7179
|
else {
|
|
7926
7180
|
this.displayRefundReason = this.selectedRefundReason;
|
|
7927
|
-
if (this.isFromCheckAnsPage) {
|
|
7928
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7929
|
-
* @param {?} a
|
|
7930
|
-
* @param {?} c
|
|
7931
|
-
* @return {?}
|
|
7932
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7933
|
-
this.isFromCheckAnsPage = false;
|
|
7934
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7935
|
-
this.viewCompStatus = '';
|
|
7936
|
-
return;
|
|
7937
|
-
}
|
|
7938
7181
|
if (this.isFromRefundListPage) {
|
|
7939
7182
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7940
7183
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
7941
7184
|
}
|
|
7942
7185
|
else {
|
|
7943
7186
|
this.viewCompStatus = '';
|
|
7944
|
-
this.viewStatus = '
|
|
7187
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7945
7188
|
}
|
|
7946
7189
|
}
|
|
7947
7190
|
};
|
|
@@ -7957,290 +7200,86 @@
|
|
|
7957
7200
|
this.viewStatus = '';
|
|
7958
7201
|
this.isRefundRemission = true;
|
|
7959
7202
|
this.errorMessage = false;
|
|
7960
|
-
this.errorMsg = [];
|
|
7961
7203
|
this.refundHasError = false;
|
|
7962
7204
|
this.isReasonEmpty = false;
|
|
7963
7205
|
};
|
|
7964
7206
|
/**
|
|
7965
|
-
* @param {?} isFullyRefund
|
|
7966
|
-
* @return {?}
|
|
7967
|
-
*/
|
|
7968
|
-
AddRemissionComponent.prototype.gotoIssuePage = /**
|
|
7969
|
-
* @param {?} isFullyRefund
|
|
7970
|
-
* @return {?}
|
|
7971
|
-
*/
|
|
7972
|
-
function (isFullyRefund) {
|
|
7973
|
-
if (isFullyRefund) {
|
|
7974
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
7975
|
-
this.getRefundReasons();
|
|
7976
|
-
}
|
|
7977
|
-
else {
|
|
7978
|
-
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7979
|
-
* @param {?} el
|
|
7980
|
-
* @return {?}
|
|
7981
|
-
*/function (el) {
|
|
7982
|
-
el.classList.remove('inline-error-class');
|
|
7983
|
-
}));
|
|
7984
|
-
/** @type {?} */
|
|
7985
|
-
var checkboxs = document.getElementsByTagName('input');
|
|
7986
|
-
this.errorMessage = '';
|
|
7987
|
-
this.totalRefundAmount = 0;
|
|
7988
|
-
this.errorMsg = [];
|
|
7989
|
-
for (var j = 0; j < checkboxs.length; j++) {
|
|
7990
|
-
if (checkboxs[j].checked) {
|
|
7991
|
-
this.fullRefund = false;
|
|
7992
|
-
/** @type {?} */
|
|
7993
|
-
var quantity = +(( /** @type {?} */(document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
7994
|
-
/** @type {?} */
|
|
7995
|
-
var amountToRefund = +(( /** @type {?} */(document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
7996
|
-
/** @type {?} */
|
|
7997
|
-
var apportionAmount = +(( /** @type {?} */(document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
7998
|
-
/** @type {?} */
|
|
7999
|
-
var calculatedAmount = +(( /** @type {?} */(document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8000
|
-
if (amountToRefund === apportionAmount) {
|
|
8001
|
-
this.fullRefund = true;
|
|
8002
|
-
}
|
|
8003
|
-
if (amountToRefund === 0) {
|
|
8004
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8005
|
-
this.errorMsg.push('You need to enter a refund amount');
|
|
8006
|
-
this.getErrorClass(this.elementId);
|
|
8007
|
-
}
|
|
8008
|
-
if (quantity === 1) {
|
|
8009
|
-
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8010
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8011
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8012
|
-
this.getErrorClass(this.elementId);
|
|
8013
|
-
}
|
|
8014
|
-
}
|
|
8015
|
-
if (quantity > 1) {
|
|
8016
|
-
this.quantityUpdated = +(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8017
|
-
if (this.quantityUpdated === 0) {
|
|
8018
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8019
|
-
this.errorMsg.push('You need to enter quantity');
|
|
8020
|
-
this.getErrorClass(this.elementId);
|
|
8021
|
-
}
|
|
8022
|
-
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8023
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8024
|
-
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8025
|
-
this.getErrorClass(this.elementId);
|
|
8026
|
-
}
|
|
8027
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8028
|
-
this.refundAmtForFeeVolumes = +(( /** @type {?} */(document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8029
|
-
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8030
|
-
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8031
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8032
|
-
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8033
|
-
this.getErrorClass(this.elementId);
|
|
8034
|
-
}
|
|
8035
|
-
}
|
|
8036
|
-
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8037
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8038
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8039
|
-
this.getErrorClass(this.elementId);
|
|
8040
|
-
}
|
|
8041
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8042
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8043
|
-
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8044
|
-
this.getErrorClass(this.elementId);
|
|
8045
|
-
}
|
|
8046
|
-
}
|
|
8047
|
-
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8048
|
-
}
|
|
8049
|
-
}
|
|
8050
|
-
if (this.errorMsg.length === 0) {
|
|
8051
|
-
if (this.isFromCheckAnsPage) {
|
|
8052
|
-
this.isFromCheckAnsPage = false;
|
|
8053
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8054
|
-
* @param {?} a
|
|
8055
|
-
* @param {?} c
|
|
8056
|
-
* @return {?}
|
|
8057
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8058
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8059
|
-
* @param {?} value
|
|
8060
|
-
* @return {?}
|
|
8061
|
-
*/function (value) { return value.selected === true; }));
|
|
8062
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8063
|
-
this.viewCompStatus = '';
|
|
8064
|
-
return;
|
|
8065
|
-
}
|
|
8066
|
-
else if (this.isFromRefundStatusPage) {
|
|
8067
|
-
/** @type {?} */
|
|
8068
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8069
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8070
|
-
* @param {?} a
|
|
8071
|
-
* @param {?} c
|
|
8072
|
-
* @return {?}
|
|
8073
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8074
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8075
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8076
|
-
* @param {?} value
|
|
8077
|
-
* @return {?}
|
|
8078
|
-
*/function (value) { return value.selected === true; }));
|
|
8079
|
-
this.refundFees.emit(this.fees);
|
|
8080
|
-
return;
|
|
8081
|
-
}
|
|
8082
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8083
|
-
this.getRefundReasons();
|
|
8084
|
-
}
|
|
8085
|
-
}
|
|
8086
|
-
};
|
|
8087
|
-
/**
|
|
8088
|
-
* @param {?} value
|
|
8089
|
-
* @param {?} amount
|
|
8090
|
-
* @param {?} volume
|
|
8091
|
-
* @param {?} i
|
|
8092
|
-
* @return {?}
|
|
8093
|
-
*/
|
|
8094
|
-
AddRemissionComponent.prototype.calAmtToRefund = /**
|
|
8095
|
-
* @param {?} value
|
|
8096
|
-
* @param {?} amount
|
|
8097
|
-
* @param {?} volume
|
|
8098
|
-
* @param {?} i
|
|
8099
|
-
* @return {?}
|
|
8100
|
-
*/
|
|
8101
|
-
function (value, amount, volume, i) {
|
|
8102
|
-
/** @type {?} */
|
|
8103
|
-
var volumeFee = amount / volume;
|
|
8104
|
-
/** @type {?} */
|
|
8105
|
-
var amtToRefund = value * volumeFee;
|
|
8106
|
-
/** @type {?} */
|
|
8107
|
-
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
8108
|
-
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
8109
|
-
// formArray.at(i).get('volume').setValue(value);
|
|
8110
|
-
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
8111
|
-
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
8112
|
-
// formControl.setValue(value);
|
|
8113
|
-
};
|
|
8114
|
-
/**
|
|
8115
|
-
* @param {?=} note
|
|
8116
7207
|
* @return {?}
|
|
8117
7208
|
*/
|
|
8118
|
-
AddRemissionComponent.prototype.
|
|
8119
|
-
* @param {?=} note
|
|
7209
|
+
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8120
7210
|
* @return {?}
|
|
8121
7211
|
*/
|
|
8122
|
-
function (
|
|
8123
|
-
|
|
8124
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8125
|
-
}
|
|
7212
|
+
function () {
|
|
7213
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
8126
7214
|
this.errorMessage = '';
|
|
8127
|
-
this.
|
|
8128
|
-
this.
|
|
7215
|
+
this.refundHasError = false;
|
|
7216
|
+
this.isReasonEmpty = false;
|
|
7217
|
+
this.viewCompStatus = 'issuerefund';
|
|
7218
|
+
this.viewStatus = '';
|
|
8129
7219
|
this.isRefundRemission = true;
|
|
8130
|
-
this.errorMessage = false;
|
|
8131
7220
|
};
|
|
8132
7221
|
/**
|
|
8133
7222
|
* @return {?}
|
|
8134
7223
|
*/
|
|
8135
|
-
AddRemissionComponent.prototype.
|
|
7224
|
+
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8136
7225
|
* @return {?}
|
|
8137
7226
|
*/
|
|
8138
7227
|
function () {
|
|
8139
7228
|
var _this = this;
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
*/function (refundReasons) {
|
|
8145
|
-
_this.refundReasons = refundReasons.filter(( /**
|
|
8146
|
-
* @param {?} data
|
|
8147
|
-
* @return {?}
|
|
8148
|
-
*/function (data) { return data.recently_used === false; }));
|
|
8149
|
-
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
8150
|
-
* @param {?} data
|
|
8151
|
-
* @return {?}
|
|
8152
|
-
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8153
|
-
_this.cd.detectChanges();
|
|
8154
|
-
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
8155
|
-
* @param {?} data
|
|
8156
|
-
* @return {?}
|
|
8157
|
-
*/function (data) { return data.recently_used === true; }));
|
|
8158
|
-
_this.commonRefundReasons.sort(( /**
|
|
8159
|
-
* @param {?} a
|
|
8160
|
-
* @param {?} b
|
|
8161
|
-
* @return {?}
|
|
8162
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8163
|
-
_this.cd.detectChanges();
|
|
8164
|
-
}));
|
|
8165
|
-
}
|
|
8166
|
-
};
|
|
8167
|
-
/**
|
|
8168
|
-
* @param {?} elementId
|
|
8169
|
-
* @return {?}
|
|
8170
|
-
*/
|
|
8171
|
-
AddRemissionComponent.prototype.getErrorClass = /**
|
|
8172
|
-
* @param {?} elementId
|
|
8173
|
-
* @return {?}
|
|
8174
|
-
*/
|
|
8175
|
-
function (elementId) {
|
|
8176
|
-
if (this.errorMsg.length > 0) {
|
|
8177
|
-
/** @type {?} */
|
|
8178
|
-
var ele = document.getElementById(elementId);
|
|
8179
|
-
ele.classList.add('inline-error-class');
|
|
7229
|
+
this.isConfirmationBtnDisabled = true;
|
|
7230
|
+
this.errorMessage = '';
|
|
7231
|
+
if (this.isRefundRemission) {
|
|
7232
|
+
this.retroRemission = true;
|
|
8180
7233
|
}
|
|
7234
|
+
/** @type {?} */
|
|
7235
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
7236
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
7237
|
+
* @param {?} response
|
|
7238
|
+
* @return {?}
|
|
7239
|
+
*/function (response) {
|
|
7240
|
+
if (JSON.parse(response)) {
|
|
7241
|
+
_this.viewCompStatus = '';
|
|
7242
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7243
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7244
|
+
if (JSON.parse(response).refund_amount) {
|
|
7245
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7246
|
+
}
|
|
7247
|
+
}
|
|
7248
|
+
}), ( /**
|
|
7249
|
+
* @param {?} error
|
|
7250
|
+
* @return {?}
|
|
7251
|
+
*/function (error) {
|
|
7252
|
+
_this.errorMessage = error;
|
|
7253
|
+
_this.isConfirmationBtnDisabled = false;
|
|
7254
|
+
_this.cd.detectChanges();
|
|
7255
|
+
}));
|
|
8181
7256
|
};
|
|
7257
|
+
// Retro Refund
|
|
7258
|
+
// Retro Refund
|
|
8182
7259
|
/**
|
|
8183
7260
|
* @return {?}
|
|
8184
7261
|
*/
|
|
8185
|
-
AddRemissionComponent.prototype.
|
|
8186
|
-
|
|
8187
|
-
|
|
7262
|
+
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7263
|
+
// Retro Refund
|
|
7264
|
+
/**
|
|
7265
|
+
* @return {?}
|
|
7266
|
+
*/
|
|
8188
7267
|
function () {
|
|
8189
|
-
this.isFromCheckAnsPage = true;
|
|
8190
|
-
this.errorMessage = '';
|
|
8191
|
-
this.errorMsg = [];
|
|
8192
|
-
this.refundHasError = false;
|
|
8193
|
-
this.isReasonEmpty = false;
|
|
8194
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8195
|
-
this.viewStatus = '';
|
|
8196
|
-
this.isRefundRemission = true;
|
|
8197
|
-
};
|
|
8198
|
-
/**
|
|
8199
|
-
* @param {?} isFullyRefund
|
|
8200
|
-
* @return {?}
|
|
8201
|
-
*/
|
|
8202
|
-
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8203
|
-
* @param {?} isFullyRefund
|
|
8204
|
-
* @return {?}
|
|
8205
|
-
*/
|
|
8206
|
-
function (isFullyRefund) {
|
|
8207
7268
|
var _this = this;
|
|
8208
7269
|
this.isConfirmationBtnDisabled = true;
|
|
8209
7270
|
this.errorMessage = '';
|
|
8210
|
-
this.errorMsg = [];
|
|
8211
7271
|
if (this.isRefundRemission) {
|
|
8212
7272
|
this.retroRemission = true;
|
|
8213
7273
|
}
|
|
8214
|
-
if (isFullyRefund) {
|
|
8215
|
-
this.totalRefundAmount = this.payment.amount;
|
|
8216
|
-
}
|
|
8217
|
-
if (!isFullyRefund) {
|
|
8218
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8219
|
-
* @param {?} value
|
|
8220
|
-
* @return {?}
|
|
8221
|
-
*/function (value) { return value.selected === true; }));
|
|
8222
|
-
}
|
|
8223
|
-
this.fees = this.fees.map(( /**
|
|
8224
|
-
* @param {?} obj
|
|
8225
|
-
* @return {?}
|
|
8226
|
-
*/function (obj) {
|
|
8227
|
-
return ({ id: obj.id,
|
|
8228
|
-
code: obj.code,
|
|
8229
|
-
version: obj.version,
|
|
8230
|
-
apportion_amount: obj.apportion_amount,
|
|
8231
|
-
calculated_amount: obj.calculated_amount,
|
|
8232
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8233
|
-
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount });
|
|
8234
|
-
}));
|
|
8235
7274
|
/** @type {?} */
|
|
8236
|
-
var requestBody = new PostRefundRetroRemission(this.
|
|
7275
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
8237
7276
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
8238
7277
|
* @param {?} response
|
|
8239
7278
|
* @return {?}
|
|
8240
7279
|
*/function (response) {
|
|
8241
7280
|
if (JSON.parse(response)) {
|
|
8242
7281
|
_this.viewCompStatus = '';
|
|
8243
|
-
_this.viewStatus = '
|
|
7282
|
+
_this.viewStatus = 'retrorefundconfirmationpage';
|
|
8244
7283
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
8245
7284
|
if (JSON.parse(response).refund_amount) {
|
|
8246
7285
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -8252,105 +7291,18 @@
|
|
|
8252
7291
|
*/function (error) {
|
|
8253
7292
|
_this.errorMessage = error;
|
|
8254
7293
|
_this.isConfirmationBtnDisabled = false;
|
|
8255
|
-
_this.cd.detectChanges();
|
|
8256
7294
|
}));
|
|
8257
7295
|
};
|
|
8258
7296
|
/**
|
|
7297
|
+
* @param {?} key
|
|
7298
|
+
* @param {?} value
|
|
8259
7299
|
* @return {?}
|
|
8260
7300
|
*/
|
|
8261
|
-
AddRemissionComponent.prototype.
|
|
8262
|
-
* @return {?}
|
|
8263
|
-
*/
|
|
8264
|
-
function () {
|
|
8265
|
-
this.viewStatus = '';
|
|
8266
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8267
|
-
};
|
|
8268
|
-
// Retro Refund
|
|
8269
|
-
// confirmRetroRefund() {
|
|
8270
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8271
|
-
// this.errorMessage = '';
|
|
8272
|
-
// this.errorMsg = [];
|
|
8273
|
-
// if( this.isRefundRemission) {
|
|
8274
|
-
// this.retroRemission = true;
|
|
8275
|
-
// }
|
|
8276
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8277
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8278
|
-
// response => {
|
|
8279
|
-
// if (JSON.parse(response)) {
|
|
8280
|
-
// this.viewCompStatus = '';
|
|
8281
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8282
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8283
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8284
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8285
|
-
// }
|
|
8286
|
-
// }
|
|
8287
|
-
// },
|
|
8288
|
-
// (error: any) => {
|
|
8289
|
-
// this.errorMessage = error;
|
|
8290
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8291
|
-
// });
|
|
8292
|
-
// }
|
|
8293
|
-
// Retro Refund
|
|
8294
|
-
// confirmRetroRefund() {
|
|
8295
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8296
|
-
// this.errorMessage = '';
|
|
8297
|
-
// this.errorMsg = [];
|
|
8298
|
-
// if( this.isRefundRemission) {
|
|
8299
|
-
// this.retroRemission = true;
|
|
8300
|
-
// }
|
|
8301
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8302
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8303
|
-
// response => {
|
|
8304
|
-
// if (JSON.parse(response)) {
|
|
8305
|
-
// this.viewCompStatus = '';
|
|
8306
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8307
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8308
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8309
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8310
|
-
// }
|
|
8311
|
-
// }
|
|
8312
|
-
// },
|
|
8313
|
-
// (error: any) => {
|
|
8314
|
-
// this.errorMessage = error;
|
|
8315
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8316
|
-
// });
|
|
8317
|
-
// }
|
|
8318
|
-
/**
|
|
7301
|
+
AddRemissionComponent.prototype.selectRadioButton = /**
|
|
8319
7302
|
* @param {?} key
|
|
8320
7303
|
* @param {?} value
|
|
8321
7304
|
* @return {?}
|
|
8322
7305
|
*/
|
|
8323
|
-
AddRemissionComponent.prototype.selectRadioButton =
|
|
8324
|
-
// Retro Refund
|
|
8325
|
-
// confirmRetroRefund() {
|
|
8326
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8327
|
-
// this.errorMessage = '';
|
|
8328
|
-
// this.errorMsg = [];
|
|
8329
|
-
// if( this.isRefundRemission) {
|
|
8330
|
-
// this.retroRemission = true;
|
|
8331
|
-
// }
|
|
8332
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8333
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8334
|
-
// response => {
|
|
8335
|
-
// if (JSON.parse(response)) {
|
|
8336
|
-
// this.viewCompStatus = '';
|
|
8337
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8338
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8339
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8340
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8341
|
-
// }
|
|
8342
|
-
// }
|
|
8343
|
-
// },
|
|
8344
|
-
// (error: any) => {
|
|
8345
|
-
// this.errorMessage = error;
|
|
8346
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8347
|
-
// });
|
|
8348
|
-
// }
|
|
8349
|
-
/**
|
|
8350
|
-
* @param {?} key
|
|
8351
|
-
* @param {?} value
|
|
8352
|
-
* @return {?}
|
|
8353
|
-
*/
|
|
8354
7306
|
function (key, value) {
|
|
8355
7307
|
localStorage.setItem("myradio", key);
|
|
8356
7308
|
/** @type {?} */
|
|
@@ -8359,7 +7311,6 @@
|
|
|
8359
7311
|
remissionctrls['reason'].reset();
|
|
8360
7312
|
this.isRefundReasonsSelected = true;
|
|
8361
7313
|
this.errorMessage = false;
|
|
8362
|
-
this.errorMsg = [];
|
|
8363
7314
|
this.isReasonEmpty = false;
|
|
8364
7315
|
this.showReasonText = false;
|
|
8365
7316
|
this.refundHasError = false;
|
|
@@ -8394,38 +7345,6 @@
|
|
|
8394
7345
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
8395
7346
|
}
|
|
8396
7347
|
};
|
|
8397
|
-
/**
|
|
8398
|
-
* @param {?} obj
|
|
8399
|
-
* @param {?} type
|
|
8400
|
-
* @return {?}
|
|
8401
|
-
*/
|
|
8402
|
-
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8403
|
-
* @param {?} obj
|
|
8404
|
-
* @param {?} type
|
|
8405
|
-
* @return {?}
|
|
8406
|
-
*/
|
|
8407
|
-
function (obj, type) {
|
|
8408
|
-
this.contactDetailsObj = obj;
|
|
8409
|
-
this.viewCompStatus = '';
|
|
8410
|
-
this.viewStatus = type;
|
|
8411
|
-
};
|
|
8412
|
-
/**
|
|
8413
|
-
* @return {?}
|
|
8414
|
-
*/
|
|
8415
|
-
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8416
|
-
* @return {?}
|
|
8417
|
-
*/
|
|
8418
|
-
function () {
|
|
8419
|
-
if (this.isFromRefundStatusPage) {
|
|
8420
|
-
/** @type {?} */
|
|
8421
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8422
|
-
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8423
|
-
return;
|
|
8424
|
-
}
|
|
8425
|
-
this.refundHasError = false;
|
|
8426
|
-
this.viewCompStatus = 'issuerefund';
|
|
8427
|
-
this.viewStatus = '';
|
|
8428
|
-
};
|
|
8429
7348
|
/**
|
|
8430
7349
|
* @param {?} event
|
|
8431
7350
|
* @return {?}
|
|
@@ -8437,20 +7356,7 @@
|
|
|
8437
7356
|
function (event) {
|
|
8438
7357
|
var _this = this;
|
|
8439
7358
|
this.errorMessage = '';
|
|
8440
|
-
this.errorMsg = [];
|
|
8441
|
-
this.isFromCheckAnsPage = false;
|
|
8442
7359
|
event.preventDefault();
|
|
8443
|
-
if (this.isFromRefundStatusPage) {
|
|
8444
|
-
/** @type {?} */
|
|
8445
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8446
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8447
|
-
* @param {?} a
|
|
8448
|
-
* @param {?} c
|
|
8449
|
-
* @return {?}
|
|
8450
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8451
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8452
|
-
return;
|
|
8453
|
-
}
|
|
8454
7360
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
8455
7361
|
this.viewStatus = 'order-full-view';
|
|
8456
7362
|
this.viewCompStatus = '';
|
|
@@ -8484,40 +7390,68 @@
|
|
|
8484
7390
|
}
|
|
8485
7391
|
this.viewCompStatus = '';
|
|
8486
7392
|
}
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
this.
|
|
8501
|
-
this.
|
|
8502
|
-
this.
|
|
8503
|
-
|
|
8504
|
-
this.
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
this.
|
|
8517
|
-
this.
|
|
8518
|
-
this.
|
|
8519
|
-
this.
|
|
8520
|
-
this.
|
|
7393
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7394
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7395
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7396
|
+
// }
|
|
7397
|
+
// if (this.isFromServiceRequestPage) {
|
|
7398
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7399
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7400
|
+
// this.viewStatus = 'main'
|
|
7401
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7402
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7403
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7404
|
+
// }
|
|
7405
|
+
// if ( this.isFromRefundListPage ) {
|
|
7406
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7407
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7408
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7409
|
+
// }
|
|
7410
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7411
|
+
// if(this.payment) {
|
|
7412
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7413
|
+
// }
|
|
7414
|
+
// if (this.isFromServiceRequestPage) {
|
|
7415
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7416
|
+
// } else {
|
|
7417
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7418
|
+
// }
|
|
7419
|
+
// this.errorMessage = '';
|
|
7420
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7421
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7422
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7423
|
+
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7424
|
+
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7425
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7426
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7427
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7428
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7429
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7430
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7431
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7432
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7433
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7434
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7435
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7436
|
+
// }
|
|
7437
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7438
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7439
|
+
// }
|
|
7440
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7441
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7442
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7443
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7444
|
+
// this.router.navigateByUrl(url);
|
|
7445
|
+
// } else {
|
|
7446
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7447
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7448
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7449
|
+
// this.router.navigateByUrl(url);
|
|
7450
|
+
// }
|
|
7451
|
+
// } else {
|
|
7452
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7453
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7454
|
+
// }
|
|
8521
7455
|
};
|
|
8522
7456
|
/**
|
|
8523
7457
|
* @return {?}
|
|
@@ -8528,7 +7462,6 @@
|
|
|
8528
7462
|
function () {
|
|
8529
7463
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8530
7464
|
this.errorMessage = '';
|
|
8531
|
-
this.errorMsg = [];
|
|
8532
7465
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8533
7466
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8534
7467
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -8562,36 +7495,30 @@
|
|
|
8562
7495
|
*/
|
|
8563
7496
|
function (event) {
|
|
8564
7497
|
event.preventDefault();
|
|
8565
|
-
this.
|
|
8566
|
-
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8567
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8568
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8569
|
-
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8570
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8571
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
8572
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
7498
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8573
7499
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8574
7500
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8575
7501
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8576
7502
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8577
7503
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8578
7504
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8579
|
-
this.
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
partUrl
|
|
8586
|
-
partUrl += this.paymentLibComponent.
|
|
8587
|
-
partUrl += this.paymentLibComponent.
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
this.
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
this.router.
|
|
8594
|
-
this.router.
|
|
7505
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7506
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7507
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7508
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7509
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7510
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7511
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7512
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7513
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7514
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7515
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7516
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7517
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7518
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7519
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7520
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7521
|
+
// this.router.navigateByUrl(url);
|
|
8595
7522
|
}
|
|
8596
7523
|
else {
|
|
8597
7524
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -8658,17 +7585,6 @@
|
|
|
8658
7585
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8659
7586
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8660
7587
|
};
|
|
8661
|
-
/**
|
|
8662
|
-
* @return {?}
|
|
8663
|
-
*/
|
|
8664
|
-
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8665
|
-
* @return {?}
|
|
8666
|
-
*/
|
|
8667
|
-
function () {
|
|
8668
|
-
this.isFromCheckAnsPage = true;
|
|
8669
|
-
this.viewCompStatus = 'issuerefund';
|
|
8670
|
-
this.viewStatus = '';
|
|
8671
|
-
};
|
|
8672
7588
|
/**
|
|
8673
7589
|
* @param {?} currency
|
|
8674
7590
|
* @return {?}
|
|
@@ -8686,8 +7602,8 @@
|
|
|
8686
7602
|
AddRemissionComponent.decorators = [
|
|
8687
7603
|
{ type: i0.Component, args: [{
|
|
8688
7604
|
selector: 'ccpay-add-remission',
|
|
8689
|
-
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n <div *ngIf=\"errorMsg.length > 0\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div *ngFor=\"let err of errorMsg; let i = index\" class=\"govuk-error-summary__body\">\n \n <li>{{err}}</li>\n </div>\n </div>\n </div>\n\n<ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n</ng-container>\n\n<!-- Add retro remission changes-->\n\n<ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"gotoAmountRetroRemission()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAmountRetroRemission()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel-border--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"gotoProcessRetroRemission()\">Continue </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n\n<ng-container *ngIf=\"viewStatus === 'remissionAddressPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission(contactDetailsObj)\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\"> Submit refund </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n</ng-container>\n\n<!-- Issue Refund Section -->\n<ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <h1 class=\"heading-large\">Issue refund</h1>\n <h2 class=\"heading-medium\">Case reference:#{{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"form-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <h3 class=\"heading-small\">Select fees to be refunded</h3>\n <!--TABLE-->\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-1\" scope=\"col\">Select</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Fee description</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Total paid</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Quantity</td>\n <td class=\"govuk-table__header col-8\" scope=\"col\">Amount to refund</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"!isFullyRefund\">\n <tr class=\"govuk-table__row\" formArrayName=\"feesList\" *ngFor=\"let fee of feesList?.controls; let i = index\">\n <td class=\"govuk-table__cell\">\n <div [formGroupName]=\"i\" class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n\n <input\n class=\"govuk-checkboxes__input\" \n (click)=\"check_en(i,fee.controls['id'].value,fee.controls['apportion_amount'].value,fee.controls['volume'].value)\" \n id=\"{{fee.controls['id'].value}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.controls['id'].value}}\" \n formControlName=\"selected\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.controls['id'].value}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.controls['description'].value}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.controls['id'].value}}\">{{ fee.controls['calculated_amount'].value / fee.controls['volume'].value }}</div>\n {{ fee.controls['calculated_amount'].value / fee.controls['volume'].value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ fee.controls['apportion_amount'].value | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value >1\">\n <div [formGroupName]=\"i\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" (keyup)=\"calAmtToRefund($event.target.value,fee.controls['calculated_amount'].value,fee.controls['volume'].value,i)\" value=\"{{fee.controls['updated_volume'].value}}\" name=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" formControlName=\"updated_volume\" type=\"text\" >\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value ===1\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"VolumeUpdated_{{fee.controls['id'].value}}\" name=\"VolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\">\n </td>\n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div [formGroupName]=\"i\" class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.controls['id'].value}}\" name=\"feeAmount_{{fee.controls['id'].value}}\" type=\"text\" aria-describedby=\"amount-currency \" pattern=\"[0-9]*\" formControlName=\"refund_amount\">\n <input id=\"feeVolume_{{fee.controls['id'].value}}\" name=\"feeVolume_{{fee.controls['id'].value}}\" value= \"{{fee.controls['volume'].value}}\" type=\"hidden\" formControlName=\"volume\">\n <input id=\"feeApportionAmount_{{fee.controls['id'].value}}\" name=\"feeApportionAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['apportion_amount'].value}}\" type=\"hidden\" formControlName=\"apportion_amount\">\n <input id=\"calculatedAmount_{{fee.controls['id'].value}}\" name=\"calculatedAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['calculated_amount'].value}}\" type=\"hidden\" formControlName=\"calculated_amount\">\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"isFullyRefund\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of fees; let i = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input \n class=\"govuk-checkboxes__input\" \n \n id=\"{{fee.id}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.id}}\"\n disabled=\"disabled\"\n [checked]=\"true\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.id}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.description}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.id}}\">{{ fee.calculated_amount / fee.volume }}</div>\n {{ fee.calculated_amount / fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\">\n <div >\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.id}}\" value=\"{{fee.volume}}\" name=\"feeVolumeUpdated_{{fee.id}}\" type=\"text\" >\n </div>\n </td>\n \n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.id}}\" name=\"feeAmount_{{fee.id}}\" type=\"text\" aria-describedby=\"amount-currency \" value=\"{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}\" pattern=\"[0-9]*\" >\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"fees?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n\n \n <a (click)=\"gotoServiceRequestPage($event)\" *ngIf=\"!isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n <a (click)=\"goToPaymentViewComponent()\" *ngIf=\"isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n <button [disabled] = \"noneSelected()\" (click)=\"gotoIssuePage(isFullyRefund)\" class=\"govuk-button\">\n Continue\n </button>\n \n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </form>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'issuerefundpage1' && isRefundRemission\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"payment\" class=\"form-hint\">\n Payment reference: {{paymentReference}}\n </span>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"refundPaymentReference\" class=\"form-hint\">\n Payment reference: {{refundPaymentReference}}\n </span>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoPartialFeeRefundScreen()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'contactDetailsPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CAPTUREADDRESSDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkissuerefundpage')\"\n (redirectToIssueRefund)=\"gotoRefundReasonPage()\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n \n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{totalRefundAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}\n <a (click)=\"changeRefundAmount()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoContactDetailsPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoContactDetailsPage(contactDetailsObj)\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund(isFullyRefund)\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<!--Retro Refund-->\n<ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event, 'addrefundcheckandanswer')\"\n(redirectToIssueRefund)=\"gotoServiceRequestPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addrefundcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n</ccpay-payment-view>\n</ng-container>\n\n</div>",
|
|
8690
|
-
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 .
|
|
7605
|
+
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n </ccpay-service-request>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n </ccpay-payment-view>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
7606
|
+
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-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%}.right{cursor:pointer}.form-hint{font-size:19px!important}"]
|
|
8691
7607
|
}] }
|
|
8692
7608
|
];
|
|
8693
7609
|
/** @nocollapse */
|
|
@@ -8704,7 +7620,6 @@
|
|
|
8704
7620
|
};
|
|
8705
7621
|
AddRemissionComponent.propDecorators = {
|
|
8706
7622
|
fee: [{ type: i0.Input }],
|
|
8707
|
-
fees: [{ type: i0.Input }],
|
|
8708
7623
|
payment: [{ type: i0.Input }],
|
|
8709
7624
|
remission: [{ type: i0.Input }],
|
|
8710
7625
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
@@ -8720,12 +7635,7 @@
|
|
|
8720
7635
|
isFromRefundListPage: [{ type: i0.Input }],
|
|
8721
7636
|
isFromPaymentDetailPage: [{ type: i0.Input }],
|
|
8722
7637
|
isFromServiceRequestPage: [{ type: i0.Input }],
|
|
8723
|
-
isFullyRefund: [{ type: i0.Input, args: ['isFullyRefund',] }],
|
|
8724
7638
|
feeamount: [{ type: i0.Input }],
|
|
8725
|
-
refundPaymentReference: [{ type: i0.Input }],
|
|
8726
|
-
isFromRefundStatusPage: [{ type: i0.Input }],
|
|
8727
|
-
changeRefundReason: [{ type: i0.Input }],
|
|
8728
|
-
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
8729
7639
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8730
7640
|
orderDetail: [{ type: i0.Input, args: ['orderDetail',] }],
|
|
8731
7641
|
orderRef: [{ type: i0.Input, args: ['orderRef',] }],
|
|
@@ -8739,8 +7649,7 @@
|
|
|
8739
7649
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
8740
7650
|
cancelRemission: [{ type: i0.Output }],
|
|
8741
7651
|
refundListReason: [{ type: i0.Output }],
|
|
8742
|
-
refundListAmount: [{ type: i0.Output }]
|
|
8743
|
-
refundFees: [{ type: i0.Output }]
|
|
7652
|
+
refundListAmount: [{ type: i0.Output }]
|
|
8744
7653
|
};
|
|
8745
7654
|
return AddRemissionComponent;
|
|
8746
7655
|
}());
|
|
@@ -9374,6 +8283,10 @@
|
|
|
9374
8283
|
result = 'Over Payment_Under Payment';
|
|
9375
8284
|
break;
|
|
9376
8285
|
}
|
|
8286
|
+
case 'PAYMENT_FAILURE_EVENT': {
|
|
8287
|
+
result = 'Payment failure event';
|
|
8288
|
+
break;
|
|
8289
|
+
}
|
|
9377
8290
|
default: {
|
|
9378
8291
|
result = selectedOption;
|
|
9379
8292
|
break;
|
|
@@ -9418,7 +8331,7 @@
|
|
|
9418
8331
|
ReportsComponent.decorators = [
|
|
9419
8332
|
{ type: i0.Component, args: [{
|
|
9420
8333
|
selector: 'ccpay-reports',
|
|
9421
|
-
template: "<div class=\"header\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='REPORTS'>\n <ccpay-error-banner *ngIf=\"errorMessage.showError\" [errorMessage]=\"errorMessage\"></ccpay-error-banner>\n <legend class=\"govuk-fieldset__legend--xl\">\n <h1 class=\"govuk-fieldset__heading\"> Choose the report type and date range</h1>\n </legend>\n</div>\n<form [formGroup]=\"reportsForm\">\n <div class=\"govuk-form-group\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input \n required\n id=\"DataLoss\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('DATA_LOSS')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"DATA_LOSS\" \n data-aria-controls=\"DataLoss\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"DataLoss\">Data loss</label>\n <span class=\"form-hint\">Missing transactions where data has been received from only either of Exela or Bulk scan</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"UnprocessedTransactions\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('UNPROCESSED')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"UNPROCESSED\" \n data-aria-controls=\"UnprocessedTransactions\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"UnprocessedTransactions\">Unprocessed transactions</label>\n <span class=\"form-hint\">Transaction records that are still unprocessed by staff.</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ProcessedUnallocated\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('PROCESSED_UNALLOCATED')\"\n type=\"radio\"\n value=\"PROCESSED_UNALLOCATED\" \n data-aria-controls=\"ProcessedUnallocated\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ProcessedUnallocated\">Processed unallocated</label>\n <span class=\"form-hint\">Payments that are marked as \u2018Unidentified\u2019 or \u2018Transferred\u2019 (Unsolicited requests)</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ShortfallsandSurplus\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('SURPLUS_AND_SHORTFALL')\"\n type=\"radio\"\n value=\"SURPLUS_AND_SHORTFALL\" \n data-aria-controls=\"ShortfallsandSurplus\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ShortfallsandSurplus\">Under payment and Over payment</label>\n <span class=\"form-hint\">Requests where balances are marked as Under payment/Over payment further case management.\n E.g: Refund approval, Customer contact</span>\n </div>\n
|
|
8334
|
+
template: "<div class=\"header\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='REPORTS'>\n <ccpay-error-banner *ngIf=\"errorMessage.showError\" [errorMessage]=\"errorMessage\"></ccpay-error-banner>\n <legend class=\"govuk-fieldset__legend--xl\">\n <h1 class=\"govuk-fieldset__heading\"> Choose the report type and date range</h1>\n </legend>\n</div>\n<form [formGroup]=\"reportsForm\">\n <div class=\"govuk-form-group\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input \n required\n id=\"DataLoss\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('DATA_LOSS')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"DATA_LOSS\" \n data-aria-controls=\"DataLoss\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"DataLoss\">Data loss</label>\n <span class=\"form-hint\">Missing transactions where data has been received from only either of Exela or Bulk scan</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"UnprocessedTransactions\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('UNPROCESSED')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"UNPROCESSED\" \n data-aria-controls=\"UnprocessedTransactions\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"UnprocessedTransactions\">Unprocessed transactions</label>\n <span class=\"form-hint\">Transaction records that are still unprocessed by staff.</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ProcessedUnallocated\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('PROCESSED_UNALLOCATED')\"\n type=\"radio\"\n value=\"PROCESSED_UNALLOCATED\" \n data-aria-controls=\"ProcessedUnallocated\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ProcessedUnallocated\">Processed unallocated</label>\n <span class=\"form-hint\">Payments that are marked as \u2018Unidentified\u2019 or \u2018Transferred\u2019 (Unsolicited requests)</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ShortfallsandSurplus\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('SURPLUS_AND_SHORTFALL')\"\n type=\"radio\"\n value=\"SURPLUS_AND_SHORTFALL\" \n data-aria-controls=\"ShortfallsandSurplus\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ShortfallsandSurplus\">Under payment and Over payment</label>\n <span class=\"form-hint\">Requests where balances are marked as Under payment/Over payment further case management.\n E.g: Refund approval, Customer contact</span>\n </div>\n <div class=\"govuk-radios__item\">\n <input \n id=\"PaymentFailureEvent\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('PAYMENT_FAILURE_EVENT')\"\n type=\"radio\"\n value=\"PAYMENT_FAILURE_EVENT\" \n data-aria-controls=\"PaymentFailureEvent\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"PaymentFailureEvent\">Payment failure event</label>\n <span class=\"form-hint\">Failed payment transaction details</span>\n </div>\n </div>\n </div>\n <div class=\"govuk-form-group\">\n <div class=\"datefrom\">\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"date-from\">Date from</label>\n <input (change)=\"getSelectedFromDate()\" [max]=\"getToday()\" class=\"form-control\" id=\"date-from\" name=\"date-from\" type=\"date\" formControlName=\"startDate\" required/>\n </div>\n\n <div class=\"dateto\">\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"date-to\">Date to</label>\n <input (change)=\"getSelectedFromDate()\" [max]=\"getToday()\" class=\"form-control\" id=\"date-to\" name=\"search\" type=\"date\" formControlName=\"endDate\" required/>\n </div>\n </div>\n <p class=\"inline-error-message\" *ngIf=\"isStartDateLesthanEndDate || isDateRangeBetnWeek\">\n <span *ngIf=\"isStartDateLesthanEndDate\">Please select 'Date From' less than or equal to 'Date To'</span>\n <span *ngIf=\"isDateRangeBetnWeek\"> Please select the date range between 7 days</span>\n </p>\n <div class=\"btnsubmit\">\n <button type=\"submit\" (click)=\"downloadReport()\" class=\"button\" [disabled]=\"!reportsForm.valid || isDownLoadButtondisabled || isStartDateLesthanEndDate || isDateRangeBetnWeek\">Download report</button>\n </div>\n </form>\n \n",
|
|
9422
8335
|
styles: [".govuk-radios__input:focus+.govuk-radios__label::before{border-width:4px;box-shadow:0 0 0 4px #ffaf00}.datefrom{width:50%;float:left}.dateto{width:50%;float:right}.govuk-label--m{font-size:large}.form-hint{padding-left:.7em}.header{margin-top:10px;margin-bottom:15px}.btnsubmit{margin-bottom:30px}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px}"]
|
|
9423
8336
|
}] }
|
|
9424
8337
|
];
|
|
@@ -9476,26 +8389,12 @@
|
|
|
9476
8389
|
return (r[user_full_name] = '', r);
|
|
9477
8390
|
}), {});
|
|
9478
8391
|
this.userLst = Object.keys(this.userLst);
|
|
9479
|
-
this.userLst.sort(( /**
|
|
9480
|
-
* @param {?} a
|
|
9481
|
-
* @param {?} b
|
|
9482
|
-
* @return {?}
|
|
9483
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9484
|
-
this.serviceLst = this.refundList.reduce(( /**
|
|
9485
|
-
* @param {?} r
|
|
9486
|
-
* @param {?} __1
|
|
9487
|
-
* @return {?}
|
|
9488
|
-
*/function (r, _a) {
|
|
9489
|
-
var service_type = _a.service_type;
|
|
9490
|
-
return (r[service_type] = '', r);
|
|
9491
|
-
}), {});
|
|
9492
|
-
this.serviceLst = Object.keys(this.serviceLst);
|
|
9493
|
-
this.serviceLst.sort(( /**
|
|
9494
|
-
* @param {?} a
|
|
9495
|
-
* @param {?} b
|
|
9496
|
-
* @return {?}
|
|
9497
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9498
8392
|
}
|
|
8393
|
+
this.userLst.sort(( /**
|
|
8394
|
+
* @param {?} a
|
|
8395
|
+
* @param {?} b
|
|
8396
|
+
* @return {?}
|
|
8397
|
+
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9499
8398
|
};
|
|
9500
8399
|
/**
|
|
9501
8400
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -9595,8 +8494,8 @@
|
|
|
9595
8494
|
TableComponent.decorators = [
|
|
9596
8495
|
{ type: i0.Component, args: [{
|
|
9597
8496
|
selector: 'ccpay-table',
|
|
9598
|
-
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
|
|
9599
|
-
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}
|
|
8497
|
+
template: "<div class=\"add-remission\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group\" style=\"float: right\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by caseworker:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All caseworkers</option>\n <option *ngFor=\"let name of userLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n \n<div *ngIf=\"dataSource.data.length > 0\" class=\"example-container\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccd_case_number\">\n <mat-header-cell *matHeaderCellDef >Case reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.ccd_case_number | ccdHyphens }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"refund_reference\">\n <mat-header-cell *matHeaderCellDef > Refund reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.refund_reference}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"user_full_name\">\n <mat-header-cell *matHeaderCellDef > Submitted by </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.user_full_name }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_created\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date created </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.date_created | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_updated\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Last updated</mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.date_updated | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container *ngIf=\"isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" > <a href=\"javascript:void(0)\" (click)=\"goToCaseReview(row.ccd_case_number, row)\">Review case</a> <a href=\"javascript:void(0)\" (click)=\"goToRefundProcessComponent(row.refund_reference, row)\">Process refund</a></mat-cell>\n </ng-container>\n \n <ng-container *ngIf=\"!isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef > Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\"> <a href=\"javascript:void(0)\" (click)=\"goToRefundViewComponent(row.refund_reference, row)\">Review refund</a></mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\">\n </mat-row>\n </mat-table>\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 100]\"></mat-paginator>\n</div>\n\n<div class=\"govuk-label dropdpwn\" *ngIf=\"dataSource.data.length === 0\">No records to display</div>\n",
|
|
8498
|
+
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}"]
|
|
9600
8499
|
}] }
|
|
9601
8500
|
];
|
|
9602
8501
|
/** @nocollapse */
|
|
@@ -9619,32 +8518,14 @@
|
|
|
9619
8518
|
return TableComponent;
|
|
9620
8519
|
}());
|
|
9621
8520
|
|
|
9622
|
-
/**
|
|
9623
|
-
* @fileoverview added by tsickle
|
|
9624
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9625
|
-
*/
|
|
9626
|
-
var IPutNotificationRequest = /** @class */ (function () {
|
|
9627
|
-
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9628
|
-
if (notificationType === 'EMAIL') {
|
|
9629
|
-
this.recipient_email_address = contactDetails;
|
|
9630
|
-
}
|
|
9631
|
-
else if (notificationType === 'LETTER') {
|
|
9632
|
-
this.recipient_postal_address = contactDetails;
|
|
9633
|
-
}
|
|
9634
|
-
}
|
|
9635
|
-
return IPutNotificationRequest;
|
|
9636
|
-
}());
|
|
9637
|
-
|
|
9638
8521
|
/**
|
|
9639
8522
|
* @fileoverview added by tsickle
|
|
9640
8523
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9641
8524
|
*/
|
|
9642
8525
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9643
|
-
function IResubmitRefundRequest(refund_reason, amount
|
|
8526
|
+
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9644
8527
|
this.refund_reason = refund_reason;
|
|
9645
8528
|
this.amount = amount;
|
|
9646
|
-
this.contact_details = contact_details;
|
|
9647
|
-
this.refund_fees = refund_fees;
|
|
9648
8529
|
}
|
|
9649
8530
|
return IResubmitRefundRequest;
|
|
9650
8531
|
}());
|
|
@@ -9654,18 +8535,20 @@
|
|
|
9654
8535
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9655
8536
|
*/
|
|
9656
8537
|
var RefundStatusComponent = /** @class */ (function () {
|
|
9657
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
8538
|
+
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router$$1, OrderslistService$$1) {
|
|
9658
8539
|
var _this = this;
|
|
9659
8540
|
this.formBuilder = formBuilder;
|
|
9660
8541
|
this.refundService = refundService;
|
|
9661
|
-
this.notificationService = notificationService;
|
|
9662
8542
|
this.paymentLibComponent = paymentLibComponent;
|
|
9663
|
-
this.OrderslistService = OrderslistService$$1;
|
|
9664
8543
|
this.paymentViewService = paymentViewService;
|
|
8544
|
+
this.router = router$$1;
|
|
8545
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9665
8546
|
this.LOGGEDINUSERROLES = [];
|
|
9666
8547
|
this.rejectedRefundList = [];
|
|
9667
8548
|
this.approvalStatus = 'Sent for approval';
|
|
9668
8549
|
this.rejectStatus = 'Update required';
|
|
8550
|
+
// approvalStatus = 'sent for approval';
|
|
8551
|
+
// rejectStatus = 'sent back';
|
|
9669
8552
|
this.errorMessage = null;
|
|
9670
8553
|
this.refundButtonState = '';
|
|
9671
8554
|
this.isAmountEmpty = false;
|
|
@@ -9674,13 +8557,9 @@
|
|
|
9674
8557
|
this.isRemissionLessThanFeeError = false;
|
|
9675
8558
|
this.refundHasError = false;
|
|
9676
8559
|
this.refundReasons = [];
|
|
9677
|
-
this.isResendOperationSuccess = false;
|
|
9678
|
-
this.isEditDetailsClicked = false;
|
|
9679
|
-
this.isEditAddressDeatilsClicked = false;
|
|
9680
8560
|
this.isRefundBtnDisabled = true;
|
|
9681
8561
|
this.isLastUpdatedByCurrentUser = true;
|
|
9682
8562
|
this.isProcessRefund = false;
|
|
9683
|
-
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
9684
8563
|
this.isFromPayBubble = ( /**
|
|
9685
8564
|
* @return {?}
|
|
9686
8565
|
*/function () {
|
|
@@ -9695,9 +8574,13 @@
|
|
|
9695
8574
|
*/
|
|
9696
8575
|
function () {
|
|
9697
8576
|
var _this = this;
|
|
8577
|
+
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
9698
8578
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
9699
8579
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
9700
8580
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8581
|
+
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8582
|
+
// this.viewName = 'reviewandsubmitview';
|
|
8583
|
+
// }
|
|
9701
8584
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
9702
8585
|
this.viewName = 'refundview';
|
|
9703
8586
|
this.OrderslistService.getRefundView().subscribe(( /**
|
|
@@ -9738,7 +8621,6 @@
|
|
|
9738
8621
|
reason: new forms.FormControl()
|
|
9739
8622
|
});
|
|
9740
8623
|
if (this.refundlist !== undefined) {
|
|
9741
|
-
this.getRefundsNotification();
|
|
9742
8624
|
this.getRefundsStatusHistoryList();
|
|
9743
8625
|
if (this.LOGGEDINUSERROLES.some(( /**
|
|
9744
8626
|
* @param {?} i
|
|
@@ -9756,6 +8638,7 @@
|
|
|
9756
8638
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
9757
8639
|
}
|
|
9758
8640
|
}
|
|
8641
|
+
//}
|
|
9759
8642
|
};
|
|
9760
8643
|
/**
|
|
9761
8644
|
* @return {?}
|
|
@@ -9781,27 +8664,6 @@
|
|
|
9781
8664
|
});
|
|
9782
8665
|
}
|
|
9783
8666
|
};
|
|
9784
|
-
/**
|
|
9785
|
-
* @return {?}
|
|
9786
|
-
*/
|
|
9787
|
-
RefundStatusComponent.prototype.getRefundsNotification = /**
|
|
9788
|
-
* @return {?}
|
|
9789
|
-
*/
|
|
9790
|
-
function () {
|
|
9791
|
-
var _this = this;
|
|
9792
|
-
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe(( /**
|
|
9793
|
-
* @param {?} refundsNotification
|
|
9794
|
-
* @return {?}
|
|
9795
|
-
*/function (refundsNotification) {
|
|
9796
|
-
_this.notificationList = refundsNotification['notifications'];
|
|
9797
|
-
})),
|
|
9798
|
-
( /**
|
|
9799
|
-
* @param {?} error
|
|
9800
|
-
* @return {?}
|
|
9801
|
-
*/function (error) {
|
|
9802
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
9803
|
-
});
|
|
9804
|
-
};
|
|
9805
8667
|
/**
|
|
9806
8668
|
* @param {?} refundlist
|
|
9807
8669
|
* @param {?} navigationpage
|
|
@@ -9889,21 +8751,18 @@
|
|
|
9889
8751
|
}));
|
|
9890
8752
|
};
|
|
9891
8753
|
/**
|
|
9892
|
-
* @param {?} refundReason
|
|
9893
8754
|
* @return {?}
|
|
9894
8755
|
*/
|
|
9895
8756
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
9896
|
-
* @param {?} refundReason
|
|
9897
8757
|
* @return {?}
|
|
9898
8758
|
*/
|
|
9899
|
-
function (
|
|
8759
|
+
function () {
|
|
9900
8760
|
this.isRefundBtnDisabled = false;
|
|
9901
8761
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
9902
8762
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
9903
8763
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
9904
8764
|
this.errorMessage = false;
|
|
9905
|
-
this.
|
|
9906
|
-
this.viewName = 'issuerefundpage1';
|
|
8765
|
+
this.viewName = 'issuerefund';
|
|
9907
8766
|
};
|
|
9908
8767
|
/**
|
|
9909
8768
|
* @return {?}
|
|
@@ -9917,12 +8776,7 @@
|
|
|
9917
8776
|
this.isRefundBtnDisabled = false;
|
|
9918
8777
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
9919
8778
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
9920
|
-
|
|
9921
|
-
this.viewName = 'processretroremissonpage';
|
|
9922
|
-
}
|
|
9923
|
-
else {
|
|
9924
|
-
this.viewName = 'issuerefund';
|
|
9925
|
-
}
|
|
8779
|
+
this.viewName = 'processretroremissonpage';
|
|
9926
8780
|
};
|
|
9927
8781
|
/**
|
|
9928
8782
|
* @return {?}
|
|
@@ -10004,7 +8858,6 @@
|
|
|
10004
8858
|
function (refundListReason) {
|
|
10005
8859
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
10006
8860
|
this.refundlist.reason = refundListReason.reason;
|
|
10007
|
-
this.refundlist.code = refundListReason.code;
|
|
10008
8861
|
this.refundCode = refundListReason.code;
|
|
10009
8862
|
}
|
|
10010
8863
|
else {
|
|
@@ -10034,21 +8887,6 @@
|
|
|
10034
8887
|
this.viewName = 'reviewandsubmitview';
|
|
10035
8888
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
10036
8889
|
};
|
|
10037
|
-
/**
|
|
10038
|
-
* @param {?} fees
|
|
10039
|
-
* @return {?}
|
|
10040
|
-
*/
|
|
10041
|
-
RefundStatusComponent.prototype.getRefundFees = /**
|
|
10042
|
-
* @param {?} fees
|
|
10043
|
-
* @return {?}
|
|
10044
|
-
*/
|
|
10045
|
-
function (fees) {
|
|
10046
|
-
this.fees = fees;
|
|
10047
|
-
this.refundFees = this.fees.map(( /**
|
|
10048
|
-
* @param {?} obj
|
|
10049
|
-
* @return {?}
|
|
10050
|
-
*/function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10051
|
-
};
|
|
10052
8890
|
/**
|
|
10053
8891
|
* @return {?}
|
|
10054
8892
|
*/
|
|
@@ -10057,15 +8895,11 @@
|
|
|
10057
8895
|
*/
|
|
10058
8896
|
function () {
|
|
10059
8897
|
var _this = this;
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
// }
|
|
10063
|
-
if (this.refundFees === undefined) {
|
|
10064
|
-
this.refundFees = this.refundlist['refund_fees'];
|
|
8898
|
+
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8899
|
+
this.refundCode = '';
|
|
10065
8900
|
}
|
|
10066
|
-
this.refundCode = this.refundlist.code;
|
|
10067
8901
|
/** @type {?} */
|
|
10068
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount
|
|
8902
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10069
8903
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe(( /**
|
|
10070
8904
|
* @param {?} response
|
|
10071
8905
|
* @return {?}
|
|
@@ -10083,160 +8917,25 @@
|
|
|
10083
8917
|
}));
|
|
10084
8918
|
};
|
|
10085
8919
|
/**
|
|
10086
|
-
* @param {?}
|
|
10087
|
-
* @
|
|
10088
|
-
*/
|
|
10089
|
-
RefundStatusComponent.prototype.gotoEditAddressDetails = /**
|
|
10090
|
-
* @param {?} note
|
|
10091
|
-
* @return {?}
|
|
10092
|
-
*/
|
|
10093
|
-
function (note) {
|
|
10094
|
-
this.notification = note;
|
|
10095
|
-
this.isEditDetailsClicked = true;
|
|
10096
|
-
this.viewName = 'refundEditView';
|
|
10097
|
-
};
|
|
10098
|
-
/**
|
|
10099
|
-
* @param {?} obj
|
|
8920
|
+
* @param {?} refundReference
|
|
8921
|
+
* @param {?} refundList
|
|
10100
8922
|
* @return {?}
|
|
10101
8923
|
*/
|
|
10102
|
-
RefundStatusComponent.prototype.
|
|
10103
|
-
* @param {?}
|
|
8924
|
+
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
8925
|
+
* @param {?} refundReference
|
|
8926
|
+
* @param {?} refundList
|
|
10104
8927
|
* @return {?}
|
|
10105
8928
|
*/
|
|
10106
|
-
function (
|
|
10107
|
-
this.
|
|
10108
|
-
this.
|
|
10109
|
-
|
|
10110
|
-
/**
|
|
10111
|
-
* @param {?} obj
|
|
10112
|
-
* @return {?}
|
|
10113
|
-
*/
|
|
10114
|
-
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10115
|
-
* @param {?} obj
|
|
10116
|
-
* @return {?}
|
|
10117
|
-
*/
|
|
10118
|
-
function (obj) {
|
|
10119
|
-
this.refundlist.contact_details = obj;
|
|
10120
|
-
this.isEditDetailsClicked = false;
|
|
10121
|
-
this.isRefundBtnDisabled = false;
|
|
10122
|
-
this.viewName = 'reviewandsubmitview';
|
|
10123
|
-
};
|
|
10124
|
-
/**
|
|
10125
|
-
* @param {?=} note
|
|
10126
|
-
* @return {?}
|
|
10127
|
-
*/
|
|
10128
|
-
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10129
|
-
* @param {?=} note
|
|
10130
|
-
* @return {?}
|
|
10131
|
-
*/
|
|
10132
|
-
function (note) {
|
|
10133
|
-
if (note) {
|
|
10134
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10135
|
-
}
|
|
10136
|
-
this.isEditDetailsClicked = true;
|
|
10137
|
-
this.viewName = 'refundEditView';
|
|
10138
|
-
};
|
|
10139
|
-
/**
|
|
10140
|
-
* @return {?}
|
|
10141
|
-
*/
|
|
10142
|
-
RefundStatusComponent.prototype.submitEditDetail = /**
|
|
10143
|
-
* @return {?}
|
|
10144
|
-
*/
|
|
10145
|
-
function () {
|
|
10146
|
-
var _this = this;
|
|
10147
|
-
this.isResendOperationSuccess = false;
|
|
10148
|
-
/** @type {?} */
|
|
10149
|
-
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10150
|
-
{
|
|
10151
|
-
address_line: this.addressDetails.address_line,
|
|
10152
|
-
city: this.addressDetails.city,
|
|
10153
|
-
county: this.addressDetails.county,
|
|
10154
|
-
country: this.addressDetails.country,
|
|
10155
|
-
postal_code: this.addressDetails.postal_code,
|
|
10156
|
-
};
|
|
10157
|
-
/** @type {?} */
|
|
10158
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10159
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe(( /**
|
|
10160
|
-
* @param {?} response
|
|
10161
|
-
* @return {?}
|
|
10162
|
-
*/function (response) {
|
|
10163
|
-
_this.isResendOperationSuccess = response;
|
|
10164
|
-
}), ( /**
|
|
10165
|
-
* @param {?} error
|
|
10166
|
-
* @return {?}
|
|
10167
|
-
*/function (error) {
|
|
10168
|
-
_this.isResendOperationSuccess = false;
|
|
10169
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10170
|
-
}));
|
|
10171
|
-
};
|
|
10172
|
-
/**
|
|
10173
|
-
* @param {?} notification
|
|
10174
|
-
* @return {?}
|
|
10175
|
-
*/
|
|
10176
|
-
RefundStatusComponent.prototype.putResend = /**
|
|
10177
|
-
* @param {?} notification
|
|
10178
|
-
* @return {?}
|
|
10179
|
-
*/
|
|
10180
|
-
function (notification) {
|
|
10181
|
-
var _this = this;
|
|
10182
|
-
this.isResendOperationSuccess = false;
|
|
10183
|
-
/** @type {?} */
|
|
10184
|
-
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10185
|
-
{
|
|
10186
|
-
address_line: notification.contact_details.address_line,
|
|
10187
|
-
city: notification.contact_details.city,
|
|
10188
|
-
county: notification.contact_details.county,
|
|
10189
|
-
country: notification.contact_details.country,
|
|
10190
|
-
postal_code: notification.contact_details.postal_code,
|
|
10191
|
-
};
|
|
10192
|
-
/** @type {?} */
|
|
10193
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10194
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe(( /**
|
|
10195
|
-
* @param {?} response
|
|
10196
|
-
* @return {?}
|
|
10197
|
-
*/function (response) {
|
|
10198
|
-
_this.isResendOperationSuccess = response;
|
|
10199
|
-
}), ( /**
|
|
10200
|
-
* @param {?} error
|
|
10201
|
-
* @return {?}
|
|
10202
|
-
*/function (error) {
|
|
10203
|
-
_this.isResendOperationSuccess = false;
|
|
10204
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10205
|
-
}));
|
|
10206
|
-
};
|
|
10207
|
-
/**
|
|
10208
|
-
* @param {?} Event
|
|
10209
|
-
* @return {?}
|
|
10210
|
-
*/
|
|
10211
|
-
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10212
|
-
* @param {?} Event
|
|
10213
|
-
* @return {?}
|
|
10214
|
-
*/
|
|
10215
|
-
function (Event) {
|
|
10216
|
-
event.preventDefault();
|
|
10217
|
-
this.viewName = 'refundstatuslist';
|
|
10218
|
-
};
|
|
10219
|
-
/**
|
|
10220
|
-
* @param {?} refundReference
|
|
10221
|
-
* @param {?} refundList
|
|
10222
|
-
* @return {?}
|
|
10223
|
-
*/
|
|
10224
|
-
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
10225
|
-
* @param {?} refundReference
|
|
10226
|
-
* @param {?} refundList
|
|
10227
|
-
* @return {?}
|
|
10228
|
-
*/
|
|
10229
|
-
function (refundReference, refundList) {
|
|
10230
|
-
this.paymentLibComponent.refundlistsource = refundList;
|
|
10231
|
-
this.paymentLibComponent.refundReference = refundReference;
|
|
10232
|
-
this.paymentLibComponent.isFromPayBubble = true;
|
|
10233
|
-
this.paymentLibComponent.viewName = 'process-refund';
|
|
8929
|
+
function (refundReference, refundList) {
|
|
8930
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
8931
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
8932
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
10234
8933
|
};
|
|
10235
8934
|
RefundStatusComponent.decorators = [
|
|
10236
8935
|
{ type: i0.Component, args: [{
|
|
10237
8936
|
selector: 'ccpay-refund-status',
|
|
10238
|
-
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n\n <!-- Notification sent details -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Notifications sent</h2>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Sent to</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Sent via</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Actions</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"notificationList\">\n <tr class=\"govuk-table__row\" *ngFor=\"let notification of notificationList; let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{notification.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderParty}}</td>\n <td class=\"govuk-table__cell whitespace-inherit col-40\">\n <div *ngIf=\"notification?.notification_type === 'EMAIL'\">\n <strong>Email</strong><br>\n {{notification?.contact_details?.email}}\n </div>\n <div *ngIf=\"notification?.notification_type === 'LETTER'\">\n <strong>Post</strong><br>\n {{notification?.contact_details?.address_line}} {{notification?.contact_details?.city}} {{notification?.contact_details?.county}} {{notification?.contact_details?.country}} {{notification?.contact_details?.postal_code}}\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i === 0\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a> | <a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i > 0\"> </td>\n\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"!notificationList\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\" colspan=\"4\">No record found ... </td>\n </tr>\n </tbody>\n </table> \n </div>\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview' && !isFromPayBubble && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div *ngIf=\"refundButtonState==='Update required'\" >\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Change refund details</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for return</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage(refundlist?.reason)\" *ngIf=\"refundlist?.reason !== 'Retrospective remission' && refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount ? changedAmount : refundlist?.amount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n <a class=\"govuk-link\" href=\"Javascript:void(0)\" *ngIf=\"refundlist?.contact_details !=null\" class=\"govuk-link right\" (click)=\"gotoEditDetailsPage(refundlist?.contact_details)\">\n Change\n </a>\n </td>\n </tr> \n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefundpage1' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromRefundStatusPage] = \"true\"\n [changeRefundReason]= \"changeRefundReason\" [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\" [refundPaymentReference]= \"refundlist?.payment_reference\" ></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromServiceRequestPage] = \"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" [isFromRefundStatusPage]=\"true\" (refundListAmount)=\"getRefundAmount($event)\" (refundFees)=\"getRefundFees($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isResendOperationSuccess\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Notification sent\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{ refundlist?.refund_reference}} </strong></p>\n </div>\n\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewName === 'refundEditView' && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Edit contact details</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span class=\"govuk-hint font-size-19px\">\n Refund reference: {{ refundlist?.refund_reference}}\n </span>\n <ccpay-contact-details\n [isEditOperationInRefundList] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetailsInFefundsList)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoCasetransationPageCancelBtnClicked($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewName === 'revieweditdetailsconfirmationpage' && !isResendOperationSuccess && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSCHECKANDANSWERPAGE'> \n <h1 class=\"govuk-heading-l\">Check your answers</h1>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Refund reference\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ refundlist?.refund_reference}}\n </dd>\n <span class=\"govuk-summary-list__actions\"></span> \n </div>\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Send via\n <br/>\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage(addressDetails)\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage(addressDetails)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"submitEditDetail()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Send notification\n </button>\n </div>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n",
|
|
10239
|
-
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-
|
|
8937
|
+
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName === 'refundview' && !isFromPayBubble\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview'\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage'\">\n <div class=\"govuk-grid-row pagesize\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n",
|
|
8938
|
+
styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}"]
|
|
10240
8939
|
}] }
|
|
10241
8940
|
];
|
|
10242
8941
|
/** @nocollapse */
|
|
@@ -10244,10 +8943,10 @@
|
|
|
10244
8943
|
return [
|
|
10245
8944
|
{ type: forms.FormBuilder },
|
|
10246
8945
|
{ type: RefundsService },
|
|
10247
|
-
{ type: NotificationService },
|
|
10248
8946
|
{ type: PaymentLibComponent },
|
|
10249
|
-
{ type:
|
|
10250
|
-
{ type:
|
|
8947
|
+
{ type: PaymentViewService },
|
|
8948
|
+
{ type: router.Router },
|
|
8949
|
+
{ type: OrderslistService }
|
|
10251
8950
|
];
|
|
10252
8951
|
};
|
|
10253
8952
|
RefundStatusComponent.propDecorators = {
|
|
@@ -10257,7 +8956,6 @@
|
|
|
10257
8956
|
isNewPcipalOff: [{ type: i0.Input }],
|
|
10258
8957
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
10259
8958
|
isTurnOff: [{ type: i0.Input }],
|
|
10260
|
-
orderParty: [{ type: i0.Input }],
|
|
10261
8959
|
isEliginbleToAccess: [{ type: i0.Input }]
|
|
10262
8960
|
};
|
|
10263
8961
|
return RefundStatusComponent;
|
|
@@ -10268,11 +8966,11 @@
|
|
|
10268
8966
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10269
8967
|
*/
|
|
10270
8968
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
10271
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1,
|
|
8969
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router$$1) {
|
|
8970
|
+
var _this = this;
|
|
10272
8971
|
this.paymentLibComponent = paymentLibComponent;
|
|
10273
8972
|
this.paymentViewService = paymentViewService;
|
|
10274
8973
|
this.OrderslistService = OrderslistService$$1;
|
|
10275
|
-
this.cd = cd;
|
|
10276
8974
|
this.router = router$$1;
|
|
10277
8975
|
this.goToServiceRquestComponent = new i0.EventEmitter();
|
|
10278
8976
|
this.paymentGroups = [];
|
|
@@ -10280,6 +8978,7 @@
|
|
|
10280
8978
|
this.nonPayments = [];
|
|
10281
8979
|
this.allPayments = [];
|
|
10282
8980
|
this.remissions = [];
|
|
8981
|
+
this.fees = [];
|
|
10283
8982
|
this.isRefundRemission = true;
|
|
10284
8983
|
this.isAddFeeBtnEnabled = true;
|
|
10285
8984
|
this.isExceptionRecord = false;
|
|
@@ -10299,7 +8998,27 @@
|
|
|
10299
8998
|
this.isAddRemissionBtnEnabled = false;
|
|
10300
8999
|
this.isRefundRemissionBtnEnable = false;
|
|
10301
9000
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
10302
|
-
this.
|
|
9001
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
9002
|
+
* @return {?}
|
|
9003
|
+
*/function () {
|
|
9004
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
9005
|
+
* @param {?} role
|
|
9006
|
+
* @return {?}
|
|
9007
|
+
*/function (role) {
|
|
9008
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9009
|
+
}));
|
|
9010
|
+
});
|
|
9011
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
9012
|
+
* @param {?} payment
|
|
9013
|
+
* @return {?}
|
|
9014
|
+
*/function (payment) {
|
|
9015
|
+
if (payment !== null && payment !== undefined) {
|
|
9016
|
+
/** @type {?} */
|
|
9017
|
+
var tmp4DayAgo = new Date();
|
|
9018
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
9019
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
9020
|
+
}
|
|
9021
|
+
});
|
|
10303
9022
|
}
|
|
10304
9023
|
/**
|
|
10305
9024
|
* @return {?}
|
|
@@ -10309,8 +9028,6 @@
|
|
|
10309
9028
|
*/
|
|
10310
9029
|
function () {
|
|
10311
9030
|
var _this = this;
|
|
10312
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10313
|
-
this.isServiceRequest = 'false';
|
|
10314
9031
|
if (this.viewStatus === undefined) {
|
|
10315
9032
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
10316
9033
|
}
|
|
@@ -10350,9 +9067,9 @@
|
|
|
10350
9067
|
*/function (data) { return _this.orderTotalPayments = data; }));
|
|
10351
9068
|
}
|
|
10352
9069
|
}
|
|
10353
|
-
if (this.
|
|
10354
|
-
|
|
10355
|
-
}
|
|
9070
|
+
// if (this.takePayment) {
|
|
9071
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
9072
|
+
// }
|
|
10356
9073
|
};
|
|
10357
9074
|
/**
|
|
10358
9075
|
* @return {?}
|
|
@@ -10381,7 +9098,7 @@
|
|
|
10381
9098
|
if (this.takePayment) {
|
|
10382
9099
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
10383
9100
|
}
|
|
10384
|
-
|
|
9101
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10385
9102
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
10386
9103
|
if (this.isServiceRequest !== 'false') {
|
|
10387
9104
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -10408,6 +9125,79 @@
|
|
|
10408
9125
|
this.router.onSameUrlNavigation = 'reload';
|
|
10409
9126
|
this.router.navigateByUrl(url);
|
|
10410
9127
|
};
|
|
9128
|
+
/**
|
|
9129
|
+
* @param {?} feeCode
|
|
9130
|
+
* @return {?}
|
|
9131
|
+
*/
|
|
9132
|
+
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9133
|
+
* @param {?} feeCode
|
|
9134
|
+
* @return {?}
|
|
9135
|
+
*/
|
|
9136
|
+
function (feeCode) {
|
|
9137
|
+
var e_1, _a;
|
|
9138
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9139
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9140
|
+
try {
|
|
9141
|
+
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9142
|
+
var remission = _c.value;
|
|
9143
|
+
if (remission.fee_code === feeCode) {
|
|
9144
|
+
return false;
|
|
9145
|
+
}
|
|
9146
|
+
}
|
|
9147
|
+
}
|
|
9148
|
+
catch (e_1_1) {
|
|
9149
|
+
e_1 = { error: e_1_1 };
|
|
9150
|
+
}
|
|
9151
|
+
finally {
|
|
9152
|
+
try {
|
|
9153
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
9154
|
+
_a.call(_b);
|
|
9155
|
+
}
|
|
9156
|
+
finally {
|
|
9157
|
+
if (e_1)
|
|
9158
|
+
throw e_1.error;
|
|
9159
|
+
}
|
|
9160
|
+
}
|
|
9161
|
+
}
|
|
9162
|
+
return true;
|
|
9163
|
+
}
|
|
9164
|
+
else {
|
|
9165
|
+
return false;
|
|
9166
|
+
}
|
|
9167
|
+
};
|
|
9168
|
+
/**
|
|
9169
|
+
* @return {?}
|
|
9170
|
+
*/
|
|
9171
|
+
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9172
|
+
* @return {?}
|
|
9173
|
+
*/
|
|
9174
|
+
function () {
|
|
9175
|
+
var _this = this;
|
|
9176
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9177
|
+
this.orderDetail.forEach(( /**
|
|
9178
|
+
* @param {?} orderDetail
|
|
9179
|
+
* @return {?}
|
|
9180
|
+
*/function (orderDetail) {
|
|
9181
|
+
if (orderDetail.payments) {
|
|
9182
|
+
orderDetail.payments.forEach(( /**
|
|
9183
|
+
* @param {?} payment
|
|
9184
|
+
* @return {?}
|
|
9185
|
+
*/function (payment) {
|
|
9186
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9187
|
+
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9188
|
+
_this.isPBA = true;
|
|
9189
|
+
}
|
|
9190
|
+
}));
|
|
9191
|
+
}
|
|
9192
|
+
}));
|
|
9193
|
+
if (this.isPBA) {
|
|
9194
|
+
return true;
|
|
9195
|
+
}
|
|
9196
|
+
else {
|
|
9197
|
+
return false;
|
|
9198
|
+
}
|
|
9199
|
+
}
|
|
9200
|
+
};
|
|
10411
9201
|
/**
|
|
10412
9202
|
* @param {?} fee
|
|
10413
9203
|
* @return {?}
|
|
@@ -10418,7 +9208,7 @@
|
|
|
10418
9208
|
*/
|
|
10419
9209
|
function (fee) {
|
|
10420
9210
|
var _this = this;
|
|
10421
|
-
if (this.
|
|
9211
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
10422
9212
|
this.feeId = fee;
|
|
10423
9213
|
this.viewStatus = 'addremission';
|
|
10424
9214
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -10432,8 +9222,8 @@
|
|
|
10432
9222
|
* @return {?}
|
|
10433
9223
|
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10434
9224
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10435
|
-
//
|
|
10436
|
-
//
|
|
9225
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9226
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10437
9227
|
}), ( /**
|
|
10438
9228
|
* @param {?} error
|
|
10439
9229
|
* @return {?}
|
|
@@ -10454,8 +9244,9 @@
|
|
|
10454
9244
|
*/
|
|
10455
9245
|
function (payment, remission, fees) {
|
|
10456
9246
|
var _this = this;
|
|
10457
|
-
this.
|
|
10458
|
-
this.
|
|
9247
|
+
this.viewStatus = 'addrefundforremission';
|
|
9248
|
+
this.payment = payment;
|
|
9249
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
10459
9250
|
* @param {?} paymentGroup
|
|
10460
9251
|
* @return {?}
|
|
10461
9252
|
*/function (paymentGroup) {
|
|
@@ -10463,14 +9254,13 @@
|
|
|
10463
9254
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
10464
9255
|
* @param {?} paymentGroupObj
|
|
10465
9256
|
* @return {?}
|
|
10466
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
9257
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
10467
9258
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10468
9259
|
_this.remissions = remission;
|
|
10469
9260
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
10470
9261
|
* @param {?} data
|
|
10471
9262
|
* @return {?}
|
|
10472
9263
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10473
|
-
_this.viewStatus = 'addrefundforremission';
|
|
10474
9264
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10475
9265
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10476
9266
|
}), ( /**
|
|
@@ -10515,40 +9305,70 @@
|
|
|
10515
9305
|
* @param {?} payment
|
|
10516
9306
|
* @return {?}
|
|
10517
9307
|
*/
|
|
10518
|
-
ServiceRequestComponent.prototype.
|
|
9308
|
+
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
10519
9309
|
* @param {?} payment
|
|
10520
9310
|
* @return {?}
|
|
10521
9311
|
*/
|
|
10522
9312
|
function (payment) {
|
|
9313
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9314
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9315
|
+
this.isIssueRefunfBtnEnable = true;
|
|
9316
|
+
}
|
|
9317
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
9318
|
+
return true;
|
|
9319
|
+
}
|
|
9320
|
+
else {
|
|
9321
|
+
return false;
|
|
9322
|
+
}
|
|
9323
|
+
};
|
|
9324
|
+
/**
|
|
9325
|
+
* @return {?}
|
|
9326
|
+
*/
|
|
9327
|
+
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9328
|
+
* @return {?}
|
|
9329
|
+
*/
|
|
9330
|
+
function () {
|
|
10523
9331
|
var _this = this;
|
|
10524
|
-
if (
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
9332
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9333
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9334
|
+
this.orderDetail.forEach(( /**
|
|
9335
|
+
* @param {?} orderDetail
|
|
9336
|
+
* @return {?}
|
|
9337
|
+
*/function (orderDetail) {
|
|
9338
|
+
if (orderDetail.payments) {
|
|
9339
|
+
orderDetail.payments.forEach(( /**
|
|
9340
|
+
* @param {?} payment
|
|
10532
9341
|
* @return {?}
|
|
10533
|
-
*/function (
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
9342
|
+
*/function (payment) {
|
|
9343
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9344
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
9345
|
+
}
|
|
9346
|
+
}));
|
|
9347
|
+
}
|
|
9348
|
+
}));
|
|
9349
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
9350
|
+
return true;
|
|
9351
|
+
}
|
|
9352
|
+
else {
|
|
9353
|
+
return false;
|
|
9354
|
+
}
|
|
9355
|
+
}
|
|
9356
|
+
};
|
|
9357
|
+
/**
|
|
9358
|
+
* @param {?} payment
|
|
9359
|
+
* @return {?}
|
|
9360
|
+
*/
|
|
9361
|
+
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9362
|
+
* @param {?} payment
|
|
9363
|
+
* @return {?}
|
|
9364
|
+
*/
|
|
9365
|
+
function (payment) {
|
|
9366
|
+
if (payment !== null && payment !== undefined) {
|
|
9367
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
9368
|
+
this.viewStatus = 'issuerefund';
|
|
9369
|
+
this.payment = payment;
|
|
9370
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9371
|
+
this.isRefundRemission = true;
|
|
10552
9372
|
}
|
|
10553
9373
|
}
|
|
10554
9374
|
};
|
|
@@ -10590,54 +9410,6 @@
|
|
|
10590
9410
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
10591
9411
|
this.viewStatus = 'payment-view';
|
|
10592
9412
|
};
|
|
10593
|
-
/**
|
|
10594
|
-
* @param {?} payment
|
|
10595
|
-
* @return {?}
|
|
10596
|
-
*/
|
|
10597
|
-
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10598
|
-
* @param {?} payment
|
|
10599
|
-
* @return {?}
|
|
10600
|
-
*/
|
|
10601
|
-
function (payment) {
|
|
10602
|
-
if (payment !== null && payment !== undefined) {
|
|
10603
|
-
return payment.issue_refund && payment.refund_enable;
|
|
10604
|
-
}
|
|
10605
|
-
else {
|
|
10606
|
-
return false;
|
|
10607
|
-
}
|
|
10608
|
-
};
|
|
10609
|
-
/**
|
|
10610
|
-
* @param {?} remission
|
|
10611
|
-
* @return {?}
|
|
10612
|
-
*/
|
|
10613
|
-
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10614
|
-
* @param {?} remission
|
|
10615
|
-
* @return {?}
|
|
10616
|
-
*/
|
|
10617
|
-
function (remission) {
|
|
10618
|
-
if (remission !== null && remission !== undefined) {
|
|
10619
|
-
return remission.add_refund;
|
|
10620
|
-
}
|
|
10621
|
-
else {
|
|
10622
|
-
return false;
|
|
10623
|
-
}
|
|
10624
|
-
};
|
|
10625
|
-
/**
|
|
10626
|
-
* @param {?} fee
|
|
10627
|
-
* @return {?}
|
|
10628
|
-
*/
|
|
10629
|
-
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10630
|
-
* @param {?} fee
|
|
10631
|
-
* @return {?}
|
|
10632
|
-
*/
|
|
10633
|
-
function (fee) {
|
|
10634
|
-
if (fee !== null && fee !== undefined) {
|
|
10635
|
-
return fee.add_remission && fee.remission_enable;
|
|
10636
|
-
}
|
|
10637
|
-
else {
|
|
10638
|
-
return false;
|
|
10639
|
-
}
|
|
10640
|
-
};
|
|
10641
9413
|
/**
|
|
10642
9414
|
* @return {?}
|
|
10643
9415
|
*/
|
|
@@ -10654,158 +9426,11 @@
|
|
|
10654
9426
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
10655
9427
|
this.OrderslistService.setorderFeesTotal(null);
|
|
10656
9428
|
};
|
|
10657
|
-
/**
|
|
10658
|
-
* @param {?} paymentType
|
|
10659
|
-
* @return {?}
|
|
10660
|
-
*/
|
|
10661
|
-
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
10662
|
-
* @param {?} paymentType
|
|
10663
|
-
* @return {?}
|
|
10664
|
-
*/
|
|
10665
|
-
function (paymentType) {
|
|
10666
|
-
this.paymentType = paymentType;
|
|
10667
|
-
this.isContinueBtnDisabled = false;
|
|
10668
|
-
};
|
|
10669
|
-
/**
|
|
10670
|
-
* @return {?}
|
|
10671
|
-
*/
|
|
10672
|
-
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
10673
|
-
* @return {?}
|
|
10674
|
-
*/
|
|
10675
|
-
function () {
|
|
10676
|
-
this.viewCompStatus = '';
|
|
10677
|
-
this.viewStatus = 'paymentview';
|
|
10678
|
-
};
|
|
10679
|
-
/**
|
|
10680
|
-
* @param {?} paymentgrp
|
|
10681
|
-
* @return {?}
|
|
10682
|
-
*/
|
|
10683
|
-
ServiceRequestComponent.prototype.continuePayment = /**
|
|
10684
|
-
* @param {?} paymentgrp
|
|
10685
|
-
* @return {?}
|
|
10686
|
-
*/
|
|
10687
|
-
function (paymentgrp) {
|
|
10688
|
-
if (this.paymentType === 'op') {
|
|
10689
|
-
this.isFullyRefund = false;
|
|
10690
|
-
this.viewStatus = '';
|
|
10691
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10692
|
-
}
|
|
10693
|
-
else if (this.paymentType === 'fp') {
|
|
10694
|
-
this.isFullyRefund = true;
|
|
10695
|
-
this.paymentGroupList = paymentgrp;
|
|
10696
|
-
this.viewStatus = 'issuerefund';
|
|
10697
|
-
this.viewCompStatus = "";
|
|
10698
|
-
this.isRefundRemission = true;
|
|
10699
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
10700
|
-
this.isFromPaymentDetailPage = true;
|
|
10701
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
10702
|
-
}
|
|
10703
|
-
};
|
|
10704
|
-
/**
|
|
10705
|
-
* @param {?} obj
|
|
10706
|
-
* @return {?}
|
|
10707
|
-
*/
|
|
10708
|
-
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
10709
|
-
* @param {?} obj
|
|
10710
|
-
* @return {?}
|
|
10711
|
-
*/
|
|
10712
|
-
function (obj) {
|
|
10713
|
-
this.contactDetailsObj = obj;
|
|
10714
|
-
this.viewStatus = '';
|
|
10715
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10716
|
-
};
|
|
10717
|
-
/**
|
|
10718
|
-
* @param {?} event
|
|
10719
|
-
* @return {?}
|
|
10720
|
-
*/
|
|
10721
|
-
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
10722
|
-
* @param {?} event
|
|
10723
|
-
* @return {?}
|
|
10724
|
-
*/
|
|
10725
|
-
function (event) {
|
|
10726
|
-
event.preventDefault();
|
|
10727
|
-
this.viewStatus = '';
|
|
10728
|
-
this.viewCompStatus = 'overpayment';
|
|
10729
|
-
};
|
|
10730
|
-
/**
|
|
10731
|
-
* @param {?=} note
|
|
10732
|
-
* @return {?}
|
|
10733
|
-
*/
|
|
10734
|
-
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
10735
|
-
* @param {?=} note
|
|
10736
|
-
* @return {?}
|
|
10737
|
-
*/
|
|
10738
|
-
function (note) {
|
|
10739
|
-
if (note) {
|
|
10740
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10741
|
-
}
|
|
10742
|
-
this.errorMessage = '';
|
|
10743
|
-
this.viewStatus = '';
|
|
10744
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10745
|
-
};
|
|
10746
|
-
/**
|
|
10747
|
-
* @return {?}
|
|
10748
|
-
*/
|
|
10749
|
-
ServiceRequestComponent.prototype.processRefund = /**
|
|
10750
|
-
* @return {?}
|
|
10751
|
-
*/
|
|
10752
|
-
function () {
|
|
10753
|
-
var _this = this;
|
|
10754
|
-
this.isConfirmationBtnDisabled = true;
|
|
10755
|
-
this.errorMessage = '';
|
|
10756
|
-
/** @type {?} */
|
|
10757
|
-
var obj = this.paymentGroupList.fees[0];
|
|
10758
|
-
this.fees = [{ id: obj.id,
|
|
10759
|
-
code: obj.code,
|
|
10760
|
-
version: obj.version,
|
|
10761
|
-
apportion_amount: obj.apportion_amount,
|
|
10762
|
-
calculated_amount: obj.calculated_amount,
|
|
10763
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
10764
|
-
volume: obj.volume,
|
|
10765
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
10766
|
-
/** @type {?} */
|
|
10767
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
10768
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
10769
|
-
* @param {?} response
|
|
10770
|
-
* @return {?}
|
|
10771
|
-
*/function (response) {
|
|
10772
|
-
if (JSON.parse(response)) {
|
|
10773
|
-
_this.viewCompStatus = '';
|
|
10774
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
10775
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
10776
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
10777
|
-
}
|
|
10778
|
-
}), ( /**
|
|
10779
|
-
* @param {?} error
|
|
10780
|
-
* @return {?}
|
|
10781
|
-
*/function (error) {
|
|
10782
|
-
_this.errorMessage = error;
|
|
10783
|
-
_this.isConfirmationBtnDisabled = false;
|
|
10784
|
-
_this.cd.detectChanges();
|
|
10785
|
-
}));
|
|
10786
|
-
};
|
|
10787
|
-
/**
|
|
10788
|
-
* @return {?}
|
|
10789
|
-
*/
|
|
10790
|
-
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
10791
|
-
* @return {?}
|
|
10792
|
-
*/
|
|
10793
|
-
function () {
|
|
10794
|
-
/** @type {?} */
|
|
10795
|
-
var feesOverPayment = 0;
|
|
10796
|
-
this.paymentGroupList.fees.forEach(( /**
|
|
10797
|
-
* @param {?} fee
|
|
10798
|
-
* @return {?}
|
|
10799
|
-
*/function (fee) {
|
|
10800
|
-
feesOverPayment += fee.over_payment;
|
|
10801
|
-
}));
|
|
10802
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
10803
|
-
};
|
|
10804
9429
|
ServiceRequestComponent.decorators = [
|
|
10805
9430
|
{ type: i0.Component, args: [{
|
|
10806
9431
|
selector: 'ccpay-service-request',
|
|
10807
|
-
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[isServiceRequest] = \"isServiceRequest\"\n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n[isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isFullyRefund] = \"isFullyRefund\"\n[fees] = \"paymentFees\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isFromRefundListPage] = \"false\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"isServiceRequest\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>\n\n<div class=\"over-payment\">\n <ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroupList?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComp()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroupList)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n </div>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <ccpay-contact-details \n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table govuk-table-mb\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroupList.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n </div>",
|
|
10808
|
-
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%}
|
|
9432
|
+
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]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[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>",
|
|
9433
|
+
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%}"]
|
|
10809
9434
|
}] }
|
|
10810
9435
|
];
|
|
10811
9436
|
/** @nocollapse */
|
|
@@ -10814,7 +9439,6 @@
|
|
|
10814
9439
|
{ type: PaymentLibComponent },
|
|
10815
9440
|
{ type: PaymentViewService },
|
|
10816
9441
|
{ type: OrderslistService },
|
|
10817
|
-
{ type: i0.ChangeDetectorRef },
|
|
10818
9442
|
{ type: router.Router }
|
|
10819
9443
|
];
|
|
10820
9444
|
};
|
|
@@ -10830,7 +9454,6 @@
|
|
|
10830
9454
|
orderFeesTotal: [{ type: i0.Input, args: ['orderFeesTotal',] }],
|
|
10831
9455
|
orderTotalPayments: [{ type: i0.Input, args: ['orderTotalPayments',] }],
|
|
10832
9456
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
10833
|
-
paymentGroupList: [{ type: i0.Input, args: ['paymentGroupList',] }],
|
|
10834
9457
|
takePayment: [{ type: i0.Input, args: ['takePayment',] }],
|
|
10835
9458
|
ccdCaseNumber: [{ type: i0.Input, args: ['ccdCaseNumber',] }],
|
|
10836
9459
|
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
@@ -11099,7 +9722,6 @@
|
|
|
11099
9722
|
PaymentListComponent,
|
|
11100
9723
|
PaymentViewComponent,
|
|
11101
9724
|
PbaPaymentComponent,
|
|
11102
|
-
ContactDetailsComponent,
|
|
11103
9725
|
ProcessRefundComponent,
|
|
11104
9726
|
RefundListComponent,
|
|
11105
9727
|
CardDetailsComponent,
|
|
@@ -11148,47 +9770,45 @@
|
|
|
11148
9770
|
exports.PaymentLibService = PaymentLibService;
|
|
11149
9771
|
exports.PaymentLibComponent = PaymentLibComponent;
|
|
11150
9772
|
exports.PaymentLibModule = PaymentLibModule;
|
|
11151
|
-
exports.ɵ
|
|
11152
|
-
exports.ɵ
|
|
11153
|
-
exports.ɵ
|
|
11154
|
-
exports.ɵ
|
|
11155
|
-
exports.ɵ
|
|
11156
|
-
exports.ɵ
|
|
11157
|
-
exports.ɵ
|
|
11158
|
-
exports.ɵt =
|
|
11159
|
-
exports.ɵ
|
|
11160
|
-
exports.ɵq = PageNotFoundComponent;
|
|
9773
|
+
exports.ɵbb = AddRemissionComponent;
|
|
9774
|
+
exports.ɵw = AllocatePaymentsComponent;
|
|
9775
|
+
exports.ɵm = CardDetailsComponent;
|
|
9776
|
+
exports.ɵz = CaseTransactionsComponent;
|
|
9777
|
+
exports.ɵbi = ErrorBannerComponent;
|
|
9778
|
+
exports.ɵba = FeeSummaryComponent;
|
|
9779
|
+
exports.ɵr = MarkUnidentifiedPaymentComponent;
|
|
9780
|
+
exports.ɵt = MarkUnsolicitedPaymentComponent;
|
|
9781
|
+
exports.ɵo = PageNotFoundComponent;
|
|
11161
9782
|
exports.ɵb = PaymentListComponent;
|
|
11162
9783
|
exports.ɵf = PaymentViewComponent;
|
|
11163
|
-
exports.ɵ
|
|
9784
|
+
exports.ɵy = PbaDetailsComponent;
|
|
11164
9785
|
exports.ɵi = PbaPaymentComponent;
|
|
11165
|
-
exports.ɵ
|
|
11166
|
-
exports.ɵ
|
|
11167
|
-
exports.ɵ
|
|
11168
|
-
exports.ɵ
|
|
11169
|
-
exports.ɵ
|
|
11170
|
-
exports.ɵ
|
|
11171
|
-
exports.ɵ
|
|
11172
|
-
exports.ɵ
|
|
11173
|
-
exports.ɵ
|
|
11174
|
-
exports.ɵ
|
|
11175
|
-
exports.ɵ
|
|
11176
|
-
exports.ɵ
|
|
11177
|
-
exports.ɵ
|
|
11178
|
-
exports.ɵ
|
|
11179
|
-
exports.ɵ
|
|
11180
|
-
exports.ɵ
|
|
11181
|
-
exports.ɵk = NotificationService;
|
|
9786
|
+
exports.ɵj = ProcessRefundComponent;
|
|
9787
|
+
exports.ɵv = ProcessedPaymentsComponent;
|
|
9788
|
+
exports.ɵl = RefundListComponent;
|
|
9789
|
+
exports.ɵbk = RefundStatusComponent;
|
|
9790
|
+
exports.ɵbg = ReportsComponent;
|
|
9791
|
+
exports.ɵbl = ServiceRequestComponent;
|
|
9792
|
+
exports.ɵp = StatusHistoryComponent;
|
|
9793
|
+
exports.ɵbj = TableComponent;
|
|
9794
|
+
exports.ɵu = UnprocessedPaymentsComponent;
|
|
9795
|
+
exports.ɵbd = CapitalizePipe;
|
|
9796
|
+
exports.ɵbc = CcdHyphensPipe;
|
|
9797
|
+
exports.ɵbe = keyValuePipe;
|
|
9798
|
+
exports.ɵbf = SanitizeHtmlPipe;
|
|
9799
|
+
exports.ɵs = BulkScaningPaymentService;
|
|
9800
|
+
exports.ɵn = CardDetailsService;
|
|
9801
|
+
exports.ɵx = CaseTransactionsService;
|
|
11182
9802
|
exports.ɵa = OrderslistService;
|
|
11183
9803
|
exports.ɵc = PaymentListService;
|
|
11184
9804
|
exports.ɵg = PaymentViewService;
|
|
11185
|
-
exports.ɵ
|
|
9805
|
+
exports.ɵk = RefundsService;
|
|
11186
9806
|
exports.ɵe = ErrorHandlerService;
|
|
11187
9807
|
exports.ɵh = WebComponentHttpClient;
|
|
11188
|
-
exports.ɵ
|
|
9808
|
+
exports.ɵbm = ConsoleLoggerService;
|
|
11189
9809
|
exports.ɵd = LoggerService;
|
|
11190
|
-
exports.ɵ
|
|
11191
|
-
exports.ɵ
|
|
9810
|
+
exports.ɵq = StatusHistoryService;
|
|
9811
|
+
exports.ɵbh = XlFileService;
|
|
11192
9812
|
|
|
11193
9813
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11194
9814
|
|