@hmcts/ccpay-web-component 5.0.7-beta22 → 5.0.8
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 +633 -2069
- 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 +120 -695
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +13 -18
- package/esm2015/lib/components/payment-view/payment-view.component.js +106 -188
- 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 +16 -1
- 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/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 +2 -9
- package/esm2015/lib/payment-lib.module.js +1 -3
- package/esm2015/lib/payment-lib.service.js +1 -16
- package/esm2015/lib/services/refunds/refunds.service.js +1 -10
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm2015/lib/services/xl-file/xl-file.service.js +2 -1
- package/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +125 -817
- package/esm5/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm5/lib/components/fee-summary/fee-summary.component.js +13 -18
- package/esm5/lib/components/payment-view/payment-view.component.js +124 -219
- 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 +16 -1
- 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/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 +2 -9
- package/esm5/lib/payment-lib.module.js +1 -3
- package/esm5/lib/payment-lib.service.js +1 -23
- package/esm5/lib/services/refunds/refunds.service.js +1 -16
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/lib/services/xl-file/xl-file.service.js +2 -1
- package/fesm2015/hmcts-ccpay-web-component.js +507 -1818
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +592 -2069
- 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 +6 -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/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 +0 -2
- package/lib/payment-lib.service.d.ts +0 -3
- 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
|
@@ -2,7 +2,6 @@ import { _throw } from 'rxjs/observable/throw';
|
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
4
4
|
import { catchError } from 'rxjs/operators';
|
|
5
|
-
import { __values } from 'tslib';
|
|
6
5
|
import { Meta, DomSanitizer } from '@angular/platform-browser';
|
|
7
6
|
import { Location, formatDate, CommonModule } from '@angular/common';
|
|
8
7
|
import { saveAs } from 'file-saver';
|
|
@@ -13,8 +12,9 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
|
13
12
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
13
|
import { MatInputModule } from '@angular/material/input';
|
|
15
14
|
import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
15
|
+
import { __values } from 'tslib';
|
|
16
16
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
17
|
-
import { Injectable, Component, Input, Output, EventEmitter,
|
|
17
|
+
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @fileoverview added by tsickle
|
|
@@ -83,26 +83,6 @@ var PaymentLibService = /** @class */ (function () {
|
|
|
83
83
|
function () {
|
|
84
84
|
return this.REFUNDS_API_ROOT;
|
|
85
85
|
};
|
|
86
|
-
/**
|
|
87
|
-
* @param {?} notificationapiRoot
|
|
88
|
-
* @return {?}
|
|
89
|
-
*/
|
|
90
|
-
PaymentLibService.prototype.setNoticationApiRootUrl = /**
|
|
91
|
-
* @param {?} notificationapiRoot
|
|
92
|
-
* @return {?}
|
|
93
|
-
*/
|
|
94
|
-
function (notificationapiRoot) {
|
|
95
|
-
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* @return {?}
|
|
99
|
-
*/
|
|
100
|
-
PaymentLibService.prototype.getNoticationApiRootUrl = /**
|
|
101
|
-
* @return {?}
|
|
102
|
-
*/
|
|
103
|
-
function () {
|
|
104
|
-
return this.NOTIFICATION_API_ROOT;
|
|
105
|
-
};
|
|
106
86
|
/**
|
|
107
87
|
* @param {?} cardPaymentReturnUrl
|
|
108
88
|
* @return {?}
|
|
@@ -553,7 +533,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
553
533
|
this.cd = cd;
|
|
554
534
|
this.OrderslistService = OrderslistService$$1;
|
|
555
535
|
this.unProcessedPaymentServiceId = null;
|
|
556
|
-
this.isFromPayBubble = false;
|
|
557
536
|
this.unProcessedPayment = null;
|
|
558
537
|
this.orderFeesTotal = 0.00;
|
|
559
538
|
this.orderRemissionTotal = 0.00;
|
|
@@ -579,7 +558,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
579
558
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
580
559
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
581
560
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
582
|
-
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
583
561
|
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
584
562
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
585
563
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
@@ -610,7 +588,7 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
610
588
|
PaymentLibComponent.decorators = [
|
|
611
589
|
{ type: Component, args: [{
|
|
612
590
|
selector: 'ccpay-payment-lib',
|
|
613
|
-
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 [ISPAYMENTSTATUSENABLED] = \"ISPAYMENTSTATUSENABLED\"\n ></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\" [
|
|
591
|
+
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 [ISPAYMENTSTATUSENABLED] = \"ISPAYMENTSTATUSENABLED\"\n ></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 ></ccpay-fee-summary>\n <ccpay-reports *ngIf=\"viewName === 'reports'\"\n [ISPAYMENTSTATUSENABLED] = \"ISPAYMENTSTATUSENABLED\"\n ></ccpay-reports>\n "
|
|
614
592
|
}] }
|
|
615
593
|
];
|
|
616
594
|
/** @nocollapse */
|
|
@@ -623,7 +601,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
623
601
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
624
602
|
BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
625
603
|
REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
|
|
626
|
-
NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
627
604
|
CARDPAYMENTRETURNURL: [{ type: Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
628
605
|
CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
|
|
629
606
|
EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
|
|
@@ -1420,28 +1397,13 @@ var PaymentViewService = /** @class */ (function () {
|
|
|
1420
1397
|
return PaymentViewService;
|
|
1421
1398
|
}());
|
|
1422
1399
|
|
|
1423
|
-
/**
|
|
1424
|
-
* @fileoverview added by tsickle
|
|
1425
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1426
|
-
*/
|
|
1427
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
1428
|
-
function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1429
|
-
this.contact_details = contact_details;
|
|
1430
|
-
this.fees = fees;
|
|
1431
|
-
this.payment_reference = payment_reference;
|
|
1432
|
-
this.refund_reason = refund_reason;
|
|
1433
|
-
this.total_refund_amount = total_refund_amount;
|
|
1434
|
-
this.is_over_payment = is_over_payment === 'op';
|
|
1435
|
-
}
|
|
1436
|
-
return PostRefundRetroRemission;
|
|
1437
|
-
}());
|
|
1438
|
-
|
|
1439
1400
|
/**
|
|
1440
1401
|
* @fileoverview added by tsickle
|
|
1441
1402
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1442
1403
|
*/
|
|
1443
1404
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1444
1405
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1406
|
+
var _this = this;
|
|
1445
1407
|
this.paymentViewService = paymentViewService;
|
|
1446
1408
|
this.paymentLibComponent = paymentLibComponent;
|
|
1447
1409
|
this.cd = cd;
|
|
@@ -1452,7 +1414,30 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1452
1414
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1453
1415
|
this.remissions = [];
|
|
1454
1416
|
this.allPaymentsFailure = [];
|
|
1455
|
-
this.
|
|
1417
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
1418
|
+
* @return {?}
|
|
1419
|
+
*/
|
|
1420
|
+
function () {
|
|
1421
|
+
return _this.allowedRolesToAccessRefund.some((/**
|
|
1422
|
+
* @param {?} role
|
|
1423
|
+
* @return {?}
|
|
1424
|
+
*/
|
|
1425
|
+
function (role) {
|
|
1426
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1427
|
+
}));
|
|
1428
|
+
});
|
|
1429
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
1430
|
+
* @param {?} payment
|
|
1431
|
+
* @return {?}
|
|
1432
|
+
*/
|
|
1433
|
+
function (payment) {
|
|
1434
|
+
if (payment !== null && payment !== undefined) {
|
|
1435
|
+
/** @type {?} */
|
|
1436
|
+
var tmp4DayAgo = new Date();
|
|
1437
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1438
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1456
1441
|
}
|
|
1457
1442
|
/**
|
|
1458
1443
|
* @return {?}
|
|
@@ -1506,7 +1491,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1506
1491
|
}
|
|
1507
1492
|
}));
|
|
1508
1493
|
paymentGroup.fees = fees;
|
|
1509
|
-
_this.paymentFees = fees;
|
|
1510
1494
|
_this.paymentGroup = paymentGroup;
|
|
1511
1495
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1512
1496
|
* @param {?} paymentGroupObj
|
|
@@ -1578,24 +1562,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1578
1562
|
function () {
|
|
1579
1563
|
this.paymentLibComponent.viewName = 'payment-list';
|
|
1580
1564
|
};
|
|
1581
|
-
/**
|
|
1582
|
-
* @return {?}
|
|
1583
|
-
*/
|
|
1584
|
-
PaymentViewComponent.prototype.getOverPaymentValue = /**
|
|
1585
|
-
* @return {?}
|
|
1586
|
-
*/
|
|
1587
|
-
function () {
|
|
1588
|
-
/** @type {?} */
|
|
1589
|
-
var feesOverPayment = 0;
|
|
1590
|
-
this.paymentGroup.fees.forEach((/**
|
|
1591
|
-
* @param {?} fee
|
|
1592
|
-
* @return {?}
|
|
1593
|
-
*/
|
|
1594
|
-
function (fee) {
|
|
1595
|
-
feesOverPayment += fee.over_payment;
|
|
1596
|
-
}));
|
|
1597
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1598
|
-
};
|
|
1599
1565
|
/**
|
|
1600
1566
|
* @return {?}
|
|
1601
1567
|
*/
|
|
@@ -1681,7 +1647,7 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1681
1647
|
*/
|
|
1682
1648
|
function (fee) {
|
|
1683
1649
|
var _this = this;
|
|
1684
|
-
if (this.
|
|
1650
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
1685
1651
|
this.feeId = fee;
|
|
1686
1652
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe((/**
|
|
1687
1653
|
* @param {?} paymentGroup
|
|
@@ -1722,64 +1688,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1722
1688
|
}
|
|
1723
1689
|
return false;
|
|
1724
1690
|
};
|
|
1725
|
-
/**
|
|
1726
|
-
* @return {?}
|
|
1727
|
-
*/
|
|
1728
|
-
PaymentViewComponent.prototype.processRefund = /**
|
|
1729
|
-
* @return {?}
|
|
1730
|
-
*/
|
|
1731
|
-
function () {
|
|
1732
|
-
var _this = this;
|
|
1733
|
-
this.isConfirmationBtnDisabled = true;
|
|
1734
|
-
this.errorMessage = '';
|
|
1735
|
-
/** @type {?} */
|
|
1736
|
-
var obj = this.paymentGroup.fees[0];
|
|
1737
|
-
this.fees = [{ id: obj.id,
|
|
1738
|
-
code: obj.code,
|
|
1739
|
-
version: obj.version,
|
|
1740
|
-
apportion_amount: obj.apportion_amount,
|
|
1741
|
-
calculated_amount: obj.calculated_amount,
|
|
1742
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1743
|
-
volume: obj.volume,
|
|
1744
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
1745
|
-
/** @type {?} */
|
|
1746
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1747
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
1748
|
-
* @param {?} response
|
|
1749
|
-
* @return {?}
|
|
1750
|
-
*/
|
|
1751
|
-
function (response) {
|
|
1752
|
-
if (JSON.parse(response)) {
|
|
1753
|
-
_this.viewCompStatus = '';
|
|
1754
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
1755
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
1756
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
1757
|
-
}
|
|
1758
|
-
}), (/**
|
|
1759
|
-
* @param {?} error
|
|
1760
|
-
* @return {?}
|
|
1761
|
-
*/
|
|
1762
|
-
function (error) {
|
|
1763
|
-
_this.errorMessage = error;
|
|
1764
|
-
_this.isConfirmationBtnDisabled = false;
|
|
1765
|
-
_this.cd.detectChanges();
|
|
1766
|
-
}));
|
|
1767
|
-
};
|
|
1768
|
-
/**
|
|
1769
|
-
* @param {?=} note
|
|
1770
|
-
* @return {?}
|
|
1771
|
-
*/
|
|
1772
|
-
PaymentViewComponent.prototype.gotoAddressPage = /**
|
|
1773
|
-
* @param {?=} note
|
|
1774
|
-
* @return {?}
|
|
1775
|
-
*/
|
|
1776
|
-
function (note) {
|
|
1777
|
-
if (note) {
|
|
1778
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1779
|
-
}
|
|
1780
|
-
this.errorMessage = '';
|
|
1781
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1782
|
-
};
|
|
1783
1691
|
/**
|
|
1784
1692
|
* @param {?} payment
|
|
1785
1693
|
* @param {?} remission
|
|
@@ -1794,44 +1702,61 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1794
1702
|
*/
|
|
1795
1703
|
function (payment, remission, fees) {
|
|
1796
1704
|
var _this = this;
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
*/
|
|
1802
|
-
function (paymentGroup) {
|
|
1803
|
-
_this.paymentGroup = paymentGroup;
|
|
1804
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1805
|
-
* @param {?} paymentGroupObj
|
|
1705
|
+
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1706
|
+
this.payment = payment;
|
|
1707
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
1708
|
+
* @param {?} paymentGroup
|
|
1806
1709
|
* @return {?}
|
|
1807
1710
|
*/
|
|
1808
|
-
function (
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1711
|
+
function (paymentGroup) {
|
|
1712
|
+
_this.paymentGroup = paymentGroup;
|
|
1713
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1714
|
+
* @param {?} paymentGroupObj
|
|
1715
|
+
* @return {?}
|
|
1716
|
+
*/
|
|
1717
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1718
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1719
|
+
_this.remissions = remission;
|
|
1720
|
+
_this.remissionFeeAmt = fees.filter((/**
|
|
1721
|
+
* @param {?} data
|
|
1722
|
+
* @return {?}
|
|
1723
|
+
*/
|
|
1724
|
+
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1725
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1726
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1727
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1728
|
+
}), (/**
|
|
1729
|
+
* @param {?} error
|
|
1813
1730
|
* @return {?}
|
|
1814
1731
|
*/
|
|
1815
|
-
function (
|
|
1816
|
-
|
|
1817
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1818
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1819
|
-
}), (/**
|
|
1820
|
-
* @param {?} error
|
|
1821
|
-
* @return {?}
|
|
1822
|
-
*/
|
|
1823
|
-
function (error) { return _this.errorMessage = error; }));
|
|
1824
|
-
//}
|
|
1732
|
+
function (error) { return _this.errorMessage = error; }));
|
|
1733
|
+
}
|
|
1825
1734
|
};
|
|
1826
1735
|
/**
|
|
1827
1736
|
* @return {?}
|
|
1828
1737
|
*/
|
|
1829
|
-
PaymentViewComponent.prototype.
|
|
1738
|
+
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
1830
1739
|
* @return {?}
|
|
1831
1740
|
*/
|
|
1832
1741
|
function () {
|
|
1833
|
-
|
|
1834
|
-
this.
|
|
1742
|
+
var _this = this;
|
|
1743
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1744
|
+
this.paymentGroup.payments.forEach((/**
|
|
1745
|
+
* @param {?} payment
|
|
1746
|
+
* @return {?}
|
|
1747
|
+
*/
|
|
1748
|
+
function (payment) {
|
|
1749
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1750
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1751
|
+
}
|
|
1752
|
+
}));
|
|
1753
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1754
|
+
return true;
|
|
1755
|
+
}
|
|
1756
|
+
else {
|
|
1757
|
+
return false;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1835
1760
|
};
|
|
1836
1761
|
/**
|
|
1837
1762
|
* @param {?} paymentgrp
|
|
@@ -1843,18 +1768,13 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1843
1768
|
*/
|
|
1844
1769
|
function (paymentgrp) {
|
|
1845
1770
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1846
|
-
if (this.
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
this.isRefundRemission = true;
|
|
1854
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1855
|
-
this.isFromPaymentDetailPage = true;
|
|
1856
|
-
this.isFromServiceRequestPage = false;
|
|
1857
|
-
}
|
|
1771
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1772
|
+
this.paymentGroup = paymentgrp;
|
|
1773
|
+
this.viewStatus = 'issuerefund';
|
|
1774
|
+
this.isRefundRemission = true;
|
|
1775
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1776
|
+
this.isFromPaymentDetailPage = true;
|
|
1777
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1858
1778
|
}
|
|
1859
1779
|
}
|
|
1860
1780
|
};
|
|
@@ -1893,110 +1813,73 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1893
1813
|
* @param {?} payment
|
|
1894
1814
|
* @return {?}
|
|
1895
1815
|
*/
|
|
1896
|
-
PaymentViewComponent.prototype.
|
|
1816
|
+
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
1897
1817
|
* @param {?} payment
|
|
1898
1818
|
* @return {?}
|
|
1899
1819
|
*/
|
|
1900
1820
|
function (payment) {
|
|
1901
|
-
if (
|
|
1902
|
-
|
|
1821
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
1822
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
1823
|
+
this.isIssueRefunfBtnEnable = true;
|
|
1824
|
+
}
|
|
1825
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
1826
|
+
return true;
|
|
1903
1827
|
}
|
|
1904
1828
|
else {
|
|
1905
1829
|
return false;
|
|
1906
1830
|
}
|
|
1907
1831
|
};
|
|
1908
1832
|
/**
|
|
1909
|
-
* @param {?} remission
|
|
1910
1833
|
* @return {?}
|
|
1911
1834
|
*/
|
|
1912
|
-
PaymentViewComponent.prototype.
|
|
1913
|
-
* @param {?} remission
|
|
1835
|
+
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
1914
1836
|
* @return {?}
|
|
1915
1837
|
*/
|
|
1916
|
-
function (
|
|
1917
|
-
if (
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1838
|
+
function () {
|
|
1839
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1840
|
+
/** @type {?} */
|
|
1841
|
+
var payment = this.paymentGroup.payments[0];
|
|
1842
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1843
|
+
return true;
|
|
1844
|
+
}
|
|
1921
1845
|
return false;
|
|
1922
1846
|
}
|
|
1923
1847
|
};
|
|
1924
1848
|
/**
|
|
1925
|
-
* @param {?}
|
|
1849
|
+
* @param {?} feeCode
|
|
1926
1850
|
* @return {?}
|
|
1927
1851
|
*/
|
|
1928
|
-
PaymentViewComponent.prototype.
|
|
1929
|
-
* @param {?}
|
|
1852
|
+
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
1853
|
+
* @param {?} feeCode
|
|
1930
1854
|
* @return {?}
|
|
1931
1855
|
*/
|
|
1932
|
-
function (
|
|
1933
|
-
|
|
1934
|
-
|
|
1856
|
+
function (feeCode) {
|
|
1857
|
+
var e_2, _a;
|
|
1858
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
1859
|
+
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1860
|
+
try {
|
|
1861
|
+
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1862
|
+
var remission = _c.value;
|
|
1863
|
+
if (remission.fee_code === feeCode) {
|
|
1864
|
+
return false;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1869
|
+
finally {
|
|
1870
|
+
try {
|
|
1871
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1872
|
+
}
|
|
1873
|
+
finally { if (e_2) throw e_2.error; }
|
|
1874
|
+
}
|
|
1875
|
+
return true;
|
|
1876
|
+
}
|
|
1877
|
+
return true;
|
|
1935
1878
|
}
|
|
1936
1879
|
else {
|
|
1937
1880
|
return false;
|
|
1938
1881
|
}
|
|
1939
1882
|
};
|
|
1940
|
-
/**
|
|
1941
|
-
* @param {?} paymentType
|
|
1942
|
-
* @return {?}
|
|
1943
|
-
*/
|
|
1944
|
-
PaymentViewComponent.prototype.selectPymentOption = /**
|
|
1945
|
-
* @param {?} paymentType
|
|
1946
|
-
* @return {?}
|
|
1947
|
-
*/
|
|
1948
|
-
function (paymentType) {
|
|
1949
|
-
this.paymentType = paymentType;
|
|
1950
|
-
this.isContinueBtnDisabled = false;
|
|
1951
|
-
};
|
|
1952
|
-
/**
|
|
1953
|
-
* @param {?} paymentgrp
|
|
1954
|
-
* @return {?}
|
|
1955
|
-
*/
|
|
1956
|
-
PaymentViewComponent.prototype.continuePayment = /**
|
|
1957
|
-
* @param {?} paymentgrp
|
|
1958
|
-
* @return {?}
|
|
1959
|
-
*/
|
|
1960
|
-
function (paymentgrp) {
|
|
1961
|
-
if (this.paymentType === 'op') {
|
|
1962
|
-
this.isFullyRefund = false;
|
|
1963
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1964
|
-
}
|
|
1965
|
-
else if (this.paymentType === 'fp') {
|
|
1966
|
-
this.isFullyRefund = true;
|
|
1967
|
-
this.paymentGroup = paymentgrp;
|
|
1968
|
-
this.viewStatus = 'issuerefund';
|
|
1969
|
-
this.viewCompStatus = "";
|
|
1970
|
-
this.isRefundRemission = true;
|
|
1971
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1972
|
-
this.isFromPaymentDetailPage = true;
|
|
1973
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1974
|
-
}
|
|
1975
|
-
};
|
|
1976
|
-
/**
|
|
1977
|
-
* @param {?} event
|
|
1978
|
-
* @return {?}
|
|
1979
|
-
*/
|
|
1980
|
-
PaymentViewComponent.prototype.gotoPaymentSelectPage = /**
|
|
1981
|
-
* @param {?} event
|
|
1982
|
-
* @return {?}
|
|
1983
|
-
*/
|
|
1984
|
-
function (event) {
|
|
1985
|
-
event.preventDefault();
|
|
1986
|
-
this.viewCompStatus = 'overpayment';
|
|
1987
|
-
};
|
|
1988
|
-
/**
|
|
1989
|
-
* @param {?} obj
|
|
1990
|
-
* @return {?}
|
|
1991
|
-
*/
|
|
1992
|
-
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1993
|
-
* @param {?} obj
|
|
1994
|
-
* @return {?}
|
|
1995
|
-
*/
|
|
1996
|
-
function (obj) {
|
|
1997
|
-
this.contactDetailsObj = obj;
|
|
1998
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1999
|
-
};
|
|
2000
1883
|
/**
|
|
2001
1884
|
* @return {?}
|
|
2002
1885
|
*/
|
|
@@ -2040,8 +1923,8 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
2040
1923
|
PaymentViewComponent.decorators = [
|
|
2041
1924
|
{ type: Component, args: [{
|
|
2042
1925
|
selector: 'ccpay-payment-view',
|
|
2043
|
-
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<div *ngIf=\"ISPAYMENTSTATUSENABLED\">\n <div class=\"column\">\n <h2 class=\"heading-medium\">Disputed payment history</h2>\n </div>\n \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)\">Show detail</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]=\"!chkIsAddRemissionBtnEnable(fee)\" (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]=\"!chkIsAddRefundBtnEnable(remission)\" (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 && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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 [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\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</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>\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\u00A3{{selectedPaymentsStatus.disputed_amount | number:'.2'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Additional information</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\">Status following representation of payment</td>\n <td>\t{{(selectedPaymentsStatus.representment_status === 'Yes' || selectedPaymentsStatus.representment_status === 'yes') ? 'Success' : 'Failure'}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_date\">\n <td class=\"bold\">Date payment represented</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>\n",
|
|
2044
|
-
styles: [".
|
|
1926
|
+
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\">\n <div class=\"column\">\n <h2 class=\"heading-medium\">Disputed payment history</h2>\n </div>\n \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 | capitalize }}</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)\">Show detail</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 <br/>\n <br/>\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[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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 [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\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\u00A3{{selectedPaymentsStatus.disputed_amount | number:'.2'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Additional information</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\">Status following representation of payment</td>\n <td>\t{{(selectedPaymentsStatus.representment_status === 'Yes' || selectedPaymentsStatus.representment_status === 'yes') ? 'Success' : 'Failure'}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_date\">\n <td class=\"bold\">Date payment represented</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>\n",
|
|
1927
|
+
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!important;margin-left:15px!important}"]
|
|
2045
1928
|
}] }
|
|
2046
1929
|
];
|
|
2047
1930
|
/** @nocollapse */
|
|
@@ -2206,21 +2089,6 @@ var RefundsService = /** @class */ (function () {
|
|
|
2206
2089
|
function (body) {
|
|
2207
2090
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(catchError(this.errorHandlerService.handleError));
|
|
2208
2091
|
};
|
|
2209
|
-
/**
|
|
2210
|
-
* @param {?} body
|
|
2211
|
-
* @param {?} refundRef
|
|
2212
|
-
* @param {?} notificationType
|
|
2213
|
-
* @return {?}
|
|
2214
|
-
*/
|
|
2215
|
-
RefundsService.prototype.putResendOrEdit = /**
|
|
2216
|
-
* @param {?} body
|
|
2217
|
-
* @param {?} refundRef
|
|
2218
|
-
* @param {?} notificationType
|
|
2219
|
-
* @return {?}
|
|
2220
|
-
*/
|
|
2221
|
-
function (body, refundRef, notificationType) {
|
|
2222
|
-
return this.https.put(this.paymentLibService.REFUNDS_API_ROOT + "/resend/notification/" + refundRef + "?notificationType=" + notificationType, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
2223
|
-
};
|
|
2224
2092
|
/**
|
|
2225
2093
|
* @param {?} body
|
|
2226
2094
|
* @param {?} refund_reference
|
|
@@ -2307,9 +2175,8 @@ var RefundsService = /** @class */ (function () {
|
|
|
2307
2175
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2308
2176
|
*/
|
|
2309
2177
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2310
|
-
function ProcessRefundComponent(RefundsService$$1,
|
|
2178
|
+
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
2311
2179
|
this.RefundsService = RefundsService$$1;
|
|
2312
|
-
this.paymentViewService = paymentViewService;
|
|
2313
2180
|
this.formBuilder = formBuilder;
|
|
2314
2181
|
this.OrderslistService = OrderslistService$$1;
|
|
2315
2182
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2332,7 +2199,6 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2332
2199
|
this.isReasonEmpty = false;
|
|
2333
2200
|
this.isReasonInvalid = false;
|
|
2334
2201
|
this.successMsg = null;
|
|
2335
|
-
this.cpoDetails = null;
|
|
2336
2202
|
this.isConfirmButtondisabled = true;
|
|
2337
2203
|
}
|
|
2338
2204
|
/**
|
|
@@ -2380,20 +2246,6 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2380
2246
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2381
2247
|
this.isFromRefundListPage = true;
|
|
2382
2248
|
}
|
|
2383
|
-
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
2384
|
-
* @param {?} response
|
|
2385
|
-
* @return {?}
|
|
2386
|
-
*/
|
|
2387
|
-
function (response) {
|
|
2388
|
-
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2389
|
-
}), (/**
|
|
2390
|
-
* @param {?} error
|
|
2391
|
-
* @return {?}
|
|
2392
|
-
*/
|
|
2393
|
-
function (error) {
|
|
2394
|
-
_this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
2395
|
-
_this.isCPODown = true;
|
|
2396
|
-
}));
|
|
2397
2249
|
};
|
|
2398
2250
|
/**
|
|
2399
2251
|
* @param {?} code
|
|
@@ -2632,29 +2484,89 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2632
2484
|
this.loadRefundListPage();
|
|
2633
2485
|
}
|
|
2634
2486
|
};
|
|
2487
|
+
// loadCaseTransactionPage() {
|
|
2488
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2489
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2490
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2491
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2492
|
+
// features => {
|
|
2493
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2494
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2495
|
+
// },
|
|
2496
|
+
// err => {
|
|
2497
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2498
|
+
// }
|
|
2499
|
+
// );
|
|
2500
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2501
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2502
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2503
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2504
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2505
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2506
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2507
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2508
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2509
|
+
// this.router.navigateByUrl(url);
|
|
2510
|
+
// }
|
|
2511
|
+
// loadCaseTransactionPage() {
|
|
2512
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2513
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2514
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2515
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2516
|
+
// features => {
|
|
2517
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2518
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2519
|
+
// },
|
|
2520
|
+
// err => {
|
|
2521
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2522
|
+
// }
|
|
2523
|
+
// );
|
|
2524
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2525
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2526
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2527
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2528
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2529
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2530
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2531
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2532
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2533
|
+
// this.router.navigateByUrl(url);
|
|
2534
|
+
// }
|
|
2635
2535
|
/**
|
|
2536
|
+
* @param {?} vals
|
|
2537
|
+
* @param {?} field
|
|
2636
2538
|
* @return {?}
|
|
2637
2539
|
*/
|
|
2638
|
-
ProcessRefundComponent.prototype.
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
}
|
|
2540
|
+
ProcessRefundComponent.prototype.resetForm =
|
|
2541
|
+
// loadCaseTransactionPage() {
|
|
2542
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2543
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2544
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2545
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2546
|
+
// features => {
|
|
2547
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2548
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2549
|
+
// },
|
|
2550
|
+
// err => {
|
|
2551
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2552
|
+
// }
|
|
2553
|
+
// );
|
|
2554
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2555
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2556
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2557
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2558
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2559
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2560
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2561
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2562
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2563
|
+
// this.router.navigateByUrl(url);
|
|
2564
|
+
// }
|
|
2648
2565
|
/**
|
|
2649
2566
|
* @param {?} vals
|
|
2650
2567
|
* @param {?} field
|
|
2651
2568
|
* @return {?}
|
|
2652
2569
|
*/
|
|
2653
|
-
ProcessRefundComponent.prototype.resetForm = /**
|
|
2654
|
-
* @param {?} vals
|
|
2655
|
-
* @param {?} field
|
|
2656
|
-
* @return {?}
|
|
2657
|
-
*/
|
|
2658
2570
|
function (vals, field) {
|
|
2659
2571
|
if (field === 'action' || field === 'all') {
|
|
2660
2572
|
this.refundActionsHasError = vals[0];
|
|
@@ -2680,26 +2592,18 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2680
2592
|
* @return {?}
|
|
2681
2593
|
*/
|
|
2682
2594
|
function () {
|
|
2683
|
-
|
|
2684
|
-
var isPayBubble = this.paymentLibComponent.isFromPayBubble;
|
|
2685
|
-
if (isPayBubble) {
|
|
2686
|
-
this.loadCaseTransactionPage();
|
|
2687
|
-
}
|
|
2688
|
-
else {
|
|
2689
|
-
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2690
|
-
}
|
|
2595
|
+
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2691
2596
|
};
|
|
2692
2597
|
ProcessRefundComponent.decorators = [
|
|
2693
2598
|
{ type: Component, args: [{
|
|
2694
2599
|
selector: 'ccpay-process-refund',
|
|
2695
|
-
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
|
|
2600
|
+
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",
|
|
2696
2601
|
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}"]
|
|
2697
2602
|
}] }
|
|
2698
2603
|
];
|
|
2699
2604
|
/** @nocollapse */
|
|
2700
2605
|
ProcessRefundComponent.ctorParameters = function () { return [
|
|
2701
2606
|
{ type: RefundsService },
|
|
2702
|
-
{ type: PaymentViewService },
|
|
2703
2607
|
{ type: FormBuilder },
|
|
2704
2608
|
{ type: OrderslistService },
|
|
2705
2609
|
{ type: PaymentLibComponent },
|
|
@@ -2722,10 +2626,10 @@ var RefundListComponent = /** @class */ (function () {
|
|
|
2722
2626
|
this.refundService = refundService;
|
|
2723
2627
|
this.submittedRefundList = [];
|
|
2724
2628
|
this.rejectedRefundList = [];
|
|
2725
|
-
// approvalStatus = 'Sent for approval';
|
|
2726
|
-
// rejectStatus = 'Update required';
|
|
2727
2629
|
this.approvalStatus = 'Sent for approval';
|
|
2728
2630
|
this.rejectStatus = 'Update required';
|
|
2631
|
+
// approvalStatus = 'sent for approval';
|
|
2632
|
+
// rejectStatus = 'sent back';
|
|
2729
2633
|
this.errorMessage = null;
|
|
2730
2634
|
this.isAuthorized = true;
|
|
2731
2635
|
}
|
|
@@ -3005,447 +2909,6 @@ var StatusHistoryComponent = /** @class */ (function () {
|
|
|
3005
2909
|
return StatusHistoryComponent;
|
|
3006
2910
|
}());
|
|
3007
2911
|
|
|
3008
|
-
/**
|
|
3009
|
-
* @fileoverview added by tsickle
|
|
3010
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3011
|
-
*/
|
|
3012
|
-
var NotificationService = /** @class */ (function () {
|
|
3013
|
-
function NotificationService(http, https, errorHandlerService, paymentLibService) {
|
|
3014
|
-
this.http = http;
|
|
3015
|
-
this.https = https;
|
|
3016
|
-
this.errorHandlerService = errorHandlerService;
|
|
3017
|
-
this.paymentLibService = paymentLibService;
|
|
3018
|
-
}
|
|
3019
|
-
/**
|
|
3020
|
-
* @param {?} reference
|
|
3021
|
-
* @return {?}
|
|
3022
|
-
*/
|
|
3023
|
-
NotificationService.prototype.getRefundNotification = /**
|
|
3024
|
-
* @param {?} reference
|
|
3025
|
-
* @return {?}
|
|
3026
|
-
*/
|
|
3027
|
-
function (reference) {
|
|
3028
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/notifications/" + reference, {
|
|
3029
|
-
withCredentials: true
|
|
3030
|
-
})
|
|
3031
|
-
.pipe(catchError(this.errorHandlerService.handleError));
|
|
3032
|
-
};
|
|
3033
|
-
/**
|
|
3034
|
-
* @param {?} postcode
|
|
3035
|
-
* @return {?}
|
|
3036
|
-
*/
|
|
3037
|
-
NotificationService.prototype.getAddressByPostcode = /**
|
|
3038
|
-
* @param {?} postcode
|
|
3039
|
-
* @return {?}
|
|
3040
|
-
*/
|
|
3041
|
-
function (postcode) {
|
|
3042
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/search/places/v1/postcode?postcode=" + postcode, {
|
|
3043
|
-
withCredentials: true
|
|
3044
|
-
})
|
|
3045
|
-
.pipe(catchError(this.errorHandlerService.handleError));
|
|
3046
|
-
};
|
|
3047
|
-
NotificationService.decorators = [
|
|
3048
|
-
{ type: Injectable, args: [{
|
|
3049
|
-
providedIn: 'root'
|
|
3050
|
-
},] }
|
|
3051
|
-
];
|
|
3052
|
-
/** @nocollapse */
|
|
3053
|
-
NotificationService.ctorParameters = function () { return [
|
|
3054
|
-
{ type: HttpClient },
|
|
3055
|
-
{ type: WebComponentHttpClient },
|
|
3056
|
-
{ type: ErrorHandlerService },
|
|
3057
|
-
{ type: PaymentLibService }
|
|
3058
|
-
]; };
|
|
3059
|
-
/** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
3060
|
-
return NotificationService;
|
|
3061
|
-
}());
|
|
3062
|
-
|
|
3063
|
-
/**
|
|
3064
|
-
* @fileoverview added by tsickle
|
|
3065
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3066
|
-
*/
|
|
3067
|
-
var ContactDetailsComponent = /** @class */ (function () {
|
|
3068
|
-
function ContactDetailsComponent(formBuilder, notificationService, paymentLibComponent) {
|
|
3069
|
-
this.formBuilder = formBuilder;
|
|
3070
|
-
this.notificationService = notificationService;
|
|
3071
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
3072
|
-
this.assignContactDetails = new EventEmitter();
|
|
3073
|
-
this.assignContactDetailsInFefundsList = new EventEmitter();
|
|
3074
|
-
this.redirectToIssueRefund = new EventEmitter();
|
|
3075
|
-
this.pageTitle = 'Payment status history';
|
|
3076
|
-
this.isEmailSAddressClicked = true;
|
|
3077
|
-
this.isShowPickAddress = false;
|
|
3078
|
-
this.isPostcodeClicked = false;
|
|
3079
|
-
this.isManualAddressClicked = false;
|
|
3080
|
-
this.addressPostcodeList = [];
|
|
3081
|
-
this.isAddressBoxEmpty = false;
|
|
3082
|
-
this.isEmailEmpty = false;
|
|
3083
|
-
this.emailHasError = false;
|
|
3084
|
-
this.isPostcodeEmpty = false;
|
|
3085
|
-
this.postcodeHasError = false;
|
|
3086
|
-
this.isaddressLine1Empty = false;
|
|
3087
|
-
this.addressLine1HasError = false;
|
|
3088
|
-
this.addressLine2HasError = false;
|
|
3089
|
-
this.isTownOrCityEmpty = false;
|
|
3090
|
-
this.townOrCityHasError = false;
|
|
3091
|
-
this.isCountyEmpty = false;
|
|
3092
|
-
this.countyHasError = false;
|
|
3093
|
-
this.isMPostcodeEmpty = false;
|
|
3094
|
-
this.mpostcodeHasError = false;
|
|
3095
|
-
this.isCountryEmpty = false;
|
|
3096
|
-
}
|
|
3097
|
-
/**
|
|
3098
|
-
* @return {?}
|
|
3099
|
-
*/
|
|
3100
|
-
ContactDetailsComponent.prototype.ngOnInit = /**
|
|
3101
|
-
* @return {?}
|
|
3102
|
-
*/
|
|
3103
|
-
function () {
|
|
3104
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3105
|
-
this.emailAddressForm = this.formBuilder.group({
|
|
3106
|
-
email: new FormControl('', Validators.compose([
|
|
3107
|
-
Validators.required,
|
|
3108
|
-
Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
3109
|
-
]))
|
|
3110
|
-
});
|
|
3111
|
-
this.postCodeForm = this.formBuilder.group({
|
|
3112
|
-
postcode: new FormControl('', Validators.compose([
|
|
3113
|
-
Validators.required,
|
|
3114
|
-
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3115
|
-
]))
|
|
3116
|
-
});
|
|
3117
|
-
this.manualAddressForm = this.formBuilder.group({
|
|
3118
|
-
addressl1: new FormControl('', Validators.compose([
|
|
3119
|
-
Validators.required,
|
|
3120
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3121
|
-
])),
|
|
3122
|
-
addressl2: new FormControl('', Validators.compose([
|
|
3123
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3124
|
-
])),
|
|
3125
|
-
townorcity: new FormControl('', Validators.compose([
|
|
3126
|
-
Validators.required,
|
|
3127
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3128
|
-
])),
|
|
3129
|
-
county: new FormControl('', Validators.compose([
|
|
3130
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3131
|
-
])),
|
|
3132
|
-
mpostcode: new FormControl('', Validators.compose([
|
|
3133
|
-
Validators.required,
|
|
3134
|
-
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3135
|
-
])),
|
|
3136
|
-
country: new FormControl('', Validators.compose([
|
|
3137
|
-
Validators.required
|
|
3138
|
-
]))
|
|
3139
|
-
});
|
|
3140
|
-
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
3141
|
-
this.setEditDetails();
|
|
3142
|
-
}
|
|
3143
|
-
if (this.isEditOperationInRefundList === undefined) {
|
|
3144
|
-
this.isEditOperationInRefundList = false;
|
|
3145
|
-
}
|
|
3146
|
-
};
|
|
3147
|
-
/**
|
|
3148
|
-
* @return {?}
|
|
3149
|
-
*/
|
|
3150
|
-
ContactDetailsComponent.prototype.setEditDetails = /**
|
|
3151
|
-
* @return {?}
|
|
3152
|
-
*/
|
|
3153
|
-
function () {
|
|
3154
|
-
if (this.addressObj.notification_type === 'EMAIL') {
|
|
3155
|
-
this.isEmailSAddressClicked = true;
|
|
3156
|
-
this.isPostcodeClicked = false;
|
|
3157
|
-
this.isManualAddressClicked = false;
|
|
3158
|
-
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
3159
|
-
}
|
|
3160
|
-
else if (this.addressObj.notification_type === 'LETTER') {
|
|
3161
|
-
this.isEmailSAddressClicked = false;
|
|
3162
|
-
this.isPostcodeClicked = true;
|
|
3163
|
-
this.isManualAddressClicked = true;
|
|
3164
|
-
this.manualAddressForm.patchValue({
|
|
3165
|
-
addressl1: this.addressObj.contact_details.address_line,
|
|
3166
|
-
townorcity: this.addressObj.contact_details.city,
|
|
3167
|
-
county: this.addressObj.contact_details.county,
|
|
3168
|
-
country: this.addressObj.contact_details.country,
|
|
3169
|
-
mpostcode: this.addressObj.contact_details.postal_code
|
|
3170
|
-
});
|
|
3171
|
-
}
|
|
3172
|
-
};
|
|
3173
|
-
/**
|
|
3174
|
-
* @param {?} type
|
|
3175
|
-
* @param {?} isLinkedClied
|
|
3176
|
-
* @return {?}
|
|
3177
|
-
*/
|
|
3178
|
-
ContactDetailsComponent.prototype.selectContactOption = /**
|
|
3179
|
-
* @param {?} type
|
|
3180
|
-
* @param {?} isLinkedClied
|
|
3181
|
-
* @return {?}
|
|
3182
|
-
*/
|
|
3183
|
-
function (type, isLinkedClied) {
|
|
3184
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3185
|
-
if (type === 'Email' && isLinkedClied === 'false') {
|
|
3186
|
-
this.isEmailSAddressClicked = true;
|
|
3187
|
-
this.isPostcodeClicked = false;
|
|
3188
|
-
this.isManualAddressClicked = false;
|
|
3189
|
-
}
|
|
3190
|
-
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
3191
|
-
this.isEmailSAddressClicked = false;
|
|
3192
|
-
this.isPostcodeClicked = true;
|
|
3193
|
-
this.isManualAddressClicked = false;
|
|
3194
|
-
}
|
|
3195
|
-
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
3196
|
-
this.isEmailSAddressClicked = false;
|
|
3197
|
-
this.isPostcodeClicked = true;
|
|
3198
|
-
this.isManualAddressClicked = true;
|
|
3199
|
-
}
|
|
3200
|
-
};
|
|
3201
|
-
/**
|
|
3202
|
-
* @return {?}
|
|
3203
|
-
*/
|
|
3204
|
-
ContactDetailsComponent.prototype.finalFormSubmit = /**
|
|
3205
|
-
* @return {?}
|
|
3206
|
-
*/
|
|
3207
|
-
function () {
|
|
3208
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3209
|
-
if (this.isEmailSAddressClicked) {
|
|
3210
|
-
/** @type {?} */
|
|
3211
|
-
var emailField = this.emailAddressForm.controls.email;
|
|
3212
|
-
if (this.emailAddressForm.valid) {
|
|
3213
|
-
if (!this.isEditOperationInRefundList) {
|
|
3214
|
-
this.assignContactDetails.emit({
|
|
3215
|
-
email: emailField.value,
|
|
3216
|
-
notification_type: 'EMAIL'
|
|
3217
|
-
});
|
|
3218
|
-
}
|
|
3219
|
-
else {
|
|
3220
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3221
|
-
email: emailField.value,
|
|
3222
|
-
notification_type: 'EMAIL'
|
|
3223
|
-
});
|
|
3224
|
-
}
|
|
3225
|
-
}
|
|
3226
|
-
else {
|
|
3227
|
-
if (emailField.value == '') {
|
|
3228
|
-
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3229
|
-
}
|
|
3230
|
-
if (emailField.value != '' && emailField.invalid) {
|
|
3231
|
-
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3232
|
-
}
|
|
3233
|
-
}
|
|
3234
|
-
}
|
|
3235
|
-
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
3236
|
-
this.postcodeValidation('FS');
|
|
3237
|
-
}
|
|
3238
|
-
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
3239
|
-
/** @type {?} */
|
|
3240
|
-
var fieldCtrls = this.manualAddressForm.controls;
|
|
3241
|
-
if (this.manualAddressForm.valid) {
|
|
3242
|
-
if (!this.isEditOperationInRefundList) {
|
|
3243
|
-
this.assignContactDetails.emit({
|
|
3244
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3245
|
-
city: fieldCtrls.townorcity.value,
|
|
3246
|
-
county: fieldCtrls.county.value,
|
|
3247
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3248
|
-
country: fieldCtrls.country.value,
|
|
3249
|
-
notification_type: 'LETTER'
|
|
3250
|
-
});
|
|
3251
|
-
}
|
|
3252
|
-
else {
|
|
3253
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3254
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3255
|
-
city: fieldCtrls.townorcity.value,
|
|
3256
|
-
county: fieldCtrls.county.value,
|
|
3257
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3258
|
-
country: fieldCtrls.country.value,
|
|
3259
|
-
notification_type: 'LETTER'
|
|
3260
|
-
});
|
|
3261
|
-
}
|
|
3262
|
-
}
|
|
3263
|
-
else {
|
|
3264
|
-
if (fieldCtrls.addressl1.value == '') {
|
|
3265
|
-
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
3266
|
-
}
|
|
3267
|
-
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
3268
|
-
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
3269
|
-
}
|
|
3270
|
-
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
3271
|
-
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
3272
|
-
}
|
|
3273
|
-
if (fieldCtrls.townorcity.value == '') {
|
|
3274
|
-
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
3275
|
-
}
|
|
3276
|
-
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
3277
|
-
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
3278
|
-
}
|
|
3279
|
-
if (fieldCtrls.county.value == '') {
|
|
3280
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
3281
|
-
}
|
|
3282
|
-
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
3283
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
3284
|
-
}
|
|
3285
|
-
if (fieldCtrls.mpostcode.value == '') {
|
|
3286
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
3287
|
-
}
|
|
3288
|
-
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
3289
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
3290
|
-
}
|
|
3291
|
-
if (fieldCtrls.country.value == '') {
|
|
3292
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
3293
|
-
}
|
|
3294
|
-
}
|
|
3295
|
-
}
|
|
3296
|
-
};
|
|
3297
|
-
/**
|
|
3298
|
-
* @param {?} str
|
|
3299
|
-
* @return {?}
|
|
3300
|
-
*/
|
|
3301
|
-
ContactDetailsComponent.prototype.postcodeValidation = /**
|
|
3302
|
-
* @param {?} str
|
|
3303
|
-
* @return {?}
|
|
3304
|
-
*/
|
|
3305
|
-
function (str) {
|
|
3306
|
-
var _this = this;
|
|
3307
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3308
|
-
/** @type {?} */
|
|
3309
|
-
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3310
|
-
if (this.postCodeForm.valid) {
|
|
3311
|
-
if (str === 'FA') {
|
|
3312
|
-
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe((/**
|
|
3313
|
-
* @param {?} refundsNotification
|
|
3314
|
-
* @return {?}
|
|
3315
|
-
*/
|
|
3316
|
-
function (refundsNotification) {
|
|
3317
|
-
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3318
|
-
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3319
|
-
if (!_this.isShowPickAddress) {
|
|
3320
|
-
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3321
|
-
}
|
|
3322
|
-
})),
|
|
3323
|
-
(/**
|
|
3324
|
-
* @param {?} error
|
|
3325
|
-
* @return {?}
|
|
3326
|
-
*/
|
|
3327
|
-
function (error) {
|
|
3328
|
-
_this.isShowPickAddress = false;
|
|
3329
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
3330
|
-
});
|
|
3331
|
-
}
|
|
3332
|
-
else if (str === 'FS') {
|
|
3333
|
-
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
3334
|
-
this.isAddressBoxEmpty = false;
|
|
3335
|
-
/** @type {?} */
|
|
3336
|
-
var addressLine = "";
|
|
3337
|
-
/** @type {?} */
|
|
3338
|
-
var addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
3339
|
-
for (var i = 0; i < addressArray.length - 2; i++) {
|
|
3340
|
-
addressLine += addressArray[i];
|
|
3341
|
-
}
|
|
3342
|
-
/** @type {?} */
|
|
3343
|
-
var addressObject = {
|
|
3344
|
-
address_line: addressLine,
|
|
3345
|
-
city: this.postcodeAddress.POST_TOWN,
|
|
3346
|
-
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
3347
|
-
postal_code: this.postcodeAddress.POSTCODE,
|
|
3348
|
-
country: 'United Kingdom',
|
|
3349
|
-
notification_type: 'LETTER'
|
|
3350
|
-
};
|
|
3351
|
-
if (!this.isEditOperationInRefundList) {
|
|
3352
|
-
this.assignContactDetails.emit(addressObject);
|
|
3353
|
-
}
|
|
3354
|
-
else {
|
|
3355
|
-
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
else {
|
|
3359
|
-
this.isAddressBoxEmpty = true;
|
|
3360
|
-
}
|
|
3361
|
-
}
|
|
3362
|
-
}
|
|
3363
|
-
else {
|
|
3364
|
-
if (postcodeField.value == '') {
|
|
3365
|
-
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3366
|
-
}
|
|
3367
|
-
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
3368
|
-
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3369
|
-
}
|
|
3370
|
-
}
|
|
3371
|
-
};
|
|
3372
|
-
/**
|
|
3373
|
-
* @param {?} event
|
|
3374
|
-
* @return {?}
|
|
3375
|
-
*/
|
|
3376
|
-
ContactDetailsComponent.prototype.redirection = /**
|
|
3377
|
-
* @param {?} event
|
|
3378
|
-
* @return {?}
|
|
3379
|
-
*/
|
|
3380
|
-
function (event) {
|
|
3381
|
-
this.redirectToIssueRefund.emit(event);
|
|
3382
|
-
};
|
|
3383
|
-
/**
|
|
3384
|
-
* @param {?} val
|
|
3385
|
-
* @param {?} field
|
|
3386
|
-
* @return {?}
|
|
3387
|
-
*/
|
|
3388
|
-
ContactDetailsComponent.prototype.resetForm = /**
|
|
3389
|
-
* @param {?} val
|
|
3390
|
-
* @param {?} field
|
|
3391
|
-
* @return {?}
|
|
3392
|
-
*/
|
|
3393
|
-
function (val, field) {
|
|
3394
|
-
if (field === 'email' || field === 'all') {
|
|
3395
|
-
this.isEmailEmpty = val[0];
|
|
3396
|
-
this.emailHasError = val[1];
|
|
3397
|
-
}
|
|
3398
|
-
if (field === 'postcode' || field === 'all') {
|
|
3399
|
-
this.isPostcodeEmpty = val[2];
|
|
3400
|
-
this.postcodeHasError = val[3];
|
|
3401
|
-
}
|
|
3402
|
-
if (field === 'address1' || field === 'all') {
|
|
3403
|
-
this.isaddressLine1Empty = val[4];
|
|
3404
|
-
this.addressLine1HasError = val[5];
|
|
3405
|
-
}
|
|
3406
|
-
if (field === 'address2' || field === 'all') {
|
|
3407
|
-
this.addressLine2HasError = val[6];
|
|
3408
|
-
}
|
|
3409
|
-
if (field === 'town' || field === 'all') {
|
|
3410
|
-
this.isTownOrCityEmpty = val[7];
|
|
3411
|
-
this.townOrCityHasError = val[8];
|
|
3412
|
-
}
|
|
3413
|
-
if (field === 'county' || field === 'all') {
|
|
3414
|
-
this.isCountyEmpty = val[9];
|
|
3415
|
-
this.countyHasError = val[10];
|
|
3416
|
-
}
|
|
3417
|
-
if (field === 'mpostcode' || field === 'all') {
|
|
3418
|
-
this.isMPostcodeEmpty = val[11];
|
|
3419
|
-
this.mpostcodeHasError = val[12];
|
|
3420
|
-
}
|
|
3421
|
-
if (field === 'country' || field === 'all') {
|
|
3422
|
-
this.isCountryEmpty = val[13];
|
|
3423
|
-
}
|
|
3424
|
-
};
|
|
3425
|
-
ContactDetailsComponent.decorators = [
|
|
3426
|
-
{ type: Component, args: [{
|
|
3427
|
-
selector: 'ccpay-contact-details',
|
|
3428
|
-
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>",
|
|
3429
|
-
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}"]
|
|
3430
|
-
}] }
|
|
3431
|
-
];
|
|
3432
|
-
/** @nocollapse */
|
|
3433
|
-
ContactDetailsComponent.ctorParameters = function () { return [
|
|
3434
|
-
{ type: FormBuilder },
|
|
3435
|
-
{ type: NotificationService },
|
|
3436
|
-
{ type: PaymentLibComponent }
|
|
3437
|
-
]; };
|
|
3438
|
-
ContactDetailsComponent.propDecorators = {
|
|
3439
|
-
isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
|
|
3440
|
-
isEditOperationInRefundList: [{ type: Input, args: ['isEditOperationInRefundList',] }],
|
|
3441
|
-
addressObj: [{ type: Input, args: ['addressObj',] }],
|
|
3442
|
-
assignContactDetails: [{ type: Output }],
|
|
3443
|
-
assignContactDetailsInFefundsList: [{ type: Output }],
|
|
3444
|
-
redirectToIssueRefund: [{ type: Output }]
|
|
3445
|
-
};
|
|
3446
|
-
return ContactDetailsComponent;
|
|
3447
|
-
}());
|
|
3448
|
-
|
|
3449
2912
|
/**
|
|
3450
2913
|
* @fileoverview added by tsickle
|
|
3451
2914
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3802,7 +3265,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3802
3265
|
this.viewStatus = 'main';
|
|
3803
3266
|
this.isRemoveBtnDisabled = false;
|
|
3804
3267
|
this.clAmountDue = 0;
|
|
3805
|
-
this.overPaymentAmount = 0;
|
|
3806
3268
|
this.isFeeRecordsExist = false;
|
|
3807
3269
|
this.isGrpOutstandingAmtPositive = false;
|
|
3808
3270
|
//Order changes
|
|
@@ -3908,7 +3370,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3908
3370
|
}
|
|
3909
3371
|
else {
|
|
3910
3372
|
this.serviceRequestValue = 'false';
|
|
3911
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3912
3373
|
}
|
|
3913
3374
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3914
3375
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -4125,7 +3586,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4125
3586
|
*/
|
|
4126
3587
|
function (fee) {
|
|
4127
3588
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4128
|
-
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
4129
3589
|
}));
|
|
4130
3590
|
}
|
|
4131
3591
|
if (paymentGroup.remissions) {
|
|
@@ -4138,16 +3598,11 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4138
3598
|
}));
|
|
4139
3599
|
}
|
|
4140
3600
|
if (paymentGroup.payments) {
|
|
4141
|
-
/** @type {?} */
|
|
4142
|
-
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4143
3601
|
paymentGroup.payments.forEach((/**
|
|
4144
3602
|
* @param {?} payment
|
|
4145
3603
|
* @return {?}
|
|
4146
3604
|
*/
|
|
4147
3605
|
function (payment) {
|
|
4148
|
-
if (isFeeOverPaymentExist_1) {
|
|
4149
|
-
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4150
|
-
}
|
|
4151
3606
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4152
3607
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4153
3608
|
}
|
|
@@ -4634,17 +4089,19 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4634
4089
|
*/
|
|
4635
4090
|
function (payment, remission, fees) {
|
|
4636
4091
|
var _this = this;
|
|
4637
|
-
this.
|
|
4092
|
+
this.viewStatus = 'addrefundforremission';
|
|
4093
|
+
this.payment = payment;
|
|
4094
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
4638
4095
|
* @param {?} paymentGroup
|
|
4639
4096
|
* @return {?}
|
|
4640
4097
|
*/
|
|
4641
4098
|
function (paymentGroup) {
|
|
4642
4099
|
_this.paymentGroup = paymentGroup;
|
|
4643
|
-
_this.paymentGroup.payments = paymentGroup.payments.filter((/**
|
|
4100
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
4644
4101
|
* @param {?} paymentGroupObj
|
|
4645
4102
|
* @return {?}
|
|
4646
4103
|
*/
|
|
4647
|
-
function (paymentGroupObj) { return paymentGroupObj.
|
|
4104
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
4648
4105
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4649
4106
|
_this.remissions = remission;
|
|
4650
4107
|
_this.remissionFeeAmt = fees.filter((/**
|
|
@@ -4652,7 +4109,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4652
4109
|
* @return {?}
|
|
4653
4110
|
*/
|
|
4654
4111
|
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4655
|
-
_this.viewStatus = 'addrefundforremission';
|
|
4656
4112
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4657
4113
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4658
4114
|
}), (/**
|
|
@@ -4944,21 +4400,16 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4944
4400
|
* @return {?}
|
|
4945
4401
|
*/
|
|
4946
4402
|
function (payment) {
|
|
4947
|
-
if (
|
|
4948
|
-
|
|
4403
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4404
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4405
|
+
this.isIssueRefunfBtnEnable = true;
|
|
4406
|
+
}
|
|
4407
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
4408
|
+
return true;
|
|
4949
4409
|
}
|
|
4950
4410
|
else {
|
|
4951
4411
|
return false;
|
|
4952
4412
|
}
|
|
4953
|
-
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4954
|
-
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4955
|
-
// this.isIssueRefunfBtnEnable = true;
|
|
4956
|
-
// }
|
|
4957
|
-
// if (this.isIssueRefunfBtnEnable) {
|
|
4958
|
-
// return true;
|
|
4959
|
-
// } else {
|
|
4960
|
-
// return false;
|
|
4961
|
-
// };
|
|
4962
4413
|
};
|
|
4963
4414
|
/**
|
|
4964
4415
|
* @return {?}
|
|
@@ -5010,7 +4461,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
5010
4461
|
CaseTransactionsComponent.decorators = [
|
|
5011
4462
|
{ type: Component, args: [{
|
|
5012
4463
|
selector: 'ccpay-case-transactions',
|
|
5013
|
-
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 [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n\n <div class=\"govuk-grid-column-full\">\n\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n\n <div>\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 </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\">\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 [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\">\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[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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",
|
|
4464
|
+
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 [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n\n <div class=\"govuk-grid-column-full\">\n\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n\n <div>\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\">\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 [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\">\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[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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",
|
|
5014
4465
|
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}"]
|
|
5015
4466
|
}] }
|
|
5016
4467
|
];
|
|
@@ -5025,8 +4476,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
5025
4476
|
]; };
|
|
5026
4477
|
CaseTransactionsComponent.propDecorators = {
|
|
5027
4478
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
5028
|
-
isTakePayment: [{ type: Input }]
|
|
5029
|
-
isFromServiceRequestPage: [{ type: Input }]
|
|
4479
|
+
isTakePayment: [{ type: Input }]
|
|
5030
4480
|
};
|
|
5031
4481
|
return CaseTransactionsComponent;
|
|
5032
4482
|
}());
|
|
@@ -5241,24 +4691,19 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5241
4691
|
if (fee.calculated_amount === 0) {
|
|
5242
4692
|
_this.isFeeAmountZero = true;
|
|
5243
4693
|
}
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
fee['remissions'] = rem;
|
|
5254
|
-
fees.push(fee);
|
|
5255
|
-
}
|
|
5256
|
-
}));
|
|
5257
|
-
if (!_this.isRemissionsMatch) {
|
|
4694
|
+
_this.isRemissionsMatch = false;
|
|
4695
|
+
paymentGroup.remissions.forEach((/**
|
|
4696
|
+
* @param {?} rem
|
|
4697
|
+
* @return {?}
|
|
4698
|
+
*/
|
|
4699
|
+
function (rem) {
|
|
4700
|
+
if (rem.fee_code === fee.code) {
|
|
4701
|
+
_this.isRemissionsMatch = true;
|
|
4702
|
+
fee['remissions'] = rem;
|
|
5258
4703
|
fees.push(fee);
|
|
5259
4704
|
}
|
|
5260
|
-
}
|
|
5261
|
-
|
|
4705
|
+
}));
|
|
4706
|
+
if (!_this.isRemissionsMatch) {
|
|
5262
4707
|
fees.push(fee);
|
|
5263
4708
|
}
|
|
5264
4709
|
}));
|
|
@@ -5456,7 +4901,7 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5456
4901
|
FeeSummaryComponent.decorators = [
|
|
5457
4902
|
{ type: Component, args: [{
|
|
5458
4903
|
selector: 'ccpay-fee-summary',
|
|
5459
|
-
template: "\n<div class=\"govuk-breadcrumbs\" *ngIf=\"isBackButtonEnable\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"!isTurnOff\">\n <a (click)=\"loadCaseTransactionPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isTurnOff\">\n <a (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n</div>\n<div class=\"fee-summary\" *ngIf=\"viewStatus === 'main'\">\n <main class=\"govuk-main-wrapper\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEESUMMARY'>\n <div class=\"summaryheader\">\n <h1 class=\"heading-large govuk-!-margin-top-3 govuk-!-margin-bottom-4\">Summary </h1>\n <p class=\"govuk-!-margin-top-5 caseref\">Case reference:{{ccdCaseNumber | ccdHyphens}}</p>\n </div>\n\n <!-- <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"heading-xlarge\">Fee Summary</h1>\n </div>\n\n\n \u00A0<div\u00A0class=\"govuk-grid-column-one-third\"\u00A0align=\"right\">\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<button\u00A0 *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[disabled]=\"isPaymentExist\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[ngClass]='isPaymentExist ?\u00A0\"button\u00A0button--disabled govuk-!-margin-right-1\"\u00A0:\u00A0\"button govuk-!-margin-right-1\"'>\n Add a new fee\n </button>\n\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"button\">Add a new fee</a>\n </div>\n </div> -->\n\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 Group 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=\"govuk-!-margin-top-3\">\n <table class=\"govuk-table govuk-!-margin-bottom-2\" *ngIf=\"!errorMessage && paymentGroup\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class600\">Description</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class60\">Quantity</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class80\"></th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class100\">Amount</th>\n </tr>\n </thead>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">{{ fee.description }}\n\n <span class=\"no-border\" *ngIf=\"(isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && !isTurnOff\">\n\n\n <a (click)=\"confirmRemoveFee(fee.id)\" *ngIf=\"(!isPaymentExist || !fee.remissions)\" [ngClass]='isPaymentExist || fee.remissions? \"disable-link\" : \"\"'> <br>Remove</a>\n </span>\n\n <span class=\"no-border\" *ngIf=\"(!isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && isTurnOff \">\n <a (click)=\"confirmRemoveFee(fee.id)\">Remove</a>\n </span>\n\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && !isPaymentExist && !isTurnOff\">\n Add help with fees or remission\n </a>\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && isTurnOff\">\n Add help with fees or remission\n </a>\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell\" *ngIf=\"fee.volume && fee.volume > 0\">\n {{ fee.volume }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\">1</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell alignright\">\n <br>\n <div *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\" class=\"govuk-table__cell_border\"> <br><br></div>\n </td>\n <td class=\"govuk-table__cell alignright\" >\n {{ fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_rmborder alignright\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </span>\n </td>\n\n\n </tr>\n <!-- <tr>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount ===''\">\n <div class=\"govuk-table__cell_border\"></div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\"></div>\n </td>\n <td>\n <br>\n <div class=\"govuk-table__cell_border\" style=\"text-align: right;\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </td>\n </tr> -->\n </tbody>\n </table>\n </div>\n <div class=\"addfee\">\n <button *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n [disabled]=\"isPaymentExist\"\n [ngClass]='isPaymentExist ? \"govuk-button govuk-button--secondary button--disabled\" : \"govuk-button govuk-button--secondary\"'>\n Add fee\n </button>\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-button govuk-button--secondary\">Add a new fee</a>\n <div class=\"feeAddButton\">\n <p class=\"paddigleft govuk-!-margin-top-2\">Total to pay: {{ outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</p>\n </div>\n </div>\n<!--\n <div class=\"govuk-form-group govuk-form-group--mg\" *ngIf=\"!bsPaymentDcnNumber\">\n <label class=\"govuk-label custom-govuk-label govuk-fieldset__heading--fz\" for=\"responsibleOffice\">\n <strong>What service is this fee for?</strong>\n </label>\n <select class=\"govuk-select govuk-select--custom\" id=\"responsibleOffice\" [(ngModel)]=\"service\" name=\"responsibleOffice\">\n <option value=\"\" selected='selected'>Please select</option>\n <option value=\"AA07\">Divorce</option>\n <option value=\"AA09\">Financial Remedy</option>\n <option value=\"AA08\">Probate</option>\n </select>\n </div> -->\n\n <div>\n <button *ngIf=\"!bsPaymentDcnNumber\" type=\"submit\" (click)=\"takePayment()\"\n [disabled]=\"totalFee <= 0 || isConfirmationBtnDisabled\"\n [ngClass]='totalFee <= 0 || !platForm || !service || isConfirmationBtnDisabled? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'>\n Take payment\n </button>\n <button *ngIf=\"bsPaymentDcnNumber\" type=\"button\" (click)=\"goToAllocatePage(outStandingAmount, isFeeAmountZero)\" class=\"button govuk-!-margin-right-1\">\n <span *ngIf=\"outStandingAmount > 0 || (isFeeAmountZero && outStandingAmount === 0)\">\n Allocate payment\n </span>\n <span *ngIf=\"outStandingAmount < 0 || (!isFeeAmountZero && outStandingAmount === 0)\">\n Continue\n </span>\n </button>\n </div>\n\n</main>\n</div>\n\n <ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_1'>\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)=\"cancelRemission()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n *ngIf =\"!isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(currentFee)\">\n Remove\n </button>\n </form>\n </div>\n </ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'add_remission' && currentFee\"\n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\"\n [fee]=\"currentFee\"\n [caseType]=\"caseType\"\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [paymentGroupRef]=\"paymentGroupRef\"\n (cancelRemission)=\"cancelRemission()\"></ccpay-add-remission>\n <input *ngIf=\"viewStatus === 'payhub_view' && payhubHtml\" #myInput type='hidden' id='iFrameDrivenImageValue' value='PCIPAL'>\n",
|
|
4904
|
+
template: "\n<div class=\"govuk-breadcrumbs\" *ngIf=\"isBackButtonEnable\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"!isTurnOff\">\n <a (click)=\"loadCaseTransactionPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isTurnOff\">\n <a (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n</div>\n<div class=\"fee-summary\" *ngIf=\"viewStatus === 'main'\">\n <main class=\"govuk-main-wrapper\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEESUMMARY'>\n <div class=\"summaryheader\">\n <h1 class=\"heading-large govuk-!-margin-top-3 govuk-!-margin-bottom-4\">Summary </h1>\n <p class=\"govuk-!-margin-top-5 caseref\">Case reference:{{ccdCaseNumber | ccdHyphens}}</p>\n </div>\n\n <!-- <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"heading-xlarge\">Fee Summary</h1>\n </div>\n\n\n \u00A0<div\u00A0class=\"govuk-grid-column-one-third\"\u00A0align=\"right\">\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<button\u00A0 *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[disabled]=\"isPaymentExist\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[ngClass]='isPaymentExist ?\u00A0\"button\u00A0button--disabled govuk-!-margin-right-1\"\u00A0:\u00A0\"button govuk-!-margin-right-1\"'>\n Add a new fee\n </button>\n\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"button\">Add a new fee</a>\n </div>\n </div> -->\n\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 Group details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <!-- <table class=\"govuk-table\" *ngIf=\"!errorMessage && paymentGroup\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\">Fee Code</th>\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\">Fee description</th>\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\">Remission code</th>\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n <td class=\"govuk-table__cell\">{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</td>\n <td class=\"govuk-table__cell grey-text\">\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Fee amount:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.fee_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"!isTurnOff\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='isPaymentExist || fee.remissions ? \"disable-link\" : \"\"'>remove fee</a>\n </td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"isTurnOff\">\n <a (click)=\"confirmRemoveFee(fee.id)\">remove fee</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"fee.volume && fee.volume > 0\">\n <td class=\"no-border grey-text subcolumn-1\">Volume:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.volume }}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Fee total:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Remission amount:</td>\n <td class=\"no-border subcolumn-2\">{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}</td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"!isTurnOff\">\n <a (click)=\"addRemission(fee)\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && !isPaymentExist\">\n Deduct remission\n </a>\n </td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"isTurnOff\">\n <a (click)=\"addRemission(fee)\" *ngIf=\"getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount\">\n Deduct remission\n </a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Total after remission:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\">\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"no-border govuk-!-font-weight-bold subcolumn-1\">Total payment</td>\n <td class=\"no-border subcolumn-2\">{{ totalAfterRemission - outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border govuk-!-font-weight-bold subcolumn-1\">Total outstanding amount</td>\n <td class=\"no-border subcolumn-2\">{{ outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!bsPaymentDcnNumber && isOldPcipalOff && isNewPcipalOff\">\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\">\n <div class=\"govuk-form-group govuk-form-group--mg\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <span class=\"govuk-fieldset__heading govuk-fieldset__heading--fz\">\n Which system are you using to take the payment?\n </span>\n </legend>\n <div class=\"govuk-radios govuk-radios--small\">\n <div class=\"govuk-radios__item\">\n <input id=\"changed-name\" class=\"govuk-radios__input\" [(ngModel)]=\"platForm\" type=\"radio\" aria-label=\"8x8\" value=\"8x8\">\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name\">\n 8x8\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input id=\"changed-name-2\" class=\"govuk-radios__input\" [(ngModel)]=\"platForm\" type=\"radio\" aria-label=\"Antenna\" value=\"Antenna\">\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name-2\">\n Antenna\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n </td>\n </tr>\n </tbody>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\">\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"no-border subcolumn-2\">\n <button *ngIf=\"!bsPaymentDcnNumber\" type=\"submit\" (click)=\"takePayment()\"\n [disabled]=\"totalFee <= 0 || !platForm || isConfirmationBtnDisabled\"\n [ngClass]='totalFee <= 0 || !platForm || isConfirmationBtnDisabled? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'>\n Take payment\n </button>\n <button *ngIf=\"bsPaymentDcnNumber\" type=\"button\" (click)=\"goToAllocatePage(outStandingAmount, isFeeAmountZero)\" class=\"button govuk-!-margin-right-1\">\n <span *ngIf=\"outStandingAmount > 0 || (isFeeAmountZero && outStandingAmount === 0)\">\n Allocate payment\n </span>\n <span *ngIf=\"outStandingAmount < 0 || (!isFeeAmountZero && outStandingAmount === 0)\">\n Continue\n </span>\n </button>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table> -->\n\n <div class=\"govuk-!-margin-top-3\">\n <table class=\"govuk-table govuk-!-margin-bottom-2\" *ngIf=\"!errorMessage && paymentGroup\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class600\">Description</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class60\">Quantity</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class80\"></th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class100\">Amount</th>\n </tr>\n </thead>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">{{ fee.description }}\n\n <span class=\"no-border\" *ngIf=\"(isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && !isTurnOff\">\n\n\n <a (click)=\"confirmRemoveFee(fee.id)\" *ngIf=\"(!isPaymentExist || !fee.remissions)\" [ngClass]='isPaymentExist || fee.remissions? \"disable-link\" : \"\"'> <br>Remove</a>\n </span>\n\n <span class=\"no-border\" *ngIf=\"(!isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && isTurnOff \">\n <a (click)=\"confirmRemoveFee(fee.id)\">Remove</a>\n </span>\n\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && !isPaymentExist && !isTurnOff\">\n Add help with fees or remission\n </a>\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && isTurnOff\">\n Add help with fees or remission\n </a>\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell\" *ngIf=\"fee.volume && fee.volume > 0\">\n {{ fee.volume }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\">1</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell alignright\">\n <br>\n <div *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\" class=\"govuk-table__cell_border\"> <br><br></div>\n </td>\n <td class=\"govuk-table__cell alignright\" >\n {{ fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_rmborder alignright\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </span>\n </td>\n\n\n </tr>\n <!-- <tr>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount ===''\">\n <div class=\"govuk-table__cell_border\"></div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\"></div>\n </td>\n <td>\n <br>\n <div class=\"govuk-table__cell_border\" style=\"text-align: right;\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </td>\n </tr> -->\n </tbody>\n </table>\n </div>\n <div class=\"addfee\">\n <button *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n [disabled]=\"isPaymentExist\"\n [ngClass]='isPaymentExist ? \"govuk-button govuk-button--secondary button--disabled\" : \"govuk-button govuk-button--secondary\"'>\n Add fee\n </button>\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-button govuk-button--secondary\">Add a new fee</a>\n <div class=\"feeAddButton\">\n <p class=\"paddigleft govuk-!-margin-top-2\">Total to pay: {{ outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</p>\n </div>\n </div>\n<!--\n <div class=\"govuk-form-group govuk-form-group--mg\" *ngIf=\"!bsPaymentDcnNumber\">\n <label class=\"govuk-label custom-govuk-label govuk-fieldset__heading--fz\" for=\"responsibleOffice\">\n <strong>What service is this fee for?</strong>\n </label>\n <select class=\"govuk-select govuk-select--custom\" id=\"responsibleOffice\" [(ngModel)]=\"service\" name=\"responsibleOffice\">\n <option value=\"\" selected='selected'>Please select</option>\n <option value=\"AA07\">Divorce</option>\n <option value=\"AA09\">Financial Remedy</option>\n <option value=\"AA08\">Probate</option>\n </select>\n </div> -->\n\n <div>\n <button *ngIf=\"!bsPaymentDcnNumber\" type=\"submit\" (click)=\"takePayment()\"\n [disabled]=\"totalFee <= 0 || isConfirmationBtnDisabled\"\n [ngClass]='totalFee <= 0 || !platForm || !service || isConfirmationBtnDisabled? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'>\n Take payment\n </button>\n <button *ngIf=\"bsPaymentDcnNumber\" type=\"button\" (click)=\"goToAllocatePage(outStandingAmount, isFeeAmountZero)\" class=\"button govuk-!-margin-right-1\">\n <span *ngIf=\"outStandingAmount > 0 || (isFeeAmountZero && outStandingAmount === 0)\">\n Allocate payment\n </span>\n <span *ngIf=\"outStandingAmount < 0 || (!isFeeAmountZero && outStandingAmount === 0)\">\n Continue\n </span>\n </button>\n </div>\n\n</main>\n</div>\n\n <ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_1'>\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)=\"cancelRemission()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n *ngIf =\"!isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(currentFee)\">\n Remove\n </button>\n </form>\n </div>\n </ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'add_remission' && currentFee\"\n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\"\n [fee]=\"currentFee\"\n [caseType]=\"caseType\"\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [paymentGroupRef]=\"paymentGroupRef\"\n (cancelRemission)=\"cancelRemission()\"></ccpay-add-remission>\n <input *ngIf=\"viewStatus === 'payhub_view' && payhubHtml\" #myInput type='hidden' id='iFrameDrivenImageValue' value='PCIPAL'>\n",
|
|
5460
4905
|
styles: [".fee-summary .grey-text{color:#6b7376;font-weight:500}.fee-summary .govuk-table{margin-bottom:0}.fee-summary .no-border{border:none;border-bottom:none}.fee-summary table td,.fee-summary table th{font-size:19px;vertical-align:top}.fee-summary table td .no-padding,.fee-summary table th .no-padding{padding:0}.fee-summary table td .subcolumn-1,.fee-summary table th .subcolumn-1{width:45%}.fee-summary table td .subcolumn-2,.fee-summary table th .subcolumn-2{width:25%;text-align:right}.fee-summary table td .subcolumn-3,.fee-summary table th .subcolumn-3{width:30%;text-align:center}table th{font-weight:700}.govuk-button-grb{padding-bottom:20px}.govuk-button-grb .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:10px}.govuk-form-group--mg{margin-top:10px!important}.govuk-fieldset__heading--fz{font-size:16px}.remissionDisable{color:grey;cursor:default}.heading-xlarge{margin:0 0 14px -20px}.govuk-select--custom{width:50%}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.govuk-table__cell_border,.govuk-table__header{padding:10px 0 0;border-top:1px solid #bfc1c3;text-align:left}.govuk-table__cell,.govuk-table__header{padding:10px 0}.govuk-table__cell_rmborder,.govuk-table__header{padding:10px 0 0;border-top:1px solid #bfc1c3;text-align:left}.govuk-table__fessheader{font-weight:700}.govuk-button{font-size:19px}.feeAddButton{padding-left:65rem}.remissionActive{padding-left:10px}.paddigleft{padding-left:2em}.govuk-back-link{font-size:1.5rem!important}.govuk-warning-text__text{font-size:19px}.summaryheader{display:flex;flex-direction:row;justify-content:space-between;width:960px}.class600{width:600px}.class60{width:60px}.class80{width:80px;text-align:right}.class100{width:100px;text-align:right}.alignright{text-align:right}.caseref{align-self:flex-end}.addfee{display:flex;flex-direction:row}"]
|
|
5461
4906
|
}] }
|
|
5462
4907
|
];
|
|
@@ -7312,14 +6757,25 @@ var AddRetroRemissionRequest = /** @class */ (function () {
|
|
|
7312
6757
|
return AddRetroRemissionRequest;
|
|
7313
6758
|
}());
|
|
7314
6759
|
|
|
6760
|
+
/**
|
|
6761
|
+
* @fileoverview added by tsickle
|
|
6762
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6763
|
+
*/
|
|
6764
|
+
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6765
|
+
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6766
|
+
this.payment_reference = payment_reference;
|
|
6767
|
+
this.refund_reason = refund_reason;
|
|
6768
|
+
}
|
|
6769
|
+
return PostRefundRetroRemission;
|
|
6770
|
+
}());
|
|
6771
|
+
|
|
7315
6772
|
/**
|
|
7316
6773
|
* @fileoverview added by tsickle
|
|
7317
6774
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7318
6775
|
*/
|
|
7319
6776
|
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
7320
|
-
function PostIssueRefundRetroRemission(remissionReference
|
|
6777
|
+
function PostIssueRefundRetroRemission(remissionReference) {
|
|
7321
6778
|
this.remissionReference = remissionReference;
|
|
7322
|
-
this.contact_details = contactDeatils;
|
|
7323
6779
|
}
|
|
7324
6780
|
return PostIssueRefundRetroRemission;
|
|
7325
6781
|
}());
|
|
@@ -7341,7 +6797,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7341
6797
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
7342
6798
|
this.refundListReason = new EventEmitter();
|
|
7343
6799
|
this.refundListAmount = new EventEmitter();
|
|
7344
|
-
this.refundFees = new EventEmitter();
|
|
7345
6800
|
this.refund = {
|
|
7346
6801
|
reason: {
|
|
7347
6802
|
duplicate: 'Duplicate payment',
|
|
@@ -7370,8 +6825,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7370
6825
|
this.isRemissionApplied = false;
|
|
7371
6826
|
// refundReasons: any[] = [];
|
|
7372
6827
|
this.commonRefundReasons = [];
|
|
7373
|
-
this.class = '';
|
|
7374
|
-
this.errorMsg = new Array();
|
|
7375
6828
|
}
|
|
7376
6829
|
/**
|
|
7377
6830
|
* @return {?}
|
|
@@ -7381,8 +6834,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7381
6834
|
*/
|
|
7382
6835
|
function () {
|
|
7383
6836
|
var _this = this;
|
|
7384
|
-
this.errorMessage = '';
|
|
7385
|
-
this.errorMsg = [];
|
|
7386
6837
|
this.default = 'Select a different reason';
|
|
7387
6838
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
7388
6839
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -7394,7 +6845,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7394
6845
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
7395
6846
|
}
|
|
7396
6847
|
if (this.payment) {
|
|
7397
|
-
this.paymentReference = this.payment.reference;
|
|
7398
6848
|
this.remessionPayment = this.payment;
|
|
7399
6849
|
if (this.payment.status === 'Success') {
|
|
7400
6850
|
this.isPaymentSuccess = true;
|
|
@@ -7413,73 +6863,15 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7413
6863
|
])),
|
|
7414
6864
|
refundReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7415
6865
|
refundDDReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7416
|
-
reason: new FormControl()
|
|
7417
|
-
feeAmount: new FormControl(),
|
|
7418
|
-
feesList: this.formBuilder.array([])
|
|
6866
|
+
reason: new FormControl()
|
|
7419
6867
|
});
|
|
7420
6868
|
/** @type {?} */
|
|
7421
6869
|
var remissionctrls = this.remissionForm.controls;
|
|
7422
6870
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7423
|
-
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
7424
|
-
this.paymentReference = this.refundPaymentReference;
|
|
7425
|
-
}
|
|
7426
|
-
else {
|
|
7427
|
-
this.paymentReference = (this.payment !== undefined) ? this.payment.reference : '';
|
|
7428
|
-
}
|
|
7429
|
-
if (this.isFromServiceRequestPage) {
|
|
7430
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe((/**
|
|
7431
|
-
* @param {?} paymentGroup
|
|
7432
|
-
* @return {?}
|
|
7433
|
-
*/
|
|
7434
|
-
function (paymentGroup) {
|
|
7435
|
-
/** @type {?} */
|
|
7436
|
-
var fees = [];
|
|
7437
|
-
paymentGroup.fees.forEach((/**
|
|
7438
|
-
* @param {?} fee
|
|
7439
|
-
* @return {?}
|
|
7440
|
-
*/
|
|
7441
|
-
function (fee) {
|
|
7442
|
-
_this.isRemissionsMatch = false;
|
|
7443
|
-
paymentGroup.remissions.forEach((/**
|
|
7444
|
-
* @param {?} rem
|
|
7445
|
-
* @return {?}
|
|
7446
|
-
*/
|
|
7447
|
-
function (rem) {
|
|
7448
|
-
if (rem.fee_code === fee.code) {
|
|
7449
|
-
_this.isRemissionsMatch = true;
|
|
7450
|
-
fee['remissions'] = rem;
|
|
7451
|
-
fees.push(fee);
|
|
7452
|
-
}
|
|
7453
|
-
}));
|
|
7454
|
-
if (!_this.isRemissionsMatch) {
|
|
7455
|
-
fees.push(fee);
|
|
7456
|
-
}
|
|
7457
|
-
}));
|
|
7458
|
-
paymentGroup.fees = fees;
|
|
7459
|
-
_this.paymentFees = fees;
|
|
7460
|
-
_this.fees = fees;
|
|
7461
|
-
_this.paymentGroup = paymentGroup;
|
|
7462
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
7463
|
-
* @param {?} paymentGroupObj
|
|
7464
|
-
* @return {?}
|
|
7465
|
-
*/
|
|
7466
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7467
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7468
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7469
|
-
_this.refundFeesList();
|
|
7470
|
-
}), (/**
|
|
7471
|
-
* @param {?} error
|
|
7472
|
-
* @return {?}
|
|
7473
|
-
*/
|
|
7474
|
-
function (error) { return _this.errorMessage = error; }));
|
|
7475
|
-
}
|
|
7476
|
-
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7477
|
-
this.refundFeesList();
|
|
7478
|
-
}
|
|
7479
6871
|
if (this.viewCompStatus === '') {
|
|
7480
6872
|
this.viewStatus = 'main';
|
|
7481
6873
|
}
|
|
7482
|
-
if (this.viewCompStatus === '
|
|
6874
|
+
if (this.viewCompStatus === 'issuerefund') {
|
|
7483
6875
|
this.refundService.getRefundReasons().subscribe((/**
|
|
7484
6876
|
* @param {?} refundReasons
|
|
7485
6877
|
* @return {?}
|
|
@@ -7494,7 +6886,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7494
6886
|
* @param {?} data
|
|
7495
6887
|
* @return {?}
|
|
7496
6888
|
*/
|
|
7497
|
-
function (data) { return data.name !== 'Retrospective remission'
|
|
6889
|
+
function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7498
6890
|
_this.cd.detectChanges();
|
|
7499
6891
|
_this.commonRefundReasons = refundReasons.filter((/**
|
|
7500
6892
|
* @param {?} data
|
|
@@ -7509,166 +6901,10 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7509
6901
|
function (a, b) { return a.toString().localeCompare(b); }));
|
|
7510
6902
|
_this.cd.detectChanges();
|
|
7511
6903
|
}));
|
|
7512
|
-
this.refundReason = this.changeRefundReason;
|
|
7513
6904
|
}
|
|
7514
6905
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
7515
6906
|
this.viewStatus = 'processretroremissonpage';
|
|
7516
6907
|
}
|
|
7517
|
-
if (this.orderDetail !== undefined) {
|
|
7518
|
-
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
|
|
7519
|
-
* @param {?} paymentGroup
|
|
7520
|
-
* @return {?}
|
|
7521
|
-
*/
|
|
7522
|
-
function (paymentGroup) {
|
|
7523
|
-
_this.fees = paymentGroup.fees;
|
|
7524
|
-
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7525
|
-
}), (/**
|
|
7526
|
-
* @param {?} error
|
|
7527
|
-
* @return {?}
|
|
7528
|
-
*/
|
|
7529
|
-
function (error) { return _this.errorMessage = error; }));
|
|
7530
|
-
}
|
|
7531
|
-
};
|
|
7532
|
-
/**
|
|
7533
|
-
* @return {?}
|
|
7534
|
-
*/
|
|
7535
|
-
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7536
|
-
* @return {?}
|
|
7537
|
-
*/
|
|
7538
|
-
function () {
|
|
7539
|
-
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7540
|
-
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7541
|
-
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7542
|
-
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7543
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
7544
|
-
};
|
|
7545
|
-
/**
|
|
7546
|
-
* @return {?}
|
|
7547
|
-
*/
|
|
7548
|
-
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7549
|
-
* @return {?}
|
|
7550
|
-
*/
|
|
7551
|
-
function () {
|
|
7552
|
-
/** @type {?} */
|
|
7553
|
-
var creds = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
7554
|
-
// if(creds.controls.length > 0) {
|
|
7555
|
-
for (var i = 0; i < this.fees.length; i++) {
|
|
7556
|
-
creds.push(this.formBuilder.group({
|
|
7557
|
-
id: this.fees[i].id,
|
|
7558
|
-
code: this.fees[i].code,
|
|
7559
|
-
volume: this.fees[i].volume,
|
|
7560
|
-
calculated_amount: this.fees[i].calculated_amount,
|
|
7561
|
-
apportion_amount: this.fees[i].apportion_amount,
|
|
7562
|
-
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7563
|
-
description: this.fees[i].description,
|
|
7564
|
-
net_amount: this.fees[i].net_amount,
|
|
7565
|
-
version: this.fees[i].version,
|
|
7566
|
-
refund_amount: [''],
|
|
7567
|
-
selected: [''],
|
|
7568
|
-
updated_volume: this.fees[i].volume
|
|
7569
|
-
}));
|
|
7570
|
-
}
|
|
7571
|
-
this.cd.detectChanges();
|
|
7572
|
-
//}
|
|
7573
|
-
};
|
|
7574
|
-
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7575
|
-
get: /**
|
|
7576
|
-
* @return {?}
|
|
7577
|
-
*/
|
|
7578
|
-
function () {
|
|
7579
|
-
/** @type {?} */
|
|
7580
|
-
var dd = (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
7581
|
-
return (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
7582
|
-
},
|
|
7583
|
-
enumerable: true,
|
|
7584
|
-
configurable: true
|
|
7585
|
-
});
|
|
7586
|
-
/**
|
|
7587
|
-
* @return {?}
|
|
7588
|
-
*/
|
|
7589
|
-
AddRemissionComponent.prototype.noneSelected = /**
|
|
7590
|
-
* @return {?}
|
|
7591
|
-
*/
|
|
7592
|
-
function () {
|
|
7593
|
-
if (this.isFullyRefund) {
|
|
7594
|
-
return false;
|
|
7595
|
-
}
|
|
7596
|
-
else {
|
|
7597
|
-
if (!this.feesList.controls.some((/**
|
|
7598
|
-
* @param {?} item
|
|
7599
|
-
* @return {?}
|
|
7600
|
-
*/
|
|
7601
|
-
function (item) { return item.get('selected').value === true; }))) {
|
|
7602
|
-
this.errorMsg = [];
|
|
7603
|
-
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
7604
|
-
* @param {?} el
|
|
7605
|
-
* @return {?}
|
|
7606
|
-
*/
|
|
7607
|
-
function (el) {
|
|
7608
|
-
el.classList.remove('inline-error-class');
|
|
7609
|
-
}));
|
|
7610
|
-
}
|
|
7611
|
-
return !this.feesList.controls.some((/**
|
|
7612
|
-
* @param {?} item
|
|
7613
|
-
* @return {?}
|
|
7614
|
-
*/
|
|
7615
|
-
function (item) { return item.get('selected').value === true; }));
|
|
7616
|
-
}
|
|
7617
|
-
};
|
|
7618
|
-
/**
|
|
7619
|
-
* @param {?} i
|
|
7620
|
-
* @param {?} v1
|
|
7621
|
-
* @param {?} AppAmt
|
|
7622
|
-
* @param {?} Volume
|
|
7623
|
-
* @return {?}
|
|
7624
|
-
*/
|
|
7625
|
-
AddRemissionComponent.prototype.check_en = /**
|
|
7626
|
-
* @param {?} i
|
|
7627
|
-
* @param {?} v1
|
|
7628
|
-
* @param {?} AppAmt
|
|
7629
|
-
* @param {?} Volume
|
|
7630
|
-
* @return {?}
|
|
7631
|
-
*/
|
|
7632
|
-
function (i, v1, AppAmt, Volume) {
|
|
7633
|
-
/** @type {?} */
|
|
7634
|
-
var ele = (/** @type {?} */ (document.getElementById(v1)));
|
|
7635
|
-
/** @type {?} */
|
|
7636
|
-
var formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
7637
|
-
if (ele.checked) {
|
|
7638
|
-
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7639
|
-
formArray.at(i).get('volume').setValue(Volume);
|
|
7640
|
-
formArray.at(i).get('selected').setValue(true);
|
|
7641
|
-
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7642
|
-
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7643
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7644
|
-
if (Volume === 1) {
|
|
7645
|
-
((/** @type {?} */ (document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7646
|
-
}
|
|
7647
|
-
else {
|
|
7648
|
-
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7649
|
-
}
|
|
7650
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7651
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7652
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7653
|
-
}
|
|
7654
|
-
this.cd.detectChanges();
|
|
7655
|
-
}
|
|
7656
|
-
else {
|
|
7657
|
-
this.errorMsg = [];
|
|
7658
|
-
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7659
|
-
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7660
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7661
|
-
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7662
|
-
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7663
|
-
if (Volume > 1) {
|
|
7664
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7665
|
-
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7666
|
-
}
|
|
7667
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7668
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7669
|
-
}
|
|
7670
|
-
this.cd.detectChanges();
|
|
7671
|
-
}
|
|
7672
6908
|
};
|
|
7673
6909
|
/**
|
|
7674
6910
|
* @return {?}
|
|
@@ -7794,8 +7030,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7794
7030
|
*/
|
|
7795
7031
|
function () {
|
|
7796
7032
|
this.errorMessage = false;
|
|
7797
|
-
// this.isFromCheckAnsPage = true;
|
|
7798
|
-
this.errorMsg = [];
|
|
7799
7033
|
this.viewStatus = '';
|
|
7800
7034
|
this.isRefundRemission = false;
|
|
7801
7035
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -7808,14 +7042,8 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7808
7042
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
7809
7043
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
7810
7044
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
this.viewStatus = "processretroremissonpage";
|
|
7814
|
-
}
|
|
7815
|
-
else {
|
|
7816
|
-
this.viewCompStatus = '';
|
|
7817
|
-
this.viewStatus = 'checkretroremissionpage';
|
|
7818
|
-
}
|
|
7045
|
+
this.viewCompStatus = '';
|
|
7046
|
+
this.viewStatus = "processretroremissonpage";
|
|
7819
7047
|
}
|
|
7820
7048
|
else {
|
|
7821
7049
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -7846,8 +7074,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7846
7074
|
*/
|
|
7847
7075
|
function () {
|
|
7848
7076
|
this.errorMessage = false;
|
|
7849
|
-
this.isFromCheckAnsPage = false;
|
|
7850
|
-
this.errorMsg = [];
|
|
7851
7077
|
if (this.isRefundRemission) {
|
|
7852
7078
|
this.paymentLibComponent.iscancelClicked = true;
|
|
7853
7079
|
this.refundListAmount.emit();
|
|
@@ -7865,7 +7091,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7865
7091
|
this.viewCompStatus = "addremission";
|
|
7866
7092
|
this.isRefundRemission = true;
|
|
7867
7093
|
this.errorMessage = '';
|
|
7868
|
-
this.errorMsg = [];
|
|
7869
7094
|
if (this.isFromPaymentDetailPage) {
|
|
7870
7095
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7871
7096
|
}
|
|
@@ -7918,19 +7143,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7918
7143
|
//}
|
|
7919
7144
|
}
|
|
7920
7145
|
};
|
|
7921
|
-
/**
|
|
7922
|
-
* @return {?}
|
|
7923
|
-
*/
|
|
7924
|
-
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7925
|
-
* @return {?}
|
|
7926
|
-
*/
|
|
7927
|
-
function () {
|
|
7928
|
-
this.isFromCheckAnsPage = false;
|
|
7929
|
-
this.viewStatus = 'processretroremissonpage';
|
|
7930
|
-
this.viewCompStatus = '';
|
|
7931
|
-
// this.isRefundRemission = true;
|
|
7932
|
-
this.errorMessage = '';
|
|
7933
|
-
};
|
|
7934
7146
|
/**
|
|
7935
7147
|
* @return {?}
|
|
7936
7148
|
*/
|
|
@@ -7938,30 +7150,10 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7938
7150
|
* @return {?}
|
|
7939
7151
|
*/
|
|
7940
7152
|
function () {
|
|
7941
|
-
this.isFromCheckAnsPage = true;
|
|
7942
7153
|
this.viewStatus = '';
|
|
7943
7154
|
this.viewCompStatus = 'addremission';
|
|
7944
7155
|
this.isRefundRemission = true;
|
|
7945
7156
|
this.errorMessage = '';
|
|
7946
|
-
this.errorMsg = [];
|
|
7947
|
-
};
|
|
7948
|
-
/**
|
|
7949
|
-
* @param {?=} note
|
|
7950
|
-
* @return {?}
|
|
7951
|
-
*/
|
|
7952
|
-
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7953
|
-
* @param {?=} note
|
|
7954
|
-
* @return {?}
|
|
7955
|
-
*/
|
|
7956
|
-
function (note) {
|
|
7957
|
-
if (note) {
|
|
7958
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7959
|
-
}
|
|
7960
|
-
this.isFromCheckAnsPage = true;
|
|
7961
|
-
this.viewStatus = 'remissionAddressPage';
|
|
7962
|
-
this.viewCompStatus = '';
|
|
7963
|
-
this.isRefundRemission = true;
|
|
7964
|
-
this.errorMessage = '';
|
|
7965
7157
|
};
|
|
7966
7158
|
/**
|
|
7967
7159
|
* @return {?}
|
|
@@ -8007,7 +7199,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8007
7199
|
function () {
|
|
8008
7200
|
var _this = this;
|
|
8009
7201
|
this.errorMessage = '';
|
|
8010
|
-
this.errorMsg = [];
|
|
8011
7202
|
this.isConfirmationBtnDisabled = true;
|
|
8012
7203
|
if (this.isRefundRemission) {
|
|
8013
7204
|
this.retroRemission = true;
|
|
@@ -8016,7 +7207,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8016
7207
|
this.remissionReference = this.remission.remission_reference;
|
|
8017
7208
|
}
|
|
8018
7209
|
/** @type {?} */
|
|
8019
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference
|
|
7210
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
8020
7211
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
|
|
8021
7212
|
* @param {?} response
|
|
8022
7213
|
* @return {?}
|
|
@@ -8054,14 +7245,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8054
7245
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
8055
7246
|
this.isFromRefundListPage = true;
|
|
8056
7247
|
}
|
|
8057
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8058
|
-
* @param {?} a
|
|
8059
|
-
* @param {?} c
|
|
8060
|
-
* @return {?}
|
|
8061
|
-
*/
|
|
8062
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8063
7248
|
this.errorMessage = '';
|
|
8064
|
-
this.errorMsg = [];
|
|
8065
7249
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
8066
7250
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
8067
7251
|
this.refundHasError = true;
|
|
@@ -8077,43 +7261,19 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8077
7261
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8078
7262
|
}
|
|
8079
7263
|
else {
|
|
8080
|
-
if (this.isFromCheckAnsPage) {
|
|
8081
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8082
|
-
* @param {?} a
|
|
8083
|
-
* @param {?} c
|
|
8084
|
-
* @return {?}
|
|
8085
|
-
*/
|
|
8086
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8087
|
-
this.isFromCheckAnsPage = false;
|
|
8088
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8089
|
-
this.viewCompStatus = '';
|
|
8090
|
-
return;
|
|
8091
|
-
}
|
|
8092
7264
|
this.viewCompStatus = '';
|
|
8093
|
-
this.viewStatus = '
|
|
7265
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
8094
7266
|
}
|
|
8095
7267
|
}
|
|
8096
7268
|
else {
|
|
8097
7269
|
this.displayRefundReason = this.selectedRefundReason;
|
|
8098
|
-
if (this.isFromCheckAnsPage) {
|
|
8099
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8100
|
-
* @param {?} a
|
|
8101
|
-
* @param {?} c
|
|
8102
|
-
* @return {?}
|
|
8103
|
-
*/
|
|
8104
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8105
|
-
this.isFromCheckAnsPage = false;
|
|
8106
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8107
|
-
this.viewCompStatus = '';
|
|
8108
|
-
return;
|
|
8109
|
-
}
|
|
8110
7270
|
if (this.isFromRefundListPage) {
|
|
8111
7271
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
8112
7272
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
8113
7273
|
}
|
|
8114
7274
|
else {
|
|
8115
7275
|
this.viewCompStatus = '';
|
|
8116
|
-
this.viewStatus = '
|
|
7276
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
8117
7277
|
}
|
|
8118
7278
|
}
|
|
8119
7279
|
};
|
|
@@ -8129,293 +7289,81 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8129
7289
|
this.viewStatus = '';
|
|
8130
7290
|
this.isRefundRemission = true;
|
|
8131
7291
|
this.errorMessage = false;
|
|
8132
|
-
this.errorMsg = [];
|
|
8133
7292
|
this.refundHasError = false;
|
|
8134
7293
|
this.isReasonEmpty = false;
|
|
8135
7294
|
};
|
|
8136
7295
|
/**
|
|
8137
|
-
* @param {?} isFullyRefund
|
|
8138
|
-
* @return {?}
|
|
8139
|
-
*/
|
|
8140
|
-
AddRemissionComponent.prototype.gotoIssuePage = /**
|
|
8141
|
-
* @param {?} isFullyRefund
|
|
8142
|
-
* @return {?}
|
|
8143
|
-
*/
|
|
8144
|
-
function (isFullyRefund) {
|
|
8145
|
-
if (isFullyRefund) {
|
|
8146
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8147
|
-
this.getRefundReasons();
|
|
8148
|
-
}
|
|
8149
|
-
else {
|
|
8150
|
-
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
8151
|
-
* @param {?} el
|
|
8152
|
-
* @return {?}
|
|
8153
|
-
*/
|
|
8154
|
-
function (el) {
|
|
8155
|
-
el.classList.remove('inline-error-class');
|
|
8156
|
-
}));
|
|
8157
|
-
/** @type {?} */
|
|
8158
|
-
var checkboxs = document.getElementsByTagName('input');
|
|
8159
|
-
this.errorMessage = '';
|
|
8160
|
-
this.totalRefundAmount = 0;
|
|
8161
|
-
this.errorMsg = [];
|
|
8162
|
-
for (var j = 0; j < checkboxs.length; j++) {
|
|
8163
|
-
if (checkboxs[j].checked) {
|
|
8164
|
-
this.fullRefund = false;
|
|
8165
|
-
/** @type {?} */
|
|
8166
|
-
var quantity = +((/** @type {?} */ (document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
8167
|
-
/** @type {?} */
|
|
8168
|
-
var amountToRefund = +((/** @type {?} */ (document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
8169
|
-
/** @type {?} */
|
|
8170
|
-
var apportionAmount = +((/** @type {?} */ (document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
8171
|
-
/** @type {?} */
|
|
8172
|
-
var calculatedAmount = +((/** @type {?} */ (document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8173
|
-
if (amountToRefund === apportionAmount) {
|
|
8174
|
-
this.fullRefund = true;
|
|
8175
|
-
}
|
|
8176
|
-
if (amountToRefund === 0) {
|
|
8177
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8178
|
-
this.errorMsg.push('You need to enter a refund amount');
|
|
8179
|
-
this.getErrorClass(this.elementId);
|
|
8180
|
-
}
|
|
8181
|
-
if (quantity === 1) {
|
|
8182
|
-
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8183
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8184
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8185
|
-
this.getErrorClass(this.elementId);
|
|
8186
|
-
}
|
|
8187
|
-
}
|
|
8188
|
-
if (quantity > 1) {
|
|
8189
|
-
this.quantityUpdated = +((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8190
|
-
if (this.quantityUpdated === 0) {
|
|
8191
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8192
|
-
this.errorMsg.push('You need to enter quantity');
|
|
8193
|
-
this.getErrorClass(this.elementId);
|
|
8194
|
-
}
|
|
8195
|
-
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8196
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8197
|
-
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8198
|
-
this.getErrorClass(this.elementId);
|
|
8199
|
-
}
|
|
8200
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8201
|
-
this.refundAmtForFeeVolumes = +((/** @type {?} */ (document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8202
|
-
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8203
|
-
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8204
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8205
|
-
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8206
|
-
this.getErrorClass(this.elementId);
|
|
8207
|
-
}
|
|
8208
|
-
}
|
|
8209
|
-
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8210
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8211
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8212
|
-
this.getErrorClass(this.elementId);
|
|
8213
|
-
}
|
|
8214
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8215
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8216
|
-
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8217
|
-
this.getErrorClass(this.elementId);
|
|
8218
|
-
}
|
|
8219
|
-
}
|
|
8220
|
-
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8221
|
-
}
|
|
8222
|
-
}
|
|
8223
|
-
if (this.errorMsg.length === 0) {
|
|
8224
|
-
if (this.isFromCheckAnsPage) {
|
|
8225
|
-
this.isFromCheckAnsPage = false;
|
|
8226
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8227
|
-
* @param {?} a
|
|
8228
|
-
* @param {?} c
|
|
8229
|
-
* @return {?}
|
|
8230
|
-
*/
|
|
8231
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8232
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8233
|
-
* @param {?} value
|
|
8234
|
-
* @return {?}
|
|
8235
|
-
*/
|
|
8236
|
-
function (value) { return value.selected === true; }));
|
|
8237
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8238
|
-
this.viewCompStatus = '';
|
|
8239
|
-
return;
|
|
8240
|
-
}
|
|
8241
|
-
else if (this.isFromRefundStatusPage) {
|
|
8242
|
-
/** @type {?} */
|
|
8243
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8244
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8245
|
-
* @param {?} a
|
|
8246
|
-
* @param {?} c
|
|
8247
|
-
* @return {?}
|
|
8248
|
-
*/
|
|
8249
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8250
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8251
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8252
|
-
* @param {?} value
|
|
8253
|
-
* @return {?}
|
|
8254
|
-
*/
|
|
8255
|
-
function (value) { return value.selected === true; }));
|
|
8256
|
-
this.refundFees.emit(this.fees);
|
|
8257
|
-
return;
|
|
8258
|
-
}
|
|
8259
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8260
|
-
this.getRefundReasons();
|
|
8261
|
-
}
|
|
8262
|
-
}
|
|
8263
|
-
};
|
|
8264
|
-
/**
|
|
8265
|
-
* @param {?} value
|
|
8266
|
-
* @param {?} amount
|
|
8267
|
-
* @param {?} volume
|
|
8268
|
-
* @param {?} i
|
|
8269
|
-
* @return {?}
|
|
8270
|
-
*/
|
|
8271
|
-
AddRemissionComponent.prototype.calAmtToRefund = /**
|
|
8272
|
-
* @param {?} value
|
|
8273
|
-
* @param {?} amount
|
|
8274
|
-
* @param {?} volume
|
|
8275
|
-
* @param {?} i
|
|
8276
|
-
* @return {?}
|
|
8277
|
-
*/
|
|
8278
|
-
function (value, amount, volume, i) {
|
|
8279
|
-
/** @type {?} */
|
|
8280
|
-
var volumeFee = amount / volume;
|
|
8281
|
-
/** @type {?} */
|
|
8282
|
-
var amtToRefund = value * volumeFee;
|
|
8283
|
-
/** @type {?} */
|
|
8284
|
-
var formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
8285
|
-
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
8286
|
-
// formArray.at(i).get('volume').setValue(value);
|
|
8287
|
-
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
8288
|
-
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
8289
|
-
// formControl.setValue(value);
|
|
8290
|
-
};
|
|
8291
|
-
/**
|
|
8292
|
-
* @param {?=} note
|
|
8293
7296
|
* @return {?}
|
|
8294
7297
|
*/
|
|
8295
|
-
AddRemissionComponent.prototype.
|
|
8296
|
-
* @param {?=} note
|
|
7298
|
+
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8297
7299
|
* @return {?}
|
|
8298
7300
|
*/
|
|
8299
|
-
function (
|
|
8300
|
-
|
|
8301
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8302
|
-
}
|
|
7301
|
+
function () {
|
|
7302
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
8303
7303
|
this.errorMessage = '';
|
|
8304
|
-
this.
|
|
8305
|
-
this.
|
|
7304
|
+
this.refundHasError = false;
|
|
7305
|
+
this.isReasonEmpty = false;
|
|
7306
|
+
this.viewCompStatus = 'issuerefund';
|
|
7307
|
+
this.viewStatus = '';
|
|
8306
7308
|
this.isRefundRemission = true;
|
|
8307
|
-
this.errorMessage = false;
|
|
8308
7309
|
};
|
|
8309
7310
|
/**
|
|
8310
7311
|
* @return {?}
|
|
8311
7312
|
*/
|
|
8312
|
-
AddRemissionComponent.prototype.
|
|
7313
|
+
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8313
7314
|
* @return {?}
|
|
8314
7315
|
*/
|
|
8315
7316
|
function () {
|
|
8316
7317
|
var _this = this;
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
*/
|
|
8322
|
-
function (refundReasons) {
|
|
8323
|
-
_this.refundReasons = refundReasons.filter((/**
|
|
8324
|
-
* @param {?} data
|
|
8325
|
-
* @return {?}
|
|
8326
|
-
*/
|
|
8327
|
-
function (data) { return data.recently_used === false; }));
|
|
8328
|
-
_this.refundReasons = _this.refundReasons.filter((/**
|
|
8329
|
-
* @param {?} data
|
|
8330
|
-
* @return {?}
|
|
8331
|
-
*/
|
|
8332
|
-
function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8333
|
-
_this.cd.detectChanges();
|
|
8334
|
-
_this.commonRefundReasons = refundReasons.filter((/**
|
|
8335
|
-
* @param {?} data
|
|
8336
|
-
* @return {?}
|
|
8337
|
-
*/
|
|
8338
|
-
function (data) { return data.recently_used === true; }));
|
|
8339
|
-
_this.commonRefundReasons.sort((/**
|
|
8340
|
-
* @param {?} a
|
|
8341
|
-
* @param {?} b
|
|
8342
|
-
* @return {?}
|
|
8343
|
-
*/
|
|
8344
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
8345
|
-
_this.cd.detectChanges();
|
|
8346
|
-
}));
|
|
7318
|
+
this.isConfirmationBtnDisabled = true;
|
|
7319
|
+
this.errorMessage = '';
|
|
7320
|
+
if (this.isRefundRemission) {
|
|
7321
|
+
this.retroRemission = true;
|
|
8347
7322
|
}
|
|
7323
|
+
/** @type {?} */
|
|
7324
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
7325
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
7326
|
+
* @param {?} response
|
|
7327
|
+
* @return {?}
|
|
7328
|
+
*/
|
|
7329
|
+
function (response) {
|
|
7330
|
+
if (JSON.parse(response)) {
|
|
7331
|
+
_this.viewCompStatus = '';
|
|
7332
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7333
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7334
|
+
if (JSON.parse(response).refund_amount) {
|
|
7335
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7336
|
+
}
|
|
7337
|
+
}
|
|
7338
|
+
}), (/**
|
|
7339
|
+
* @param {?} error
|
|
7340
|
+
* @return {?}
|
|
7341
|
+
*/
|
|
7342
|
+
function (error) {
|
|
7343
|
+
_this.errorMessage = error;
|
|
7344
|
+
_this.isConfirmationBtnDisabled = false;
|
|
7345
|
+
_this.cd.detectChanges();
|
|
7346
|
+
}));
|
|
8348
7347
|
};
|
|
7348
|
+
// Retro Refund
|
|
7349
|
+
// Retro Refund
|
|
8349
7350
|
/**
|
|
8350
|
-
* @param {?} elementId
|
|
8351
7351
|
* @return {?}
|
|
8352
7352
|
*/
|
|
8353
|
-
AddRemissionComponent.prototype.
|
|
8354
|
-
|
|
8355
|
-
* @return {?}
|
|
8356
|
-
*/
|
|
8357
|
-
function (elementId) {
|
|
8358
|
-
if (this.errorMsg.length > 0) {
|
|
8359
|
-
/** @type {?} */
|
|
8360
|
-
var ele = document.getElementById(elementId);
|
|
8361
|
-
ele.classList.add('inline-error-class');
|
|
8362
|
-
}
|
|
8363
|
-
};
|
|
7353
|
+
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7354
|
+
// Retro Refund
|
|
8364
7355
|
/**
|
|
8365
7356
|
* @return {?}
|
|
8366
7357
|
*/
|
|
8367
|
-
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8368
|
-
* @return {?}
|
|
8369
|
-
*/
|
|
8370
7358
|
function () {
|
|
8371
|
-
this.isFromCheckAnsPage = true;
|
|
8372
|
-
this.errorMessage = '';
|
|
8373
|
-
this.errorMsg = [];
|
|
8374
|
-
this.refundHasError = false;
|
|
8375
|
-
this.isReasonEmpty = false;
|
|
8376
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8377
|
-
this.viewStatus = '';
|
|
8378
|
-
this.isRefundRemission = true;
|
|
8379
|
-
};
|
|
8380
|
-
/**
|
|
8381
|
-
* @param {?} isFullyRefund
|
|
8382
|
-
* @return {?}
|
|
8383
|
-
*/
|
|
8384
|
-
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8385
|
-
* @param {?} isFullyRefund
|
|
8386
|
-
* @return {?}
|
|
8387
|
-
*/
|
|
8388
|
-
function (isFullyRefund) {
|
|
8389
7359
|
var _this = this;
|
|
8390
7360
|
this.isConfirmationBtnDisabled = true;
|
|
8391
7361
|
this.errorMessage = '';
|
|
8392
|
-
this.errorMsg = [];
|
|
8393
7362
|
if (this.isRefundRemission) {
|
|
8394
7363
|
this.retroRemission = true;
|
|
8395
7364
|
}
|
|
8396
|
-
if (isFullyRefund) {
|
|
8397
|
-
this.totalRefundAmount = this.payment.amount;
|
|
8398
|
-
}
|
|
8399
|
-
if (!isFullyRefund) {
|
|
8400
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8401
|
-
* @param {?} value
|
|
8402
|
-
* @return {?}
|
|
8403
|
-
*/
|
|
8404
|
-
function (value) { return value.selected === true; }));
|
|
8405
|
-
}
|
|
8406
|
-
this.fees = this.fees.map((/**
|
|
8407
|
-
* @param {?} obj
|
|
8408
|
-
* @return {?}
|
|
8409
|
-
*/
|
|
8410
|
-
function (obj) { return ({ id: obj.id,
|
|
8411
|
-
code: obj.code,
|
|
8412
|
-
version: obj.version,
|
|
8413
|
-
apportion_amount: obj.apportion_amount,
|
|
8414
|
-
calculated_amount: obj.calculated_amount,
|
|
8415
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8416
|
-
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount }); }));
|
|
8417
7365
|
/** @type {?} */
|
|
8418
|
-
var requestBody = new PostRefundRetroRemission(this.
|
|
7366
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
8419
7367
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
8420
7368
|
* @param {?} response
|
|
8421
7369
|
* @return {?}
|
|
@@ -8423,7 +7371,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8423
7371
|
function (response) {
|
|
8424
7372
|
if (JSON.parse(response)) {
|
|
8425
7373
|
_this.viewCompStatus = '';
|
|
8426
|
-
_this.viewStatus = '
|
|
7374
|
+
_this.viewStatus = 'retrorefundconfirmationpage';
|
|
8427
7375
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
8428
7376
|
if (JSON.parse(response).refund_amount) {
|
|
8429
7377
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -8436,101 +7384,14 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8436
7384
|
function (error) {
|
|
8437
7385
|
_this.errorMessage = error;
|
|
8438
7386
|
_this.isConfirmationBtnDisabled = false;
|
|
8439
|
-
_this.cd.detectChanges();
|
|
8440
7387
|
}));
|
|
8441
7388
|
};
|
|
8442
|
-
/**
|
|
8443
|
-
* @return {?}
|
|
8444
|
-
*/
|
|
8445
|
-
AddRemissionComponent.prototype.gotoRefundReasonPage = /**
|
|
8446
|
-
* @return {?}
|
|
8447
|
-
*/
|
|
8448
|
-
function () {
|
|
8449
|
-
this.viewStatus = '';
|
|
8450
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8451
|
-
};
|
|
8452
|
-
// Retro Refund
|
|
8453
|
-
// confirmRetroRefund() {
|
|
8454
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8455
|
-
// this.errorMessage = '';
|
|
8456
|
-
// this.errorMsg = [];
|
|
8457
|
-
// if( this.isRefundRemission) {
|
|
8458
|
-
// this.retroRemission = true;
|
|
8459
|
-
// }
|
|
8460
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8461
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8462
|
-
// response => {
|
|
8463
|
-
// if (JSON.parse(response)) {
|
|
8464
|
-
// this.viewCompStatus = '';
|
|
8465
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8466
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8467
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8468
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8469
|
-
// }
|
|
8470
|
-
// }
|
|
8471
|
-
// },
|
|
8472
|
-
// (error: any) => {
|
|
8473
|
-
// this.errorMessage = error;
|
|
8474
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8475
|
-
// });
|
|
8476
|
-
// }
|
|
8477
|
-
// Retro Refund
|
|
8478
|
-
// confirmRetroRefund() {
|
|
8479
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8480
|
-
// this.errorMessage = '';
|
|
8481
|
-
// this.errorMsg = [];
|
|
8482
|
-
// if( this.isRefundRemission) {
|
|
8483
|
-
// this.retroRemission = true;
|
|
8484
|
-
// }
|
|
8485
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8486
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8487
|
-
// response => {
|
|
8488
|
-
// if (JSON.parse(response)) {
|
|
8489
|
-
// this.viewCompStatus = '';
|
|
8490
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8491
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8492
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8493
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8494
|
-
// }
|
|
8495
|
-
// }
|
|
8496
|
-
// },
|
|
8497
|
-
// (error: any) => {
|
|
8498
|
-
// this.errorMessage = error;
|
|
8499
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8500
|
-
// });
|
|
8501
|
-
// }
|
|
8502
7389
|
/**
|
|
8503
7390
|
* @param {?} key
|
|
8504
7391
|
* @param {?} value
|
|
8505
7392
|
* @return {?}
|
|
8506
7393
|
*/
|
|
8507
|
-
AddRemissionComponent.prototype.selectRadioButton =
|
|
8508
|
-
// Retro Refund
|
|
8509
|
-
// confirmRetroRefund() {
|
|
8510
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8511
|
-
// this.errorMessage = '';
|
|
8512
|
-
// this.errorMsg = [];
|
|
8513
|
-
// if( this.isRefundRemission) {
|
|
8514
|
-
// this.retroRemission = true;
|
|
8515
|
-
// }
|
|
8516
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8517
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8518
|
-
// response => {
|
|
8519
|
-
// if (JSON.parse(response)) {
|
|
8520
|
-
// this.viewCompStatus = '';
|
|
8521
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8522
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8523
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8524
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8525
|
-
// }
|
|
8526
|
-
// }
|
|
8527
|
-
// },
|
|
8528
|
-
// (error: any) => {
|
|
8529
|
-
// this.errorMessage = error;
|
|
8530
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8531
|
-
// });
|
|
8532
|
-
// }
|
|
8533
|
-
/**
|
|
7394
|
+
AddRemissionComponent.prototype.selectRadioButton = /**
|
|
8534
7395
|
* @param {?} key
|
|
8535
7396
|
* @param {?} value
|
|
8536
7397
|
* @return {?}
|
|
@@ -8543,7 +7404,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8543
7404
|
remissionctrls['reason'].reset();
|
|
8544
7405
|
this.isRefundReasonsSelected = true;
|
|
8545
7406
|
this.errorMessage = false;
|
|
8546
|
-
this.errorMsg = [];
|
|
8547
7407
|
this.isReasonEmpty = false;
|
|
8548
7408
|
this.showReasonText = false;
|
|
8549
7409
|
this.refundHasError = false;
|
|
@@ -8578,38 +7438,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8578
7438
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
8579
7439
|
}
|
|
8580
7440
|
};
|
|
8581
|
-
/**
|
|
8582
|
-
* @param {?} obj
|
|
8583
|
-
* @param {?} type
|
|
8584
|
-
* @return {?}
|
|
8585
|
-
*/
|
|
8586
|
-
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8587
|
-
* @param {?} obj
|
|
8588
|
-
* @param {?} type
|
|
8589
|
-
* @return {?}
|
|
8590
|
-
*/
|
|
8591
|
-
function (obj, type) {
|
|
8592
|
-
this.contactDetailsObj = obj;
|
|
8593
|
-
this.viewCompStatus = '';
|
|
8594
|
-
this.viewStatus = type;
|
|
8595
|
-
};
|
|
8596
|
-
/**
|
|
8597
|
-
* @return {?}
|
|
8598
|
-
*/
|
|
8599
|
-
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8600
|
-
* @return {?}
|
|
8601
|
-
*/
|
|
8602
|
-
function () {
|
|
8603
|
-
if (this.isFromRefundStatusPage) {
|
|
8604
|
-
/** @type {?} */
|
|
8605
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8606
|
-
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8607
|
-
return;
|
|
8608
|
-
}
|
|
8609
|
-
this.refundHasError = false;
|
|
8610
|
-
this.viewCompStatus = 'issuerefund';
|
|
8611
|
-
this.viewStatus = '';
|
|
8612
|
-
};
|
|
8613
7441
|
/**
|
|
8614
7442
|
* @param {?} event
|
|
8615
7443
|
* @return {?}
|
|
@@ -8621,21 +7449,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8621
7449
|
function (event) {
|
|
8622
7450
|
var _this = this;
|
|
8623
7451
|
this.errorMessage = '';
|
|
8624
|
-
this.errorMsg = [];
|
|
8625
|
-
this.isFromCheckAnsPage = false;
|
|
8626
7452
|
event.preventDefault();
|
|
8627
|
-
if (this.isFromRefundStatusPage) {
|
|
8628
|
-
/** @type {?} */
|
|
8629
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8630
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8631
|
-
* @param {?} a
|
|
8632
|
-
* @param {?} c
|
|
8633
|
-
* @return {?}
|
|
8634
|
-
*/
|
|
8635
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8636
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8637
|
-
return;
|
|
8638
|
-
}
|
|
8639
7453
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
8640
7454
|
this.viewStatus = 'order-full-view';
|
|
8641
7455
|
this.viewCompStatus = '';
|
|
@@ -8670,40 +7484,64 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8670
7484
|
}
|
|
8671
7485
|
this.viewCompStatus = '';
|
|
8672
7486
|
}
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
this.
|
|
8687
|
-
this.
|
|
8688
|
-
this.
|
|
8689
|
-
|
|
8690
|
-
this.
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
this.
|
|
8703
|
-
this.
|
|
8704
|
-
this.
|
|
8705
|
-
this.
|
|
8706
|
-
this.
|
|
7487
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7488
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7489
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7490
|
+
// }
|
|
7491
|
+
// if (this.isFromServiceRequestPage) {
|
|
7492
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7493
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7494
|
+
// this.viewStatus = 'main'
|
|
7495
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7496
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7497
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7498
|
+
// }
|
|
7499
|
+
// if ( this.isFromRefundListPage ) {
|
|
7500
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7501
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7502
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7503
|
+
// }
|
|
7504
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7505
|
+
// if(this.payment) {
|
|
7506
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7507
|
+
// }
|
|
7508
|
+
// if (this.isFromServiceRequestPage) {
|
|
7509
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7510
|
+
// } else {
|
|
7511
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7512
|
+
// }
|
|
7513
|
+
// this.errorMessage = '';
|
|
7514
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7515
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7516
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7517
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7518
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7519
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7520
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7521
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7522
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7523
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7524
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7525
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7526
|
+
// }
|
|
7527
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7528
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7529
|
+
// }
|
|
7530
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7531
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7532
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7533
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7534
|
+
// this.router.navigateByUrl(url);
|
|
7535
|
+
// } else {
|
|
7536
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7537
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7538
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7539
|
+
// this.router.navigateByUrl(url);
|
|
7540
|
+
// }
|
|
7541
|
+
// } else {
|
|
7542
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7543
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7544
|
+
// }
|
|
8707
7545
|
};
|
|
8708
7546
|
/**
|
|
8709
7547
|
* @return {?}
|
|
@@ -8714,7 +7552,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8714
7552
|
function () {
|
|
8715
7553
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8716
7554
|
this.errorMessage = '';
|
|
8717
|
-
this.errorMsg = [];
|
|
8718
7555
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8719
7556
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8720
7557
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -8745,35 +7582,28 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8745
7582
|
*/
|
|
8746
7583
|
function (event) {
|
|
8747
7584
|
event.preventDefault();
|
|
8748
|
-
this.
|
|
8749
|
-
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8750
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8751
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8752
|
-
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8753
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8754
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
8755
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
7585
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8756
7586
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8757
7587
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8758
7588
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8759
7589
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8760
7590
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8761
7591
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8762
|
-
this.
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
partUrl
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
this.
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
8776
|
-
this.router.navigateByUrl(url);
|
|
7592
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7593
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7594
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7595
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7596
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7597
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7598
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7599
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7600
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7601
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7602
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7603
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7604
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7605
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7606
|
+
// this.router.navigateByUrl(url);
|
|
8777
7607
|
}
|
|
8778
7608
|
else {
|
|
8779
7609
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -8838,17 +7668,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8838
7668
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8839
7669
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8840
7670
|
};
|
|
8841
|
-
/**
|
|
8842
|
-
* @return {?}
|
|
8843
|
-
*/
|
|
8844
|
-
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8845
|
-
* @return {?}
|
|
8846
|
-
*/
|
|
8847
|
-
function () {
|
|
8848
|
-
this.isFromCheckAnsPage = true;
|
|
8849
|
-
this.viewCompStatus = 'issuerefund';
|
|
8850
|
-
this.viewStatus = '';
|
|
8851
|
-
};
|
|
8852
7671
|
/**
|
|
8853
7672
|
* @param {?} currency
|
|
8854
7673
|
* @return {?}
|
|
@@ -8866,8 +7685,8 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8866
7685
|
AddRemissionComponent.decorators = [
|
|
8867
7686
|
{ type: Component, args: [{
|
|
8868
7687
|
selector: 'ccpay-add-remission',
|
|
8869
|
-
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 [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>",
|
|
8870
|
-
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 .
|
|
7688
|
+
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 [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",
|
|
7689
|
+
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}"]
|
|
8871
7690
|
}] }
|
|
8872
7691
|
];
|
|
8873
7692
|
/** @nocollapse */
|
|
@@ -8882,7 +7701,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8882
7701
|
]; };
|
|
8883
7702
|
AddRemissionComponent.propDecorators = {
|
|
8884
7703
|
fee: [{ type: Input }],
|
|
8885
|
-
fees: [{ type: Input }],
|
|
8886
7704
|
payment: [{ type: Input }],
|
|
8887
7705
|
remission: [{ type: Input }],
|
|
8888
7706
|
ccdCaseNumber: [{ type: Input }],
|
|
@@ -8896,12 +7714,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8896
7714
|
isFromRefundListPage: [{ type: Input }],
|
|
8897
7715
|
isFromPaymentDetailPage: [{ type: Input }],
|
|
8898
7716
|
isFromServiceRequestPage: [{ type: Input }],
|
|
8899
|
-
isFullyRefund: [{ type: Input, args: ['isFullyRefund',] }],
|
|
8900
7717
|
feeamount: [{ type: Input }],
|
|
8901
|
-
refundPaymentReference: [{ type: Input }],
|
|
8902
|
-
isFromRefundStatusPage: [{ type: Input }],
|
|
8903
|
-
changeRefundReason: [{ type: Input }],
|
|
8904
|
-
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
8905
7718
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8906
7719
|
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
8907
7720
|
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
@@ -8915,8 +7728,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8915
7728
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
8916
7729
|
cancelRemission: [{ type: Output }],
|
|
8917
7730
|
refundListReason: [{ type: Output }],
|
|
8918
|
-
refundListAmount: [{ type: Output }]
|
|
8919
|
-
refundFees: [{ type: Output }]
|
|
7731
|
+
refundListAmount: [{ type: Output }]
|
|
8920
7732
|
};
|
|
8921
7733
|
return AddRemissionComponent;
|
|
8922
7734
|
}());
|
|
@@ -9076,6 +7888,7 @@ var XlFileService = /** @class */ (function () {
|
|
|
9076
7888
|
var worksheet;
|
|
9077
7889
|
/** @type {?} */
|
|
9078
7890
|
var workbook;
|
|
7891
|
+
console.log(excelFileName);
|
|
9079
7892
|
if (excelFileName.match('Data_Loss') !== null) {
|
|
9080
7893
|
worksheet = utils.json_to_sheet(json, { header: ['loss_resp', 'payment_asset_dcn', 'env_ref', 'env_item', 'resp_service_id', 'resp_service_name', 'date_banked', 'bgc_batch', 'payment_method', 'amount'] });
|
|
9081
7894
|
worksheet = this.setDataLossReportHeaders(worksheet);
|
|
@@ -9490,6 +8303,21 @@ var ReportsComponent = /** @class */ (function () {
|
|
|
9490
8303
|
if (res['data'][i]["representment_status"] !== undefined) {
|
|
9491
8304
|
res['data'][i]['representment_status'] = res['data'][i]["representment_status"].toLowerCase() === 'yes' ? 'Success' : 'Failure';
|
|
9492
8305
|
}
|
|
8306
|
+
if (res['data'][i]['representment_status'] === undefined) {
|
|
8307
|
+
res['data'][i]['representment_status'] = 'No representment received';
|
|
8308
|
+
}
|
|
8309
|
+
if (res['data'][i]['representment_date'] === undefined) {
|
|
8310
|
+
res['data'][i]['representment_date'] = 'N/A';
|
|
8311
|
+
}
|
|
8312
|
+
if (res['data'][i]['refund_reference'] === undefined) {
|
|
8313
|
+
res['data'][i]['refund_reference'] = 'No refund available';
|
|
8314
|
+
}
|
|
8315
|
+
if (res['data'][i]['refund_amount'] === undefined) {
|
|
8316
|
+
res['data'][i]['refund_amount'] = 'N/A';
|
|
8317
|
+
}
|
|
8318
|
+
if (res['data'][i]['refund_date'] === undefined) {
|
|
8319
|
+
res['data'][i]['refund_date'] = 'N/A';
|
|
8320
|
+
}
|
|
9493
8321
|
}
|
|
9494
8322
|
}
|
|
9495
8323
|
_this.isDownLoadButtondisabled = false;
|
|
@@ -9778,29 +8606,13 @@ var TableComponent = /** @class */ (function () {
|
|
|
9778
8606
|
return (r[user_full_name] = '', r);
|
|
9779
8607
|
}), {});
|
|
9780
8608
|
this.userLst = Object.keys(this.userLst);
|
|
9781
|
-
this.userLst.sort((/**
|
|
9782
|
-
* @param {?} a
|
|
9783
|
-
* @param {?} b
|
|
9784
|
-
* @return {?}
|
|
9785
|
-
*/
|
|
9786
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9787
|
-
this.serviceLst = this.refundList.reduce((/**
|
|
9788
|
-
* @param {?} r
|
|
9789
|
-
* @param {?} __1
|
|
9790
|
-
* @return {?}
|
|
9791
|
-
*/
|
|
9792
|
-
function (r, _a) {
|
|
9793
|
-
var service_type = _a.service_type;
|
|
9794
|
-
return (r[service_type] = '', r);
|
|
9795
|
-
}), {});
|
|
9796
|
-
this.serviceLst = Object.keys(this.serviceLst);
|
|
9797
|
-
this.serviceLst.sort((/**
|
|
9798
|
-
* @param {?} a
|
|
9799
|
-
* @param {?} b
|
|
9800
|
-
* @return {?}
|
|
9801
|
-
*/
|
|
9802
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9803
8609
|
}
|
|
8610
|
+
this.userLst.sort((/**
|
|
8611
|
+
* @param {?} a
|
|
8612
|
+
* @param {?} b
|
|
8613
|
+
* @return {?}
|
|
8614
|
+
*/
|
|
8615
|
+
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9804
8616
|
};
|
|
9805
8617
|
/**
|
|
9806
8618
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -9900,8 +8712,8 @@ var TableComponent = /** @class */ (function () {
|
|
|
9900
8712
|
TableComponent.decorators = [
|
|
9901
8713
|
{ type: Component, args: [{
|
|
9902
8714
|
selector: 'ccpay-table',
|
|
9903
|
-
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
|
|
9904
|
-
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}
|
|
8715
|
+
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",
|
|
8716
|
+
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}"]
|
|
9905
8717
|
}] }
|
|
9906
8718
|
];
|
|
9907
8719
|
/** @nocollapse */
|
|
@@ -9922,32 +8734,14 @@ var TableComponent = /** @class */ (function () {
|
|
|
9922
8734
|
return TableComponent;
|
|
9923
8735
|
}());
|
|
9924
8736
|
|
|
9925
|
-
/**
|
|
9926
|
-
* @fileoverview added by tsickle
|
|
9927
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9928
|
-
*/
|
|
9929
|
-
var IPutNotificationRequest = /** @class */ (function () {
|
|
9930
|
-
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9931
|
-
if (notificationType === 'EMAIL') {
|
|
9932
|
-
this.recipient_email_address = contactDetails;
|
|
9933
|
-
}
|
|
9934
|
-
else if (notificationType === 'LETTER') {
|
|
9935
|
-
this.recipient_postal_address = contactDetails;
|
|
9936
|
-
}
|
|
9937
|
-
}
|
|
9938
|
-
return IPutNotificationRequest;
|
|
9939
|
-
}());
|
|
9940
|
-
|
|
9941
8737
|
/**
|
|
9942
8738
|
* @fileoverview added by tsickle
|
|
9943
8739
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9944
8740
|
*/
|
|
9945
8741
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9946
|
-
function IResubmitRefundRequest(refund_reason, amount
|
|
8742
|
+
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9947
8743
|
this.refund_reason = refund_reason;
|
|
9948
8744
|
this.amount = amount;
|
|
9949
|
-
this.contact_details = contact_details;
|
|
9950
|
-
this.refund_fees = refund_fees;
|
|
9951
8745
|
}
|
|
9952
8746
|
return IResubmitRefundRequest;
|
|
9953
8747
|
}());
|
|
@@ -9957,18 +8751,20 @@ var IResubmitRefundRequest = /** @class */ (function () {
|
|
|
9957
8751
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9958
8752
|
*/
|
|
9959
8753
|
var RefundStatusComponent = /** @class */ (function () {
|
|
9960
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
8754
|
+
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router, OrderslistService$$1) {
|
|
9961
8755
|
var _this = this;
|
|
9962
8756
|
this.formBuilder = formBuilder;
|
|
9963
8757
|
this.refundService = refundService;
|
|
9964
|
-
this.notificationService = notificationService;
|
|
9965
8758
|
this.paymentLibComponent = paymentLibComponent;
|
|
9966
|
-
this.OrderslistService = OrderslistService$$1;
|
|
9967
8759
|
this.paymentViewService = paymentViewService;
|
|
8760
|
+
this.router = router;
|
|
8761
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9968
8762
|
this.LOGGEDINUSERROLES = [];
|
|
9969
8763
|
this.rejectedRefundList = [];
|
|
9970
8764
|
this.approvalStatus = 'Sent for approval';
|
|
9971
8765
|
this.rejectStatus = 'Update required';
|
|
8766
|
+
// approvalStatus = 'sent for approval';
|
|
8767
|
+
// rejectStatus = 'sent back';
|
|
9972
8768
|
this.errorMessage = null;
|
|
9973
8769
|
this.refundButtonState = '';
|
|
9974
8770
|
this.isAmountEmpty = false;
|
|
@@ -9977,13 +8773,9 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9977
8773
|
this.isRemissionLessThanFeeError = false;
|
|
9978
8774
|
this.refundHasError = false;
|
|
9979
8775
|
this.refundReasons = [];
|
|
9980
|
-
this.isResendOperationSuccess = false;
|
|
9981
|
-
this.isEditDetailsClicked = false;
|
|
9982
|
-
this.isEditAddressDeatilsClicked = false;
|
|
9983
8776
|
this.isRefundBtnDisabled = true;
|
|
9984
8777
|
this.isLastUpdatedByCurrentUser = true;
|
|
9985
8778
|
this.isProcessRefund = false;
|
|
9986
|
-
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
9987
8779
|
this.isFromPayBubble = (/**
|
|
9988
8780
|
* @return {?}
|
|
9989
8781
|
*/
|
|
@@ -9999,9 +8791,13 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9999
8791
|
*/
|
|
10000
8792
|
function () {
|
|
10001
8793
|
var _this = this;
|
|
8794
|
+
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
10002
8795
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
10003
8796
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
10004
8797
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8798
|
+
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8799
|
+
// this.viewName = 'reviewandsubmitview';
|
|
8800
|
+
// }
|
|
10005
8801
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
10006
8802
|
this.viewName = 'refundview';
|
|
10007
8803
|
this.OrderslistService.getRefundView().subscribe((/**
|
|
@@ -10046,7 +8842,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10046
8842
|
reason: new FormControl()
|
|
10047
8843
|
});
|
|
10048
8844
|
if (this.refundlist !== undefined) {
|
|
10049
|
-
this.getRefundsNotification();
|
|
10050
8845
|
this.getRefundsStatusHistoryList();
|
|
10051
8846
|
if (this.LOGGEDINUSERROLES.some((/**
|
|
10052
8847
|
* @param {?} i
|
|
@@ -10066,6 +8861,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10066
8861
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
10067
8862
|
}
|
|
10068
8863
|
}
|
|
8864
|
+
//}
|
|
10069
8865
|
};
|
|
10070
8866
|
/**
|
|
10071
8867
|
* @return {?}
|
|
@@ -10093,29 +8889,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10093
8889
|
});
|
|
10094
8890
|
}
|
|
10095
8891
|
};
|
|
10096
|
-
/**
|
|
10097
|
-
* @return {?}
|
|
10098
|
-
*/
|
|
10099
|
-
RefundStatusComponent.prototype.getRefundsNotification = /**
|
|
10100
|
-
* @return {?}
|
|
10101
|
-
*/
|
|
10102
|
-
function () {
|
|
10103
|
-
var _this = this;
|
|
10104
|
-
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
|
|
10105
|
-
* @param {?} refundsNotification
|
|
10106
|
-
* @return {?}
|
|
10107
|
-
*/
|
|
10108
|
-
function (refundsNotification) {
|
|
10109
|
-
_this.notificationList = refundsNotification['notifications'];
|
|
10110
|
-
})),
|
|
10111
|
-
(/**
|
|
10112
|
-
* @param {?} error
|
|
10113
|
-
* @return {?}
|
|
10114
|
-
*/
|
|
10115
|
-
function (error) {
|
|
10116
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10117
|
-
});
|
|
10118
|
-
};
|
|
10119
8892
|
/**
|
|
10120
8893
|
* @param {?} refundlist
|
|
10121
8894
|
* @param {?} navigationpage
|
|
@@ -10206,21 +8979,18 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10206
8979
|
}));
|
|
10207
8980
|
};
|
|
10208
8981
|
/**
|
|
10209
|
-
* @param {?} refundReason
|
|
10210
8982
|
* @return {?}
|
|
10211
8983
|
*/
|
|
10212
8984
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
10213
|
-
* @param {?} refundReason
|
|
10214
8985
|
* @return {?}
|
|
10215
8986
|
*/
|
|
10216
|
-
function (
|
|
8987
|
+
function () {
|
|
10217
8988
|
this.isRefundBtnDisabled = false;
|
|
10218
8989
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
10219
8990
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10220
8991
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10221
8992
|
this.errorMessage = false;
|
|
10222
|
-
this.
|
|
10223
|
-
this.viewName = 'issuerefundpage1';
|
|
8993
|
+
this.viewName = 'issuerefund';
|
|
10224
8994
|
};
|
|
10225
8995
|
/**
|
|
10226
8996
|
* @return {?}
|
|
@@ -10234,12 +9004,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10234
9004
|
this.isRefundBtnDisabled = false;
|
|
10235
9005
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10236
9006
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10237
|
-
|
|
10238
|
-
this.viewName = 'processretroremissonpage';
|
|
10239
|
-
}
|
|
10240
|
-
else {
|
|
10241
|
-
this.viewName = 'issuerefund';
|
|
10242
|
-
}
|
|
9007
|
+
this.viewName = 'processretroremissonpage';
|
|
10243
9008
|
};
|
|
10244
9009
|
/**
|
|
10245
9010
|
* @return {?}
|
|
@@ -10321,7 +9086,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10321
9086
|
function (refundListReason) {
|
|
10322
9087
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
10323
9088
|
this.refundlist.reason = refundListReason.reason;
|
|
10324
|
-
this.refundlist.code = refundListReason.code;
|
|
10325
9089
|
this.refundCode = refundListReason.code;
|
|
10326
9090
|
}
|
|
10327
9091
|
else {
|
|
@@ -10351,22 +9115,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10351
9115
|
this.viewName = 'reviewandsubmitview';
|
|
10352
9116
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
10353
9117
|
};
|
|
10354
|
-
/**
|
|
10355
|
-
* @param {?} fees
|
|
10356
|
-
* @return {?}
|
|
10357
|
-
*/
|
|
10358
|
-
RefundStatusComponent.prototype.getRefundFees = /**
|
|
10359
|
-
* @param {?} fees
|
|
10360
|
-
* @return {?}
|
|
10361
|
-
*/
|
|
10362
|
-
function (fees) {
|
|
10363
|
-
this.fees = fees;
|
|
10364
|
-
this.refundFees = this.fees.map((/**
|
|
10365
|
-
* @param {?} obj
|
|
10366
|
-
* @return {?}
|
|
10367
|
-
*/
|
|
10368
|
-
function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10369
|
-
};
|
|
10370
9118
|
/**
|
|
10371
9119
|
* @return {?}
|
|
10372
9120
|
*/
|
|
@@ -10375,15 +9123,11 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10375
9123
|
*/
|
|
10376
9124
|
function () {
|
|
10377
9125
|
var _this = this;
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
// }
|
|
10381
|
-
if (this.refundFees === undefined) {
|
|
10382
|
-
this.refundFees = this.refundlist['refund_fees'];
|
|
9126
|
+
if (this.oldRefundReason === this.refundlist.reason) {
|
|
9127
|
+
this.refundCode = '';
|
|
10383
9128
|
}
|
|
10384
|
-
this.refundCode = this.refundlist.code;
|
|
10385
9129
|
/** @type {?} */
|
|
10386
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount
|
|
9130
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10387
9131
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe((/**
|
|
10388
9132
|
* @param {?} response
|
|
10389
9133
|
* @return {?}
|
|
@@ -10403,181 +9147,41 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10403
9147
|
}));
|
|
10404
9148
|
};
|
|
10405
9149
|
/**
|
|
10406
|
-
* @param {?}
|
|
9150
|
+
* @param {?} refundReference
|
|
9151
|
+
* @param {?} refundList
|
|
10407
9152
|
* @return {?}
|
|
10408
9153
|
*/
|
|
10409
|
-
RefundStatusComponent.prototype.
|
|
10410
|
-
* @param {?}
|
|
9154
|
+
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
9155
|
+
* @param {?} refundReference
|
|
9156
|
+
* @param {?} refundList
|
|
10411
9157
|
* @return {?}
|
|
10412
9158
|
*/
|
|
10413
|
-
function (
|
|
10414
|
-
this.
|
|
10415
|
-
this.
|
|
10416
|
-
this.viewName = '
|
|
10417
|
-
};
|
|
10418
|
-
/**
|
|
10419
|
-
* @param {?} obj
|
|
10420
|
-
* @return {?}
|
|
10421
|
-
*/
|
|
10422
|
-
RefundStatusComponent.prototype.getContactDetails = /**
|
|
10423
|
-
* @param {?} obj
|
|
10424
|
-
* @return {?}
|
|
10425
|
-
*/
|
|
10426
|
-
function (obj) {
|
|
10427
|
-
this.addressDetails = obj;
|
|
10428
|
-
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
10429
|
-
};
|
|
10430
|
-
/**
|
|
10431
|
-
* @param {?} obj
|
|
10432
|
-
* @return {?}
|
|
10433
|
-
*/
|
|
10434
|
-
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10435
|
-
* @param {?} obj
|
|
10436
|
-
* @return {?}
|
|
10437
|
-
*/
|
|
10438
|
-
function (obj) {
|
|
10439
|
-
this.refundlist.contact_details = obj;
|
|
10440
|
-
this.isEditDetailsClicked = false;
|
|
10441
|
-
this.isRefundBtnDisabled = false;
|
|
10442
|
-
this.viewName = 'reviewandsubmitview';
|
|
10443
|
-
};
|
|
10444
|
-
/**
|
|
10445
|
-
* @param {?=} note
|
|
10446
|
-
* @return {?}
|
|
10447
|
-
*/
|
|
10448
|
-
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10449
|
-
* @param {?=} note
|
|
10450
|
-
* @return {?}
|
|
10451
|
-
*/
|
|
10452
|
-
function (note) {
|
|
10453
|
-
if (note) {
|
|
10454
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10455
|
-
}
|
|
10456
|
-
this.isEditDetailsClicked = true;
|
|
10457
|
-
this.viewName = 'refundEditView';
|
|
10458
|
-
};
|
|
10459
|
-
/**
|
|
10460
|
-
* @return {?}
|
|
10461
|
-
*/
|
|
10462
|
-
RefundStatusComponent.prototype.submitEditDetail = /**
|
|
10463
|
-
* @return {?}
|
|
10464
|
-
*/
|
|
10465
|
-
function () {
|
|
10466
|
-
var _this = this;
|
|
10467
|
-
this.isResendOperationSuccess = false;
|
|
10468
|
-
/** @type {?} */
|
|
10469
|
-
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10470
|
-
{
|
|
10471
|
-
address_line: this.addressDetails.address_line,
|
|
10472
|
-
city: this.addressDetails.city,
|
|
10473
|
-
county: this.addressDetails.county,
|
|
10474
|
-
country: this.addressDetails.country,
|
|
10475
|
-
postal_code: this.addressDetails.postal_code,
|
|
10476
|
-
};
|
|
10477
|
-
/** @type {?} */
|
|
10478
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10479
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
|
|
10480
|
-
* @param {?} response
|
|
10481
|
-
* @return {?}
|
|
10482
|
-
*/
|
|
10483
|
-
function (response) {
|
|
10484
|
-
_this.isResendOperationSuccess = response;
|
|
10485
|
-
}), (/**
|
|
10486
|
-
* @param {?} error
|
|
10487
|
-
* @return {?}
|
|
10488
|
-
*/
|
|
10489
|
-
function (error) {
|
|
10490
|
-
_this.isResendOperationSuccess = false;
|
|
10491
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10492
|
-
}));
|
|
10493
|
-
};
|
|
10494
|
-
/**
|
|
10495
|
-
* @param {?} notification
|
|
10496
|
-
* @return {?}
|
|
10497
|
-
*/
|
|
10498
|
-
RefundStatusComponent.prototype.putResend = /**
|
|
10499
|
-
* @param {?} notification
|
|
10500
|
-
* @return {?}
|
|
10501
|
-
*/
|
|
10502
|
-
function (notification) {
|
|
10503
|
-
var _this = this;
|
|
10504
|
-
this.isResendOperationSuccess = false;
|
|
10505
|
-
/** @type {?} */
|
|
10506
|
-
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10507
|
-
{
|
|
10508
|
-
address_line: notification.contact_details.address_line,
|
|
10509
|
-
city: notification.contact_details.city,
|
|
10510
|
-
county: notification.contact_details.county,
|
|
10511
|
-
country: notification.contact_details.country,
|
|
10512
|
-
postal_code: notification.contact_details.postal_code,
|
|
10513
|
-
};
|
|
10514
|
-
/** @type {?} */
|
|
10515
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10516
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
|
|
10517
|
-
* @param {?} response
|
|
10518
|
-
* @return {?}
|
|
10519
|
-
*/
|
|
10520
|
-
function (response) {
|
|
10521
|
-
_this.isResendOperationSuccess = response;
|
|
10522
|
-
}), (/**
|
|
10523
|
-
* @param {?} error
|
|
10524
|
-
* @return {?}
|
|
10525
|
-
*/
|
|
10526
|
-
function (error) {
|
|
10527
|
-
_this.isResendOperationSuccess = false;
|
|
10528
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10529
|
-
}));
|
|
10530
|
-
};
|
|
10531
|
-
/**
|
|
10532
|
-
* @param {?} Event
|
|
10533
|
-
* @return {?}
|
|
10534
|
-
*/
|
|
10535
|
-
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10536
|
-
* @param {?} Event
|
|
10537
|
-
* @return {?}
|
|
10538
|
-
*/
|
|
10539
|
-
function (Event) {
|
|
10540
|
-
event.preventDefault();
|
|
10541
|
-
this.viewName = 'refundstatuslist';
|
|
10542
|
-
};
|
|
10543
|
-
/**
|
|
10544
|
-
* @param {?} refundReference
|
|
10545
|
-
* @param {?} refundList
|
|
10546
|
-
* @return {?}
|
|
10547
|
-
*/
|
|
10548
|
-
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
10549
|
-
* @param {?} refundReference
|
|
10550
|
-
* @param {?} refundList
|
|
10551
|
-
* @return {?}
|
|
10552
|
-
*/
|
|
10553
|
-
function (refundReference, refundList) {
|
|
10554
|
-
this.paymentLibComponent.refundlistsource = refundList;
|
|
10555
|
-
this.paymentLibComponent.refundReference = refundReference;
|
|
10556
|
-
this.paymentLibComponent.isFromPayBubble = true;
|
|
10557
|
-
this.paymentLibComponent.viewName = 'process-refund';
|
|
9159
|
+
function (refundReference, refundList) {
|
|
9160
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
9161
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
9162
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
10558
9163
|
};
|
|
10559
9164
|
RefundStatusComponent.decorators = [
|
|
10560
9165
|
{ type: Component, args: [{
|
|
10561
9166
|
selector: 'ccpay-refund-status',
|
|
10562
|
-
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",
|
|
10563
|
-
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-
|
|
9167
|
+
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",
|
|
9168
|
+
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}"]
|
|
10564
9169
|
}] }
|
|
10565
9170
|
];
|
|
10566
9171
|
/** @nocollapse */
|
|
10567
9172
|
RefundStatusComponent.ctorParameters = function () { return [
|
|
10568
9173
|
{ type: FormBuilder },
|
|
10569
9174
|
{ type: RefundsService },
|
|
10570
|
-
{ type: NotificationService },
|
|
10571
9175
|
{ type: PaymentLibComponent },
|
|
10572
|
-
{ type:
|
|
10573
|
-
{ type:
|
|
9176
|
+
{ type: PaymentViewService },
|
|
9177
|
+
{ type: Router },
|
|
9178
|
+
{ type: OrderslistService }
|
|
10574
9179
|
]; };
|
|
10575
9180
|
RefundStatusComponent.propDecorators = {
|
|
10576
9181
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
10577
9182
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
10578
9183
|
ccdCaseNumber: [{ type: Input }],
|
|
10579
9184
|
isTurnOff: [{ type: Input }],
|
|
10580
|
-
orderParty: [{ type: Input }],
|
|
10581
9185
|
isEliginbleToAccess: [{ type: Input }]
|
|
10582
9186
|
};
|
|
10583
9187
|
return RefundStatusComponent;
|
|
@@ -10588,11 +9192,11 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10588
9192
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10589
9193
|
*/
|
|
10590
9194
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
10591
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1,
|
|
9195
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router) {
|
|
9196
|
+
var _this = this;
|
|
10592
9197
|
this.paymentLibComponent = paymentLibComponent;
|
|
10593
9198
|
this.paymentViewService = paymentViewService;
|
|
10594
9199
|
this.OrderslistService = OrderslistService$$1;
|
|
10595
|
-
this.cd = cd;
|
|
10596
9200
|
this.router = router;
|
|
10597
9201
|
this.goToServiceRquestComponent = new EventEmitter();
|
|
10598
9202
|
this.paymentGroups = [];
|
|
@@ -10600,6 +9204,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10600
9204
|
this.nonPayments = [];
|
|
10601
9205
|
this.allPayments = [];
|
|
10602
9206
|
this.remissions = [];
|
|
9207
|
+
this.fees = [];
|
|
10603
9208
|
this.isRefundRemission = true;
|
|
10604
9209
|
this.isAddFeeBtnEnabled = true;
|
|
10605
9210
|
this.isExceptionRecord = false;
|
|
@@ -10619,7 +9224,30 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10619
9224
|
this.isAddRemissionBtnEnabled = false;
|
|
10620
9225
|
this.isRefundRemissionBtnEnable = false;
|
|
10621
9226
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
10622
|
-
this.
|
|
9227
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
9228
|
+
* @return {?}
|
|
9229
|
+
*/
|
|
9230
|
+
function () {
|
|
9231
|
+
return _this.allowedRolesToAccessRefund.some((/**
|
|
9232
|
+
* @param {?} role
|
|
9233
|
+
* @return {?}
|
|
9234
|
+
*/
|
|
9235
|
+
function (role) {
|
|
9236
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9237
|
+
}));
|
|
9238
|
+
});
|
|
9239
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
9240
|
+
* @param {?} payment
|
|
9241
|
+
* @return {?}
|
|
9242
|
+
*/
|
|
9243
|
+
function (payment) {
|
|
9244
|
+
if (payment !== null && payment !== undefined) {
|
|
9245
|
+
/** @type {?} */
|
|
9246
|
+
var tmp4DayAgo = new Date();
|
|
9247
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
9248
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
9249
|
+
}
|
|
9250
|
+
});
|
|
10623
9251
|
}
|
|
10624
9252
|
/**
|
|
10625
9253
|
* @return {?}
|
|
@@ -10629,8 +9257,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10629
9257
|
*/
|
|
10630
9258
|
function () {
|
|
10631
9259
|
var _this = this;
|
|
10632
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10633
|
-
this.isServiceRequest = 'false';
|
|
10634
9260
|
if (this.viewStatus === undefined) {
|
|
10635
9261
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
10636
9262
|
}
|
|
@@ -10678,9 +9304,9 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10678
9304
|
function (data) { return _this.orderTotalPayments = data; }));
|
|
10679
9305
|
}
|
|
10680
9306
|
}
|
|
10681
|
-
if (this.
|
|
10682
|
-
|
|
10683
|
-
}
|
|
9307
|
+
// if (this.takePayment) {
|
|
9308
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
9309
|
+
// }
|
|
10684
9310
|
};
|
|
10685
9311
|
/**
|
|
10686
9312
|
* @return {?}
|
|
@@ -10709,7 +9335,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10709
9335
|
if (this.takePayment) {
|
|
10710
9336
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
10711
9337
|
}
|
|
10712
|
-
|
|
9338
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10713
9339
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
10714
9340
|
if (this.isServiceRequest !== 'false') {
|
|
10715
9341
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -10735,6 +9361,75 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10735
9361
|
this.router.onSameUrlNavigation = 'reload';
|
|
10736
9362
|
this.router.navigateByUrl(url);
|
|
10737
9363
|
};
|
|
9364
|
+
/**
|
|
9365
|
+
* @param {?} feeCode
|
|
9366
|
+
* @return {?}
|
|
9367
|
+
*/
|
|
9368
|
+
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9369
|
+
* @param {?} feeCode
|
|
9370
|
+
* @return {?}
|
|
9371
|
+
*/
|
|
9372
|
+
function (feeCode) {
|
|
9373
|
+
var e_1, _a;
|
|
9374
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9375
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9376
|
+
try {
|
|
9377
|
+
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9378
|
+
var remission = _c.value;
|
|
9379
|
+
if (remission.fee_code === feeCode) {
|
|
9380
|
+
return false;
|
|
9381
|
+
}
|
|
9382
|
+
}
|
|
9383
|
+
}
|
|
9384
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9385
|
+
finally {
|
|
9386
|
+
try {
|
|
9387
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9388
|
+
}
|
|
9389
|
+
finally { if (e_1) throw e_1.error; }
|
|
9390
|
+
}
|
|
9391
|
+
}
|
|
9392
|
+
return true;
|
|
9393
|
+
}
|
|
9394
|
+
else {
|
|
9395
|
+
return false;
|
|
9396
|
+
}
|
|
9397
|
+
};
|
|
9398
|
+
/**
|
|
9399
|
+
* @return {?}
|
|
9400
|
+
*/
|
|
9401
|
+
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9402
|
+
* @return {?}
|
|
9403
|
+
*/
|
|
9404
|
+
function () {
|
|
9405
|
+
var _this = this;
|
|
9406
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9407
|
+
this.orderDetail.forEach((/**
|
|
9408
|
+
* @param {?} orderDetail
|
|
9409
|
+
* @return {?}
|
|
9410
|
+
*/
|
|
9411
|
+
function (orderDetail) {
|
|
9412
|
+
if (orderDetail.payments) {
|
|
9413
|
+
orderDetail.payments.forEach((/**
|
|
9414
|
+
* @param {?} payment
|
|
9415
|
+
* @return {?}
|
|
9416
|
+
*/
|
|
9417
|
+
function (payment) {
|
|
9418
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9419
|
+
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9420
|
+
_this.isPBA = true;
|
|
9421
|
+
}
|
|
9422
|
+
}));
|
|
9423
|
+
}
|
|
9424
|
+
}));
|
|
9425
|
+
if (this.isPBA) {
|
|
9426
|
+
return true;
|
|
9427
|
+
}
|
|
9428
|
+
else {
|
|
9429
|
+
return false;
|
|
9430
|
+
}
|
|
9431
|
+
}
|
|
9432
|
+
};
|
|
10738
9433
|
/**
|
|
10739
9434
|
* @param {?} fee
|
|
10740
9435
|
* @return {?}
|
|
@@ -10745,7 +9440,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10745
9440
|
*/
|
|
10746
9441
|
function (fee) {
|
|
10747
9442
|
var _this = this;
|
|
10748
|
-
if (this.
|
|
9443
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
10749
9444
|
this.feeId = fee;
|
|
10750
9445
|
this.viewStatus = 'addremission';
|
|
10751
9446
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -10761,8 +9456,8 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10761
9456
|
*/
|
|
10762
9457
|
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10763
9458
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10764
|
-
//
|
|
10765
|
-
//
|
|
9459
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9460
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10766
9461
|
}), (/**
|
|
10767
9462
|
* @param {?} error
|
|
10768
9463
|
* @return {?}
|
|
@@ -10784,8 +9479,9 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10784
9479
|
*/
|
|
10785
9480
|
function (payment, remission, fees) {
|
|
10786
9481
|
var _this = this;
|
|
10787
|
-
this.
|
|
10788
|
-
this.
|
|
9482
|
+
this.viewStatus = 'addrefundforremission';
|
|
9483
|
+
this.payment = payment;
|
|
9484
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
10789
9485
|
* @param {?} paymentGroup
|
|
10790
9486
|
* @return {?}
|
|
10791
9487
|
*/
|
|
@@ -10795,7 +9491,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10795
9491
|
* @param {?} paymentGroupObj
|
|
10796
9492
|
* @return {?}
|
|
10797
9493
|
*/
|
|
10798
|
-
function (paymentGroupObj) { return paymentGroupObj.
|
|
9494
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
10799
9495
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10800
9496
|
_this.remissions = remission;
|
|
10801
9497
|
_this.remissionFeeAmt = fees.filter((/**
|
|
@@ -10803,7 +9499,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10803
9499
|
* @return {?}
|
|
10804
9500
|
*/
|
|
10805
9501
|
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10806
|
-
_this.viewStatus = 'addrefundforremission';
|
|
10807
9502
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10808
9503
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10809
9504
|
}), (/**
|
|
@@ -10851,43 +9546,72 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10851
9546
|
* @param {?} payment
|
|
10852
9547
|
* @return {?}
|
|
10853
9548
|
*/
|
|
10854
|
-
ServiceRequestComponent.prototype.
|
|
9549
|
+
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
10855
9550
|
* @param {?} payment
|
|
10856
9551
|
* @return {?}
|
|
10857
9552
|
*/
|
|
10858
9553
|
function (payment) {
|
|
9554
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9555
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9556
|
+
this.isIssueRefunfBtnEnable = true;
|
|
9557
|
+
}
|
|
9558
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
9559
|
+
return true;
|
|
9560
|
+
}
|
|
9561
|
+
else {
|
|
9562
|
+
return false;
|
|
9563
|
+
}
|
|
9564
|
+
};
|
|
9565
|
+
/**
|
|
9566
|
+
* @return {?}
|
|
9567
|
+
*/
|
|
9568
|
+
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9569
|
+
* @return {?}
|
|
9570
|
+
*/
|
|
9571
|
+
function () {
|
|
10859
9572
|
var _this = this;
|
|
10860
|
-
if (
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
9573
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9574
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9575
|
+
this.orderDetail.forEach((/**
|
|
9576
|
+
* @param {?} orderDetail
|
|
9577
|
+
* @return {?}
|
|
9578
|
+
*/
|
|
9579
|
+
function (orderDetail) {
|
|
9580
|
+
if (orderDetail.payments) {
|
|
9581
|
+
orderDetail.payments.forEach((/**
|
|
9582
|
+
* @param {?} payment
|
|
10869
9583
|
* @return {?}
|
|
10870
9584
|
*/
|
|
10871
|
-
function (
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
|
|
10875
|
-
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
9585
|
+
function (payment) {
|
|
9586
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9587
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
9588
|
+
}
|
|
9589
|
+
}));
|
|
9590
|
+
}
|
|
9591
|
+
}));
|
|
9592
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
9593
|
+
return true;
|
|
9594
|
+
}
|
|
9595
|
+
else {
|
|
9596
|
+
return false;
|
|
9597
|
+
}
|
|
9598
|
+
}
|
|
9599
|
+
};
|
|
9600
|
+
/**
|
|
9601
|
+
* @param {?} payment
|
|
9602
|
+
* @return {?}
|
|
9603
|
+
*/
|
|
9604
|
+
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9605
|
+
* @param {?} payment
|
|
9606
|
+
* @return {?}
|
|
9607
|
+
*/
|
|
9608
|
+
function (payment) {
|
|
9609
|
+
if (payment !== null && payment !== undefined) {
|
|
9610
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
9611
|
+
this.viewStatus = 'issuerefund';
|
|
9612
|
+
this.payment = payment;
|
|
9613
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9614
|
+
this.isRefundRemission = true;
|
|
10891
9615
|
}
|
|
10892
9616
|
}
|
|
10893
9617
|
};
|
|
@@ -10929,54 +9653,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10929
9653
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
10930
9654
|
this.viewStatus = 'payment-view';
|
|
10931
9655
|
};
|
|
10932
|
-
/**
|
|
10933
|
-
* @param {?} payment
|
|
10934
|
-
* @return {?}
|
|
10935
|
-
*/
|
|
10936
|
-
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10937
|
-
* @param {?} payment
|
|
10938
|
-
* @return {?}
|
|
10939
|
-
*/
|
|
10940
|
-
function (payment) {
|
|
10941
|
-
if (payment !== null && payment !== undefined) {
|
|
10942
|
-
return payment.issue_refund && payment.refund_enable;
|
|
10943
|
-
}
|
|
10944
|
-
else {
|
|
10945
|
-
return false;
|
|
10946
|
-
}
|
|
10947
|
-
};
|
|
10948
|
-
/**
|
|
10949
|
-
* @param {?} remission
|
|
10950
|
-
* @return {?}
|
|
10951
|
-
*/
|
|
10952
|
-
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10953
|
-
* @param {?} remission
|
|
10954
|
-
* @return {?}
|
|
10955
|
-
*/
|
|
10956
|
-
function (remission) {
|
|
10957
|
-
if (remission !== null && remission !== undefined) {
|
|
10958
|
-
return remission.add_refund;
|
|
10959
|
-
}
|
|
10960
|
-
else {
|
|
10961
|
-
return false;
|
|
10962
|
-
}
|
|
10963
|
-
};
|
|
10964
|
-
/**
|
|
10965
|
-
* @param {?} fee
|
|
10966
|
-
* @return {?}
|
|
10967
|
-
*/
|
|
10968
|
-
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10969
|
-
* @param {?} fee
|
|
10970
|
-
* @return {?}
|
|
10971
|
-
*/
|
|
10972
|
-
function (fee) {
|
|
10973
|
-
if (fee !== null && fee !== undefined) {
|
|
10974
|
-
return fee.add_remission && fee.remission_enable;
|
|
10975
|
-
}
|
|
10976
|
-
else {
|
|
10977
|
-
return false;
|
|
10978
|
-
}
|
|
10979
|
-
};
|
|
10980
9656
|
/**
|
|
10981
9657
|
* @return {?}
|
|
10982
9658
|
*/
|
|
@@ -10993,161 +9669,11 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10993
9669
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
10994
9670
|
this.OrderslistService.setorderFeesTotal(null);
|
|
10995
9671
|
};
|
|
10996
|
-
/**
|
|
10997
|
-
* @param {?} paymentType
|
|
10998
|
-
* @return {?}
|
|
10999
|
-
*/
|
|
11000
|
-
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
11001
|
-
* @param {?} paymentType
|
|
11002
|
-
* @return {?}
|
|
11003
|
-
*/
|
|
11004
|
-
function (paymentType) {
|
|
11005
|
-
this.paymentType = paymentType;
|
|
11006
|
-
this.isContinueBtnDisabled = false;
|
|
11007
|
-
};
|
|
11008
|
-
/**
|
|
11009
|
-
* @return {?}
|
|
11010
|
-
*/
|
|
11011
|
-
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
11012
|
-
* @return {?}
|
|
11013
|
-
*/
|
|
11014
|
-
function () {
|
|
11015
|
-
this.viewCompStatus = '';
|
|
11016
|
-
this.viewStatus = 'paymentview';
|
|
11017
|
-
};
|
|
11018
|
-
/**
|
|
11019
|
-
* @param {?} paymentgrp
|
|
11020
|
-
* @return {?}
|
|
11021
|
-
*/
|
|
11022
|
-
ServiceRequestComponent.prototype.continuePayment = /**
|
|
11023
|
-
* @param {?} paymentgrp
|
|
11024
|
-
* @return {?}
|
|
11025
|
-
*/
|
|
11026
|
-
function (paymentgrp) {
|
|
11027
|
-
if (this.paymentType === 'op') {
|
|
11028
|
-
this.isFullyRefund = false;
|
|
11029
|
-
this.viewStatus = '';
|
|
11030
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
11031
|
-
}
|
|
11032
|
-
else if (this.paymentType === 'fp') {
|
|
11033
|
-
this.isFullyRefund = true;
|
|
11034
|
-
this.paymentGroupList = paymentgrp;
|
|
11035
|
-
this.viewStatus = 'issuerefund';
|
|
11036
|
-
this.viewCompStatus = "";
|
|
11037
|
-
this.isRefundRemission = true;
|
|
11038
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
11039
|
-
this.isFromPaymentDetailPage = true;
|
|
11040
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
11041
|
-
}
|
|
11042
|
-
};
|
|
11043
|
-
/**
|
|
11044
|
-
* @param {?} obj
|
|
11045
|
-
* @return {?}
|
|
11046
|
-
*/
|
|
11047
|
-
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
11048
|
-
* @param {?} obj
|
|
11049
|
-
* @return {?}
|
|
11050
|
-
*/
|
|
11051
|
-
function (obj) {
|
|
11052
|
-
this.contactDetailsObj = obj;
|
|
11053
|
-
this.viewStatus = '';
|
|
11054
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
11055
|
-
};
|
|
11056
|
-
/**
|
|
11057
|
-
* @param {?} event
|
|
11058
|
-
* @return {?}
|
|
11059
|
-
*/
|
|
11060
|
-
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
11061
|
-
* @param {?} event
|
|
11062
|
-
* @return {?}
|
|
11063
|
-
*/
|
|
11064
|
-
function (event) {
|
|
11065
|
-
event.preventDefault();
|
|
11066
|
-
this.viewStatus = '';
|
|
11067
|
-
this.viewCompStatus = 'overpayment';
|
|
11068
|
-
};
|
|
11069
|
-
/**
|
|
11070
|
-
* @param {?=} note
|
|
11071
|
-
* @return {?}
|
|
11072
|
-
*/
|
|
11073
|
-
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
11074
|
-
* @param {?=} note
|
|
11075
|
-
* @return {?}
|
|
11076
|
-
*/
|
|
11077
|
-
function (note) {
|
|
11078
|
-
if (note) {
|
|
11079
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
11080
|
-
}
|
|
11081
|
-
this.errorMessage = '';
|
|
11082
|
-
this.viewStatus = '';
|
|
11083
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
11084
|
-
};
|
|
11085
|
-
/**
|
|
11086
|
-
* @return {?}
|
|
11087
|
-
*/
|
|
11088
|
-
ServiceRequestComponent.prototype.processRefund = /**
|
|
11089
|
-
* @return {?}
|
|
11090
|
-
*/
|
|
11091
|
-
function () {
|
|
11092
|
-
var _this = this;
|
|
11093
|
-
this.isConfirmationBtnDisabled = true;
|
|
11094
|
-
this.errorMessage = '';
|
|
11095
|
-
/** @type {?} */
|
|
11096
|
-
var obj = this.paymentGroupList.fees[0];
|
|
11097
|
-
this.fees = [{ id: obj.id,
|
|
11098
|
-
code: obj.code,
|
|
11099
|
-
version: obj.version,
|
|
11100
|
-
apportion_amount: obj.apportion_amount,
|
|
11101
|
-
calculated_amount: obj.calculated_amount,
|
|
11102
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
11103
|
-
volume: obj.volume,
|
|
11104
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
11105
|
-
/** @type {?} */
|
|
11106
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
11107
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
11108
|
-
* @param {?} response
|
|
11109
|
-
* @return {?}
|
|
11110
|
-
*/
|
|
11111
|
-
function (response) {
|
|
11112
|
-
if (JSON.parse(response)) {
|
|
11113
|
-
_this.viewCompStatus = '';
|
|
11114
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
11115
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
11116
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
11117
|
-
}
|
|
11118
|
-
}), (/**
|
|
11119
|
-
* @param {?} error
|
|
11120
|
-
* @return {?}
|
|
11121
|
-
*/
|
|
11122
|
-
function (error) {
|
|
11123
|
-
_this.errorMessage = error;
|
|
11124
|
-
_this.isConfirmationBtnDisabled = false;
|
|
11125
|
-
_this.cd.detectChanges();
|
|
11126
|
-
}));
|
|
11127
|
-
};
|
|
11128
|
-
/**
|
|
11129
|
-
* @return {?}
|
|
11130
|
-
*/
|
|
11131
|
-
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
11132
|
-
* @return {?}
|
|
11133
|
-
*/
|
|
11134
|
-
function () {
|
|
11135
|
-
/** @type {?} */
|
|
11136
|
-
var feesOverPayment = 0;
|
|
11137
|
-
this.paymentGroupList.fees.forEach((/**
|
|
11138
|
-
* @param {?} fee
|
|
11139
|
-
* @return {?}
|
|
11140
|
-
*/
|
|
11141
|
-
function (fee) {
|
|
11142
|
-
feesOverPayment += fee.over_payment;
|
|
11143
|
-
}));
|
|
11144
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
11145
|
-
};
|
|
11146
9672
|
ServiceRequestComponent.decorators = [
|
|
11147
9673
|
{ type: Component, args: [{
|
|
11148
9674
|
selector: 'ccpay-service-request',
|
|
11149
|
-
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</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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[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>\n",
|
|
11150
|
-
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%}
|
|
9675
|
+
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</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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[viewCompStatus]= \"viewStatus\"\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[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",
|
|
9676
|
+
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%}"]
|
|
11151
9677
|
}] }
|
|
11152
9678
|
];
|
|
11153
9679
|
/** @nocollapse */
|
|
@@ -11155,7 +9681,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
11155
9681
|
{ type: PaymentLibComponent },
|
|
11156
9682
|
{ type: PaymentViewService },
|
|
11157
9683
|
{ type: OrderslistService },
|
|
11158
|
-
{ type: ChangeDetectorRef },
|
|
11159
9684
|
{ type: Router }
|
|
11160
9685
|
]; };
|
|
11161
9686
|
ServiceRequestComponent.propDecorators = {
|
|
@@ -11170,7 +9695,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
11170
9695
|
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
11171
9696
|
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
11172
9697
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
11173
|
-
paymentGroupList: [{ type: Input, args: ['paymentGroupList',] }],
|
|
11174
9698
|
takePayment: [{ type: Input, args: ['takePayment',] }],
|
|
11175
9699
|
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }],
|
|
11176
9700
|
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
@@ -11443,7 +9967,6 @@ var PaymentLibModule = /** @class */ (function () {
|
|
|
11443
9967
|
PaymentListComponent,
|
|
11444
9968
|
PaymentViewComponent,
|
|
11445
9969
|
PbaPaymentComponent,
|
|
11446
|
-
ContactDetailsComponent,
|
|
11447
9970
|
ProcessRefundComponent,
|
|
11448
9971
|
RefundListComponent,
|
|
11449
9972
|
CardDetailsComponent,
|
|
@@ -11489,6 +10012,6 @@ var PaymentLibModule = /** @class */ (function () {
|
|
|
11489
10012
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11490
10013
|
*/
|
|
11491
10014
|
|
|
11492
|
-
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as
|
|
10015
|
+
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as ɵbb, AllocatePaymentsComponent as ɵw, CardDetailsComponent as ɵm, CaseTransactionsComponent as ɵz, ErrorBannerComponent as ɵbi, FeeSummaryComponent as ɵba, MarkUnidentifiedPaymentComponent as ɵr, MarkUnsolicitedPaymentComponent as ɵt, PageNotFoundComponent as ɵo, PaymentListComponent as ɵb, PaymentViewComponent as ɵf, PbaDetailsComponent as ɵy, PbaPaymentComponent as ɵi, ProcessRefundComponent as ɵj, ProcessedPaymentsComponent as ɵv, RefundListComponent as ɵl, RefundStatusComponent as ɵbk, ReportsComponent as ɵbg, ServiceRequestComponent as ɵbl, StatusHistoryComponent as ɵp, TableComponent as ɵbj, UnprocessedPaymentsComponent as ɵu, CapitalizePipe as ɵbd, CcdHyphensPipe as ɵbc, keyValuePipe as ɵbe, SanitizeHtmlPipe as ɵbf, BulkScaningPaymentService as ɵs, CardDetailsService as ɵn, CaseTransactionsService as ɵx, OrderslistService as ɵa, PaymentListService as ɵc, PaymentViewService as ɵg, RefundsService as ɵk, ErrorHandlerService as ɵe, WebComponentHttpClient as ɵh, ConsoleLoggerService as ɵbm, LoggerService as ɵd, StatusHistoryService as ɵq, XlFileService as ɵbh };
|
|
11493
10016
|
|
|
11494
10017
|
//# sourceMappingURL=hmcts-ccpay-web-component.js.map
|