@hmcts/ccpay-web-component 5.0.2-beta125 → 5.0.2-beta128
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 +560 -2127
- 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 +122 -715
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +20 -49
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +16 -59
- package/esm2015/lib/components/payment-view/payment-view.component.js +106 -194
- package/esm2015/lib/components/process-refund/process-refund.component.js +9 -31
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +31 -215
- package/esm2015/lib/components/service-request/service-request.component.js +146 -243
- package/esm2015/lib/components/table/table.component.js +9 -24
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -17
- 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 +4 -21
- 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/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +127 -837
- package/esm5/lib/components/case-transactions/case-transactions.component.js +20 -49
- package/esm5/lib/components/fee-summary/fee-summary.component.js +16 -59
- package/esm5/lib/components/payment-view/payment-view.component.js +124 -225
- package/esm5/lib/components/process-refund/process-refund.component.js +12 -30
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +29 -251
- package/esm5/lib/components/service-request/service-request.component.js +176 -284
- package/esm5/lib/components/table/table.component.js +9 -27
- package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -17
- 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 -16
- 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/fesm2015/hmcts-ccpay-web-component.js +482 -1886
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +521 -2131
- 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 -47
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -4
- package/lib/components/fee-summary/fee-summary.component.d.ts +0 -2
- package/lib/components/payment-view/payment-view.component.d.ts +6 -25
- package/lib/components/process-refund/process-refund.component.d.ts +2 -5
- package/lib/components/refund-status/refund-status.component.d.ts +6 -35
- package/lib/components/service-request/service-request.component.d.ts +9 -30
- package/lib/components/table/table.component.d.ts +0 -1
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +0 -4
- 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 -5
- 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 {?}
|
|
@@ -578,7 +558,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
578
558
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
579
559
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
580
560
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
581
|
-
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
582
561
|
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
583
562
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
584
563
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
@@ -609,7 +588,7 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
609
588
|
PaymentLibComponent.decorators = [
|
|
610
589
|
{ type: Component, args: [{
|
|
611
590
|
selector: 'ccpay-payment-lib',
|
|
612
|
-
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 [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n
|
|
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 [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\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'\"></ccpay-reports>\n "
|
|
613
592
|
}] }
|
|
614
593
|
];
|
|
615
594
|
/** @nocollapse */
|
|
@@ -622,7 +601,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
622
601
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
623
602
|
BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
624
603
|
REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
|
|
625
|
-
NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
626
604
|
CARDPAYMENTRETURNURL: [{ type: Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
627
605
|
CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
|
|
628
606
|
EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
|
|
@@ -638,8 +616,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
638
616
|
ISSFENABLE: [{ type: Input, args: ['ISSFENABLE',] }],
|
|
639
617
|
ISTURNOFF: [{ type: Input, args: ['ISTURNOFF',] }],
|
|
640
618
|
CASETYPE: [{ type: Input, args: ['CASETYPE',] }],
|
|
641
|
-
ISOLDPCIPALOFF: [{ type: Input, args: ['ISOLDPCIPALOFF',] }],
|
|
642
|
-
ISNEWPCIPALOFF: [{ type: Input, args: ['ISNEWPCIPALOFF',] }],
|
|
643
619
|
rootUrl: [{ type: Input, args: ['rootUrl',] }],
|
|
644
620
|
REFUNDLIST: [{ type: Input, args: ['REFUNDLIST',] }],
|
|
645
621
|
USERID: [{ type: Input, args: ['USERID',] }],
|
|
@@ -1384,28 +1360,13 @@ var PaymentViewService = /** @class */ (function () {
|
|
|
1384
1360
|
return PaymentViewService;
|
|
1385
1361
|
}());
|
|
1386
1362
|
|
|
1387
|
-
/**
|
|
1388
|
-
* @fileoverview added by tsickle
|
|
1389
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1390
|
-
*/
|
|
1391
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
1392
|
-
function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1393
|
-
this.contact_details = contact_details;
|
|
1394
|
-
this.fees = fees;
|
|
1395
|
-
this.payment_reference = payment_reference;
|
|
1396
|
-
this.refund_reason = refund_reason;
|
|
1397
|
-
this.total_refund_amount = total_refund_amount;
|
|
1398
|
-
this.is_over_payment = is_over_payment === 'op';
|
|
1399
|
-
}
|
|
1400
|
-
return PostRefundRetroRemission;
|
|
1401
|
-
}());
|
|
1402
|
-
|
|
1403
1363
|
/**
|
|
1404
1364
|
* @fileoverview added by tsickle
|
|
1405
1365
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1406
1366
|
*/
|
|
1407
1367
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1408
1368
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1369
|
+
var _this = this;
|
|
1409
1370
|
this.paymentViewService = paymentViewService;
|
|
1410
1371
|
this.paymentLibComponent = paymentLibComponent;
|
|
1411
1372
|
this.cd = cd;
|
|
@@ -1415,7 +1376,30 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1415
1376
|
this.isIssueRefunfBtnEnable = false;
|
|
1416
1377
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1417
1378
|
this.remissions = [];
|
|
1418
|
-
this.
|
|
1379
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
1380
|
+
* @return {?}
|
|
1381
|
+
*/
|
|
1382
|
+
function () {
|
|
1383
|
+
return _this.allowedRolesToAccessRefund.some((/**
|
|
1384
|
+
* @param {?} role
|
|
1385
|
+
* @return {?}
|
|
1386
|
+
*/
|
|
1387
|
+
function (role) {
|
|
1388
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1389
|
+
}));
|
|
1390
|
+
});
|
|
1391
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
1392
|
+
* @param {?} payment
|
|
1393
|
+
* @return {?}
|
|
1394
|
+
*/
|
|
1395
|
+
function (payment) {
|
|
1396
|
+
if (payment !== null && payment !== undefined) {
|
|
1397
|
+
/** @type {?} */
|
|
1398
|
+
var tmp4DayAgo = new Date();
|
|
1399
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1400
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1419
1403
|
}
|
|
1420
1404
|
/**
|
|
1421
1405
|
* @return {?}
|
|
@@ -1469,7 +1453,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1469
1453
|
}
|
|
1470
1454
|
}));
|
|
1471
1455
|
paymentGroup.fees = fees;
|
|
1472
|
-
_this.paymentFees = fees;
|
|
1473
1456
|
_this.paymentGroup = paymentGroup;
|
|
1474
1457
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1475
1458
|
* @param {?} paymentGroupObj
|
|
@@ -1514,24 +1497,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1514
1497
|
function () {
|
|
1515
1498
|
this.paymentLibComponent.viewName = 'payment-list';
|
|
1516
1499
|
};
|
|
1517
|
-
/**
|
|
1518
|
-
* @return {?}
|
|
1519
|
-
*/
|
|
1520
|
-
PaymentViewComponent.prototype.getOverPaymentValue = /**
|
|
1521
|
-
* @return {?}
|
|
1522
|
-
*/
|
|
1523
|
-
function () {
|
|
1524
|
-
/** @type {?} */
|
|
1525
|
-
var feesOverPayment = 0;
|
|
1526
|
-
this.paymentGroup.fees.forEach((/**
|
|
1527
|
-
* @param {?} fee
|
|
1528
|
-
* @return {?}
|
|
1529
|
-
*/
|
|
1530
|
-
function (fee) {
|
|
1531
|
-
feesOverPayment += fee.over_payment;
|
|
1532
|
-
}));
|
|
1533
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1534
|
-
};
|
|
1535
1500
|
/**
|
|
1536
1501
|
* @return {?}
|
|
1537
1502
|
*/
|
|
@@ -1617,7 +1582,7 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1617
1582
|
*/
|
|
1618
1583
|
function (fee) {
|
|
1619
1584
|
var _this = this;
|
|
1620
|
-
if (this.
|
|
1585
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
1621
1586
|
this.feeId = fee;
|
|
1622
1587
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe((/**
|
|
1623
1588
|
* @param {?} paymentGroup
|
|
@@ -1658,64 +1623,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1658
1623
|
}
|
|
1659
1624
|
return false;
|
|
1660
1625
|
};
|
|
1661
|
-
/**
|
|
1662
|
-
* @return {?}
|
|
1663
|
-
*/
|
|
1664
|
-
PaymentViewComponent.prototype.processRefund = /**
|
|
1665
|
-
* @return {?}
|
|
1666
|
-
*/
|
|
1667
|
-
function () {
|
|
1668
|
-
var _this = this;
|
|
1669
|
-
this.isConfirmationBtnDisabled = true;
|
|
1670
|
-
this.errorMessage = '';
|
|
1671
|
-
/** @type {?} */
|
|
1672
|
-
var obj = this.paymentGroup.fees[0];
|
|
1673
|
-
this.fees = [{ id: obj.id,
|
|
1674
|
-
code: obj.code,
|
|
1675
|
-
version: obj.version,
|
|
1676
|
-
apportion_amount: obj.apportion_amount,
|
|
1677
|
-
calculated_amount: obj.calculated_amount,
|
|
1678
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1679
|
-
volume: obj.volume,
|
|
1680
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
1681
|
-
/** @type {?} */
|
|
1682
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1683
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
1684
|
-
* @param {?} response
|
|
1685
|
-
* @return {?}
|
|
1686
|
-
*/
|
|
1687
|
-
function (response) {
|
|
1688
|
-
if (JSON.parse(response)) {
|
|
1689
|
-
_this.viewCompStatus = '';
|
|
1690
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
1691
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
1692
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
1693
|
-
}
|
|
1694
|
-
}), (/**
|
|
1695
|
-
* @param {?} error
|
|
1696
|
-
* @return {?}
|
|
1697
|
-
*/
|
|
1698
|
-
function (error) {
|
|
1699
|
-
_this.errorMessage = error;
|
|
1700
|
-
_this.isConfirmationBtnDisabled = false;
|
|
1701
|
-
_this.cd.detectChanges();
|
|
1702
|
-
}));
|
|
1703
|
-
};
|
|
1704
|
-
/**
|
|
1705
|
-
* @param {?=} note
|
|
1706
|
-
* @return {?}
|
|
1707
|
-
*/
|
|
1708
|
-
PaymentViewComponent.prototype.gotoAddressPage = /**
|
|
1709
|
-
* @param {?=} note
|
|
1710
|
-
* @return {?}
|
|
1711
|
-
*/
|
|
1712
|
-
function (note) {
|
|
1713
|
-
if (note) {
|
|
1714
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1715
|
-
}
|
|
1716
|
-
this.errorMessage = '';
|
|
1717
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1718
|
-
};
|
|
1719
1626
|
/**
|
|
1720
1627
|
* @param {?} payment
|
|
1721
1628
|
* @param {?} remission
|
|
@@ -1730,44 +1637,61 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1730
1637
|
*/
|
|
1731
1638
|
function (payment, remission, fees) {
|
|
1732
1639
|
var _this = this;
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
*/
|
|
1738
|
-
function (paymentGroup) {
|
|
1739
|
-
_this.paymentGroup = paymentGroup;
|
|
1740
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1741
|
-
* @param {?} paymentGroupObj
|
|
1640
|
+
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1641
|
+
this.payment = payment;
|
|
1642
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
1643
|
+
* @param {?} paymentGroup
|
|
1742
1644
|
* @return {?}
|
|
1743
1645
|
*/
|
|
1744
|
-
function (
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1646
|
+
function (paymentGroup) {
|
|
1647
|
+
_this.paymentGroup = paymentGroup;
|
|
1648
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1649
|
+
* @param {?} paymentGroupObj
|
|
1650
|
+
* @return {?}
|
|
1651
|
+
*/
|
|
1652
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1653
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1654
|
+
_this.remissions = remission;
|
|
1655
|
+
_this.remissionFeeAmt = fees.filter((/**
|
|
1656
|
+
* @param {?} data
|
|
1657
|
+
* @return {?}
|
|
1658
|
+
*/
|
|
1659
|
+
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1660
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1661
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1662
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1663
|
+
}), (/**
|
|
1664
|
+
* @param {?} error
|
|
1749
1665
|
* @return {?}
|
|
1750
1666
|
*/
|
|
1751
|
-
function (
|
|
1752
|
-
|
|
1753
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1754
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1755
|
-
}), (/**
|
|
1756
|
-
* @param {?} error
|
|
1757
|
-
* @return {?}
|
|
1758
|
-
*/
|
|
1759
|
-
function (error) { return _this.errorMessage = error; }));
|
|
1760
|
-
//}
|
|
1667
|
+
function (error) { return _this.errorMessage = error; }));
|
|
1668
|
+
}
|
|
1761
1669
|
};
|
|
1762
1670
|
/**
|
|
1763
1671
|
* @return {?}
|
|
1764
1672
|
*/
|
|
1765
|
-
PaymentViewComponent.prototype.
|
|
1673
|
+
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
1766
1674
|
* @return {?}
|
|
1767
1675
|
*/
|
|
1768
1676
|
function () {
|
|
1769
|
-
|
|
1770
|
-
this.
|
|
1677
|
+
var _this = this;
|
|
1678
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1679
|
+
this.paymentGroup.payments.forEach((/**
|
|
1680
|
+
* @param {?} payment
|
|
1681
|
+
* @return {?}
|
|
1682
|
+
*/
|
|
1683
|
+
function (payment) {
|
|
1684
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1685
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1686
|
+
}
|
|
1687
|
+
}));
|
|
1688
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1689
|
+
return true;
|
|
1690
|
+
}
|
|
1691
|
+
else {
|
|
1692
|
+
return false;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1771
1695
|
};
|
|
1772
1696
|
/**
|
|
1773
1697
|
* @param {?} paymentgrp
|
|
@@ -1779,18 +1703,13 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1779
1703
|
*/
|
|
1780
1704
|
function (paymentgrp) {
|
|
1781
1705
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1782
|
-
if (this.
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
this.isRefundRemission = true;
|
|
1790
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1791
|
-
this.isFromPaymentDetailPage = true;
|
|
1792
|
-
this.isFromServiceRequestPage = false;
|
|
1793
|
-
}
|
|
1706
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1707
|
+
this.paymentGroup = paymentgrp;
|
|
1708
|
+
this.viewStatus = 'issuerefund';
|
|
1709
|
+
this.isRefundRemission = true;
|
|
1710
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1711
|
+
this.isFromPaymentDetailPage = true;
|
|
1712
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1794
1713
|
}
|
|
1795
1714
|
}
|
|
1796
1715
|
};
|
|
@@ -1829,110 +1748,73 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1829
1748
|
* @param {?} payment
|
|
1830
1749
|
* @return {?}
|
|
1831
1750
|
*/
|
|
1832
|
-
PaymentViewComponent.prototype.
|
|
1751
|
+
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
1833
1752
|
* @param {?} payment
|
|
1834
1753
|
* @return {?}
|
|
1835
1754
|
*/
|
|
1836
1755
|
function (payment) {
|
|
1837
|
-
if (
|
|
1838
|
-
|
|
1756
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
1757
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
1758
|
+
this.isIssueRefunfBtnEnable = true;
|
|
1759
|
+
}
|
|
1760
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
1761
|
+
return true;
|
|
1839
1762
|
}
|
|
1840
1763
|
else {
|
|
1841
1764
|
return false;
|
|
1842
1765
|
}
|
|
1843
1766
|
};
|
|
1844
1767
|
/**
|
|
1845
|
-
* @param {?} remission
|
|
1846
1768
|
* @return {?}
|
|
1847
1769
|
*/
|
|
1848
|
-
PaymentViewComponent.prototype.
|
|
1849
|
-
* @param {?} remission
|
|
1770
|
+
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
1850
1771
|
* @return {?}
|
|
1851
1772
|
*/
|
|
1852
|
-
function (
|
|
1853
|
-
if (
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1773
|
+
function () {
|
|
1774
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1775
|
+
/** @type {?} */
|
|
1776
|
+
var payment = this.paymentGroup.payments[0];
|
|
1777
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1778
|
+
return true;
|
|
1779
|
+
}
|
|
1857
1780
|
return false;
|
|
1858
1781
|
}
|
|
1859
1782
|
};
|
|
1860
1783
|
/**
|
|
1861
|
-
* @param {?}
|
|
1784
|
+
* @param {?} feeCode
|
|
1862
1785
|
* @return {?}
|
|
1863
1786
|
*/
|
|
1864
|
-
PaymentViewComponent.prototype.
|
|
1865
|
-
* @param {?}
|
|
1787
|
+
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
1788
|
+
* @param {?} feeCode
|
|
1866
1789
|
* @return {?}
|
|
1867
1790
|
*/
|
|
1868
|
-
function (
|
|
1869
|
-
|
|
1870
|
-
|
|
1791
|
+
function (feeCode) {
|
|
1792
|
+
var e_2, _a;
|
|
1793
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
1794
|
+
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1795
|
+
try {
|
|
1796
|
+
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1797
|
+
var remission = _c.value;
|
|
1798
|
+
if (remission.fee_code === feeCode) {
|
|
1799
|
+
return false;
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1804
|
+
finally {
|
|
1805
|
+
try {
|
|
1806
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1807
|
+
}
|
|
1808
|
+
finally { if (e_2) throw e_2.error; }
|
|
1809
|
+
}
|
|
1810
|
+
return true;
|
|
1811
|
+
}
|
|
1812
|
+
return true;
|
|
1871
1813
|
}
|
|
1872
1814
|
else {
|
|
1873
1815
|
return false;
|
|
1874
1816
|
}
|
|
1875
1817
|
};
|
|
1876
|
-
/**
|
|
1877
|
-
* @param {?} paymentType
|
|
1878
|
-
* @return {?}
|
|
1879
|
-
*/
|
|
1880
|
-
PaymentViewComponent.prototype.selectPymentOption = /**
|
|
1881
|
-
* @param {?} paymentType
|
|
1882
|
-
* @return {?}
|
|
1883
|
-
*/
|
|
1884
|
-
function (paymentType) {
|
|
1885
|
-
this.paymentType = paymentType;
|
|
1886
|
-
this.isContinueBtnDisabled = false;
|
|
1887
|
-
};
|
|
1888
|
-
/**
|
|
1889
|
-
* @param {?} paymentgrp
|
|
1890
|
-
* @return {?}
|
|
1891
|
-
*/
|
|
1892
|
-
PaymentViewComponent.prototype.continuePayment = /**
|
|
1893
|
-
* @param {?} paymentgrp
|
|
1894
|
-
* @return {?}
|
|
1895
|
-
*/
|
|
1896
|
-
function (paymentgrp) {
|
|
1897
|
-
if (this.paymentType === 'op') {
|
|
1898
|
-
this.isFullyRefund = false;
|
|
1899
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1900
|
-
}
|
|
1901
|
-
else if (this.paymentType === 'fp') {
|
|
1902
|
-
this.isFullyRefund = true;
|
|
1903
|
-
this.paymentGroup = paymentgrp;
|
|
1904
|
-
this.viewStatus = 'issuerefund';
|
|
1905
|
-
this.viewCompStatus = "";
|
|
1906
|
-
this.isRefundRemission = true;
|
|
1907
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1908
|
-
this.isFromPaymentDetailPage = true;
|
|
1909
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1910
|
-
}
|
|
1911
|
-
};
|
|
1912
|
-
/**
|
|
1913
|
-
* @param {?} event
|
|
1914
|
-
* @return {?}
|
|
1915
|
-
*/
|
|
1916
|
-
PaymentViewComponent.prototype.gotoPaymentSelectPage = /**
|
|
1917
|
-
* @param {?} event
|
|
1918
|
-
* @return {?}
|
|
1919
|
-
*/
|
|
1920
|
-
function (event) {
|
|
1921
|
-
event.preventDefault();
|
|
1922
|
-
this.viewCompStatus = 'overpayment';
|
|
1923
|
-
};
|
|
1924
|
-
/**
|
|
1925
|
-
* @param {?} obj
|
|
1926
|
-
* @return {?}
|
|
1927
|
-
*/
|
|
1928
|
-
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1929
|
-
* @param {?} obj
|
|
1930
|
-
* @return {?}
|
|
1931
|
-
*/
|
|
1932
|
-
function (obj) {
|
|
1933
|
-
this.contactDetailsObj = obj;
|
|
1934
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1935
|
-
};
|
|
1936
1818
|
/**
|
|
1937
1819
|
* @return {?}
|
|
1938
1820
|
*/
|
|
@@ -1952,8 +1834,8 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1952
1834
|
PaymentViewComponent.decorators = [
|
|
1953
1835
|
{ type: Component, args: [{
|
|
1954
1836
|
selector: 'ccpay-payment-view',
|
|
1955
|
-
template: "<div class=\"payment-view-section\">\n<ng-container *ngIf=\"viewStatus === 'paymentview' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.over_payment > 0\">\n <td class=\"bold tb-col-w\">Over payment</td>\n <td class=\"tb-col-w\">\u00A3{{ getOverPaymentValue() | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [fees] =\"paymentFees\"\n [isFullyRefund] = \"isFullyRefund\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n \n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n\n\n\n</ng-container>\n</div>\n<div class=\"over-payment\">\n<ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroup?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComponent()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroup)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event)\"\n(redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroup.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n\n</ng-container>\n</div>",
|
|
1956
|
-
styles: [".
|
|
1837
|
+
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n\n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n\n </div>\n </div>\n\n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n\n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n\n </td> -->\n </tr>\n </tbody>\n\n\n </table>\n </div></div>\n\n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n\n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n\n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[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\n\n\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n\n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n\n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n\n </div>\n\n </main>\n </div> -->\n<!-- </ng-container> -->\n",
|
|
1838
|
+
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}"]
|
|
1957
1839
|
}] }
|
|
1958
1840
|
];
|
|
1959
1841
|
/** @nocollapse */
|
|
@@ -1967,8 +1849,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1967
1849
|
isTurnOff: [{ type: Input }],
|
|
1968
1850
|
isTakePayment: [{ type: Input }],
|
|
1969
1851
|
caseType: [{ type: Input }],
|
|
1970
|
-
isNewPcipalOff: [{ type: Input }],
|
|
1971
|
-
isOldPcipalOff: [{ type: Input }],
|
|
1972
1852
|
orderRef: [{ type: Input }],
|
|
1973
1853
|
orderStatus: [{ type: Input }],
|
|
1974
1854
|
orderTotalPayments: [{ type: Input }],
|
|
@@ -2119,21 +1999,6 @@ var RefundsService = /** @class */ (function () {
|
|
|
2119
1999
|
function (body) {
|
|
2120
2000
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(catchError(this.errorHandlerService.handleError));
|
|
2121
2001
|
};
|
|
2122
|
-
/**
|
|
2123
|
-
* @param {?} body
|
|
2124
|
-
* @param {?} refundRef
|
|
2125
|
-
* @param {?} notificationType
|
|
2126
|
-
* @return {?}
|
|
2127
|
-
*/
|
|
2128
|
-
RefundsService.prototype.putResendOrEdit = /**
|
|
2129
|
-
* @param {?} body
|
|
2130
|
-
* @param {?} refundRef
|
|
2131
|
-
* @param {?} notificationType
|
|
2132
|
-
* @return {?}
|
|
2133
|
-
*/
|
|
2134
|
-
function (body, refundRef, notificationType) {
|
|
2135
|
-
return this.https.put(this.paymentLibService.REFUNDS_API_ROOT + "/resend/notification/" + refundRef + "?notificationType=" + notificationType, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
2136
|
-
};
|
|
2137
2002
|
/**
|
|
2138
2003
|
* @param {?} body
|
|
2139
2004
|
* @param {?} refund_reference
|
|
@@ -2220,9 +2085,8 @@ var RefundsService = /** @class */ (function () {
|
|
|
2220
2085
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2221
2086
|
*/
|
|
2222
2087
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2223
|
-
function ProcessRefundComponent(RefundsService$$1,
|
|
2088
|
+
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
2224
2089
|
this.RefundsService = RefundsService$$1;
|
|
2225
|
-
this.paymentViewService = paymentViewService;
|
|
2226
2090
|
this.formBuilder = formBuilder;
|
|
2227
2091
|
this.OrderslistService = OrderslistService$$1;
|
|
2228
2092
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2245,7 +2109,6 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2245
2109
|
this.isReasonEmpty = false;
|
|
2246
2110
|
this.isReasonInvalid = false;
|
|
2247
2111
|
this.successMsg = null;
|
|
2248
|
-
this.cpoDetails = null;
|
|
2249
2112
|
this.isConfirmButtondisabled = true;
|
|
2250
2113
|
}
|
|
2251
2114
|
/**
|
|
@@ -2293,20 +2156,6 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2293
2156
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2294
2157
|
this.isFromRefundListPage = true;
|
|
2295
2158
|
}
|
|
2296
|
-
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
2297
|
-
* @param {?} response
|
|
2298
|
-
* @return {?}
|
|
2299
|
-
*/
|
|
2300
|
-
function (response) {
|
|
2301
|
-
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2302
|
-
}), (/**
|
|
2303
|
-
* @param {?} error
|
|
2304
|
-
* @return {?}
|
|
2305
|
-
*/
|
|
2306
|
-
function (error) {
|
|
2307
|
-
_this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
2308
|
-
_this.isCPODown = true;
|
|
2309
|
-
}));
|
|
2310
2159
|
};
|
|
2311
2160
|
/**
|
|
2312
2161
|
* @param {?} code
|
|
@@ -2646,17 +2495,25 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2646
2495
|
this.isReasonInvalid = vals[7];
|
|
2647
2496
|
}
|
|
2648
2497
|
};
|
|
2498
|
+
/**
|
|
2499
|
+
* @return {?}
|
|
2500
|
+
*/
|
|
2501
|
+
ProcessRefundComponent.prototype.goToCaseReview = /**
|
|
2502
|
+
* @return {?}
|
|
2503
|
+
*/
|
|
2504
|
+
function () {
|
|
2505
|
+
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2506
|
+
};
|
|
2649
2507
|
ProcessRefundComponent.decorators = [
|
|
2650
2508
|
{ type: Component, args: [{
|
|
2651
2509
|
selector: 'ccpay-process-refund',
|
|
2652
|
-
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
|
|
2510
|
+
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",
|
|
2653
2511
|
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}"]
|
|
2654
2512
|
}] }
|
|
2655
2513
|
];
|
|
2656
2514
|
/** @nocollapse */
|
|
2657
2515
|
ProcessRefundComponent.ctorParameters = function () { return [
|
|
2658
2516
|
{ type: RefundsService },
|
|
2659
|
-
{ type: PaymentViewService },
|
|
2660
2517
|
{ type: FormBuilder },
|
|
2661
2518
|
{ type: OrderslistService },
|
|
2662
2519
|
{ type: PaymentLibComponent },
|
|
@@ -2679,10 +2536,10 @@ var RefundListComponent = /** @class */ (function () {
|
|
|
2679
2536
|
this.refundService = refundService;
|
|
2680
2537
|
this.submittedRefundList = [];
|
|
2681
2538
|
this.rejectedRefundList = [];
|
|
2682
|
-
// approvalStatus = 'Sent for approval';
|
|
2683
|
-
// rejectStatus = 'Update required';
|
|
2684
2539
|
this.approvalStatus = 'Sent for approval';
|
|
2685
2540
|
this.rejectStatus = 'Update required';
|
|
2541
|
+
// approvalStatus = 'sent for approval';
|
|
2542
|
+
// rejectStatus = 'sent back';
|
|
2686
2543
|
this.errorMessage = null;
|
|
2687
2544
|
this.isAuthorized = true;
|
|
2688
2545
|
}
|
|
@@ -2962,447 +2819,6 @@ var StatusHistoryComponent = /** @class */ (function () {
|
|
|
2962
2819
|
return StatusHistoryComponent;
|
|
2963
2820
|
}());
|
|
2964
2821
|
|
|
2965
|
-
/**
|
|
2966
|
-
* @fileoverview added by tsickle
|
|
2967
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2968
|
-
*/
|
|
2969
|
-
var NotificationService = /** @class */ (function () {
|
|
2970
|
-
function NotificationService(http, https, errorHandlerService, paymentLibService) {
|
|
2971
|
-
this.http = http;
|
|
2972
|
-
this.https = https;
|
|
2973
|
-
this.errorHandlerService = errorHandlerService;
|
|
2974
|
-
this.paymentLibService = paymentLibService;
|
|
2975
|
-
}
|
|
2976
|
-
/**
|
|
2977
|
-
* @param {?} reference
|
|
2978
|
-
* @return {?}
|
|
2979
|
-
*/
|
|
2980
|
-
NotificationService.prototype.getRefundNotification = /**
|
|
2981
|
-
* @param {?} reference
|
|
2982
|
-
* @return {?}
|
|
2983
|
-
*/
|
|
2984
|
-
function (reference) {
|
|
2985
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/notifications/" + reference, {
|
|
2986
|
-
withCredentials: true
|
|
2987
|
-
})
|
|
2988
|
-
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2989
|
-
};
|
|
2990
|
-
/**
|
|
2991
|
-
* @param {?} postcode
|
|
2992
|
-
* @return {?}
|
|
2993
|
-
*/
|
|
2994
|
-
NotificationService.prototype.getAddressByPostcode = /**
|
|
2995
|
-
* @param {?} postcode
|
|
2996
|
-
* @return {?}
|
|
2997
|
-
*/
|
|
2998
|
-
function (postcode) {
|
|
2999
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/search/places/v1/postcode?postcode=" + postcode, {
|
|
3000
|
-
withCredentials: true
|
|
3001
|
-
})
|
|
3002
|
-
.pipe(catchError(this.errorHandlerService.handleError));
|
|
3003
|
-
};
|
|
3004
|
-
NotificationService.decorators = [
|
|
3005
|
-
{ type: Injectable, args: [{
|
|
3006
|
-
providedIn: 'root'
|
|
3007
|
-
},] }
|
|
3008
|
-
];
|
|
3009
|
-
/** @nocollapse */
|
|
3010
|
-
NotificationService.ctorParameters = function () { return [
|
|
3011
|
-
{ type: HttpClient },
|
|
3012
|
-
{ type: WebComponentHttpClient },
|
|
3013
|
-
{ type: ErrorHandlerService },
|
|
3014
|
-
{ type: PaymentLibService }
|
|
3015
|
-
]; };
|
|
3016
|
-
/** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
3017
|
-
return NotificationService;
|
|
3018
|
-
}());
|
|
3019
|
-
|
|
3020
|
-
/**
|
|
3021
|
-
* @fileoverview added by tsickle
|
|
3022
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3023
|
-
*/
|
|
3024
|
-
var ContactDetailsComponent = /** @class */ (function () {
|
|
3025
|
-
function ContactDetailsComponent(formBuilder, notificationService, paymentLibComponent) {
|
|
3026
|
-
this.formBuilder = formBuilder;
|
|
3027
|
-
this.notificationService = notificationService;
|
|
3028
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
3029
|
-
this.assignContactDetails = new EventEmitter();
|
|
3030
|
-
this.assignContactDetailsInFefundsList = new EventEmitter();
|
|
3031
|
-
this.redirectToIssueRefund = new EventEmitter();
|
|
3032
|
-
this.pageTitle = 'Payment status history';
|
|
3033
|
-
this.isEmailSAddressClicked = true;
|
|
3034
|
-
this.isShowPickAddress = false;
|
|
3035
|
-
this.isPostcodeClicked = false;
|
|
3036
|
-
this.isManualAddressClicked = false;
|
|
3037
|
-
this.addressPostcodeList = [];
|
|
3038
|
-
this.isAddressBoxEmpty = false;
|
|
3039
|
-
this.isEmailEmpty = false;
|
|
3040
|
-
this.emailHasError = false;
|
|
3041
|
-
this.isPostcodeEmpty = false;
|
|
3042
|
-
this.postcodeHasError = false;
|
|
3043
|
-
this.isaddressLine1Empty = false;
|
|
3044
|
-
this.addressLine1HasError = false;
|
|
3045
|
-
this.addressLine2HasError = false;
|
|
3046
|
-
this.isTownOrCityEmpty = false;
|
|
3047
|
-
this.townOrCityHasError = false;
|
|
3048
|
-
this.isCountyEmpty = false;
|
|
3049
|
-
this.countyHasError = false;
|
|
3050
|
-
this.isMPostcodeEmpty = false;
|
|
3051
|
-
this.mpostcodeHasError = false;
|
|
3052
|
-
this.isCountryEmpty = false;
|
|
3053
|
-
}
|
|
3054
|
-
/**
|
|
3055
|
-
* @return {?}
|
|
3056
|
-
*/
|
|
3057
|
-
ContactDetailsComponent.prototype.ngOnInit = /**
|
|
3058
|
-
* @return {?}
|
|
3059
|
-
*/
|
|
3060
|
-
function () {
|
|
3061
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3062
|
-
this.emailAddressForm = this.formBuilder.group({
|
|
3063
|
-
email: new FormControl('', Validators.compose([
|
|
3064
|
-
Validators.required,
|
|
3065
|
-
Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
3066
|
-
]))
|
|
3067
|
-
});
|
|
3068
|
-
this.postCodeForm = this.formBuilder.group({
|
|
3069
|
-
postcode: new FormControl('', Validators.compose([
|
|
3070
|
-
Validators.required,
|
|
3071
|
-
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3072
|
-
]))
|
|
3073
|
-
});
|
|
3074
|
-
this.manualAddressForm = this.formBuilder.group({
|
|
3075
|
-
addressl1: new FormControl('', Validators.compose([
|
|
3076
|
-
Validators.required,
|
|
3077
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3078
|
-
])),
|
|
3079
|
-
addressl2: new FormControl('', Validators.compose([
|
|
3080
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3081
|
-
])),
|
|
3082
|
-
townorcity: new FormControl('', Validators.compose([
|
|
3083
|
-
Validators.required,
|
|
3084
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3085
|
-
])),
|
|
3086
|
-
county: new FormControl('', Validators.compose([
|
|
3087
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3088
|
-
])),
|
|
3089
|
-
mpostcode: new FormControl('', Validators.compose([
|
|
3090
|
-
Validators.required,
|
|
3091
|
-
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3092
|
-
])),
|
|
3093
|
-
country: new FormControl('', Validators.compose([
|
|
3094
|
-
Validators.required
|
|
3095
|
-
]))
|
|
3096
|
-
});
|
|
3097
|
-
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
3098
|
-
this.setEditDetails();
|
|
3099
|
-
}
|
|
3100
|
-
if (this.isEditOperationInRefundList === undefined) {
|
|
3101
|
-
this.isEditOperationInRefundList = false;
|
|
3102
|
-
}
|
|
3103
|
-
};
|
|
3104
|
-
/**
|
|
3105
|
-
* @return {?}
|
|
3106
|
-
*/
|
|
3107
|
-
ContactDetailsComponent.prototype.setEditDetails = /**
|
|
3108
|
-
* @return {?}
|
|
3109
|
-
*/
|
|
3110
|
-
function () {
|
|
3111
|
-
if (this.addressObj.notification_type === 'EMAIL') {
|
|
3112
|
-
this.isEmailSAddressClicked = true;
|
|
3113
|
-
this.isPostcodeClicked = false;
|
|
3114
|
-
this.isManualAddressClicked = false;
|
|
3115
|
-
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
3116
|
-
}
|
|
3117
|
-
else if (this.addressObj.notification_type === 'LETTER') {
|
|
3118
|
-
this.isEmailSAddressClicked = false;
|
|
3119
|
-
this.isPostcodeClicked = true;
|
|
3120
|
-
this.isManualAddressClicked = true;
|
|
3121
|
-
this.manualAddressForm.patchValue({
|
|
3122
|
-
addressl1: this.addressObj.contact_details.address_line,
|
|
3123
|
-
townorcity: this.addressObj.contact_details.city,
|
|
3124
|
-
county: this.addressObj.contact_details.county,
|
|
3125
|
-
country: this.addressObj.contact_details.country,
|
|
3126
|
-
mpostcode: this.addressObj.contact_details.postal_code
|
|
3127
|
-
});
|
|
3128
|
-
}
|
|
3129
|
-
};
|
|
3130
|
-
/**
|
|
3131
|
-
* @param {?} type
|
|
3132
|
-
* @param {?} isLinkedClied
|
|
3133
|
-
* @return {?}
|
|
3134
|
-
*/
|
|
3135
|
-
ContactDetailsComponent.prototype.selectContactOption = /**
|
|
3136
|
-
* @param {?} type
|
|
3137
|
-
* @param {?} isLinkedClied
|
|
3138
|
-
* @return {?}
|
|
3139
|
-
*/
|
|
3140
|
-
function (type, isLinkedClied) {
|
|
3141
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3142
|
-
if (type === 'Email' && isLinkedClied === 'false') {
|
|
3143
|
-
this.isEmailSAddressClicked = true;
|
|
3144
|
-
this.isPostcodeClicked = false;
|
|
3145
|
-
this.isManualAddressClicked = false;
|
|
3146
|
-
}
|
|
3147
|
-
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
3148
|
-
this.isEmailSAddressClicked = false;
|
|
3149
|
-
this.isPostcodeClicked = true;
|
|
3150
|
-
this.isManualAddressClicked = false;
|
|
3151
|
-
}
|
|
3152
|
-
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
3153
|
-
this.isEmailSAddressClicked = false;
|
|
3154
|
-
this.isPostcodeClicked = true;
|
|
3155
|
-
this.isManualAddressClicked = true;
|
|
3156
|
-
}
|
|
3157
|
-
};
|
|
3158
|
-
/**
|
|
3159
|
-
* @return {?}
|
|
3160
|
-
*/
|
|
3161
|
-
ContactDetailsComponent.prototype.finalFormSubmit = /**
|
|
3162
|
-
* @return {?}
|
|
3163
|
-
*/
|
|
3164
|
-
function () {
|
|
3165
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3166
|
-
if (this.isEmailSAddressClicked) {
|
|
3167
|
-
/** @type {?} */
|
|
3168
|
-
var emailField = this.emailAddressForm.controls.email;
|
|
3169
|
-
if (this.emailAddressForm.valid) {
|
|
3170
|
-
if (!this.isEditOperationInRefundList) {
|
|
3171
|
-
this.assignContactDetails.emit({
|
|
3172
|
-
email: emailField.value,
|
|
3173
|
-
notification_type: 'EMAIL'
|
|
3174
|
-
});
|
|
3175
|
-
}
|
|
3176
|
-
else {
|
|
3177
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3178
|
-
email: emailField.value,
|
|
3179
|
-
notification_type: 'EMAIL'
|
|
3180
|
-
});
|
|
3181
|
-
}
|
|
3182
|
-
}
|
|
3183
|
-
else {
|
|
3184
|
-
if (emailField.value == '') {
|
|
3185
|
-
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3186
|
-
}
|
|
3187
|
-
if (emailField.value != '' && emailField.invalid) {
|
|
3188
|
-
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3189
|
-
}
|
|
3190
|
-
}
|
|
3191
|
-
}
|
|
3192
|
-
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
3193
|
-
this.postcodeValidation('FS');
|
|
3194
|
-
}
|
|
3195
|
-
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
3196
|
-
/** @type {?} */
|
|
3197
|
-
var fieldCtrls = this.manualAddressForm.controls;
|
|
3198
|
-
if (this.manualAddressForm.valid) {
|
|
3199
|
-
if (!this.isEditOperationInRefundList) {
|
|
3200
|
-
this.assignContactDetails.emit({
|
|
3201
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3202
|
-
city: fieldCtrls.townorcity.value,
|
|
3203
|
-
county: fieldCtrls.county.value,
|
|
3204
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3205
|
-
country: fieldCtrls.country.value,
|
|
3206
|
-
notification_type: 'LETTER'
|
|
3207
|
-
});
|
|
3208
|
-
}
|
|
3209
|
-
else {
|
|
3210
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3211
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3212
|
-
city: fieldCtrls.townorcity.value,
|
|
3213
|
-
county: fieldCtrls.county.value,
|
|
3214
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3215
|
-
country: fieldCtrls.country.value,
|
|
3216
|
-
notification_type: 'LETTER'
|
|
3217
|
-
});
|
|
3218
|
-
}
|
|
3219
|
-
}
|
|
3220
|
-
else {
|
|
3221
|
-
if (fieldCtrls.addressl1.value == '') {
|
|
3222
|
-
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
3223
|
-
}
|
|
3224
|
-
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
3225
|
-
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
3226
|
-
}
|
|
3227
|
-
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
3228
|
-
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
3229
|
-
}
|
|
3230
|
-
if (fieldCtrls.townorcity.value == '') {
|
|
3231
|
-
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
3232
|
-
}
|
|
3233
|
-
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
3234
|
-
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
3235
|
-
}
|
|
3236
|
-
if (fieldCtrls.county.value == '') {
|
|
3237
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
3238
|
-
}
|
|
3239
|
-
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
3240
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
3241
|
-
}
|
|
3242
|
-
if (fieldCtrls.mpostcode.value == '') {
|
|
3243
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
3244
|
-
}
|
|
3245
|
-
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
3246
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
3247
|
-
}
|
|
3248
|
-
if (fieldCtrls.country.value == '') {
|
|
3249
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
3250
|
-
}
|
|
3251
|
-
}
|
|
3252
|
-
}
|
|
3253
|
-
};
|
|
3254
|
-
/**
|
|
3255
|
-
* @param {?} str
|
|
3256
|
-
* @return {?}
|
|
3257
|
-
*/
|
|
3258
|
-
ContactDetailsComponent.prototype.postcodeValidation = /**
|
|
3259
|
-
* @param {?} str
|
|
3260
|
-
* @return {?}
|
|
3261
|
-
*/
|
|
3262
|
-
function (str) {
|
|
3263
|
-
var _this = this;
|
|
3264
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3265
|
-
/** @type {?} */
|
|
3266
|
-
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3267
|
-
if (this.postCodeForm.valid) {
|
|
3268
|
-
if (str === 'FA') {
|
|
3269
|
-
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe((/**
|
|
3270
|
-
* @param {?} refundsNotification
|
|
3271
|
-
* @return {?}
|
|
3272
|
-
*/
|
|
3273
|
-
function (refundsNotification) {
|
|
3274
|
-
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3275
|
-
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3276
|
-
if (!_this.isShowPickAddress) {
|
|
3277
|
-
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3278
|
-
}
|
|
3279
|
-
})),
|
|
3280
|
-
(/**
|
|
3281
|
-
* @param {?} error
|
|
3282
|
-
* @return {?}
|
|
3283
|
-
*/
|
|
3284
|
-
function (error) {
|
|
3285
|
-
_this.isShowPickAddress = false;
|
|
3286
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
3287
|
-
});
|
|
3288
|
-
}
|
|
3289
|
-
else if (str === 'FS') {
|
|
3290
|
-
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
3291
|
-
this.isAddressBoxEmpty = false;
|
|
3292
|
-
/** @type {?} */
|
|
3293
|
-
var addressLine = "";
|
|
3294
|
-
/** @type {?} */
|
|
3295
|
-
var addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
3296
|
-
for (var i = 0; i < addressArray.length - 2; i++) {
|
|
3297
|
-
addressLine += addressArray[i];
|
|
3298
|
-
}
|
|
3299
|
-
/** @type {?} */
|
|
3300
|
-
var addressObject = {
|
|
3301
|
-
address_line: addressLine,
|
|
3302
|
-
city: this.postcodeAddress.POST_TOWN,
|
|
3303
|
-
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
3304
|
-
postal_code: this.postcodeAddress.POSTCODE,
|
|
3305
|
-
country: 'United Kingdom',
|
|
3306
|
-
notification_type: 'LETTER'
|
|
3307
|
-
};
|
|
3308
|
-
if (!this.isEditOperationInRefundList) {
|
|
3309
|
-
this.assignContactDetails.emit(addressObject);
|
|
3310
|
-
}
|
|
3311
|
-
else {
|
|
3312
|
-
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
3313
|
-
}
|
|
3314
|
-
}
|
|
3315
|
-
else {
|
|
3316
|
-
this.isAddressBoxEmpty = true;
|
|
3317
|
-
}
|
|
3318
|
-
}
|
|
3319
|
-
}
|
|
3320
|
-
else {
|
|
3321
|
-
if (postcodeField.value == '') {
|
|
3322
|
-
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3323
|
-
}
|
|
3324
|
-
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
3325
|
-
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3326
|
-
}
|
|
3327
|
-
}
|
|
3328
|
-
};
|
|
3329
|
-
/**
|
|
3330
|
-
* @param {?} event
|
|
3331
|
-
* @return {?}
|
|
3332
|
-
*/
|
|
3333
|
-
ContactDetailsComponent.prototype.redirection = /**
|
|
3334
|
-
* @param {?} event
|
|
3335
|
-
* @return {?}
|
|
3336
|
-
*/
|
|
3337
|
-
function (event) {
|
|
3338
|
-
this.redirectToIssueRefund.emit(event);
|
|
3339
|
-
};
|
|
3340
|
-
/**
|
|
3341
|
-
* @param {?} val
|
|
3342
|
-
* @param {?} field
|
|
3343
|
-
* @return {?}
|
|
3344
|
-
*/
|
|
3345
|
-
ContactDetailsComponent.prototype.resetForm = /**
|
|
3346
|
-
* @param {?} val
|
|
3347
|
-
* @param {?} field
|
|
3348
|
-
* @return {?}
|
|
3349
|
-
*/
|
|
3350
|
-
function (val, field) {
|
|
3351
|
-
if (field === 'email' || field === 'all') {
|
|
3352
|
-
this.isEmailEmpty = val[0];
|
|
3353
|
-
this.emailHasError = val[1];
|
|
3354
|
-
}
|
|
3355
|
-
if (field === 'postcode' || field === 'all') {
|
|
3356
|
-
this.isPostcodeEmpty = val[2];
|
|
3357
|
-
this.postcodeHasError = val[3];
|
|
3358
|
-
}
|
|
3359
|
-
if (field === 'address1' || field === 'all') {
|
|
3360
|
-
this.isaddressLine1Empty = val[4];
|
|
3361
|
-
this.addressLine1HasError = val[5];
|
|
3362
|
-
}
|
|
3363
|
-
if (field === 'address2' || field === 'all') {
|
|
3364
|
-
this.addressLine2HasError = val[6];
|
|
3365
|
-
}
|
|
3366
|
-
if (field === 'town' || field === 'all') {
|
|
3367
|
-
this.isTownOrCityEmpty = val[7];
|
|
3368
|
-
this.townOrCityHasError = val[8];
|
|
3369
|
-
}
|
|
3370
|
-
if (field === 'county' || field === 'all') {
|
|
3371
|
-
this.isCountyEmpty = val[9];
|
|
3372
|
-
this.countyHasError = val[10];
|
|
3373
|
-
}
|
|
3374
|
-
if (field === 'mpostcode' || field === 'all') {
|
|
3375
|
-
this.isMPostcodeEmpty = val[11];
|
|
3376
|
-
this.mpostcodeHasError = val[12];
|
|
3377
|
-
}
|
|
3378
|
-
if (field === 'country' || field === 'all') {
|
|
3379
|
-
this.isCountryEmpty = val[13];
|
|
3380
|
-
}
|
|
3381
|
-
};
|
|
3382
|
-
ContactDetailsComponent.decorators = [
|
|
3383
|
-
{ type: Component, args: [{
|
|
3384
|
-
selector: 'ccpay-contact-details',
|
|
3385
|
-
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>",
|
|
3386
|
-
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}"]
|
|
3387
|
-
}] }
|
|
3388
|
-
];
|
|
3389
|
-
/** @nocollapse */
|
|
3390
|
-
ContactDetailsComponent.ctorParameters = function () { return [
|
|
3391
|
-
{ type: FormBuilder },
|
|
3392
|
-
{ type: NotificationService },
|
|
3393
|
-
{ type: PaymentLibComponent }
|
|
3394
|
-
]; };
|
|
3395
|
-
ContactDetailsComponent.propDecorators = {
|
|
3396
|
-
isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
|
|
3397
|
-
isEditOperationInRefundList: [{ type: Input, args: ['isEditOperationInRefundList',] }],
|
|
3398
|
-
addressObj: [{ type: Input, args: ['addressObj',] }],
|
|
3399
|
-
assignContactDetails: [{ type: Output }],
|
|
3400
|
-
assignContactDetailsInFefundsList: [{ type: Output }],
|
|
3401
|
-
redirectToIssueRefund: [{ type: Output }]
|
|
3402
|
-
};
|
|
3403
|
-
return ContactDetailsComponent;
|
|
3404
|
-
}());
|
|
3405
|
-
|
|
3406
2822
|
/**
|
|
3407
2823
|
* @fileoverview added by tsickle
|
|
3408
2824
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3759,7 +3175,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3759
3175
|
this.viewStatus = 'main';
|
|
3760
3176
|
this.isRemoveBtnDisabled = false;
|
|
3761
3177
|
this.clAmountDue = 0;
|
|
3762
|
-
this.overPaymentAmount = 0;
|
|
3763
3178
|
this.isFeeRecordsExist = false;
|
|
3764
3179
|
this.isGrpOutstandingAmtPositive = false;
|
|
3765
3180
|
//Order changes
|
|
@@ -3858,27 +3273,17 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3858
3273
|
}
|
|
3859
3274
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3860
3275
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
this.serviceRequestValue = 'true';
|
|
3865
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3866
|
-
}
|
|
3867
|
-
else {
|
|
3868
|
-
this.serviceRequestValue = 'false';
|
|
3869
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3870
|
-
}
|
|
3276
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST;
|
|
3277
|
+
if (this.paymentLibComponent.SERVICEREQUEST === 'true') {
|
|
3278
|
+
this.serviceRequestValue = 'true';
|
|
3871
3279
|
}
|
|
3872
3280
|
else {
|
|
3873
3281
|
this.serviceRequestValue = 'false';
|
|
3874
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3875
3282
|
}
|
|
3876
3283
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3877
3284
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
3878
3285
|
this.selectedOption = this.paymentLibComponent.SELECTED_OPTION.toLocaleLowerCase();
|
|
3879
3286
|
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
3880
|
-
this.isNewPcipalOff = this.paymentLibComponent.ISNEWPCIPALOFF;
|
|
3881
|
-
this.isOldPcipalOff = this.paymentLibComponent.ISOLDPCIPALOFF;
|
|
3882
3287
|
this.isStrategicFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
3883
3288
|
if (!this.isTurnOff) {
|
|
3884
3289
|
// if (this.lsCcdNumber !== this.ccdCaseNumber) {
|
|
@@ -4090,7 +3495,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4090
3495
|
*/
|
|
4091
3496
|
function (fee) {
|
|
4092
3497
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4093
|
-
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
4094
3498
|
}));
|
|
4095
3499
|
}
|
|
4096
3500
|
if (paymentGroup.remissions) {
|
|
@@ -4103,16 +3507,11 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4103
3507
|
}));
|
|
4104
3508
|
}
|
|
4105
3509
|
if (paymentGroup.payments) {
|
|
4106
|
-
/** @type {?} */
|
|
4107
|
-
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4108
3510
|
paymentGroup.payments.forEach((/**
|
|
4109
3511
|
* @param {?} payment
|
|
4110
3512
|
* @return {?}
|
|
4111
3513
|
*/
|
|
4112
3514
|
function (payment) {
|
|
4113
|
-
if (isFeeOverPaymentExist_1) {
|
|
4114
|
-
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4115
|
-
}
|
|
4116
3515
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4117
3516
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4118
3517
|
}
|
|
@@ -4548,8 +3947,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4548
3947
|
var url = this.isBulkScanEnable ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
4549
3948
|
url += this.isTurnOff ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
4550
3949
|
url += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
4551
|
-
url += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
4552
|
-
url += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
4553
3950
|
url += "&caseType=" + this.caseType;
|
|
4554
3951
|
this.router.navigateByUrl("/fee-search?selectedOption=" + this.selectedOption + "&ccdCaseNumber=" + this.ccdCaseNumber + url);
|
|
4555
3952
|
};
|
|
@@ -4601,17 +3998,19 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4601
3998
|
*/
|
|
4602
3999
|
function (payment, remission, fees) {
|
|
4603
4000
|
var _this = this;
|
|
4604
|
-
this.
|
|
4001
|
+
this.viewStatus = 'addrefundforremission';
|
|
4002
|
+
this.payment = payment;
|
|
4003
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
4605
4004
|
* @param {?} paymentGroup
|
|
4606
4005
|
* @return {?}
|
|
4607
4006
|
*/
|
|
4608
4007
|
function (paymentGroup) {
|
|
4609
4008
|
_this.paymentGroup = paymentGroup;
|
|
4610
|
-
_this.paymentGroup.payments = paymentGroup.payments.filter((/**
|
|
4009
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
4611
4010
|
* @param {?} paymentGroupObj
|
|
4612
4011
|
* @return {?}
|
|
4613
4012
|
*/
|
|
4614
|
-
function (paymentGroupObj) { return paymentGroupObj.
|
|
4013
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
4615
4014
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4616
4015
|
_this.remissions = remission;
|
|
4617
4016
|
_this.remissionFeeAmt = fees.filter((/**
|
|
@@ -4619,7 +4018,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4619
4018
|
* @return {?}
|
|
4620
4019
|
*/
|
|
4621
4020
|
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4622
|
-
_this.viewStatus = 'addrefundforremission';
|
|
4623
4021
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4624
4022
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4625
4023
|
}), (/**
|
|
@@ -4911,21 +4309,16 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4911
4309
|
* @return {?}
|
|
4912
4310
|
*/
|
|
4913
4311
|
function (payment) {
|
|
4914
|
-
if (
|
|
4915
|
-
|
|
4312
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4313
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4314
|
+
this.isIssueRefunfBtnEnable = true;
|
|
4315
|
+
}
|
|
4316
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
4317
|
+
return true;
|
|
4916
4318
|
}
|
|
4917
4319
|
else {
|
|
4918
4320
|
return false;
|
|
4919
4321
|
}
|
|
4920
|
-
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4921
|
-
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4922
|
-
// this.isIssueRefunfBtnEnable = true;
|
|
4923
|
-
// }
|
|
4924
|
-
// if (this.isIssueRefunfBtnEnable) {
|
|
4925
|
-
// return true;
|
|
4926
|
-
// } else {
|
|
4927
|
-
// return false;
|
|
4928
|
-
// };
|
|
4929
4322
|
};
|
|
4930
4323
|
/**
|
|
4931
4324
|
* @return {?}
|
|
@@ -4977,7 +4370,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4977
4370
|
CaseTransactionsComponent.decorators = [
|
|
4978
4371
|
{ type: Component, args: [{
|
|
4979
4372
|
selector: 'ccpay-case-transactions',
|
|
4980
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Over payment</td>\n\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ overPaymentAmount | currency :'GBP':'symbol':'1.2-2'}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [paymentGroupList] = \"paymentGroups\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n</main>\n</div>\n\n\n",
|
|
4373
|
+
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 ></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 [ccdCaseNumber]=\"ccdCaseNumber\" ></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",
|
|
4981
4374
|
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}"]
|
|
4982
4375
|
}] }
|
|
4983
4376
|
];
|
|
@@ -4992,8 +4385,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4992
4385
|
]; };
|
|
4993
4386
|
CaseTransactionsComponent.propDecorators = {
|
|
4994
4387
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4995
|
-
isTakePayment: [{ type: Input }]
|
|
4996
|
-
isFromServiceRequestPage: [{ type: Input }]
|
|
4388
|
+
isTakePayment: [{ type: Input }]
|
|
4997
4389
|
};
|
|
4998
4390
|
return CaseTransactionsComponent;
|
|
4999
4391
|
}());
|
|
@@ -5069,15 +4461,7 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5069
4461
|
this.selectedOption = this.paymentLibComponent.SELECTED_OPTION.toLocaleLowerCase();
|
|
5070
4462
|
this.isStrategicFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
5071
4463
|
this.OrderslistService.setCaseType(this.paymentLibComponent.CASETYPE);
|
|
5072
|
-
|
|
5073
|
-
this.platForm = '8x8';
|
|
5074
|
-
}
|
|
5075
|
-
else if ((this.isOldPcipalOff && !this.isNewPcipalOff)) {
|
|
5076
|
-
this.platForm = 'Antenna';
|
|
5077
|
-
}
|
|
5078
|
-
else if ((this.isOldPcipalOff && this.isNewPcipalOff)) {
|
|
5079
|
-
this.platForm = '8x8';
|
|
5080
|
-
}
|
|
4464
|
+
this.platForm = 'Antenna';
|
|
5081
4465
|
this.paymentViewService.getBSfeature().subscribe((/**
|
|
5082
4466
|
* @param {?} features
|
|
5083
4467
|
* @return {?}
|
|
@@ -5216,24 +4600,19 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5216
4600
|
if (fee.calculated_amount === 0) {
|
|
5217
4601
|
_this.isFeeAmountZero = true;
|
|
5218
4602
|
}
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
fee['remissions'] = rem;
|
|
5229
|
-
fees.push(fee);
|
|
5230
|
-
}
|
|
5231
|
-
}));
|
|
5232
|
-
if (!_this.isRemissionsMatch) {
|
|
4603
|
+
_this.isRemissionsMatch = false;
|
|
4604
|
+
paymentGroup.remissions.forEach((/**
|
|
4605
|
+
* @param {?} rem
|
|
4606
|
+
* @return {?}
|
|
4607
|
+
*/
|
|
4608
|
+
function (rem) {
|
|
4609
|
+
if (rem.fee_code === fee.code) {
|
|
4610
|
+
_this.isRemissionsMatch = true;
|
|
4611
|
+
fee['remissions'] = rem;
|
|
5233
4612
|
fees.push(fee);
|
|
5234
4613
|
}
|
|
5235
|
-
}
|
|
5236
|
-
|
|
4614
|
+
}));
|
|
4615
|
+
if (!_this.isRemissionsMatch) {
|
|
5237
4616
|
fees.push(fee);
|
|
5238
4617
|
}
|
|
5239
4618
|
}));
|
|
@@ -5327,8 +4706,6 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5327
4706
|
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
5328
4707
|
partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
5329
4708
|
partUrl += "&caseType=" + this.paymentLibComponent.CASETYPE;
|
|
5330
|
-
partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
5331
|
-
partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
5332
4709
|
/** @type {?} */
|
|
5333
4710
|
var url = "/payment-history/" + this.ccdCaseNumber + "?view=case-transactions&takePayment=true&" + partUrl;
|
|
5334
4711
|
this.router.navigateByUrl(url);
|
|
@@ -5360,8 +4737,6 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5360
4737
|
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
5361
4738
|
partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
5362
4739
|
partUrl += "&caseType=" + this.paymentLibComponent.CASETYPE;
|
|
5363
|
-
partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
5364
|
-
partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
5365
4740
|
if (this.viewStatus === 'feeRemovalConfirmation' || this.viewStatus === 'add_remission') {
|
|
5366
4741
|
this.viewStatus = 'main';
|
|
5367
4742
|
return;
|
|
@@ -5383,27 +4758,7 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5383
4758
|
var requestBody = new PaymentToPayhubRequest(this.ccdCaseNumber, this.outStandingAmount, this.caseType);
|
|
5384
4759
|
/** @type {?} */
|
|
5385
4760
|
var antennaReqBody = new PayhubAntennaRequest(this.ccdCaseNumber, this.outStandingAmount, this.caseType);
|
|
5386
|
-
if (this.platForm === '
|
|
5387
|
-
this.paymentViewService.postPaymentToPayHub(requestBody, this.paymentGroupRef).subscribe((/**
|
|
5388
|
-
* @param {?} response
|
|
5389
|
-
* @return {?}
|
|
5390
|
-
*/
|
|
5391
|
-
function (response) {
|
|
5392
|
-
_this.location.go("payment-history?view=fee-summary");
|
|
5393
|
-
_this.payhubHtml = response;
|
|
5394
|
-
_this.viewStatus = 'payhub_view';
|
|
5395
|
-
_this.isBackButtonEnable = false;
|
|
5396
|
-
}), (/**
|
|
5397
|
-
* @param {?} error
|
|
5398
|
-
* @return {?}
|
|
5399
|
-
*/
|
|
5400
|
-
function (error) {
|
|
5401
|
-
_this.errorMessage = error;
|
|
5402
|
-
_this.isConfirmationBtnDisabled = false;
|
|
5403
|
-
_this.router.navigateByUrl('/pci-pal-failure');
|
|
5404
|
-
}));
|
|
5405
|
-
}
|
|
5406
|
-
else if (this.platForm === 'Antenna') {
|
|
4761
|
+
if (this.platForm === 'Antenna') {
|
|
5407
4762
|
this.paymentViewService.postPaymentAntennaToPayHub(antennaReqBody, this.paymentGroupRef).subscribe((/**
|
|
5408
4763
|
* @param {?} response
|
|
5409
4764
|
* @return {?}
|
|
@@ -5455,7 +4810,7 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5455
4810
|
FeeSummaryComponent.decorators = [
|
|
5456
4811
|
{ type: Component, args: [{
|
|
5457
4812
|
selector: 'ccpay-fee-summary',
|
|
5458
|
-
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>\t\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\">\t\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name\">\t\n 8x8\t\n </label>\t\n </div>\t\n <div class=\"govuk-radios__item\">\t\n <input id=\"changed-name-2\" class=\"govuk-radios__input\" [(ngModel)]=\"platForm\" type=\"radio\" aria-label=\"Antenna\" value=\"Antenna\">\t\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name-2\">\t\n Antenna\t\n </label>\t\n </div>\t\n </div>\t\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>\t\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 class=\"govuk-form-group govuk-form-group--mg\" *ngIf=\"!bsPaymentDcnNumber && isOldPcipalOff && isNewPcipalOff\">\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 Select payment service\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\">\t\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name\">\t\n 8x8\t\n </label>\t\n </div>\t\n <div class=\"govuk-radios__item\">\t\n <input id=\"changed-name-2\" class=\"govuk-radios__input\" [(ngModel)]=\"platForm\" type=\"radio\" aria-label=\"Antenna\" value=\"Antenna\">\t\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name-2\">\t\n Antenna\t\n </label>\t\n </div>\t\n </div>\t\n </fieldset>\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 [isOldPcipalOff]=\"isOldPcipalOff\" \n [isNewPcipalOff]=\"isNewPcipalOff\" \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<div *ngIf=\"viewStatus === 'payhub_view' && payhubHtml\" [innerHTML]=\"payhubHtml | sanitizeHtml\" id=\"payhub-html-id\"></div>\n",
|
|
4813
|
+
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",
|
|
5459
4814
|
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}"]
|
|
5460
4815
|
}] }
|
|
5461
4816
|
];
|
|
@@ -5472,9 +4827,7 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5472
4827
|
paymentGroupRef: [{ type: Input }],
|
|
5473
4828
|
ccdCaseNumber: [{ type: Input }],
|
|
5474
4829
|
isTurnOff: [{ type: Input }],
|
|
5475
|
-
caseType: [{ type: Input }]
|
|
5476
|
-
isOldPcipalOff: [{ type: Input }],
|
|
5477
|
-
isNewPcipalOff: [{ type: Input }]
|
|
4830
|
+
caseType: [{ type: Input }]
|
|
5478
4831
|
};
|
|
5479
4832
|
return FeeSummaryComponent;
|
|
5480
4833
|
}());
|
|
@@ -6318,8 +5671,6 @@ var UnprocessedPaymentsComponent = /** @class */ (function () {
|
|
|
6318
5671
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
6319
5672
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
6320
5673
|
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
6321
|
-
this.isNewpcipaloff = this.paymentLibComponent.ISNEWPCIPALOFF;
|
|
6322
|
-
this.isOldpcipaloff = this.paymentLibComponent.ISOLDPCIPALOFF;
|
|
6323
5674
|
this.isStFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
6324
5675
|
this.OrderslistService.getFeeExists().subscribe((/**
|
|
6325
5676
|
* @param {?} data
|
|
@@ -6450,8 +5801,6 @@ var UnprocessedPaymentsComponent = /** @class */ (function () {
|
|
|
6450
5801
|
url += this.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
6451
5802
|
url += this.isStFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
6452
5803
|
url += "&caseType=" + this.paymentLibComponent.CASETYPE;
|
|
6453
|
-
url += this.isOldpcipaloff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
6454
|
-
url += this.isNewpcipaloff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
6455
5804
|
this.router.navigateByUrl("/fee-search?selectedOption=" + this.selectedOption + "&ccdCaseNumber=" + this.ccdCaseNumber + "&dcn=" + this.recordId + url);
|
|
6456
5805
|
};
|
|
6457
5806
|
/**
|
|
@@ -6506,8 +5855,6 @@ var UnprocessedPaymentsComponent = /** @class */ (function () {
|
|
|
6506
5855
|
this.paymentLibComponent.bspaymentdcn = dcn_reference;
|
|
6507
5856
|
this.paymentLibComponent.unProcessedPaymentServiceId = this.serviceId;
|
|
6508
5857
|
this.paymentLibComponent.isTurnOff = this.ISTURNOFF;
|
|
6509
|
-
this.paymentLibComponent.isNewPcipalOff = this.ISNEWPCIPALOFF;
|
|
6510
|
-
this.paymentLibComponent.isOldPcipalOff = this.ISOLDPCIPALOFF;
|
|
6511
5858
|
this.paymentLibComponent.ISSFENABLE = this.isStFixEnable;
|
|
6512
5859
|
if (this.ISTURNOFF) {
|
|
6513
5860
|
this.paymentLibComponent.paymentGroupReference = this.PAYMENTREF;
|
|
@@ -6598,8 +5945,6 @@ var UnprocessedPaymentsComponent = /** @class */ (function () {
|
|
|
6598
5945
|
ISTURNOFF: [{ type: Input, args: ['ISTURNOFF',] }],
|
|
6599
5946
|
IS_BUTTON_ENABLE: [{ type: Input, args: ['IS_BUTTON_ENABLE',] }],
|
|
6600
5947
|
IS_OS_AMT_AVAILABLE: [{ type: Input, args: ['IS_OS_AMT_AVAILABLE',] }],
|
|
6601
|
-
ISNEWPCIPALOFF: [{ type: Input, args: ['ISNEWPCIPALOFF',] }],
|
|
6602
|
-
ISOLDPCIPALOFF: [{ type: Input, args: ['ISOLDPCIPALOFF',] }],
|
|
6603
5948
|
ISSFENABLE: [{ type: Input, args: ['ISSFENABLE',] }],
|
|
6604
5949
|
PAYMENTSLENGTH: [{ type: Input, args: ['PAYMENTSLENGTH',] }],
|
|
6605
5950
|
LEVEL: [{ type: Input, args: ['LEVEL',] }],
|
|
@@ -7325,11 +6670,22 @@ var AddRetroRemissionRequest = /** @class */ (function () {
|
|
|
7325
6670
|
* @fileoverview added by tsickle
|
|
7326
6671
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7327
6672
|
*/
|
|
7328
|
-
var
|
|
7329
|
-
function
|
|
7330
|
-
this.
|
|
7331
|
-
this.
|
|
7332
|
-
}
|
|
6673
|
+
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6674
|
+
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6675
|
+
this.payment_reference = payment_reference;
|
|
6676
|
+
this.refund_reason = refund_reason;
|
|
6677
|
+
}
|
|
6678
|
+
return PostRefundRetroRemission;
|
|
6679
|
+
}());
|
|
6680
|
+
|
|
6681
|
+
/**
|
|
6682
|
+
* @fileoverview added by tsickle
|
|
6683
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6684
|
+
*/
|
|
6685
|
+
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
6686
|
+
function PostIssueRefundRetroRemission(remissionReference) {
|
|
6687
|
+
this.remissionReference = remissionReference;
|
|
6688
|
+
}
|
|
7333
6689
|
return PostIssueRefundRetroRemission;
|
|
7334
6690
|
}());
|
|
7335
6691
|
|
|
@@ -7350,7 +6706,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7350
6706
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
7351
6707
|
this.refundListReason = new EventEmitter();
|
|
7352
6708
|
this.refundListAmount = new EventEmitter();
|
|
7353
|
-
this.refundFees = new EventEmitter();
|
|
7354
6709
|
this.refund = {
|
|
7355
6710
|
reason: {
|
|
7356
6711
|
duplicate: 'Duplicate payment',
|
|
@@ -7379,8 +6734,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7379
6734
|
this.isRemissionApplied = false;
|
|
7380
6735
|
// refundReasons: any[] = [];
|
|
7381
6736
|
this.commonRefundReasons = [];
|
|
7382
|
-
this.class = '';
|
|
7383
|
-
this.errorMsg = new Array();
|
|
7384
6737
|
}
|
|
7385
6738
|
/**
|
|
7386
6739
|
* @return {?}
|
|
@@ -7390,8 +6743,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7390
6743
|
*/
|
|
7391
6744
|
function () {
|
|
7392
6745
|
var _this = this;
|
|
7393
|
-
this.errorMessage = '';
|
|
7394
|
-
this.errorMsg = [];
|
|
7395
6746
|
this.default = 'Select a different reason';
|
|
7396
6747
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
7397
6748
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -7403,7 +6754,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7403
6754
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
7404
6755
|
}
|
|
7405
6756
|
if (this.payment) {
|
|
7406
|
-
this.paymentReference = this.payment.reference;
|
|
7407
6757
|
this.remessionPayment = this.payment;
|
|
7408
6758
|
if (this.payment.status === 'Success') {
|
|
7409
6759
|
this.isPaymentSuccess = true;
|
|
@@ -7422,73 +6772,15 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7422
6772
|
])),
|
|
7423
6773
|
refundReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7424
6774
|
refundDDReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7425
|
-
reason: new FormControl()
|
|
7426
|
-
feeAmount: new FormControl(),
|
|
7427
|
-
feesList: this.formBuilder.array([])
|
|
6775
|
+
reason: new FormControl()
|
|
7428
6776
|
});
|
|
7429
6777
|
/** @type {?} */
|
|
7430
6778
|
var remissionctrls = this.remissionForm.controls;
|
|
7431
6779
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7432
|
-
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
7433
|
-
this.paymentReference = this.refundPaymentReference;
|
|
7434
|
-
}
|
|
7435
|
-
else {
|
|
7436
|
-
this.paymentReference = this.payment.reference;
|
|
7437
|
-
}
|
|
7438
|
-
if (this.isFromServiceRequestPage) {
|
|
7439
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe((/**
|
|
7440
|
-
* @param {?} paymentGroup
|
|
7441
|
-
* @return {?}
|
|
7442
|
-
*/
|
|
7443
|
-
function (paymentGroup) {
|
|
7444
|
-
/** @type {?} */
|
|
7445
|
-
var fees = [];
|
|
7446
|
-
paymentGroup.fees.forEach((/**
|
|
7447
|
-
* @param {?} fee
|
|
7448
|
-
* @return {?}
|
|
7449
|
-
*/
|
|
7450
|
-
function (fee) {
|
|
7451
|
-
_this.isRemissionsMatch = false;
|
|
7452
|
-
paymentGroup.remissions.forEach((/**
|
|
7453
|
-
* @param {?} rem
|
|
7454
|
-
* @return {?}
|
|
7455
|
-
*/
|
|
7456
|
-
function (rem) {
|
|
7457
|
-
if (rem.fee_code === fee.code) {
|
|
7458
|
-
_this.isRemissionsMatch = true;
|
|
7459
|
-
fee['remissions'] = rem;
|
|
7460
|
-
fees.push(fee);
|
|
7461
|
-
}
|
|
7462
|
-
}));
|
|
7463
|
-
if (!_this.isRemissionsMatch) {
|
|
7464
|
-
fees.push(fee);
|
|
7465
|
-
}
|
|
7466
|
-
}));
|
|
7467
|
-
paymentGroup.fees = fees;
|
|
7468
|
-
_this.paymentFees = fees;
|
|
7469
|
-
_this.fees = fees;
|
|
7470
|
-
_this.paymentGroup = paymentGroup;
|
|
7471
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
7472
|
-
* @param {?} paymentGroupObj
|
|
7473
|
-
* @return {?}
|
|
7474
|
-
*/
|
|
7475
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7476
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7477
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7478
|
-
_this.refundFeesList();
|
|
7479
|
-
}), (/**
|
|
7480
|
-
* @param {?} error
|
|
7481
|
-
* @return {?}
|
|
7482
|
-
*/
|
|
7483
|
-
function (error) { return _this.errorMessage = error; }));
|
|
7484
|
-
}
|
|
7485
|
-
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7486
|
-
this.refundFeesList();
|
|
7487
|
-
}
|
|
7488
6780
|
if (this.viewCompStatus === '') {
|
|
7489
6781
|
this.viewStatus = 'main';
|
|
7490
6782
|
}
|
|
7491
|
-
if (this.viewCompStatus === '
|
|
6783
|
+
if (this.viewCompStatus === 'issuerefund') {
|
|
7492
6784
|
this.refundService.getRefundReasons().subscribe((/**
|
|
7493
6785
|
* @param {?} refundReasons
|
|
7494
6786
|
* @return {?}
|
|
@@ -7503,7 +6795,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7503
6795
|
* @param {?} data
|
|
7504
6796
|
* @return {?}
|
|
7505
6797
|
*/
|
|
7506
|
-
function (data) { return data.name !== 'Retrospective remission'
|
|
6798
|
+
function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7507
6799
|
_this.cd.detectChanges();
|
|
7508
6800
|
_this.commonRefundReasons = refundReasons.filter((/**
|
|
7509
6801
|
* @param {?} data
|
|
@@ -7518,166 +6810,10 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7518
6810
|
function (a, b) { return a.toString().localeCompare(b); }));
|
|
7519
6811
|
_this.cd.detectChanges();
|
|
7520
6812
|
}));
|
|
7521
|
-
this.refundReason = this.changeRefundReason;
|
|
7522
6813
|
}
|
|
7523
6814
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
7524
6815
|
this.viewStatus = 'processretroremissonpage';
|
|
7525
6816
|
}
|
|
7526
|
-
if (this.orderDetail !== undefined) {
|
|
7527
|
-
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
|
|
7528
|
-
* @param {?} paymentGroup
|
|
7529
|
-
* @return {?}
|
|
7530
|
-
*/
|
|
7531
|
-
function (paymentGroup) {
|
|
7532
|
-
_this.fees = paymentGroup.fees;
|
|
7533
|
-
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7534
|
-
}), (/**
|
|
7535
|
-
* @param {?} error
|
|
7536
|
-
* @return {?}
|
|
7537
|
-
*/
|
|
7538
|
-
function (error) { return _this.errorMessage = error; }));
|
|
7539
|
-
}
|
|
7540
|
-
};
|
|
7541
|
-
/**
|
|
7542
|
-
* @return {?}
|
|
7543
|
-
*/
|
|
7544
|
-
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7545
|
-
* @return {?}
|
|
7546
|
-
*/
|
|
7547
|
-
function () {
|
|
7548
|
-
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7549
|
-
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7550
|
-
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7551
|
-
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7552
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
7553
|
-
};
|
|
7554
|
-
/**
|
|
7555
|
-
* @return {?}
|
|
7556
|
-
*/
|
|
7557
|
-
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7558
|
-
* @return {?}
|
|
7559
|
-
*/
|
|
7560
|
-
function () {
|
|
7561
|
-
/** @type {?} */
|
|
7562
|
-
var creds = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
7563
|
-
// if(creds.controls.length > 0) {
|
|
7564
|
-
for (var i = 0; i < this.fees.length; i++) {
|
|
7565
|
-
creds.push(this.formBuilder.group({
|
|
7566
|
-
id: this.fees[i].id,
|
|
7567
|
-
code: this.fees[i].code,
|
|
7568
|
-
volume: this.fees[i].volume,
|
|
7569
|
-
calculated_amount: this.fees[i].calculated_amount,
|
|
7570
|
-
apportion_amount: this.fees[i].apportion_amount,
|
|
7571
|
-
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7572
|
-
description: this.fees[i].description,
|
|
7573
|
-
net_amount: this.fees[i].net_amount,
|
|
7574
|
-
version: this.fees[i].version,
|
|
7575
|
-
refund_amount: [''],
|
|
7576
|
-
selected: [''],
|
|
7577
|
-
updated_volume: this.fees[i].volume
|
|
7578
|
-
}));
|
|
7579
|
-
}
|
|
7580
|
-
this.cd.detectChanges();
|
|
7581
|
-
//}
|
|
7582
|
-
};
|
|
7583
|
-
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7584
|
-
get: /**
|
|
7585
|
-
* @return {?}
|
|
7586
|
-
*/
|
|
7587
|
-
function () {
|
|
7588
|
-
/** @type {?} */
|
|
7589
|
-
var dd = (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
7590
|
-
return (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
7591
|
-
},
|
|
7592
|
-
enumerable: true,
|
|
7593
|
-
configurable: true
|
|
7594
|
-
});
|
|
7595
|
-
/**
|
|
7596
|
-
* @return {?}
|
|
7597
|
-
*/
|
|
7598
|
-
AddRemissionComponent.prototype.noneSelected = /**
|
|
7599
|
-
* @return {?}
|
|
7600
|
-
*/
|
|
7601
|
-
function () {
|
|
7602
|
-
if (this.isFullyRefund) {
|
|
7603
|
-
return false;
|
|
7604
|
-
}
|
|
7605
|
-
else {
|
|
7606
|
-
if (!this.feesList.controls.some((/**
|
|
7607
|
-
* @param {?} item
|
|
7608
|
-
* @return {?}
|
|
7609
|
-
*/
|
|
7610
|
-
function (item) { return item.get('selected').value === true; }))) {
|
|
7611
|
-
this.errorMsg = [];
|
|
7612
|
-
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
7613
|
-
* @param {?} el
|
|
7614
|
-
* @return {?}
|
|
7615
|
-
*/
|
|
7616
|
-
function (el) {
|
|
7617
|
-
el.classList.remove('inline-error-class');
|
|
7618
|
-
}));
|
|
7619
|
-
}
|
|
7620
|
-
return !this.feesList.controls.some((/**
|
|
7621
|
-
* @param {?} item
|
|
7622
|
-
* @return {?}
|
|
7623
|
-
*/
|
|
7624
|
-
function (item) { return item.get('selected').value === true; }));
|
|
7625
|
-
}
|
|
7626
|
-
};
|
|
7627
|
-
/**
|
|
7628
|
-
* @param {?} i
|
|
7629
|
-
* @param {?} v1
|
|
7630
|
-
* @param {?} AppAmt
|
|
7631
|
-
* @param {?} Volume
|
|
7632
|
-
* @return {?}
|
|
7633
|
-
*/
|
|
7634
|
-
AddRemissionComponent.prototype.check_en = /**
|
|
7635
|
-
* @param {?} i
|
|
7636
|
-
* @param {?} v1
|
|
7637
|
-
* @param {?} AppAmt
|
|
7638
|
-
* @param {?} Volume
|
|
7639
|
-
* @return {?}
|
|
7640
|
-
*/
|
|
7641
|
-
function (i, v1, AppAmt, Volume) {
|
|
7642
|
-
/** @type {?} */
|
|
7643
|
-
var ele = (/** @type {?} */ (document.getElementById(v1)));
|
|
7644
|
-
/** @type {?} */
|
|
7645
|
-
var formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
7646
|
-
if (ele.checked) {
|
|
7647
|
-
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7648
|
-
formArray.at(i).get('volume').setValue(Volume);
|
|
7649
|
-
formArray.at(i).get('selected').setValue(true);
|
|
7650
|
-
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7651
|
-
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7652
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7653
|
-
if (Volume === 1) {
|
|
7654
|
-
((/** @type {?} */ (document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7655
|
-
}
|
|
7656
|
-
else {
|
|
7657
|
-
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7658
|
-
}
|
|
7659
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7660
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7661
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7662
|
-
}
|
|
7663
|
-
this.cd.detectChanges();
|
|
7664
|
-
}
|
|
7665
|
-
else {
|
|
7666
|
-
this.errorMsg = [];
|
|
7667
|
-
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7668
|
-
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7669
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7670
|
-
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7671
|
-
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7672
|
-
if (Volume > 1) {
|
|
7673
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7674
|
-
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7675
|
-
}
|
|
7676
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7677
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7678
|
-
}
|
|
7679
|
-
this.cd.detectChanges();
|
|
7680
|
-
}
|
|
7681
6817
|
};
|
|
7682
6818
|
/**
|
|
7683
6819
|
* @return {?}
|
|
@@ -7738,8 +6874,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7738
6874
|
/** @type {?} */
|
|
7739
6875
|
var LDUrl = _this.isTurnOff ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7740
6876
|
LDUrl += "&caseType=" + _this.caseType;
|
|
7741
|
-
LDUrl += _this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7742
|
-
LDUrl += _this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7743
6877
|
if (_this.paymentLibComponent.bspaymentdcn) {
|
|
7744
6878
|
_this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
7745
6879
|
* @return {?}
|
|
@@ -7805,28 +6939,20 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7805
6939
|
*/
|
|
7806
6940
|
function () {
|
|
7807
6941
|
this.errorMessage = false;
|
|
7808
|
-
// this.isFromCheckAnsPage = true;
|
|
7809
|
-
this.errorMsg = [];
|
|
7810
6942
|
this.viewStatus = '';
|
|
7811
6943
|
this.isRefundRemission = false;
|
|
7812
6944
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
7813
6945
|
/** @type {?} */
|
|
7814
6946
|
var remissionctrls = this.remissionForm.controls
|
|
7815
|
-
// isRemissionLessThanFee = this.fee.calculated_amount >= remissionctrls.amount.value;
|
|
6947
|
+
// isRemissionLessThanFee = this.fee.calculated_amount >= remissionctrls.amount.value;
|
|
7816
6948
|
;
|
|
7817
|
-
// isRemissionLessThanFee = this.fee.calculated_amount >= remissionctrls.amount.value;
|
|
6949
|
+
// isRemissionLessThanFee = this.fee.calculated_amount >= remissionctrls.amount.value;
|
|
7818
6950
|
this.remissionForm.controls['refundReason'].setErrors(null);
|
|
7819
6951
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
7820
6952
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
7821
6953
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
this.viewStatus = "processretroremissonpage";
|
|
7825
|
-
}
|
|
7826
|
-
else {
|
|
7827
|
-
this.viewCompStatus = '';
|
|
7828
|
-
this.viewStatus = 'checkretroremissionpage';
|
|
7829
|
-
}
|
|
6954
|
+
this.viewCompStatus = '';
|
|
6955
|
+
this.viewStatus = "processretroremissonpage";
|
|
7830
6956
|
}
|
|
7831
6957
|
else {
|
|
7832
6958
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -7857,8 +6983,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7857
6983
|
*/
|
|
7858
6984
|
function () {
|
|
7859
6985
|
this.errorMessage = false;
|
|
7860
|
-
this.isFromCheckAnsPage = false;
|
|
7861
|
-
this.errorMsg = [];
|
|
7862
6986
|
if (this.isRefundRemission) {
|
|
7863
6987
|
this.paymentLibComponent.iscancelClicked = true;
|
|
7864
6988
|
this.refundListAmount.emit();
|
|
@@ -7876,7 +7000,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7876
7000
|
this.viewCompStatus = "addremission";
|
|
7877
7001
|
this.isRefundRemission = true;
|
|
7878
7002
|
this.errorMessage = '';
|
|
7879
|
-
this.errorMsg = [];
|
|
7880
7003
|
if (this.isFromPaymentDetailPage) {
|
|
7881
7004
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7882
7005
|
}
|
|
@@ -7929,19 +7052,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7929
7052
|
//}
|
|
7930
7053
|
}
|
|
7931
7054
|
};
|
|
7932
|
-
/**
|
|
7933
|
-
* @return {?}
|
|
7934
|
-
*/
|
|
7935
|
-
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7936
|
-
* @return {?}
|
|
7937
|
-
*/
|
|
7938
|
-
function () {
|
|
7939
|
-
this.isFromCheckAnsPage = false;
|
|
7940
|
-
this.viewStatus = 'processretroremissonpage';
|
|
7941
|
-
this.viewCompStatus = '';
|
|
7942
|
-
// this.isRefundRemission = true;
|
|
7943
|
-
this.errorMessage = '';
|
|
7944
|
-
};
|
|
7945
7055
|
/**
|
|
7946
7056
|
* @return {?}
|
|
7947
7057
|
*/
|
|
@@ -7949,30 +7059,10 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7949
7059
|
* @return {?}
|
|
7950
7060
|
*/
|
|
7951
7061
|
function () {
|
|
7952
|
-
this.isFromCheckAnsPage = true;
|
|
7953
7062
|
this.viewStatus = '';
|
|
7954
7063
|
this.viewCompStatus = 'addremission';
|
|
7955
7064
|
this.isRefundRemission = true;
|
|
7956
7065
|
this.errorMessage = '';
|
|
7957
|
-
this.errorMsg = [];
|
|
7958
|
-
};
|
|
7959
|
-
/**
|
|
7960
|
-
* @param {?=} note
|
|
7961
|
-
* @return {?}
|
|
7962
|
-
*/
|
|
7963
|
-
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7964
|
-
* @param {?=} note
|
|
7965
|
-
* @return {?}
|
|
7966
|
-
*/
|
|
7967
|
-
function (note) {
|
|
7968
|
-
if (note) {
|
|
7969
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7970
|
-
}
|
|
7971
|
-
this.isFromCheckAnsPage = true;
|
|
7972
|
-
this.viewStatus = 'remissionAddressPage';
|
|
7973
|
-
this.viewCompStatus = '';
|
|
7974
|
-
this.isRefundRemission = true;
|
|
7975
|
-
this.errorMessage = '';
|
|
7976
7066
|
};
|
|
7977
7067
|
/**
|
|
7978
7068
|
* @return {?}
|
|
@@ -8018,7 +7108,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8018
7108
|
function () {
|
|
8019
7109
|
var _this = this;
|
|
8020
7110
|
this.errorMessage = '';
|
|
8021
|
-
this.errorMsg = [];
|
|
8022
7111
|
this.isConfirmationBtnDisabled = true;
|
|
8023
7112
|
if (this.isRefundRemission) {
|
|
8024
7113
|
this.retroRemission = true;
|
|
@@ -8027,7 +7116,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8027
7116
|
this.remissionReference = this.remission.remission_reference;
|
|
8028
7117
|
}
|
|
8029
7118
|
/** @type {?} */
|
|
8030
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference
|
|
7119
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
8031
7120
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
|
|
8032
7121
|
* @param {?} response
|
|
8033
7122
|
* @return {?}
|
|
@@ -8065,14 +7154,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8065
7154
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
8066
7155
|
this.isFromRefundListPage = true;
|
|
8067
7156
|
}
|
|
8068
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8069
|
-
* @param {?} a
|
|
8070
|
-
* @param {?} c
|
|
8071
|
-
* @return {?}
|
|
8072
|
-
*/
|
|
8073
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8074
7157
|
this.errorMessage = '';
|
|
8075
|
-
this.errorMsg = [];
|
|
8076
7158
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
8077
7159
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
8078
7160
|
this.refundHasError = true;
|
|
@@ -8088,43 +7170,19 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8088
7170
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8089
7171
|
}
|
|
8090
7172
|
else {
|
|
8091
|
-
if (this.isFromCheckAnsPage) {
|
|
8092
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8093
|
-
* @param {?} a
|
|
8094
|
-
* @param {?} c
|
|
8095
|
-
* @return {?}
|
|
8096
|
-
*/
|
|
8097
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8098
|
-
this.isFromCheckAnsPage = false;
|
|
8099
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8100
|
-
this.viewCompStatus = '';
|
|
8101
|
-
return;
|
|
8102
|
-
}
|
|
8103
7173
|
this.viewCompStatus = '';
|
|
8104
|
-
this.viewStatus = '
|
|
7174
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
8105
7175
|
}
|
|
8106
7176
|
}
|
|
8107
7177
|
else {
|
|
8108
7178
|
this.displayRefundReason = this.selectedRefundReason;
|
|
8109
|
-
if (this.isFromCheckAnsPage) {
|
|
8110
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8111
|
-
* @param {?} a
|
|
8112
|
-
* @param {?} c
|
|
8113
|
-
* @return {?}
|
|
8114
|
-
*/
|
|
8115
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8116
|
-
this.isFromCheckAnsPage = false;
|
|
8117
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8118
|
-
this.viewCompStatus = '';
|
|
8119
|
-
return;
|
|
8120
|
-
}
|
|
8121
7179
|
if (this.isFromRefundListPage) {
|
|
8122
7180
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
8123
7181
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
8124
7182
|
}
|
|
8125
7183
|
else {
|
|
8126
7184
|
this.viewCompStatus = '';
|
|
8127
|
-
this.viewStatus = '
|
|
7185
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
8128
7186
|
}
|
|
8129
7187
|
}
|
|
8130
7188
|
};
|
|
@@ -8140,293 +7198,81 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8140
7198
|
this.viewStatus = '';
|
|
8141
7199
|
this.isRefundRemission = true;
|
|
8142
7200
|
this.errorMessage = false;
|
|
8143
|
-
this.errorMsg = [];
|
|
8144
7201
|
this.refundHasError = false;
|
|
8145
7202
|
this.isReasonEmpty = false;
|
|
8146
7203
|
};
|
|
8147
7204
|
/**
|
|
8148
|
-
* @param {?} isFullyRefund
|
|
8149
|
-
* @return {?}
|
|
8150
|
-
*/
|
|
8151
|
-
AddRemissionComponent.prototype.gotoIssuePage = /**
|
|
8152
|
-
* @param {?} isFullyRefund
|
|
8153
|
-
* @return {?}
|
|
8154
|
-
*/
|
|
8155
|
-
function (isFullyRefund) {
|
|
8156
|
-
if (isFullyRefund) {
|
|
8157
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8158
|
-
this.getRefundReasons();
|
|
8159
|
-
}
|
|
8160
|
-
else {
|
|
8161
|
-
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
8162
|
-
* @param {?} el
|
|
8163
|
-
* @return {?}
|
|
8164
|
-
*/
|
|
8165
|
-
function (el) {
|
|
8166
|
-
el.classList.remove('inline-error-class');
|
|
8167
|
-
}));
|
|
8168
|
-
/** @type {?} */
|
|
8169
|
-
var checkboxs = document.getElementsByTagName('input');
|
|
8170
|
-
this.errorMessage = '';
|
|
8171
|
-
this.totalRefundAmount = 0;
|
|
8172
|
-
this.errorMsg = [];
|
|
8173
|
-
for (var j = 0; j < checkboxs.length; j++) {
|
|
8174
|
-
if (checkboxs[j].checked) {
|
|
8175
|
-
this.fullRefund = false;
|
|
8176
|
-
/** @type {?} */
|
|
8177
|
-
var quantity = +((/** @type {?} */ (document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
8178
|
-
/** @type {?} */
|
|
8179
|
-
var amountToRefund = +((/** @type {?} */ (document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
8180
|
-
/** @type {?} */
|
|
8181
|
-
var apportionAmount = +((/** @type {?} */ (document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
8182
|
-
/** @type {?} */
|
|
8183
|
-
var calculatedAmount = +((/** @type {?} */ (document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8184
|
-
if (amountToRefund === apportionAmount) {
|
|
8185
|
-
this.fullRefund = true;
|
|
8186
|
-
}
|
|
8187
|
-
if (amountToRefund === 0) {
|
|
8188
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8189
|
-
this.errorMsg.push('You need to enter a refund amount');
|
|
8190
|
-
this.getErrorClass(this.elementId);
|
|
8191
|
-
}
|
|
8192
|
-
if (quantity === 1) {
|
|
8193
|
-
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8194
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8195
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8196
|
-
this.getErrorClass(this.elementId);
|
|
8197
|
-
}
|
|
8198
|
-
}
|
|
8199
|
-
if (quantity > 1) {
|
|
8200
|
-
this.quantityUpdated = +((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8201
|
-
if (this.quantityUpdated === 0) {
|
|
8202
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8203
|
-
this.errorMsg.push('You need to enter quantity');
|
|
8204
|
-
this.getErrorClass(this.elementId);
|
|
8205
|
-
}
|
|
8206
|
-
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8207
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8208
|
-
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8209
|
-
this.getErrorClass(this.elementId);
|
|
8210
|
-
}
|
|
8211
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8212
|
-
this.refundAmtForFeeVolumes = +((/** @type {?} */ (document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8213
|
-
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8214
|
-
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8215
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8216
|
-
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8217
|
-
this.getErrorClass(this.elementId);
|
|
8218
|
-
}
|
|
8219
|
-
}
|
|
8220
|
-
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8221
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8222
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8223
|
-
this.getErrorClass(this.elementId);
|
|
8224
|
-
}
|
|
8225
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8226
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8227
|
-
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8228
|
-
this.getErrorClass(this.elementId);
|
|
8229
|
-
}
|
|
8230
|
-
}
|
|
8231
|
-
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8232
|
-
}
|
|
8233
|
-
}
|
|
8234
|
-
if (this.errorMsg.length === 0) {
|
|
8235
|
-
if (this.isFromCheckAnsPage) {
|
|
8236
|
-
this.isFromCheckAnsPage = false;
|
|
8237
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8238
|
-
* @param {?} a
|
|
8239
|
-
* @param {?} c
|
|
8240
|
-
* @return {?}
|
|
8241
|
-
*/
|
|
8242
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8243
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8244
|
-
* @param {?} value
|
|
8245
|
-
* @return {?}
|
|
8246
|
-
*/
|
|
8247
|
-
function (value) { return value.selected === true; }));
|
|
8248
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8249
|
-
this.viewCompStatus = '';
|
|
8250
|
-
return;
|
|
8251
|
-
}
|
|
8252
|
-
else if (this.isFromRefundStatusPage) {
|
|
8253
|
-
/** @type {?} */
|
|
8254
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8255
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8256
|
-
* @param {?} a
|
|
8257
|
-
* @param {?} c
|
|
8258
|
-
* @return {?}
|
|
8259
|
-
*/
|
|
8260
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8261
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8262
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8263
|
-
* @param {?} value
|
|
8264
|
-
* @return {?}
|
|
8265
|
-
*/
|
|
8266
|
-
function (value) { return value.selected === true; }));
|
|
8267
|
-
this.refundFees.emit(this.fees);
|
|
8268
|
-
return;
|
|
8269
|
-
}
|
|
8270
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8271
|
-
this.getRefundReasons();
|
|
8272
|
-
}
|
|
8273
|
-
}
|
|
8274
|
-
};
|
|
8275
|
-
/**
|
|
8276
|
-
* @param {?} value
|
|
8277
|
-
* @param {?} amount
|
|
8278
|
-
* @param {?} volume
|
|
8279
|
-
* @param {?} i
|
|
8280
|
-
* @return {?}
|
|
8281
|
-
*/
|
|
8282
|
-
AddRemissionComponent.prototype.calAmtToRefund = /**
|
|
8283
|
-
* @param {?} value
|
|
8284
|
-
* @param {?} amount
|
|
8285
|
-
* @param {?} volume
|
|
8286
|
-
* @param {?} i
|
|
8287
|
-
* @return {?}
|
|
8288
|
-
*/
|
|
8289
|
-
function (value, amount, volume, i) {
|
|
8290
|
-
/** @type {?} */
|
|
8291
|
-
var volumeFee = amount / volume;
|
|
8292
|
-
/** @type {?} */
|
|
8293
|
-
var amtToRefund = value * volumeFee;
|
|
8294
|
-
/** @type {?} */
|
|
8295
|
-
var formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
8296
|
-
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
8297
|
-
// formArray.at(i).get('volume').setValue(value);
|
|
8298
|
-
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
8299
|
-
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
8300
|
-
// formControl.setValue(value);
|
|
8301
|
-
};
|
|
8302
|
-
/**
|
|
8303
|
-
* @param {?=} note
|
|
8304
7205
|
* @return {?}
|
|
8305
7206
|
*/
|
|
8306
|
-
AddRemissionComponent.prototype.
|
|
8307
|
-
* @param {?=} note
|
|
7207
|
+
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8308
7208
|
* @return {?}
|
|
8309
7209
|
*/
|
|
8310
|
-
function (
|
|
8311
|
-
|
|
8312
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8313
|
-
}
|
|
7210
|
+
function () {
|
|
7211
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
8314
7212
|
this.errorMessage = '';
|
|
8315
|
-
this.
|
|
8316
|
-
this.
|
|
7213
|
+
this.refundHasError = false;
|
|
7214
|
+
this.isReasonEmpty = false;
|
|
7215
|
+
this.viewCompStatus = 'issuerefund';
|
|
7216
|
+
this.viewStatus = '';
|
|
8317
7217
|
this.isRefundRemission = true;
|
|
8318
|
-
this.errorMessage = false;
|
|
8319
7218
|
};
|
|
8320
7219
|
/**
|
|
8321
7220
|
* @return {?}
|
|
8322
7221
|
*/
|
|
8323
|
-
AddRemissionComponent.prototype.
|
|
7222
|
+
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8324
7223
|
* @return {?}
|
|
8325
7224
|
*/
|
|
8326
7225
|
function () {
|
|
8327
7226
|
var _this = this;
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
*/
|
|
8333
|
-
function (refundReasons) {
|
|
8334
|
-
_this.refundReasons = refundReasons.filter((/**
|
|
8335
|
-
* @param {?} data
|
|
8336
|
-
* @return {?}
|
|
8337
|
-
*/
|
|
8338
|
-
function (data) { return data.recently_used === false; }));
|
|
8339
|
-
_this.refundReasons = _this.refundReasons.filter((/**
|
|
8340
|
-
* @param {?} data
|
|
8341
|
-
* @return {?}
|
|
8342
|
-
*/
|
|
8343
|
-
function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8344
|
-
_this.cd.detectChanges();
|
|
8345
|
-
_this.commonRefundReasons = refundReasons.filter((/**
|
|
8346
|
-
* @param {?} data
|
|
8347
|
-
* @return {?}
|
|
8348
|
-
*/
|
|
8349
|
-
function (data) { return data.recently_used === true; }));
|
|
8350
|
-
_this.commonRefundReasons.sort((/**
|
|
8351
|
-
* @param {?} a
|
|
8352
|
-
* @param {?} b
|
|
8353
|
-
* @return {?}
|
|
8354
|
-
*/
|
|
8355
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
8356
|
-
_this.cd.detectChanges();
|
|
8357
|
-
}));
|
|
7227
|
+
this.isConfirmationBtnDisabled = true;
|
|
7228
|
+
this.errorMessage = '';
|
|
7229
|
+
if (this.isRefundRemission) {
|
|
7230
|
+
this.retroRemission = true;
|
|
8358
7231
|
}
|
|
7232
|
+
/** @type {?} */
|
|
7233
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
7234
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
7235
|
+
* @param {?} response
|
|
7236
|
+
* @return {?}
|
|
7237
|
+
*/
|
|
7238
|
+
function (response) {
|
|
7239
|
+
if (JSON.parse(response)) {
|
|
7240
|
+
_this.viewCompStatus = '';
|
|
7241
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7242
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7243
|
+
if (JSON.parse(response).refund_amount) {
|
|
7244
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7245
|
+
}
|
|
7246
|
+
}
|
|
7247
|
+
}), (/**
|
|
7248
|
+
* @param {?} error
|
|
7249
|
+
* @return {?}
|
|
7250
|
+
*/
|
|
7251
|
+
function (error) {
|
|
7252
|
+
_this.errorMessage = error;
|
|
7253
|
+
_this.isConfirmationBtnDisabled = false;
|
|
7254
|
+
_this.cd.detectChanges();
|
|
7255
|
+
}));
|
|
8359
7256
|
};
|
|
7257
|
+
// Retro Refund
|
|
7258
|
+
// Retro Refund
|
|
8360
7259
|
/**
|
|
8361
|
-
* @param {?} elementId
|
|
8362
|
-
* @return {?}
|
|
8363
|
-
*/
|
|
8364
|
-
AddRemissionComponent.prototype.getErrorClass = /**
|
|
8365
|
-
* @param {?} elementId
|
|
8366
7260
|
* @return {?}
|
|
8367
7261
|
*/
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
/** @type {?} */
|
|
8371
|
-
var ele = document.getElementById(elementId);
|
|
8372
|
-
ele.classList.add('inline-error-class');
|
|
8373
|
-
}
|
|
8374
|
-
};
|
|
7262
|
+
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7263
|
+
// Retro Refund
|
|
8375
7264
|
/**
|
|
8376
7265
|
* @return {?}
|
|
8377
7266
|
*/
|
|
8378
|
-
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8379
|
-
* @return {?}
|
|
8380
|
-
*/
|
|
8381
7267
|
function () {
|
|
8382
|
-
this.isFromCheckAnsPage = true;
|
|
8383
|
-
this.errorMessage = '';
|
|
8384
|
-
this.errorMsg = [];
|
|
8385
|
-
this.refundHasError = false;
|
|
8386
|
-
this.isReasonEmpty = false;
|
|
8387
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8388
|
-
this.viewStatus = '';
|
|
8389
|
-
this.isRefundRemission = true;
|
|
8390
|
-
};
|
|
8391
|
-
/**
|
|
8392
|
-
* @param {?} isFullyRefund
|
|
8393
|
-
* @return {?}
|
|
8394
|
-
*/
|
|
8395
|
-
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8396
|
-
* @param {?} isFullyRefund
|
|
8397
|
-
* @return {?}
|
|
8398
|
-
*/
|
|
8399
|
-
function (isFullyRefund) {
|
|
8400
7268
|
var _this = this;
|
|
8401
7269
|
this.isConfirmationBtnDisabled = true;
|
|
8402
7270
|
this.errorMessage = '';
|
|
8403
|
-
this.errorMsg = [];
|
|
8404
7271
|
if (this.isRefundRemission) {
|
|
8405
7272
|
this.retroRemission = true;
|
|
8406
7273
|
}
|
|
8407
|
-
if (isFullyRefund) {
|
|
8408
|
-
this.totalRefundAmount = this.payment.amount;
|
|
8409
|
-
}
|
|
8410
|
-
if (!isFullyRefund) {
|
|
8411
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8412
|
-
* @param {?} value
|
|
8413
|
-
* @return {?}
|
|
8414
|
-
*/
|
|
8415
|
-
function (value) { return value.selected === true; }));
|
|
8416
|
-
}
|
|
8417
|
-
this.fees = this.fees.map((/**
|
|
8418
|
-
* @param {?} obj
|
|
8419
|
-
* @return {?}
|
|
8420
|
-
*/
|
|
8421
|
-
function (obj) { return ({ id: obj.id,
|
|
8422
|
-
code: obj.code,
|
|
8423
|
-
version: obj.version,
|
|
8424
|
-
apportion_amount: obj.apportion_amount,
|
|
8425
|
-
calculated_amount: obj.calculated_amount,
|
|
8426
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8427
|
-
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount }); }));
|
|
8428
7274
|
/** @type {?} */
|
|
8429
|
-
var requestBody = new PostRefundRetroRemission(this.
|
|
7275
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
8430
7276
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
8431
7277
|
* @param {?} response
|
|
8432
7278
|
* @return {?}
|
|
@@ -8434,7 +7280,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8434
7280
|
function (response) {
|
|
8435
7281
|
if (JSON.parse(response)) {
|
|
8436
7282
|
_this.viewCompStatus = '';
|
|
8437
|
-
_this.viewStatus = '
|
|
7283
|
+
_this.viewStatus = 'retrorefundconfirmationpage';
|
|
8438
7284
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
8439
7285
|
if (JSON.parse(response).refund_amount) {
|
|
8440
7286
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -8447,101 +7293,14 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8447
7293
|
function (error) {
|
|
8448
7294
|
_this.errorMessage = error;
|
|
8449
7295
|
_this.isConfirmationBtnDisabled = false;
|
|
8450
|
-
_this.cd.detectChanges();
|
|
8451
7296
|
}));
|
|
8452
7297
|
};
|
|
8453
|
-
/**
|
|
8454
|
-
* @return {?}
|
|
8455
|
-
*/
|
|
8456
|
-
AddRemissionComponent.prototype.gotoRefundReasonPage = /**
|
|
8457
|
-
* @return {?}
|
|
8458
|
-
*/
|
|
8459
|
-
function () {
|
|
8460
|
-
this.viewStatus = '';
|
|
8461
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8462
|
-
};
|
|
8463
|
-
// Retro Refund
|
|
8464
|
-
// confirmRetroRefund() {
|
|
8465
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8466
|
-
// this.errorMessage = '';
|
|
8467
|
-
// this.errorMsg = [];
|
|
8468
|
-
// if( this.isRefundRemission) {
|
|
8469
|
-
// this.retroRemission = true;
|
|
8470
|
-
// }
|
|
8471
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8472
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8473
|
-
// response => {
|
|
8474
|
-
// if (JSON.parse(response)) {
|
|
8475
|
-
// this.viewCompStatus = '';
|
|
8476
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8477
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8478
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8479
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8480
|
-
// }
|
|
8481
|
-
// }
|
|
8482
|
-
// },
|
|
8483
|
-
// (error: any) => {
|
|
8484
|
-
// this.errorMessage = error;
|
|
8485
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8486
|
-
// });
|
|
8487
|
-
// }
|
|
8488
|
-
// Retro Refund
|
|
8489
|
-
// confirmRetroRefund() {
|
|
8490
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8491
|
-
// this.errorMessage = '';
|
|
8492
|
-
// this.errorMsg = [];
|
|
8493
|
-
// if( this.isRefundRemission) {
|
|
8494
|
-
// this.retroRemission = true;
|
|
8495
|
-
// }
|
|
8496
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8497
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8498
|
-
// response => {
|
|
8499
|
-
// if (JSON.parse(response)) {
|
|
8500
|
-
// this.viewCompStatus = '';
|
|
8501
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8502
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8503
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8504
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8505
|
-
// }
|
|
8506
|
-
// }
|
|
8507
|
-
// },
|
|
8508
|
-
// (error: any) => {
|
|
8509
|
-
// this.errorMessage = error;
|
|
8510
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8511
|
-
// });
|
|
8512
|
-
// }
|
|
8513
7298
|
/**
|
|
8514
7299
|
* @param {?} key
|
|
8515
7300
|
* @param {?} value
|
|
8516
7301
|
* @return {?}
|
|
8517
7302
|
*/
|
|
8518
|
-
AddRemissionComponent.prototype.selectRadioButton =
|
|
8519
|
-
// Retro Refund
|
|
8520
|
-
// confirmRetroRefund() {
|
|
8521
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8522
|
-
// this.errorMessage = '';
|
|
8523
|
-
// this.errorMsg = [];
|
|
8524
|
-
// if( this.isRefundRemission) {
|
|
8525
|
-
// this.retroRemission = true;
|
|
8526
|
-
// }
|
|
8527
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8528
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8529
|
-
// response => {
|
|
8530
|
-
// if (JSON.parse(response)) {
|
|
8531
|
-
// this.viewCompStatus = '';
|
|
8532
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8533
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8534
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8535
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8536
|
-
// }
|
|
8537
|
-
// }
|
|
8538
|
-
// },
|
|
8539
|
-
// (error: any) => {
|
|
8540
|
-
// this.errorMessage = error;
|
|
8541
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8542
|
-
// });
|
|
8543
|
-
// }
|
|
8544
|
-
/**
|
|
7303
|
+
AddRemissionComponent.prototype.selectRadioButton = /**
|
|
8545
7304
|
* @param {?} key
|
|
8546
7305
|
* @param {?} value
|
|
8547
7306
|
* @return {?}
|
|
@@ -8554,7 +7313,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8554
7313
|
remissionctrls['reason'].reset();
|
|
8555
7314
|
this.isRefundReasonsSelected = true;
|
|
8556
7315
|
this.errorMessage = false;
|
|
8557
|
-
this.errorMsg = [];
|
|
8558
7316
|
this.isReasonEmpty = false;
|
|
8559
7317
|
this.showReasonText = false;
|
|
8560
7318
|
this.refundHasError = false;
|
|
@@ -8589,38 +7347,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8589
7347
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
8590
7348
|
}
|
|
8591
7349
|
};
|
|
8592
|
-
/**
|
|
8593
|
-
* @param {?} obj
|
|
8594
|
-
* @param {?} type
|
|
8595
|
-
* @return {?}
|
|
8596
|
-
*/
|
|
8597
|
-
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8598
|
-
* @param {?} obj
|
|
8599
|
-
* @param {?} type
|
|
8600
|
-
* @return {?}
|
|
8601
|
-
*/
|
|
8602
|
-
function (obj, type) {
|
|
8603
|
-
this.contactDetailsObj = obj;
|
|
8604
|
-
this.viewCompStatus = '';
|
|
8605
|
-
this.viewStatus = type;
|
|
8606
|
-
};
|
|
8607
|
-
/**
|
|
8608
|
-
* @return {?}
|
|
8609
|
-
*/
|
|
8610
|
-
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8611
|
-
* @return {?}
|
|
8612
|
-
*/
|
|
8613
|
-
function () {
|
|
8614
|
-
if (this.isFromRefundStatusPage) {
|
|
8615
|
-
/** @type {?} */
|
|
8616
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8617
|
-
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8618
|
-
return;
|
|
8619
|
-
}
|
|
8620
|
-
this.refundHasError = false;
|
|
8621
|
-
this.viewCompStatus = 'issuerefund';
|
|
8622
|
-
this.viewStatus = '';
|
|
8623
|
-
};
|
|
8624
7350
|
/**
|
|
8625
7351
|
* @param {?} event
|
|
8626
7352
|
* @return {?}
|
|
@@ -8632,21 +7358,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8632
7358
|
function (event) {
|
|
8633
7359
|
var _this = this;
|
|
8634
7360
|
this.errorMessage = '';
|
|
8635
|
-
this.errorMsg = [];
|
|
8636
|
-
this.isFromCheckAnsPage = false;
|
|
8637
7361
|
event.preventDefault();
|
|
8638
|
-
if (this.isFromRefundStatusPage) {
|
|
8639
|
-
/** @type {?} */
|
|
8640
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8641
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8642
|
-
* @param {?} a
|
|
8643
|
-
* @param {?} c
|
|
8644
|
-
* @return {?}
|
|
8645
|
-
*/
|
|
8646
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8647
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8648
|
-
return;
|
|
8649
|
-
}
|
|
8650
7362
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
8651
7363
|
this.viewStatus = 'order-full-view';
|
|
8652
7364
|
this.viewCompStatus = '';
|
|
@@ -8681,40 +7393,64 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8681
7393
|
}
|
|
8682
7394
|
this.viewCompStatus = '';
|
|
8683
7395
|
}
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
this.
|
|
8698
|
-
this.
|
|
8699
|
-
this.
|
|
8700
|
-
|
|
8701
|
-
this.
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
this.
|
|
8714
|
-
this.
|
|
8715
|
-
this.
|
|
8716
|
-
this.
|
|
8717
|
-
this.
|
|
7396
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7397
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7398
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7399
|
+
// }
|
|
7400
|
+
// if (this.isFromServiceRequestPage) {
|
|
7401
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7402
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7403
|
+
// this.viewStatus = 'main'
|
|
7404
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7405
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7406
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7407
|
+
// }
|
|
7408
|
+
// if ( this.isFromRefundListPage ) {
|
|
7409
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7410
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7411
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7412
|
+
// }
|
|
7413
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7414
|
+
// if(this.payment) {
|
|
7415
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7416
|
+
// }
|
|
7417
|
+
// if (this.isFromServiceRequestPage) {
|
|
7418
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7419
|
+
// } else {
|
|
7420
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7421
|
+
// }
|
|
7422
|
+
// this.errorMessage = '';
|
|
7423
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7424
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7425
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7426
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7427
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7428
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7429
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7430
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7431
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7432
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7433
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7434
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7435
|
+
// }
|
|
7436
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7437
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7438
|
+
// }
|
|
7439
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7440
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7441
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7442
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7443
|
+
// this.router.navigateByUrl(url);
|
|
7444
|
+
// } else {
|
|
7445
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7446
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7447
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7448
|
+
// this.router.navigateByUrl(url);
|
|
7449
|
+
// }
|
|
7450
|
+
// } else {
|
|
7451
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7452
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7453
|
+
// }
|
|
8718
7454
|
};
|
|
8719
7455
|
/**
|
|
8720
7456
|
* @return {?}
|
|
@@ -8725,12 +7461,9 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8725
7461
|
function () {
|
|
8726
7462
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8727
7463
|
this.errorMessage = '';
|
|
8728
|
-
this.errorMsg = [];
|
|
8729
7464
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8730
7465
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8731
7466
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
8732
|
-
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
8733
|
-
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
8734
7467
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8735
7468
|
this.resetOrderData();
|
|
8736
7469
|
/** @type {?} */
|
|
@@ -8739,8 +7472,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8739
7472
|
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
8740
7473
|
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
8741
7474
|
partUrl += "&caseType=" + this.caseType;
|
|
8742
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
8743
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
8744
7475
|
/** @type {?} */
|
|
8745
7476
|
var url = "/payment-history/" + this.ccdCaseNumber + "?view=case-transactions&takePayment=" + this.paymentLibComponent.TAKEPAYMENT + "&selectedOption=" + this.option + partUrl;
|
|
8746
7477
|
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
@@ -8760,37 +7491,28 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8760
7491
|
*/
|
|
8761
7492
|
function (event) {
|
|
8762
7493
|
event.preventDefault();
|
|
8763
|
-
this.
|
|
8764
|
-
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8765
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8766
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8767
|
-
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8768
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8769
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
8770
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
7494
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8771
7495
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8772
7496
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8773
7497
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8774
7498
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8775
7499
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8776
7500
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8777
|
-
this.
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
partUrl
|
|
8784
|
-
partUrl += this.paymentLibComponent.
|
|
8785
|
-
partUrl += this.paymentLibComponent.
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
this.
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
8793
|
-
this.router.navigateByUrl(url);
|
|
7501
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7502
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7503
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7504
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7505
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7506
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7507
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7508
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7509
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7510
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7511
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7512
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7513
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7514
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7515
|
+
// this.router.navigateByUrl(url);
|
|
8794
7516
|
}
|
|
8795
7517
|
else {
|
|
8796
7518
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -8806,8 +7528,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8806
7528
|
this.errorMessage = '';
|
|
8807
7529
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8808
7530
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
8809
|
-
this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
8810
|
-
this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
8811
7531
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
8812
7532
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8813
7533
|
/** @type {?} */
|
|
@@ -8816,8 +7536,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8816
7536
|
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
8817
7537
|
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
8818
7538
|
partUrl += "&caseType=" + this.caseType;
|
|
8819
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
8820
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
8821
7539
|
if (this.isFromPaymentDetailPage) {
|
|
8822
7540
|
partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
|
|
8823
7541
|
}
|
|
@@ -8859,17 +7577,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8859
7577
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8860
7578
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8861
7579
|
};
|
|
8862
|
-
/**
|
|
8863
|
-
* @return {?}
|
|
8864
|
-
*/
|
|
8865
|
-
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8866
|
-
* @return {?}
|
|
8867
|
-
*/
|
|
8868
|
-
function () {
|
|
8869
|
-
this.isFromCheckAnsPage = true;
|
|
8870
|
-
this.viewCompStatus = 'issuerefund';
|
|
8871
|
-
this.viewStatus = '';
|
|
8872
|
-
};
|
|
8873
7580
|
/**
|
|
8874
7581
|
* @param {?} currency
|
|
8875
7582
|
* @return {?}
|
|
@@ -8887,8 +7594,8 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8887
7594
|
AddRemissionComponent.decorators = [
|
|
8888
7595
|
{ type: Component, args: [{
|
|
8889
7596
|
selector: 'ccpay-add-remission',
|
|
8890
|
-
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n <div *ngIf=\"errorMsg.length > 0\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div *ngFor=\"let err of errorMsg; let i = index\" class=\"govuk-error-summary__body\">\n \n <li>{{err}}</li>\n </div>\n </div>\n </div>\n\n<ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n</ng-container>\n\n<!-- Add retro remission changes-->\n\n<ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"gotoAmountRetroRemission()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAmountRetroRemission()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel-border--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"gotoProcessRetroRemission()\">Continue </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n\n<ng-container *ngIf=\"viewStatus === 'remissionAddressPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission(contactDetailsObj)\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\"> Submit refund </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n</ng-container>\n\n<!-- Issue Refund Section -->\n<ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <h1 class=\"heading-large\">Issue refund</h1>\n <h2 class=\"heading-medium\">Case reference:#{{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"form-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <h3 class=\"heading-small\">Select fees to be refunded</h3>\n <!--TABLE-->\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-1\" scope=\"col\">Select</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Fee description</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Total paid</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Quantity</td>\n <td class=\"govuk-table__header col-8\" scope=\"col\">Amount to refund</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"!isFullyRefund\">\n <tr class=\"govuk-table__row\" formArrayName=\"feesList\" *ngFor=\"let fee of feesList?.controls; let i = index\">\n <td class=\"govuk-table__cell\">\n <div [formGroupName]=\"i\" class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n\n <input\n class=\"govuk-checkboxes__input\" \n (click)=\"check_en(i,fee.controls['id'].value,fee.controls['apportion_amount'].value,fee.controls['volume'].value)\" \n id=\"{{fee.controls['id'].value}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.controls['id'].value}}\" \n formControlName=\"selected\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.controls['id'].value}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.controls['description'].value}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.controls['id'].value}}\">{{ fee.controls['calculated_amount'].value / fee.controls['volume'].value }}</div>\n {{ fee.controls['calculated_amount'].value / fee.controls['volume'].value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ fee.controls['apportion_amount'].value | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value >1\">\n <div [formGroupName]=\"i\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" (keyup)=\"calAmtToRefund($event.target.value,fee.controls['calculated_amount'].value,fee.controls['volume'].value,i)\" value=\"{{fee.controls['updated_volume'].value}}\" name=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" formControlName=\"updated_volume\" type=\"text\" >\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value ===1\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"VolumeUpdated_{{fee.controls['id'].value}}\" name=\"VolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\">\n </td>\n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div [formGroupName]=\"i\" class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.controls['id'].value}}\" name=\"feeAmount_{{fee.controls['id'].value}}\" type=\"text\" aria-describedby=\"amount-currency \" pattern=\"[0-9]*\" formControlName=\"refund_amount\">\n <input id=\"feeVolume_{{fee.controls['id'].value}}\" name=\"feeVolume_{{fee.controls['id'].value}}\" value= \"{{fee.controls['volume'].value}}\" type=\"hidden\" formControlName=\"volume\">\n <input id=\"feeApportionAmount_{{fee.controls['id'].value}}\" name=\"feeApportionAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['apportion_amount'].value}}\" type=\"hidden\" formControlName=\"apportion_amount\">\n <input id=\"calculatedAmount_{{fee.controls['id'].value}}\" name=\"calculatedAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['calculated_amount'].value}}\" type=\"hidden\" formControlName=\"calculated_amount\">\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"isFullyRefund\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of fees; let i = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input \n class=\"govuk-checkboxes__input\" \n \n id=\"{{fee.id}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.id}}\"\n disabled=\"disabled\"\n [checked]=\"true\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.id}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.description}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.id}}\">{{ fee.calculated_amount / fee.volume }}</div>\n {{ fee.calculated_amount / fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\">\n <div >\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.id}}\" value=\"{{fee.volume}}\" name=\"feeVolumeUpdated_{{fee.id}}\" type=\"text\" >\n </div>\n </td>\n \n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.id}}\" name=\"feeAmount_{{fee.id}}\" type=\"text\" aria-describedby=\"amount-currency \" value=\"{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}\" pattern=\"[0-9]*\" >\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"fees?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n\n \n <a (click)=\"gotoServiceRequestPage($event)\" *ngIf=\"!isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n <a (click)=\"goToPaymentViewComponent()\" *ngIf=\"isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n <button [disabled] = \"noneSelected()\" (click)=\"gotoIssuePage(isFullyRefund)\" class=\"govuk-button\">\n Continue\n </button>\n \n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </form>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'issuerefundpage1' && isRefundRemission\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"payment\" class=\"form-hint\">\n Payment reference: {{paymentReference}}\n </span>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"refundPaymentReference\" class=\"form-hint\">\n Payment reference: {{refundPaymentReference}}\n </span>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoPartialFeeRefundScreen()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'contactDetailsPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CAPTUREADDRESSDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkissuerefundpage')\"\n (redirectToIssueRefund)=\"gotoRefundReasonPage()\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n \n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{totalRefundAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}\n <a (click)=\"changeRefundAmount()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoContactDetailsPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoContactDetailsPage(contactDetailsObj)\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund(isFullyRefund)\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<!--Retro Refund-->\n<ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event, 'addrefundcheckandanswer')\"\n(redirectToIssueRefund)=\"gotoServiceRequestPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addrefundcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n</ccpay-payment-view>\n</ng-container>\n\n</div>",
|
|
8891
|
-
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 .
|
|
7597
|
+
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",
|
|
7598
|
+
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}"]
|
|
8892
7599
|
}] }
|
|
8893
7600
|
];
|
|
8894
7601
|
/** @nocollapse */
|
|
@@ -8903,7 +7610,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8903
7610
|
]; };
|
|
8904
7611
|
AddRemissionComponent.propDecorators = {
|
|
8905
7612
|
fee: [{ type: Input }],
|
|
8906
|
-
fees: [{ type: Input }],
|
|
8907
7613
|
payment: [{ type: Input }],
|
|
8908
7614
|
remission: [{ type: Input }],
|
|
8909
7615
|
ccdCaseNumber: [{ type: Input }],
|
|
@@ -8912,19 +7618,12 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8912
7618
|
paymentGroupRef: [{ type: Input }],
|
|
8913
7619
|
isTurnOff: [{ type: Input }],
|
|
8914
7620
|
isRefundRemission: [{ type: Input }],
|
|
8915
|
-
isOldPcipalOff: [{ type: Input }],
|
|
8916
|
-
isNewPcipalOff: [{ type: Input }],
|
|
8917
7621
|
isStrategicFixEnable: [{ type: Input }],
|
|
8918
7622
|
paidAmount: [{ type: Input }],
|
|
8919
7623
|
isFromRefundListPage: [{ type: Input }],
|
|
8920
7624
|
isFromPaymentDetailPage: [{ type: Input }],
|
|
8921
7625
|
isFromServiceRequestPage: [{ type: Input }],
|
|
8922
|
-
isFullyRefund: [{ type: Input, args: ['isFullyRefund',] }],
|
|
8923
7626
|
feeamount: [{ type: Input }],
|
|
8924
|
-
refundPaymentReference: [{ type: Input }],
|
|
8925
|
-
isFromRefundStatusPage: [{ type: Input }],
|
|
8926
|
-
changeRefundReason: [{ type: Input }],
|
|
8927
|
-
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
8928
7627
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8929
7628
|
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
8930
7629
|
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
@@ -8938,8 +7637,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8938
7637
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
8939
7638
|
cancelRemission: [{ type: Output }],
|
|
8940
7639
|
refundListReason: [{ type: Output }],
|
|
8941
|
-
refundListAmount: [{ type: Output }]
|
|
8942
|
-
refundFees: [{ type: Output }]
|
|
7640
|
+
refundListAmount: [{ type: Output }]
|
|
8943
7641
|
};
|
|
8944
7642
|
return AddRemissionComponent;
|
|
8945
7643
|
}());
|
|
@@ -9677,29 +8375,13 @@ var TableComponent = /** @class */ (function () {
|
|
|
9677
8375
|
return (r[user_full_name] = '', r);
|
|
9678
8376
|
}), {});
|
|
9679
8377
|
this.userLst = Object.keys(this.userLst);
|
|
9680
|
-
this.userLst.sort((/**
|
|
9681
|
-
* @param {?} a
|
|
9682
|
-
* @param {?} b
|
|
9683
|
-
* @return {?}
|
|
9684
|
-
*/
|
|
9685
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9686
|
-
this.serviceLst = this.refundList.reduce((/**
|
|
9687
|
-
* @param {?} r
|
|
9688
|
-
* @param {?} __1
|
|
9689
|
-
* @return {?}
|
|
9690
|
-
*/
|
|
9691
|
-
function (r, _a) {
|
|
9692
|
-
var service_type = _a.service_type;
|
|
9693
|
-
return (r[service_type] = '', r);
|
|
9694
|
-
}), {});
|
|
9695
|
-
this.serviceLst = Object.keys(this.serviceLst);
|
|
9696
|
-
this.serviceLst.sort((/**
|
|
9697
|
-
* @param {?} a
|
|
9698
|
-
* @param {?} b
|
|
9699
|
-
* @return {?}
|
|
9700
|
-
*/
|
|
9701
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9702
8378
|
}
|
|
8379
|
+
this.userLst.sort((/**
|
|
8380
|
+
* @param {?} a
|
|
8381
|
+
* @param {?} b
|
|
8382
|
+
* @return {?}
|
|
8383
|
+
*/
|
|
8384
|
+
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9703
8385
|
};
|
|
9704
8386
|
/**
|
|
9705
8387
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -9799,8 +8481,8 @@ var TableComponent = /** @class */ (function () {
|
|
|
9799
8481
|
TableComponent.decorators = [
|
|
9800
8482
|
{ type: Component, args: [{
|
|
9801
8483
|
selector: 'ccpay-table',
|
|
9802
|
-
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
|
|
9803
|
-
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}
|
|
8484
|
+
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",
|
|
8485
|
+
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}"]
|
|
9804
8486
|
}] }
|
|
9805
8487
|
];
|
|
9806
8488
|
/** @nocollapse */
|
|
@@ -9821,32 +8503,14 @@ var TableComponent = /** @class */ (function () {
|
|
|
9821
8503
|
return TableComponent;
|
|
9822
8504
|
}());
|
|
9823
8505
|
|
|
9824
|
-
/**
|
|
9825
|
-
* @fileoverview added by tsickle
|
|
9826
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9827
|
-
*/
|
|
9828
|
-
var IPutNotificationRequest = /** @class */ (function () {
|
|
9829
|
-
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9830
|
-
if (notificationType === 'EMAIL') {
|
|
9831
|
-
this.recipient_email_address = contactDetails;
|
|
9832
|
-
}
|
|
9833
|
-
else if (notificationType === 'LETTER') {
|
|
9834
|
-
this.recipient_postal_address = contactDetails;
|
|
9835
|
-
}
|
|
9836
|
-
}
|
|
9837
|
-
return IPutNotificationRequest;
|
|
9838
|
-
}());
|
|
9839
|
-
|
|
9840
8506
|
/**
|
|
9841
8507
|
* @fileoverview added by tsickle
|
|
9842
8508
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9843
8509
|
*/
|
|
9844
8510
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9845
|
-
function IResubmitRefundRequest(refund_reason, amount
|
|
8511
|
+
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9846
8512
|
this.refund_reason = refund_reason;
|
|
9847
8513
|
this.amount = amount;
|
|
9848
|
-
this.contact_details = contact_details;
|
|
9849
|
-
this.refund_fees = refund_fees;
|
|
9850
8514
|
}
|
|
9851
8515
|
return IResubmitRefundRequest;
|
|
9852
8516
|
}());
|
|
@@ -9856,18 +8520,20 @@ var IResubmitRefundRequest = /** @class */ (function () {
|
|
|
9856
8520
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9857
8521
|
*/
|
|
9858
8522
|
var RefundStatusComponent = /** @class */ (function () {
|
|
9859
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
8523
|
+
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router, OrderslistService$$1) {
|
|
9860
8524
|
var _this = this;
|
|
9861
8525
|
this.formBuilder = formBuilder;
|
|
9862
8526
|
this.refundService = refundService;
|
|
9863
|
-
this.notificationService = notificationService;
|
|
9864
8527
|
this.paymentLibComponent = paymentLibComponent;
|
|
9865
|
-
this.OrderslistService = OrderslistService$$1;
|
|
9866
8528
|
this.paymentViewService = paymentViewService;
|
|
8529
|
+
this.router = router;
|
|
8530
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9867
8531
|
this.LOGGEDINUSERROLES = [];
|
|
9868
8532
|
this.rejectedRefundList = [];
|
|
9869
8533
|
this.approvalStatus = 'Sent for approval';
|
|
9870
8534
|
this.rejectStatus = 'Update required';
|
|
8535
|
+
// approvalStatus = 'sent for approval';
|
|
8536
|
+
// rejectStatus = 'sent back';
|
|
9871
8537
|
this.errorMessage = null;
|
|
9872
8538
|
this.refundButtonState = '';
|
|
9873
8539
|
this.isAmountEmpty = false;
|
|
@@ -9876,9 +8542,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9876
8542
|
this.isRemissionLessThanFeeError = false;
|
|
9877
8543
|
this.refundHasError = false;
|
|
9878
8544
|
this.refundReasons = [];
|
|
9879
|
-
this.isResendOperationSuccess = false;
|
|
9880
|
-
this.isEditDetailsClicked = false;
|
|
9881
|
-
this.isEditAddressDeatilsClicked = false;
|
|
9882
8545
|
this.isRefundBtnDisabled = true;
|
|
9883
8546
|
this.isLastUpdatedByCurrentUser = true;
|
|
9884
8547
|
this.isProcessRefund = false;
|
|
@@ -9904,9 +8567,13 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9904
8567
|
*/
|
|
9905
8568
|
function () {
|
|
9906
8569
|
var _this = this;
|
|
8570
|
+
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
9907
8571
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
9908
8572
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
9909
8573
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8574
|
+
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8575
|
+
// this.viewName = 'reviewandsubmitview';
|
|
8576
|
+
// }
|
|
9910
8577
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
9911
8578
|
this.viewName = 'refundview';
|
|
9912
8579
|
this.OrderslistService.getRefundView().subscribe((/**
|
|
@@ -9928,7 +8595,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9928
8595
|
*/
|
|
9929
8596
|
function (refundList) {
|
|
9930
8597
|
_this.rejectedRefundList = refundList['refund_list'];
|
|
9931
|
-
//this.refundFees = this.rejectedRefundList['refund_fees'];
|
|
9932
8598
|
})),
|
|
9933
8599
|
(/**
|
|
9934
8600
|
* @param {?} error
|
|
@@ -9947,7 +8613,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9947
8613
|
reason: new FormControl()
|
|
9948
8614
|
});
|
|
9949
8615
|
if (this.refundlist !== undefined) {
|
|
9950
|
-
this.getRefundsNotification();
|
|
9951
8616
|
this.getRefundsStatusHistoryList();
|
|
9952
8617
|
if (this.LOGGEDINUSERROLES.some((/**
|
|
9953
8618
|
* @param {?} i
|
|
@@ -9967,6 +8632,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9967
8632
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
9968
8633
|
}
|
|
9969
8634
|
}
|
|
8635
|
+
//}
|
|
9970
8636
|
};
|
|
9971
8637
|
/**
|
|
9972
8638
|
* @return {?}
|
|
@@ -9994,29 +8660,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9994
8660
|
});
|
|
9995
8661
|
}
|
|
9996
8662
|
};
|
|
9997
|
-
/**
|
|
9998
|
-
* @return {?}
|
|
9999
|
-
*/
|
|
10000
|
-
RefundStatusComponent.prototype.getRefundsNotification = /**
|
|
10001
|
-
* @return {?}
|
|
10002
|
-
*/
|
|
10003
|
-
function () {
|
|
10004
|
-
var _this = this;
|
|
10005
|
-
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
|
|
10006
|
-
* @param {?} refundsNotification
|
|
10007
|
-
* @return {?}
|
|
10008
|
-
*/
|
|
10009
|
-
function (refundsNotification) {
|
|
10010
|
-
_this.notificationList = refundsNotification['notifications'];
|
|
10011
|
-
})),
|
|
10012
|
-
(/**
|
|
10013
|
-
* @param {?} error
|
|
10014
|
-
* @return {?}
|
|
10015
|
-
*/
|
|
10016
|
-
function (error) {
|
|
10017
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10018
|
-
});
|
|
10019
|
-
};
|
|
10020
8663
|
/**
|
|
10021
8664
|
* @param {?} refundlist
|
|
10022
8665
|
* @param {?} navigationpage
|
|
@@ -10107,21 +8750,18 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10107
8750
|
}));
|
|
10108
8751
|
};
|
|
10109
8752
|
/**
|
|
10110
|
-
* @param {?} refundReason
|
|
10111
8753
|
* @return {?}
|
|
10112
8754
|
*/
|
|
10113
8755
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
10114
|
-
* @param {?} refundReason
|
|
10115
8756
|
* @return {?}
|
|
10116
8757
|
*/
|
|
10117
|
-
function (
|
|
8758
|
+
function () {
|
|
10118
8759
|
this.isRefundBtnDisabled = false;
|
|
10119
8760
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
10120
8761
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10121
8762
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10122
8763
|
this.errorMessage = false;
|
|
10123
|
-
this.
|
|
10124
|
-
this.viewName = 'issuerefundpage1';
|
|
8764
|
+
this.viewName = 'issuerefund';
|
|
10125
8765
|
};
|
|
10126
8766
|
/**
|
|
10127
8767
|
* @return {?}
|
|
@@ -10135,12 +8775,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10135
8775
|
this.isRefundBtnDisabled = false;
|
|
10136
8776
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10137
8777
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10138
|
-
|
|
10139
|
-
this.viewName = 'processretroremissonpage';
|
|
10140
|
-
}
|
|
10141
|
-
else {
|
|
10142
|
-
this.viewName = 'issuerefund';
|
|
10143
|
-
}
|
|
8778
|
+
this.viewName = 'processretroremissonpage';
|
|
10144
8779
|
};
|
|
10145
8780
|
/**
|
|
10146
8781
|
* @return {?}
|
|
@@ -10222,7 +8857,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10222
8857
|
function (refundListReason) {
|
|
10223
8858
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
10224
8859
|
this.refundlist.reason = refundListReason.reason;
|
|
10225
|
-
this.refundlist.code = refundListReason.code;
|
|
10226
8860
|
this.refundCode = refundListReason.code;
|
|
10227
8861
|
}
|
|
10228
8862
|
else {
|
|
@@ -10252,22 +8886,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10252
8886
|
this.viewName = 'reviewandsubmitview';
|
|
10253
8887
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
10254
8888
|
};
|
|
10255
|
-
/**
|
|
10256
|
-
* @param {?} fees
|
|
10257
|
-
* @return {?}
|
|
10258
|
-
*/
|
|
10259
|
-
RefundStatusComponent.prototype.getRefundFees = /**
|
|
10260
|
-
* @param {?} fees
|
|
10261
|
-
* @return {?}
|
|
10262
|
-
*/
|
|
10263
|
-
function (fees) {
|
|
10264
|
-
this.fees = fees;
|
|
10265
|
-
this.refundFees = this.fees.map((/**
|
|
10266
|
-
* @param {?} obj
|
|
10267
|
-
* @return {?}
|
|
10268
|
-
*/
|
|
10269
|
-
function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10270
|
-
};
|
|
10271
8889
|
/**
|
|
10272
8890
|
* @return {?}
|
|
10273
8891
|
*/
|
|
@@ -10276,15 +8894,11 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10276
8894
|
*/
|
|
10277
8895
|
function () {
|
|
10278
8896
|
var _this = this;
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
// }
|
|
10282
|
-
if (this.refundFees === undefined) {
|
|
10283
|
-
this.refundFees = this.refundlist['refund_fees'];
|
|
8897
|
+
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8898
|
+
this.refundCode = '';
|
|
10284
8899
|
}
|
|
10285
|
-
this.refundCode = this.refundlist.code;
|
|
10286
8900
|
/** @type {?} */
|
|
10287
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount
|
|
8901
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10288
8902
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe((/**
|
|
10289
8903
|
* @param {?} response
|
|
10290
8904
|
* @return {?}
|
|
@@ -10304,181 +8918,40 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10304
8918
|
}));
|
|
10305
8919
|
};
|
|
10306
8920
|
/**
|
|
10307
|
-
* @param {?}
|
|
8921
|
+
* @param {?} refundReference
|
|
8922
|
+
* @param {?} refundList
|
|
10308
8923
|
* @return {?}
|
|
10309
8924
|
*/
|
|
10310
|
-
RefundStatusComponent.prototype.
|
|
10311
|
-
* @param {?}
|
|
8925
|
+
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
8926
|
+
* @param {?} refundReference
|
|
8927
|
+
* @param {?} refundList
|
|
10312
8928
|
* @return {?}
|
|
10313
8929
|
*/
|
|
10314
|
-
function (
|
|
10315
|
-
this.
|
|
10316
|
-
this.
|
|
10317
|
-
this.viewName = '
|
|
10318
|
-
};
|
|
10319
|
-
/**
|
|
10320
|
-
* @param {?} obj
|
|
10321
|
-
* @return {?}
|
|
10322
|
-
*/
|
|
10323
|
-
RefundStatusComponent.prototype.getContactDetails = /**
|
|
10324
|
-
* @param {?} obj
|
|
10325
|
-
* @return {?}
|
|
10326
|
-
*/
|
|
10327
|
-
function (obj) {
|
|
10328
|
-
this.addressDetails = obj;
|
|
10329
|
-
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
10330
|
-
};
|
|
10331
|
-
/**
|
|
10332
|
-
* @param {?} obj
|
|
10333
|
-
* @return {?}
|
|
10334
|
-
*/
|
|
10335
|
-
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10336
|
-
* @param {?} obj
|
|
10337
|
-
* @return {?}
|
|
10338
|
-
*/
|
|
10339
|
-
function (obj) {
|
|
10340
|
-
this.refundlist.contact_details = obj;
|
|
10341
|
-
this.isEditDetailsClicked = false;
|
|
10342
|
-
this.isRefundBtnDisabled = false;
|
|
10343
|
-
this.viewName = 'reviewandsubmitview';
|
|
10344
|
-
};
|
|
10345
|
-
/**
|
|
10346
|
-
* @param {?=} note
|
|
10347
|
-
* @return {?}
|
|
10348
|
-
*/
|
|
10349
|
-
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10350
|
-
* @param {?=} note
|
|
10351
|
-
* @return {?}
|
|
10352
|
-
*/
|
|
10353
|
-
function (note) {
|
|
10354
|
-
if (note) {
|
|
10355
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10356
|
-
}
|
|
10357
|
-
this.isEditDetailsClicked = true;
|
|
10358
|
-
this.viewName = 'refundEditView';
|
|
10359
|
-
};
|
|
10360
|
-
/**
|
|
10361
|
-
* @return {?}
|
|
10362
|
-
*/
|
|
10363
|
-
RefundStatusComponent.prototype.submitEditDetail = /**
|
|
10364
|
-
* @return {?}
|
|
10365
|
-
*/
|
|
10366
|
-
function () {
|
|
10367
|
-
var _this = this;
|
|
10368
|
-
this.isResendOperationSuccess = false;
|
|
10369
|
-
/** @type {?} */
|
|
10370
|
-
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10371
|
-
{
|
|
10372
|
-
address_line: this.addressDetails.address_line,
|
|
10373
|
-
city: this.addressDetails.city,
|
|
10374
|
-
county: this.addressDetails.county,
|
|
10375
|
-
country: this.addressDetails.country,
|
|
10376
|
-
postal_code: this.addressDetails.postal_code,
|
|
10377
|
-
};
|
|
10378
|
-
/** @type {?} */
|
|
10379
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10380
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
|
|
10381
|
-
* @param {?} response
|
|
10382
|
-
* @return {?}
|
|
10383
|
-
*/
|
|
10384
|
-
function (response) {
|
|
10385
|
-
_this.isResendOperationSuccess = response;
|
|
10386
|
-
}), (/**
|
|
10387
|
-
* @param {?} error
|
|
10388
|
-
* @return {?}
|
|
10389
|
-
*/
|
|
10390
|
-
function (error) {
|
|
10391
|
-
_this.isResendOperationSuccess = false;
|
|
10392
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10393
|
-
}));
|
|
10394
|
-
};
|
|
10395
|
-
/**
|
|
10396
|
-
* @param {?} notification
|
|
10397
|
-
* @return {?}
|
|
10398
|
-
*/
|
|
10399
|
-
RefundStatusComponent.prototype.putResend = /**
|
|
10400
|
-
* @param {?} notification
|
|
10401
|
-
* @return {?}
|
|
10402
|
-
*/
|
|
10403
|
-
function (notification) {
|
|
10404
|
-
var _this = this;
|
|
10405
|
-
this.isResendOperationSuccess = false;
|
|
10406
|
-
/** @type {?} */
|
|
10407
|
-
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10408
|
-
{
|
|
10409
|
-
address_line: notification.contact_details.address_line,
|
|
10410
|
-
city: notification.contact_details.city,
|
|
10411
|
-
county: notification.contact_details.county,
|
|
10412
|
-
country: notification.contact_details.country,
|
|
10413
|
-
postal_code: notification.contact_details.postal_code,
|
|
10414
|
-
};
|
|
10415
|
-
/** @type {?} */
|
|
10416
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10417
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
|
|
10418
|
-
* @param {?} response
|
|
10419
|
-
* @return {?}
|
|
10420
|
-
*/
|
|
10421
|
-
function (response) {
|
|
10422
|
-
_this.isResendOperationSuccess = response;
|
|
10423
|
-
}), (/**
|
|
10424
|
-
* @param {?} error
|
|
10425
|
-
* @return {?}
|
|
10426
|
-
*/
|
|
10427
|
-
function (error) {
|
|
10428
|
-
_this.isResendOperationSuccess = false;
|
|
10429
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10430
|
-
}));
|
|
10431
|
-
};
|
|
10432
|
-
/**
|
|
10433
|
-
* @param {?} Event
|
|
10434
|
-
* @return {?}
|
|
10435
|
-
*/
|
|
10436
|
-
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10437
|
-
* @param {?} Event
|
|
10438
|
-
* @return {?}
|
|
10439
|
-
*/
|
|
10440
|
-
function (Event) {
|
|
10441
|
-
event.preventDefault();
|
|
10442
|
-
this.viewName = 'refundstatuslist';
|
|
10443
|
-
};
|
|
10444
|
-
/**
|
|
10445
|
-
* @param {?} refundReference
|
|
10446
|
-
* @param {?} refundList
|
|
10447
|
-
* @return {?}
|
|
10448
|
-
*/
|
|
10449
|
-
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
10450
|
-
* @param {?} refundReference
|
|
10451
|
-
* @param {?} refundList
|
|
10452
|
-
* @return {?}
|
|
10453
|
-
*/
|
|
10454
|
-
function (refundReference, refundList) {
|
|
10455
|
-
this.paymentLibComponent.refundlistsource = refundList;
|
|
10456
|
-
this.paymentLibComponent.refundReference = refundReference;
|
|
10457
|
-
this.paymentLibComponent.viewName = 'process-refund';
|
|
8930
|
+
function (refundReference, refundList) {
|
|
8931
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
8932
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
8933
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
10458
8934
|
};
|
|
10459
8935
|
RefundStatusComponent.decorators = [
|
|
10460
8936
|
{ type: Component, args: [{
|
|
10461
8937
|
selector: 'ccpay-refund-status',
|
|
10462
|
-
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' && !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",
|
|
10463
|
-
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-
|
|
8938
|
+
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'\">\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",
|
|
8939
|
+
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}"]
|
|
10464
8940
|
}] }
|
|
10465
8941
|
];
|
|
10466
8942
|
/** @nocollapse */
|
|
10467
8943
|
RefundStatusComponent.ctorParameters = function () { return [
|
|
10468
8944
|
{ type: FormBuilder },
|
|
10469
8945
|
{ type: RefundsService },
|
|
10470
|
-
{ type: NotificationService },
|
|
10471
8946
|
{ type: PaymentLibComponent },
|
|
10472
|
-
{ type:
|
|
10473
|
-
{ type:
|
|
8947
|
+
{ type: PaymentViewService },
|
|
8948
|
+
{ type: Router },
|
|
8949
|
+
{ type: OrderslistService }
|
|
10474
8950
|
]; };
|
|
10475
8951
|
RefundStatusComponent.propDecorators = {
|
|
10476
8952
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
10477
|
-
isOldPcipalOff: [{ type: Input }],
|
|
10478
|
-
isNewPcipalOff: [{ type: Input }],
|
|
10479
8953
|
ccdCaseNumber: [{ type: Input }],
|
|
10480
|
-
isTurnOff: [{ type: Input }]
|
|
10481
|
-
orderParty: [{ type: Input }]
|
|
8954
|
+
isTurnOff: [{ type: Input }]
|
|
10482
8955
|
};
|
|
10483
8956
|
return RefundStatusComponent;
|
|
10484
8957
|
}());
|
|
@@ -10488,11 +8961,11 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10488
8961
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10489
8962
|
*/
|
|
10490
8963
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
10491
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1,
|
|
8964
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router) {
|
|
8965
|
+
var _this = this;
|
|
10492
8966
|
this.paymentLibComponent = paymentLibComponent;
|
|
10493
8967
|
this.paymentViewService = paymentViewService;
|
|
10494
8968
|
this.OrderslistService = OrderslistService$$1;
|
|
10495
|
-
this.cd = cd;
|
|
10496
8969
|
this.router = router;
|
|
10497
8970
|
this.goToServiceRquestComponent = new EventEmitter();
|
|
10498
8971
|
this.paymentGroups = [];
|
|
@@ -10500,6 +8973,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10500
8973
|
this.nonPayments = [];
|
|
10501
8974
|
this.allPayments = [];
|
|
10502
8975
|
this.remissions = [];
|
|
8976
|
+
this.fees = [];
|
|
10503
8977
|
this.isRefundRemission = true;
|
|
10504
8978
|
this.isAddFeeBtnEnabled = true;
|
|
10505
8979
|
this.isExceptionRecord = false;
|
|
@@ -10519,7 +8993,30 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10519
8993
|
this.isAddRemissionBtnEnabled = false;
|
|
10520
8994
|
this.isRefundRemissionBtnEnable = false;
|
|
10521
8995
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
10522
|
-
this.
|
|
8996
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
8997
|
+
* @return {?}
|
|
8998
|
+
*/
|
|
8999
|
+
function () {
|
|
9000
|
+
return _this.allowedRolesToAccessRefund.some((/**
|
|
9001
|
+
* @param {?} role
|
|
9002
|
+
* @return {?}
|
|
9003
|
+
*/
|
|
9004
|
+
function (role) {
|
|
9005
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9006
|
+
}));
|
|
9007
|
+
});
|
|
9008
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
9009
|
+
* @param {?} payment
|
|
9010
|
+
* @return {?}
|
|
9011
|
+
*/
|
|
9012
|
+
function (payment) {
|
|
9013
|
+
if (payment !== null && payment !== undefined) {
|
|
9014
|
+
/** @type {?} */
|
|
9015
|
+
var tmp4DayAgo = new Date();
|
|
9016
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
9017
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
9018
|
+
}
|
|
9019
|
+
});
|
|
10523
9020
|
}
|
|
10524
9021
|
/**
|
|
10525
9022
|
* @return {?}
|
|
@@ -10529,8 +9026,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10529
9026
|
*/
|
|
10530
9027
|
function () {
|
|
10531
9028
|
var _this = this;
|
|
10532
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10533
|
-
this.isServiceRequest = 'false';
|
|
10534
9029
|
if (this.viewStatus === undefined) {
|
|
10535
9030
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
10536
9031
|
}
|
|
@@ -10578,9 +9073,9 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10578
9073
|
function (data) { return _this.orderTotalPayments = data; }));
|
|
10579
9074
|
}
|
|
10580
9075
|
}
|
|
10581
|
-
if (this.
|
|
10582
|
-
|
|
10583
|
-
}
|
|
9076
|
+
// if (this.takePayment) {
|
|
9077
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
9078
|
+
// }
|
|
10584
9079
|
};
|
|
10585
9080
|
/**
|
|
10586
9081
|
* @return {?}
|
|
@@ -10609,7 +9104,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10609
9104
|
if (this.takePayment) {
|
|
10610
9105
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
10611
9106
|
}
|
|
10612
|
-
|
|
9107
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10613
9108
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
10614
9109
|
if (this.isServiceRequest !== 'false') {
|
|
10615
9110
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -10626,8 +9121,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10626
9121
|
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
10627
9122
|
partUrl += this.isServiceRequest !== 'false' ? '&servicerequest=true' : '&servicerequest=false';
|
|
10628
9123
|
partUrl += "&caseType=" + this.paymentLibComponent.CASETYPE;
|
|
10629
|
-
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
10630
|
-
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
10631
9124
|
/** @type {?} */
|
|
10632
9125
|
var url = "/payment-history/" + this.paymentLibComponent.CCD_CASE_NUMBER + "?view=case-transactions&selectedOption=" + this.paymentLibComponent.SELECTED_OPTION + partUrl;
|
|
10633
9126
|
this.router.routeReuseStrategy.shouldReuseRoute = (/**
|
|
@@ -10637,6 +9130,75 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10637
9130
|
this.router.onSameUrlNavigation = 'reload';
|
|
10638
9131
|
this.router.navigateByUrl(url);
|
|
10639
9132
|
};
|
|
9133
|
+
/**
|
|
9134
|
+
* @param {?} feeCode
|
|
9135
|
+
* @return {?}
|
|
9136
|
+
*/
|
|
9137
|
+
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9138
|
+
* @param {?} feeCode
|
|
9139
|
+
* @return {?}
|
|
9140
|
+
*/
|
|
9141
|
+
function (feeCode) {
|
|
9142
|
+
var e_1, _a;
|
|
9143
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9144
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9145
|
+
try {
|
|
9146
|
+
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9147
|
+
var remission = _c.value;
|
|
9148
|
+
if (remission.fee_code === feeCode) {
|
|
9149
|
+
return false;
|
|
9150
|
+
}
|
|
9151
|
+
}
|
|
9152
|
+
}
|
|
9153
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9154
|
+
finally {
|
|
9155
|
+
try {
|
|
9156
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9157
|
+
}
|
|
9158
|
+
finally { if (e_1) throw e_1.error; }
|
|
9159
|
+
}
|
|
9160
|
+
}
|
|
9161
|
+
return true;
|
|
9162
|
+
}
|
|
9163
|
+
else {
|
|
9164
|
+
return false;
|
|
9165
|
+
}
|
|
9166
|
+
};
|
|
9167
|
+
/**
|
|
9168
|
+
* @return {?}
|
|
9169
|
+
*/
|
|
9170
|
+
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9171
|
+
* @return {?}
|
|
9172
|
+
*/
|
|
9173
|
+
function () {
|
|
9174
|
+
var _this = this;
|
|
9175
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9176
|
+
this.orderDetail.forEach((/**
|
|
9177
|
+
* @param {?} orderDetail
|
|
9178
|
+
* @return {?}
|
|
9179
|
+
*/
|
|
9180
|
+
function (orderDetail) {
|
|
9181
|
+
if (orderDetail.payments) {
|
|
9182
|
+
orderDetail.payments.forEach((/**
|
|
9183
|
+
* @param {?} payment
|
|
9184
|
+
* @return {?}
|
|
9185
|
+
*/
|
|
9186
|
+
function (payment) {
|
|
9187
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9188
|
+
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9189
|
+
_this.isPBA = true;
|
|
9190
|
+
}
|
|
9191
|
+
}));
|
|
9192
|
+
}
|
|
9193
|
+
}));
|
|
9194
|
+
if (this.isPBA) {
|
|
9195
|
+
return true;
|
|
9196
|
+
}
|
|
9197
|
+
else {
|
|
9198
|
+
return false;
|
|
9199
|
+
}
|
|
9200
|
+
}
|
|
9201
|
+
};
|
|
10640
9202
|
/**
|
|
10641
9203
|
* @param {?} fee
|
|
10642
9204
|
* @return {?}
|
|
@@ -10647,7 +9209,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10647
9209
|
*/
|
|
10648
9210
|
function (fee) {
|
|
10649
9211
|
var _this = this;
|
|
10650
|
-
if (this.
|
|
9212
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
10651
9213
|
this.feeId = fee;
|
|
10652
9214
|
this.viewStatus = 'addremission';
|
|
10653
9215
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -10663,8 +9225,8 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10663
9225
|
*/
|
|
10664
9226
|
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10665
9227
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10666
|
-
//
|
|
10667
|
-
//
|
|
9228
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9229
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10668
9230
|
}), (/**
|
|
10669
9231
|
* @param {?} error
|
|
10670
9232
|
* @return {?}
|
|
@@ -10686,8 +9248,9 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10686
9248
|
*/
|
|
10687
9249
|
function (payment, remission, fees) {
|
|
10688
9250
|
var _this = this;
|
|
10689
|
-
this.
|
|
10690
|
-
this.
|
|
9251
|
+
this.viewStatus = 'addrefundforremission';
|
|
9252
|
+
this.payment = payment;
|
|
9253
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
10691
9254
|
* @param {?} paymentGroup
|
|
10692
9255
|
* @return {?}
|
|
10693
9256
|
*/
|
|
@@ -10697,7 +9260,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10697
9260
|
* @param {?} paymentGroupObj
|
|
10698
9261
|
* @return {?}
|
|
10699
9262
|
*/
|
|
10700
|
-
function (paymentGroupObj) { return paymentGroupObj.
|
|
9263
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
10701
9264
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10702
9265
|
_this.remissions = remission;
|
|
10703
9266
|
_this.remissionFeeAmt = fees.filter((/**
|
|
@@ -10705,7 +9268,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10705
9268
|
* @return {?}
|
|
10706
9269
|
*/
|
|
10707
9270
|
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10708
|
-
_this.viewStatus = 'addrefundforremission';
|
|
10709
9271
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10710
9272
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10711
9273
|
}), (/**
|
|
@@ -10753,43 +9315,72 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10753
9315
|
* @param {?} payment
|
|
10754
9316
|
* @return {?}
|
|
10755
9317
|
*/
|
|
10756
|
-
ServiceRequestComponent.prototype.
|
|
9318
|
+
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
10757
9319
|
* @param {?} payment
|
|
10758
9320
|
* @return {?}
|
|
10759
9321
|
*/
|
|
10760
9322
|
function (payment) {
|
|
9323
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9324
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9325
|
+
this.isIssueRefunfBtnEnable = true;
|
|
9326
|
+
}
|
|
9327
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
9328
|
+
return true;
|
|
9329
|
+
}
|
|
9330
|
+
else {
|
|
9331
|
+
return false;
|
|
9332
|
+
}
|
|
9333
|
+
};
|
|
9334
|
+
/**
|
|
9335
|
+
* @return {?}
|
|
9336
|
+
*/
|
|
9337
|
+
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9338
|
+
* @return {?}
|
|
9339
|
+
*/
|
|
9340
|
+
function () {
|
|
10761
9341
|
var _this = this;
|
|
10762
|
-
if (
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
9342
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9343
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9344
|
+
this.orderDetail.forEach((/**
|
|
9345
|
+
* @param {?} orderDetail
|
|
9346
|
+
* @return {?}
|
|
9347
|
+
*/
|
|
9348
|
+
function (orderDetail) {
|
|
9349
|
+
if (orderDetail.payments) {
|
|
9350
|
+
orderDetail.payments.forEach((/**
|
|
9351
|
+
* @param {?} payment
|
|
10771
9352
|
* @return {?}
|
|
10772
9353
|
*/
|
|
10773
|
-
function (
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
9354
|
+
function (payment) {
|
|
9355
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9356
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
9357
|
+
}
|
|
9358
|
+
}));
|
|
9359
|
+
}
|
|
9360
|
+
}));
|
|
9361
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
9362
|
+
return true;
|
|
9363
|
+
}
|
|
9364
|
+
else {
|
|
9365
|
+
return false;
|
|
9366
|
+
}
|
|
9367
|
+
}
|
|
9368
|
+
};
|
|
9369
|
+
/**
|
|
9370
|
+
* @param {?} payment
|
|
9371
|
+
* @return {?}
|
|
9372
|
+
*/
|
|
9373
|
+
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9374
|
+
* @param {?} payment
|
|
9375
|
+
* @return {?}
|
|
9376
|
+
*/
|
|
9377
|
+
function (payment) {
|
|
9378
|
+
if (payment !== null && payment !== undefined) {
|
|
9379
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
9380
|
+
this.viewStatus = 'issuerefund';
|
|
9381
|
+
this.payment = payment;
|
|
9382
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9383
|
+
this.isRefundRemission = true;
|
|
10793
9384
|
}
|
|
10794
9385
|
}
|
|
10795
9386
|
};
|
|
@@ -10831,54 +9422,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10831
9422
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
10832
9423
|
this.viewStatus = 'payment-view';
|
|
10833
9424
|
};
|
|
10834
|
-
/**
|
|
10835
|
-
* @param {?} payment
|
|
10836
|
-
* @return {?}
|
|
10837
|
-
*/
|
|
10838
|
-
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10839
|
-
* @param {?} payment
|
|
10840
|
-
* @return {?}
|
|
10841
|
-
*/
|
|
10842
|
-
function (payment) {
|
|
10843
|
-
if (payment !== null && payment !== undefined) {
|
|
10844
|
-
return payment.issue_refund && payment.refund_enable;
|
|
10845
|
-
}
|
|
10846
|
-
else {
|
|
10847
|
-
return false;
|
|
10848
|
-
}
|
|
10849
|
-
};
|
|
10850
|
-
/**
|
|
10851
|
-
* @param {?} remission
|
|
10852
|
-
* @return {?}
|
|
10853
|
-
*/
|
|
10854
|
-
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10855
|
-
* @param {?} remission
|
|
10856
|
-
* @return {?}
|
|
10857
|
-
*/
|
|
10858
|
-
function (remission) {
|
|
10859
|
-
if (remission !== null && remission !== undefined) {
|
|
10860
|
-
return remission.add_refund;
|
|
10861
|
-
}
|
|
10862
|
-
else {
|
|
10863
|
-
return false;
|
|
10864
|
-
}
|
|
10865
|
-
};
|
|
10866
|
-
/**
|
|
10867
|
-
* @param {?} fee
|
|
10868
|
-
* @return {?}
|
|
10869
|
-
*/
|
|
10870
|
-
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10871
|
-
* @param {?} fee
|
|
10872
|
-
* @return {?}
|
|
10873
|
-
*/
|
|
10874
|
-
function (fee) {
|
|
10875
|
-
if (fee !== null && fee !== undefined) {
|
|
10876
|
-
return fee.add_remission && fee.remission_enable;
|
|
10877
|
-
}
|
|
10878
|
-
else {
|
|
10879
|
-
return false;
|
|
10880
|
-
}
|
|
10881
|
-
};
|
|
10882
9425
|
/**
|
|
10883
9426
|
* @return {?}
|
|
10884
9427
|
*/
|
|
@@ -10895,161 +9438,11 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10895
9438
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
10896
9439
|
this.OrderslistService.setorderFeesTotal(null);
|
|
10897
9440
|
};
|
|
10898
|
-
/**
|
|
10899
|
-
* @param {?} paymentType
|
|
10900
|
-
* @return {?}
|
|
10901
|
-
*/
|
|
10902
|
-
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
10903
|
-
* @param {?} paymentType
|
|
10904
|
-
* @return {?}
|
|
10905
|
-
*/
|
|
10906
|
-
function (paymentType) {
|
|
10907
|
-
this.paymentType = paymentType;
|
|
10908
|
-
this.isContinueBtnDisabled = false;
|
|
10909
|
-
};
|
|
10910
|
-
/**
|
|
10911
|
-
* @return {?}
|
|
10912
|
-
*/
|
|
10913
|
-
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
10914
|
-
* @return {?}
|
|
10915
|
-
*/
|
|
10916
|
-
function () {
|
|
10917
|
-
this.viewCompStatus = '';
|
|
10918
|
-
this.viewStatus = 'paymentview';
|
|
10919
|
-
};
|
|
10920
|
-
/**
|
|
10921
|
-
* @param {?} paymentgrp
|
|
10922
|
-
* @return {?}
|
|
10923
|
-
*/
|
|
10924
|
-
ServiceRequestComponent.prototype.continuePayment = /**
|
|
10925
|
-
* @param {?} paymentgrp
|
|
10926
|
-
* @return {?}
|
|
10927
|
-
*/
|
|
10928
|
-
function (paymentgrp) {
|
|
10929
|
-
if (this.paymentType === 'op') {
|
|
10930
|
-
this.isFullyRefund = false;
|
|
10931
|
-
this.viewStatus = '';
|
|
10932
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10933
|
-
}
|
|
10934
|
-
else if (this.paymentType === 'fp') {
|
|
10935
|
-
this.isFullyRefund = true;
|
|
10936
|
-
this.paymentGroupList = paymentgrp;
|
|
10937
|
-
this.viewStatus = 'issuerefund';
|
|
10938
|
-
this.viewCompStatus = "";
|
|
10939
|
-
this.isRefundRemission = true;
|
|
10940
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
10941
|
-
this.isFromPaymentDetailPage = true;
|
|
10942
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
10943
|
-
}
|
|
10944
|
-
};
|
|
10945
|
-
/**
|
|
10946
|
-
* @param {?} obj
|
|
10947
|
-
* @return {?}
|
|
10948
|
-
*/
|
|
10949
|
-
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
10950
|
-
* @param {?} obj
|
|
10951
|
-
* @return {?}
|
|
10952
|
-
*/
|
|
10953
|
-
function (obj) {
|
|
10954
|
-
this.contactDetailsObj = obj;
|
|
10955
|
-
this.viewStatus = '';
|
|
10956
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10957
|
-
};
|
|
10958
|
-
/**
|
|
10959
|
-
* @param {?} event
|
|
10960
|
-
* @return {?}
|
|
10961
|
-
*/
|
|
10962
|
-
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
10963
|
-
* @param {?} event
|
|
10964
|
-
* @return {?}
|
|
10965
|
-
*/
|
|
10966
|
-
function (event) {
|
|
10967
|
-
event.preventDefault();
|
|
10968
|
-
this.viewStatus = '';
|
|
10969
|
-
this.viewCompStatus = 'overpayment';
|
|
10970
|
-
};
|
|
10971
|
-
/**
|
|
10972
|
-
* @param {?=} note
|
|
10973
|
-
* @return {?}
|
|
10974
|
-
*/
|
|
10975
|
-
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
10976
|
-
* @param {?=} note
|
|
10977
|
-
* @return {?}
|
|
10978
|
-
*/
|
|
10979
|
-
function (note) {
|
|
10980
|
-
if (note) {
|
|
10981
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10982
|
-
}
|
|
10983
|
-
this.errorMessage = '';
|
|
10984
|
-
this.viewStatus = '';
|
|
10985
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10986
|
-
};
|
|
10987
|
-
/**
|
|
10988
|
-
* @return {?}
|
|
10989
|
-
*/
|
|
10990
|
-
ServiceRequestComponent.prototype.processRefund = /**
|
|
10991
|
-
* @return {?}
|
|
10992
|
-
*/
|
|
10993
|
-
function () {
|
|
10994
|
-
var _this = this;
|
|
10995
|
-
this.isConfirmationBtnDisabled = true;
|
|
10996
|
-
this.errorMessage = '';
|
|
10997
|
-
/** @type {?} */
|
|
10998
|
-
var obj = this.paymentGroupList.fees[0];
|
|
10999
|
-
this.fees = [{ id: obj.id,
|
|
11000
|
-
code: obj.code,
|
|
11001
|
-
version: obj.version,
|
|
11002
|
-
apportion_amount: obj.apportion_amount,
|
|
11003
|
-
calculated_amount: obj.calculated_amount,
|
|
11004
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
11005
|
-
volume: obj.volume,
|
|
11006
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
11007
|
-
/** @type {?} */
|
|
11008
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
11009
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
11010
|
-
* @param {?} response
|
|
11011
|
-
* @return {?}
|
|
11012
|
-
*/
|
|
11013
|
-
function (response) {
|
|
11014
|
-
if (JSON.parse(response)) {
|
|
11015
|
-
_this.viewCompStatus = '';
|
|
11016
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
11017
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
11018
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
11019
|
-
}
|
|
11020
|
-
}), (/**
|
|
11021
|
-
* @param {?} error
|
|
11022
|
-
* @return {?}
|
|
11023
|
-
*/
|
|
11024
|
-
function (error) {
|
|
11025
|
-
_this.errorMessage = error;
|
|
11026
|
-
_this.isConfirmationBtnDisabled = false;
|
|
11027
|
-
_this.cd.detectChanges();
|
|
11028
|
-
}));
|
|
11029
|
-
};
|
|
11030
|
-
/**
|
|
11031
|
-
* @return {?}
|
|
11032
|
-
*/
|
|
11033
|
-
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
11034
|
-
* @return {?}
|
|
11035
|
-
*/
|
|
11036
|
-
function () {
|
|
11037
|
-
/** @type {?} */
|
|
11038
|
-
var feesOverPayment = 0;
|
|
11039
|
-
this.paymentGroupList.fees.forEach((/**
|
|
11040
|
-
* @param {?} fee
|
|
11041
|
-
* @return {?}
|
|
11042
|
-
*/
|
|
11043
|
-
function (fee) {
|
|
11044
|
-
feesOverPayment += fee.over_payment;
|
|
11045
|
-
}));
|
|
11046
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
11047
|
-
};
|
|
11048
9441
|
ServiceRequestComponent.decorators = [
|
|
11049
9442
|
{ type: Component, args: [{
|
|
11050
9443
|
selector: 'ccpay-service-request',
|
|
11051
|
-
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[isServiceRequest] = \"isServiceRequest\"\n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n[isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isFullyRefund] = \"isFullyRefund\"\n[fees] = \"paymentFees\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isFromRefundListPage] = \"false\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"isServiceRequest\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>\n\n<div class=\"over-payment\">\n <ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroupList?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComp()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroupList)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n </div>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <ccpay-contact-details \n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table govuk-table-mb\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroupList.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n </div>",
|
|
11052
|
-
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%}
|
|
9444
|
+
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",
|
|
9445
|
+
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%}"]
|
|
11053
9446
|
}] }
|
|
11054
9447
|
];
|
|
11055
9448
|
/** @nocollapse */
|
|
@@ -11057,7 +9450,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
11057
9450
|
{ type: PaymentLibComponent },
|
|
11058
9451
|
{ type: PaymentViewService },
|
|
11059
9452
|
{ type: OrderslistService },
|
|
11060
|
-
{ type: ChangeDetectorRef },
|
|
11061
9453
|
{ type: Router }
|
|
11062
9454
|
]; };
|
|
11063
9455
|
ServiceRequestComponent.propDecorators = {
|
|
@@ -11072,7 +9464,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
11072
9464
|
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
11073
9465
|
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
11074
9466
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
11075
|
-
paymentGroupList: [{ type: Input, args: ['paymentGroupList',] }],
|
|
11076
9467
|
takePayment: [{ type: Input, args: ['takePayment',] }],
|
|
11077
9468
|
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }],
|
|
11078
9469
|
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
@@ -11345,7 +9736,6 @@ var PaymentLibModule = /** @class */ (function () {
|
|
|
11345
9736
|
PaymentListComponent,
|
|
11346
9737
|
PaymentViewComponent,
|
|
11347
9738
|
PbaPaymentComponent,
|
|
11348
|
-
ContactDetailsComponent,
|
|
11349
9739
|
ProcessRefundComponent,
|
|
11350
9740
|
RefundListComponent,
|
|
11351
9741
|
CardDetailsComponent,
|
|
@@ -11391,6 +9781,6 @@ var PaymentLibModule = /** @class */ (function () {
|
|
|
11391
9781
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11392
9782
|
*/
|
|
11393
9783
|
|
|
11394
|
-
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as
|
|
9784
|
+
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 };
|
|
11395
9785
|
|
|
11396
9786
|
//# sourceMappingURL=hmcts-ccpay-web-component.js.map
|