@hmcts/ccpay-web-component 5.0.4-beta03 → 5.0.4-beta06
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 +632 -2094
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/hmcts-ccpay-web-component.js +31 -33
- package/esm2015/lib/components/add-remission/add-remission.component.js +126 -697
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +19 -43
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +12 -17
- package/esm2015/lib/components/payment-view/payment-view.component.js +106 -188
- package/esm2015/lib/components/process-refund/process-refund.component.js +28 -49
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +49 -235
- package/esm2015/lib/components/service-request/service-request.component.js +146 -237
- package/esm2015/lib/components/table/table.component.js +9 -24
- package/esm2015/lib/interfaces/IFee.js +1 -13
- package/esm2015/lib/interfaces/IPayment.js +1 -7
- package/esm2015/lib/interfaces/IRefundList.js +1 -7
- package/esm2015/lib/interfaces/IRemission.js +1 -7
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -20
- package/esm2015/lib/payment-lib.component.js +2 -9
- package/esm2015/lib/payment-lib.module.js +1 -3
- package/esm2015/lib/payment-lib.service.js +1 -16
- package/esm2015/lib/services/refunds/refunds.service.js +1 -10
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +131 -819
- package/esm5/lib/components/case-transactions/case-transactions.component.js +19 -43
- package/esm5/lib/components/fee-summary/fee-summary.component.js +12 -17
- package/esm5/lib/components/payment-view/payment-view.component.js +124 -219
- package/esm5/lib/components/process-refund/process-refund.component.js +78 -52
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +47 -274
- package/esm5/lib/components/service-request/service-request.component.js +176 -278
- package/esm5/lib/components/table/table.component.js +9 -27
- package/esm5/lib/interfaces/IFee.js +1 -13
- package/esm5/lib/interfaces/IPayment.js +1 -7
- package/esm5/lib/interfaces/IRefundList.js +1 -7
- package/esm5/lib/interfaces/IRemission.js +1 -7
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -16
- package/esm5/lib/payment-lib.component.js +2 -9
- package/esm5/lib/payment-lib.module.js +1 -3
- package/esm5/lib/payment-lib.service.js +1 -23
- package/esm5/lib/services/refunds/refunds.service.js +1 -16
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +515 -1851
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +597 -2102
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +30 -32
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +3 -45
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -3
- package/lib/components/payment-view/payment-view.component.d.ts +6 -23
- package/lib/components/process-refund/process-refund.component.d.ts +1 -6
- package/lib/components/refund-status/refund-status.component.d.ts +7 -35
- package/lib/components/service-request/service-request.component.d.ts +9 -28
- package/lib/components/table/table.component.d.ts +0 -1
- package/lib/interfaces/IFee.d.ts +0 -6
- package/lib/interfaces/IPayment.d.ts +0 -3
- package/lib/interfaces/IRefundList.d.ts +0 -4
- package/lib/interfaces/IRemission.d.ts +0 -3
- package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
- package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -7
- package/lib/payment-lib.component.d.ts +0 -2
- package/lib/payment-lib.service.d.ts +0 -3
- package/lib/services/refunds/refunds.service.d.ts +0 -2
- package/package.json +1 -5
- package/esm2015/lib/components/contact-details/contact-details.component.js +0 -447
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
- package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm2015/lib/interfaces/IRefundFee.js +0 -21
- package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm2015/lib/services/notification/notification.service.js +0 -85
- package/esm5/lib/components/contact-details/contact-details.component.js +0 -472
- package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
- package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm5/lib/interfaces/IRefundFee.js +0 -21
- package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm5/lib/services/notification/notification.service.js +0 -89
- package/lib/components/contact-details/contact-details.component.d.ts +0 -49
- package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
- package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
- package/lib/interfaces/IRefundFee.d.ts +0 -7
- package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
- package/lib/services/notification/notification.service.d.ts +0 -15
|
@@ -2,7 +2,6 @@ import { _throw } from 'rxjs/observable/throw';
|
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
4
4
|
import { catchError } from 'rxjs/operators';
|
|
5
|
-
import { __values } from 'tslib';
|
|
6
5
|
import { Meta, DomSanitizer } from '@angular/platform-browser';
|
|
7
6
|
import { Location, formatDate, CommonModule } from '@angular/common';
|
|
8
7
|
import { saveAs } from 'file-saver';
|
|
@@ -13,8 +12,9 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
|
13
12
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
13
|
import { MatInputModule } from '@angular/material/input';
|
|
15
14
|
import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
15
|
+
import { __values } from 'tslib';
|
|
16
16
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
17
|
-
import { Injectable, Component, Input, Output, EventEmitter,
|
|
17
|
+
import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @fileoverview added by tsickle
|
|
@@ -83,26 +83,6 @@ var PaymentLibService = /** @class */ (function () {
|
|
|
83
83
|
function () {
|
|
84
84
|
return this.REFUNDS_API_ROOT;
|
|
85
85
|
};
|
|
86
|
-
/**
|
|
87
|
-
* @param {?} notificationapiRoot
|
|
88
|
-
* @return {?}
|
|
89
|
-
*/
|
|
90
|
-
PaymentLibService.prototype.setNoticationApiRootUrl = /**
|
|
91
|
-
* @param {?} notificationapiRoot
|
|
92
|
-
* @return {?}
|
|
93
|
-
*/
|
|
94
|
-
function (notificationapiRoot) {
|
|
95
|
-
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* @return {?}
|
|
99
|
-
*/
|
|
100
|
-
PaymentLibService.prototype.getNoticationApiRootUrl = /**
|
|
101
|
-
* @return {?}
|
|
102
|
-
*/
|
|
103
|
-
function () {
|
|
104
|
-
return this.NOTIFICATION_API_ROOT;
|
|
105
|
-
};
|
|
106
86
|
/**
|
|
107
87
|
* @param {?} cardPaymentReturnUrl
|
|
108
88
|
* @return {?}
|
|
@@ -553,7 +533,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
553
533
|
this.cd = cd;
|
|
554
534
|
this.OrderslistService = OrderslistService$$1;
|
|
555
535
|
this.unProcessedPaymentServiceId = null;
|
|
556
|
-
this.isFromPayBubble = false;
|
|
557
536
|
this.unProcessedPayment = null;
|
|
558
537
|
this.orderFeesTotal = 0.00;
|
|
559
538
|
this.orderRemissionTotal = 0.00;
|
|
@@ -579,7 +558,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
579
558
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
580
559
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
581
560
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
582
|
-
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
583
561
|
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
584
562
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
585
563
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
@@ -610,7 +588,7 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
610
588
|
PaymentLibComponent.decorators = [
|
|
611
589
|
{ type: Component, args: [{
|
|
612
590
|
selector: 'ccpay-payment-lib',
|
|
613
|
-
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status [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 [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [
|
|
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 [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'case-transactions'\"></ccpay-case-transactions>\n <app-mark-unidentified-payment *ngIf=\"viewName === 'unidentifiedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unidentified-payment>\n <app-mark-unsolicited-payment *ngIf=\"viewName === 'unsolicitedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unsolicited-payment>\n <app-allocate-payments *ngIf=\"viewName === 'allocate-payments'\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n ></app-allocate-payments>\n <ccpay-fee-summary *ngIf=\"viewName === 'fee-summary'\"\n [ccdCaseNumber]=\"CCD_CASE_NUMBER\" \n [paymentGroupRef]=\"paymentGroupReference\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"\n ></ccpay-fee-summary>\n <ccpay-reports *ngIf=\"viewName === 'reports'\"></ccpay-reports>\n "
|
|
614
592
|
}] }
|
|
615
593
|
];
|
|
616
594
|
/** @nocollapse */
|
|
@@ -623,7 +601,6 @@ var PaymentLibComponent = /** @class */ (function () {
|
|
|
623
601
|
API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
|
|
624
602
|
BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
625
603
|
REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
|
|
626
|
-
NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
627
604
|
CARDPAYMENTRETURNURL: [{ type: Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
628
605
|
CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
|
|
629
606
|
EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
|
|
@@ -1385,28 +1362,13 @@ var PaymentViewService = /** @class */ (function () {
|
|
|
1385
1362
|
return PaymentViewService;
|
|
1386
1363
|
}());
|
|
1387
1364
|
|
|
1388
|
-
/**
|
|
1389
|
-
* @fileoverview added by tsickle
|
|
1390
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1391
|
-
*/
|
|
1392
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
1393
|
-
function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1394
|
-
this.contact_details = contact_details;
|
|
1395
|
-
this.fees = fees;
|
|
1396
|
-
this.payment_reference = payment_reference;
|
|
1397
|
-
this.refund_reason = refund_reason;
|
|
1398
|
-
this.total_refund_amount = total_refund_amount;
|
|
1399
|
-
this.is_over_payment = is_over_payment === 'op';
|
|
1400
|
-
}
|
|
1401
|
-
return PostRefundRetroRemission;
|
|
1402
|
-
}());
|
|
1403
|
-
|
|
1404
1365
|
/**
|
|
1405
1366
|
* @fileoverview added by tsickle
|
|
1406
1367
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1407
1368
|
*/
|
|
1408
1369
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1409
1370
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1371
|
+
var _this = this;
|
|
1410
1372
|
this.paymentViewService = paymentViewService;
|
|
1411
1373
|
this.paymentLibComponent = paymentLibComponent;
|
|
1412
1374
|
this.cd = cd;
|
|
@@ -1416,7 +1378,30 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1416
1378
|
this.isIssueRefunfBtnEnable = false;
|
|
1417
1379
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1418
1380
|
this.remissions = [];
|
|
1419
|
-
this.
|
|
1381
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
1382
|
+
* @return {?}
|
|
1383
|
+
*/
|
|
1384
|
+
function () {
|
|
1385
|
+
return _this.allowedRolesToAccessRefund.some((/**
|
|
1386
|
+
* @param {?} role
|
|
1387
|
+
* @return {?}
|
|
1388
|
+
*/
|
|
1389
|
+
function (role) {
|
|
1390
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1391
|
+
}));
|
|
1392
|
+
});
|
|
1393
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
1394
|
+
* @param {?} payment
|
|
1395
|
+
* @return {?}
|
|
1396
|
+
*/
|
|
1397
|
+
function (payment) {
|
|
1398
|
+
if (payment !== null && payment !== undefined) {
|
|
1399
|
+
/** @type {?} */
|
|
1400
|
+
var tmp4DayAgo = new Date();
|
|
1401
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1402
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1403
|
+
}
|
|
1404
|
+
});
|
|
1420
1405
|
}
|
|
1421
1406
|
/**
|
|
1422
1407
|
* @return {?}
|
|
@@ -1470,7 +1455,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1470
1455
|
}
|
|
1471
1456
|
}));
|
|
1472
1457
|
paymentGroup.fees = fees;
|
|
1473
|
-
_this.paymentFees = fees;
|
|
1474
1458
|
_this.paymentGroup = paymentGroup;
|
|
1475
1459
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1476
1460
|
* @param {?} paymentGroupObj
|
|
@@ -1515,24 +1499,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1515
1499
|
function () {
|
|
1516
1500
|
this.paymentLibComponent.viewName = 'payment-list';
|
|
1517
1501
|
};
|
|
1518
|
-
/**
|
|
1519
|
-
* @return {?}
|
|
1520
|
-
*/
|
|
1521
|
-
PaymentViewComponent.prototype.getOverPaymentValue = /**
|
|
1522
|
-
* @return {?}
|
|
1523
|
-
*/
|
|
1524
|
-
function () {
|
|
1525
|
-
/** @type {?} */
|
|
1526
|
-
var feesOverPayment = 0;
|
|
1527
|
-
this.paymentGroup.fees.forEach((/**
|
|
1528
|
-
* @param {?} fee
|
|
1529
|
-
* @return {?}
|
|
1530
|
-
*/
|
|
1531
|
-
function (fee) {
|
|
1532
|
-
feesOverPayment += fee.over_payment;
|
|
1533
|
-
}));
|
|
1534
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1535
|
-
};
|
|
1536
1502
|
/**
|
|
1537
1503
|
* @return {?}
|
|
1538
1504
|
*/
|
|
@@ -1618,7 +1584,7 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1618
1584
|
*/
|
|
1619
1585
|
function (fee) {
|
|
1620
1586
|
var _this = this;
|
|
1621
|
-
if (this.
|
|
1587
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
1622
1588
|
this.feeId = fee;
|
|
1623
1589
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe((/**
|
|
1624
1590
|
* @param {?} paymentGroup
|
|
@@ -1659,64 +1625,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1659
1625
|
}
|
|
1660
1626
|
return false;
|
|
1661
1627
|
};
|
|
1662
|
-
/**
|
|
1663
|
-
* @return {?}
|
|
1664
|
-
*/
|
|
1665
|
-
PaymentViewComponent.prototype.processRefund = /**
|
|
1666
|
-
* @return {?}
|
|
1667
|
-
*/
|
|
1668
|
-
function () {
|
|
1669
|
-
var _this = this;
|
|
1670
|
-
this.isConfirmationBtnDisabled = true;
|
|
1671
|
-
this.errorMessage = '';
|
|
1672
|
-
/** @type {?} */
|
|
1673
|
-
var obj = this.paymentGroup.fees[0];
|
|
1674
|
-
this.fees = [{ id: obj.id,
|
|
1675
|
-
code: obj.code,
|
|
1676
|
-
version: obj.version,
|
|
1677
|
-
apportion_amount: obj.apportion_amount,
|
|
1678
|
-
calculated_amount: obj.calculated_amount,
|
|
1679
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1680
|
-
volume: obj.volume,
|
|
1681
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
1682
|
-
/** @type {?} */
|
|
1683
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1684
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
1685
|
-
* @param {?} response
|
|
1686
|
-
* @return {?}
|
|
1687
|
-
*/
|
|
1688
|
-
function (response) {
|
|
1689
|
-
if (JSON.parse(response)) {
|
|
1690
|
-
_this.viewCompStatus = '';
|
|
1691
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
1692
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
1693
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
1694
|
-
}
|
|
1695
|
-
}), (/**
|
|
1696
|
-
* @param {?} error
|
|
1697
|
-
* @return {?}
|
|
1698
|
-
*/
|
|
1699
|
-
function (error) {
|
|
1700
|
-
_this.errorMessage = error;
|
|
1701
|
-
_this.isConfirmationBtnDisabled = false;
|
|
1702
|
-
_this.cd.detectChanges();
|
|
1703
|
-
}));
|
|
1704
|
-
};
|
|
1705
|
-
/**
|
|
1706
|
-
* @param {?=} note
|
|
1707
|
-
* @return {?}
|
|
1708
|
-
*/
|
|
1709
|
-
PaymentViewComponent.prototype.gotoAddressPage = /**
|
|
1710
|
-
* @param {?=} note
|
|
1711
|
-
* @return {?}
|
|
1712
|
-
*/
|
|
1713
|
-
function (note) {
|
|
1714
|
-
if (note) {
|
|
1715
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1716
|
-
}
|
|
1717
|
-
this.errorMessage = '';
|
|
1718
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1719
|
-
};
|
|
1720
1628
|
/**
|
|
1721
1629
|
* @param {?} payment
|
|
1722
1630
|
* @param {?} remission
|
|
@@ -1731,44 +1639,61 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1731
1639
|
*/
|
|
1732
1640
|
function (payment, remission, fees) {
|
|
1733
1641
|
var _this = this;
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
*/
|
|
1739
|
-
function (paymentGroup) {
|
|
1740
|
-
_this.paymentGroup = paymentGroup;
|
|
1741
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1742
|
-
* @param {?} paymentGroupObj
|
|
1642
|
+
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1643
|
+
this.payment = payment;
|
|
1644
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
1645
|
+
* @param {?} paymentGroup
|
|
1743
1646
|
* @return {?}
|
|
1744
1647
|
*/
|
|
1745
|
-
function (
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1648
|
+
function (paymentGroup) {
|
|
1649
|
+
_this.paymentGroup = paymentGroup;
|
|
1650
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1651
|
+
* @param {?} paymentGroupObj
|
|
1652
|
+
* @return {?}
|
|
1653
|
+
*/
|
|
1654
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1655
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1656
|
+
_this.remissions = remission;
|
|
1657
|
+
_this.remissionFeeAmt = fees.filter((/**
|
|
1658
|
+
* @param {?} data
|
|
1659
|
+
* @return {?}
|
|
1660
|
+
*/
|
|
1661
|
+
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1662
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1663
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1664
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1665
|
+
}), (/**
|
|
1666
|
+
* @param {?} error
|
|
1750
1667
|
* @return {?}
|
|
1751
1668
|
*/
|
|
1752
|
-
function (
|
|
1753
|
-
|
|
1754
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1755
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1756
|
-
}), (/**
|
|
1757
|
-
* @param {?} error
|
|
1758
|
-
* @return {?}
|
|
1759
|
-
*/
|
|
1760
|
-
function (error) { return _this.errorMessage = error; }));
|
|
1761
|
-
//}
|
|
1669
|
+
function (error) { return _this.errorMessage = error; }));
|
|
1670
|
+
}
|
|
1762
1671
|
};
|
|
1763
1672
|
/**
|
|
1764
1673
|
* @return {?}
|
|
1765
1674
|
*/
|
|
1766
|
-
PaymentViewComponent.prototype.
|
|
1675
|
+
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
1767
1676
|
* @return {?}
|
|
1768
1677
|
*/
|
|
1769
1678
|
function () {
|
|
1770
|
-
|
|
1771
|
-
this.
|
|
1679
|
+
var _this = this;
|
|
1680
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1681
|
+
this.paymentGroup.payments.forEach((/**
|
|
1682
|
+
* @param {?} payment
|
|
1683
|
+
* @return {?}
|
|
1684
|
+
*/
|
|
1685
|
+
function (payment) {
|
|
1686
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1687
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1688
|
+
}
|
|
1689
|
+
}));
|
|
1690
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1691
|
+
return true;
|
|
1692
|
+
}
|
|
1693
|
+
else {
|
|
1694
|
+
return false;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1772
1697
|
};
|
|
1773
1698
|
/**
|
|
1774
1699
|
* @param {?} paymentgrp
|
|
@@ -1780,18 +1705,13 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1780
1705
|
*/
|
|
1781
1706
|
function (paymentgrp) {
|
|
1782
1707
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1783
|
-
if (this.
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
this.isRefundRemission = true;
|
|
1791
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1792
|
-
this.isFromPaymentDetailPage = true;
|
|
1793
|
-
this.isFromServiceRequestPage = false;
|
|
1794
|
-
}
|
|
1708
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1709
|
+
this.paymentGroup = paymentgrp;
|
|
1710
|
+
this.viewStatus = 'issuerefund';
|
|
1711
|
+
this.isRefundRemission = true;
|
|
1712
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1713
|
+
this.isFromPaymentDetailPage = true;
|
|
1714
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1795
1715
|
}
|
|
1796
1716
|
}
|
|
1797
1717
|
};
|
|
@@ -1830,110 +1750,73 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1830
1750
|
* @param {?} payment
|
|
1831
1751
|
* @return {?}
|
|
1832
1752
|
*/
|
|
1833
|
-
PaymentViewComponent.prototype.
|
|
1753
|
+
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
1834
1754
|
* @param {?} payment
|
|
1835
1755
|
* @return {?}
|
|
1836
1756
|
*/
|
|
1837
1757
|
function (payment) {
|
|
1838
|
-
if (
|
|
1839
|
-
|
|
1758
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
1759
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
1760
|
+
this.isIssueRefunfBtnEnable = true;
|
|
1761
|
+
}
|
|
1762
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
1763
|
+
return true;
|
|
1840
1764
|
}
|
|
1841
1765
|
else {
|
|
1842
1766
|
return false;
|
|
1843
1767
|
}
|
|
1844
1768
|
};
|
|
1845
1769
|
/**
|
|
1846
|
-
* @param {?} remission
|
|
1847
1770
|
* @return {?}
|
|
1848
1771
|
*/
|
|
1849
|
-
PaymentViewComponent.prototype.
|
|
1850
|
-
* @param {?} remission
|
|
1772
|
+
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
1851
1773
|
* @return {?}
|
|
1852
1774
|
*/
|
|
1853
|
-
function (
|
|
1854
|
-
if (
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1775
|
+
function () {
|
|
1776
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1777
|
+
/** @type {?} */
|
|
1778
|
+
var payment = this.paymentGroup.payments[0];
|
|
1779
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1780
|
+
return true;
|
|
1781
|
+
}
|
|
1858
1782
|
return false;
|
|
1859
1783
|
}
|
|
1860
1784
|
};
|
|
1861
1785
|
/**
|
|
1862
|
-
* @param {?}
|
|
1786
|
+
* @param {?} feeCode
|
|
1863
1787
|
* @return {?}
|
|
1864
1788
|
*/
|
|
1865
|
-
PaymentViewComponent.prototype.
|
|
1866
|
-
* @param {?}
|
|
1789
|
+
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
1790
|
+
* @param {?} feeCode
|
|
1867
1791
|
* @return {?}
|
|
1868
1792
|
*/
|
|
1869
|
-
function (
|
|
1870
|
-
|
|
1871
|
-
|
|
1793
|
+
function (feeCode) {
|
|
1794
|
+
var e_2, _a;
|
|
1795
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
1796
|
+
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1797
|
+
try {
|
|
1798
|
+
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1799
|
+
var remission = _c.value;
|
|
1800
|
+
if (remission.fee_code === feeCode) {
|
|
1801
|
+
return false;
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1806
|
+
finally {
|
|
1807
|
+
try {
|
|
1808
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1809
|
+
}
|
|
1810
|
+
finally { if (e_2) throw e_2.error; }
|
|
1811
|
+
}
|
|
1812
|
+
return true;
|
|
1813
|
+
}
|
|
1814
|
+
return true;
|
|
1872
1815
|
}
|
|
1873
1816
|
else {
|
|
1874
1817
|
return false;
|
|
1875
1818
|
}
|
|
1876
1819
|
};
|
|
1877
|
-
/**
|
|
1878
|
-
* @param {?} paymentType
|
|
1879
|
-
* @return {?}
|
|
1880
|
-
*/
|
|
1881
|
-
PaymentViewComponent.prototype.selectPymentOption = /**
|
|
1882
|
-
* @param {?} paymentType
|
|
1883
|
-
* @return {?}
|
|
1884
|
-
*/
|
|
1885
|
-
function (paymentType) {
|
|
1886
|
-
this.paymentType = paymentType;
|
|
1887
|
-
this.isContinueBtnDisabled = false;
|
|
1888
|
-
};
|
|
1889
|
-
/**
|
|
1890
|
-
* @param {?} paymentgrp
|
|
1891
|
-
* @return {?}
|
|
1892
|
-
*/
|
|
1893
|
-
PaymentViewComponent.prototype.continuePayment = /**
|
|
1894
|
-
* @param {?} paymentgrp
|
|
1895
|
-
* @return {?}
|
|
1896
|
-
*/
|
|
1897
|
-
function (paymentgrp) {
|
|
1898
|
-
if (this.paymentType === 'op') {
|
|
1899
|
-
this.isFullyRefund = false;
|
|
1900
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1901
|
-
}
|
|
1902
|
-
else if (this.paymentType === 'fp') {
|
|
1903
|
-
this.isFullyRefund = true;
|
|
1904
|
-
this.paymentGroup = paymentgrp;
|
|
1905
|
-
this.viewStatus = 'issuerefund';
|
|
1906
|
-
this.viewCompStatus = "";
|
|
1907
|
-
this.isRefundRemission = true;
|
|
1908
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1909
|
-
this.isFromPaymentDetailPage = true;
|
|
1910
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
|
-
/**
|
|
1914
|
-
* @param {?} event
|
|
1915
|
-
* @return {?}
|
|
1916
|
-
*/
|
|
1917
|
-
PaymentViewComponent.prototype.gotoPaymentSelectPage = /**
|
|
1918
|
-
* @param {?} event
|
|
1919
|
-
* @return {?}
|
|
1920
|
-
*/
|
|
1921
|
-
function (event) {
|
|
1922
|
-
event.preventDefault();
|
|
1923
|
-
this.viewCompStatus = 'overpayment';
|
|
1924
|
-
};
|
|
1925
|
-
/**
|
|
1926
|
-
* @param {?} obj
|
|
1927
|
-
* @return {?}
|
|
1928
|
-
*/
|
|
1929
|
-
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1930
|
-
* @param {?} obj
|
|
1931
|
-
* @return {?}
|
|
1932
|
-
*/
|
|
1933
|
-
function (obj) {
|
|
1934
|
-
this.contactDetailsObj = obj;
|
|
1935
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1936
|
-
};
|
|
1937
1820
|
/**
|
|
1938
1821
|
* @return {?}
|
|
1939
1822
|
*/
|
|
@@ -1953,8 +1836,8 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1953
1836
|
PaymentViewComponent.decorators = [
|
|
1954
1837
|
{ type: Component, args: [{
|
|
1955
1838
|
selector: 'ccpay-payment-view',
|
|
1956
|
-
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>",
|
|
1957
|
-
styles: [".
|
|
1839
|
+
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[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n\n\n\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n \n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n \n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n \n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n \n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n \n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n \n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n \n </div>\n \n </main>\n </div> -->\n<!-- </ng-container> --> \n",
|
|
1840
|
+
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}"]
|
|
1958
1841
|
}] }
|
|
1959
1842
|
];
|
|
1960
1843
|
/** @nocollapse */
|
|
@@ -2120,21 +2003,6 @@ var RefundsService = /** @class */ (function () {
|
|
|
2120
2003
|
function (body) {
|
|
2121
2004
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(catchError(this.errorHandlerService.handleError));
|
|
2122
2005
|
};
|
|
2123
|
-
/**
|
|
2124
|
-
* @param {?} body
|
|
2125
|
-
* @param {?} refundRef
|
|
2126
|
-
* @param {?} notificationType
|
|
2127
|
-
* @return {?}
|
|
2128
|
-
*/
|
|
2129
|
-
RefundsService.prototype.putResendOrEdit = /**
|
|
2130
|
-
* @param {?} body
|
|
2131
|
-
* @param {?} refundRef
|
|
2132
|
-
* @param {?} notificationType
|
|
2133
|
-
* @return {?}
|
|
2134
|
-
*/
|
|
2135
|
-
function (body, refundRef, notificationType) {
|
|
2136
|
-
return this.https.put(this.paymentLibService.REFUNDS_API_ROOT + "/resend/notification/" + refundRef + "?notificationType=" + notificationType, body).pipe(catchError(this.errorHandlerService.handleError));
|
|
2137
|
-
};
|
|
2138
2006
|
/**
|
|
2139
2007
|
* @param {?} body
|
|
2140
2008
|
* @param {?} refund_reference
|
|
@@ -2221,9 +2089,8 @@ var RefundsService = /** @class */ (function () {
|
|
|
2221
2089
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2222
2090
|
*/
|
|
2223
2091
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2224
|
-
function ProcessRefundComponent(RefundsService$$1,
|
|
2092
|
+
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
|
|
2225
2093
|
this.RefundsService = RefundsService$$1;
|
|
2226
|
-
this.paymentViewService = paymentViewService;
|
|
2227
2094
|
this.formBuilder = formBuilder;
|
|
2228
2095
|
this.OrderslistService = OrderslistService$$1;
|
|
2229
2096
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2246,7 +2113,6 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2246
2113
|
this.isReasonEmpty = false;
|
|
2247
2114
|
this.isReasonInvalid = false;
|
|
2248
2115
|
this.successMsg = null;
|
|
2249
|
-
this.cpoDetails = null;
|
|
2250
2116
|
this.isConfirmButtondisabled = true;
|
|
2251
2117
|
}
|
|
2252
2118
|
/**
|
|
@@ -2294,20 +2160,6 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2294
2160
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2295
2161
|
this.isFromRefundListPage = true;
|
|
2296
2162
|
}
|
|
2297
|
-
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
|
|
2298
|
-
* @param {?} response
|
|
2299
|
-
* @return {?}
|
|
2300
|
-
*/
|
|
2301
|
-
function (response) {
|
|
2302
|
-
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2303
|
-
}), (/**
|
|
2304
|
-
* @param {?} error
|
|
2305
|
-
* @return {?}
|
|
2306
|
-
*/
|
|
2307
|
-
function (error) {
|
|
2308
|
-
_this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
|
|
2309
|
-
_this.isCPODown = true;
|
|
2310
|
-
}));
|
|
2311
2163
|
};
|
|
2312
2164
|
/**
|
|
2313
2165
|
* @param {?} code
|
|
@@ -2546,29 +2398,89 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2546
2398
|
this.loadRefundListPage();
|
|
2547
2399
|
}
|
|
2548
2400
|
};
|
|
2401
|
+
// loadCaseTransactionPage() {
|
|
2402
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2403
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2404
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2405
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2406
|
+
// features => {
|
|
2407
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2408
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2409
|
+
// },
|
|
2410
|
+
// err => {
|
|
2411
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2412
|
+
// }
|
|
2413
|
+
// );
|
|
2414
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2415
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2416
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2417
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2418
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2419
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2420
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2421
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2422
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2423
|
+
// this.router.navigateByUrl(url);
|
|
2424
|
+
// }
|
|
2425
|
+
// loadCaseTransactionPage() {
|
|
2426
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2427
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2428
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2429
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2430
|
+
// features => {
|
|
2431
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2432
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2433
|
+
// },
|
|
2434
|
+
// err => {
|
|
2435
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2436
|
+
// }
|
|
2437
|
+
// );
|
|
2438
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2439
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2440
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2441
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2442
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2443
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2444
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2445
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2446
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2447
|
+
// this.router.navigateByUrl(url);
|
|
2448
|
+
// }
|
|
2549
2449
|
/**
|
|
2450
|
+
* @param {?} vals
|
|
2451
|
+
* @param {?} field
|
|
2550
2452
|
* @return {?}
|
|
2551
2453
|
*/
|
|
2552
|
-
ProcessRefundComponent.prototype.
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
}
|
|
2454
|
+
ProcessRefundComponent.prototype.resetForm =
|
|
2455
|
+
// loadCaseTransactionPage() {
|
|
2456
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2457
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2458
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2459
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2460
|
+
// features => {
|
|
2461
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2462
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2463
|
+
// },
|
|
2464
|
+
// err => {
|
|
2465
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2466
|
+
// }
|
|
2467
|
+
// );
|
|
2468
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2469
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2470
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2471
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2472
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2473
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2474
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2475
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2476
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2477
|
+
// this.router.navigateByUrl(url);
|
|
2478
|
+
// }
|
|
2562
2479
|
/**
|
|
2563
2480
|
* @param {?} vals
|
|
2564
2481
|
* @param {?} field
|
|
2565
2482
|
* @return {?}
|
|
2566
2483
|
*/
|
|
2567
|
-
ProcessRefundComponent.prototype.resetForm = /**
|
|
2568
|
-
* @param {?} vals
|
|
2569
|
-
* @param {?} field
|
|
2570
|
-
* @return {?}
|
|
2571
|
-
*/
|
|
2572
2484
|
function (vals, field) {
|
|
2573
2485
|
if (field === 'action' || field === 'all') {
|
|
2574
2486
|
this.refundActionsHasError = vals[0];
|
|
@@ -2594,26 +2506,18 @@ var ProcessRefundComponent = /** @class */ (function () {
|
|
|
2594
2506
|
* @return {?}
|
|
2595
2507
|
*/
|
|
2596
2508
|
function () {
|
|
2597
|
-
|
|
2598
|
-
var isPayBubble = this.paymentLibComponent.isFromPayBubble;
|
|
2599
|
-
if (isPayBubble) {
|
|
2600
|
-
this.loadCaseTransactionPage();
|
|
2601
|
-
}
|
|
2602
|
-
else {
|
|
2603
|
-
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2604
|
-
}
|
|
2509
|
+
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2605
2510
|
};
|
|
2606
2511
|
ProcessRefundComponent.decorators = [
|
|
2607
2512
|
{ type: Component, args: [{
|
|
2608
2513
|
selector: 'ccpay-process-refund',
|
|
2609
|
-
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
|
|
2514
|
+
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",
|
|
2610
2515
|
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}"]
|
|
2611
2516
|
}] }
|
|
2612
2517
|
];
|
|
2613
2518
|
/** @nocollapse */
|
|
2614
2519
|
ProcessRefundComponent.ctorParameters = function () { return [
|
|
2615
2520
|
{ type: RefundsService },
|
|
2616
|
-
{ type: PaymentViewService },
|
|
2617
2521
|
{ type: FormBuilder },
|
|
2618
2522
|
{ type: OrderslistService },
|
|
2619
2523
|
{ type: PaymentLibComponent },
|
|
@@ -2636,10 +2540,10 @@ var RefundListComponent = /** @class */ (function () {
|
|
|
2636
2540
|
this.refundService = refundService;
|
|
2637
2541
|
this.submittedRefundList = [];
|
|
2638
2542
|
this.rejectedRefundList = [];
|
|
2639
|
-
// approvalStatus = 'Sent for approval';
|
|
2640
|
-
// rejectStatus = 'Update required';
|
|
2641
2543
|
this.approvalStatus = 'Sent for approval';
|
|
2642
2544
|
this.rejectStatus = 'Update required';
|
|
2545
|
+
// approvalStatus = 'sent for approval';
|
|
2546
|
+
// rejectStatus = 'sent back';
|
|
2643
2547
|
this.errorMessage = null;
|
|
2644
2548
|
this.isAuthorized = true;
|
|
2645
2549
|
}
|
|
@@ -2919,447 +2823,6 @@ var StatusHistoryComponent = /** @class */ (function () {
|
|
|
2919
2823
|
return StatusHistoryComponent;
|
|
2920
2824
|
}());
|
|
2921
2825
|
|
|
2922
|
-
/**
|
|
2923
|
-
* @fileoverview added by tsickle
|
|
2924
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2925
|
-
*/
|
|
2926
|
-
var NotificationService = /** @class */ (function () {
|
|
2927
|
-
function NotificationService(http, https, errorHandlerService, paymentLibService) {
|
|
2928
|
-
this.http = http;
|
|
2929
|
-
this.https = https;
|
|
2930
|
-
this.errorHandlerService = errorHandlerService;
|
|
2931
|
-
this.paymentLibService = paymentLibService;
|
|
2932
|
-
}
|
|
2933
|
-
/**
|
|
2934
|
-
* @param {?} reference
|
|
2935
|
-
* @return {?}
|
|
2936
|
-
*/
|
|
2937
|
-
NotificationService.prototype.getRefundNotification = /**
|
|
2938
|
-
* @param {?} reference
|
|
2939
|
-
* @return {?}
|
|
2940
|
-
*/
|
|
2941
|
-
function (reference) {
|
|
2942
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/notifications/" + reference, {
|
|
2943
|
-
withCredentials: true
|
|
2944
|
-
})
|
|
2945
|
-
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2946
|
-
};
|
|
2947
|
-
/**
|
|
2948
|
-
* @param {?} postcode
|
|
2949
|
-
* @return {?}
|
|
2950
|
-
*/
|
|
2951
|
-
NotificationService.prototype.getAddressByPostcode = /**
|
|
2952
|
-
* @param {?} postcode
|
|
2953
|
-
* @return {?}
|
|
2954
|
-
*/
|
|
2955
|
-
function (postcode) {
|
|
2956
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/search/places/v1/postcode?postcode=" + postcode, {
|
|
2957
|
-
withCredentials: true
|
|
2958
|
-
})
|
|
2959
|
-
.pipe(catchError(this.errorHandlerService.handleError));
|
|
2960
|
-
};
|
|
2961
|
-
NotificationService.decorators = [
|
|
2962
|
-
{ type: Injectable, args: [{
|
|
2963
|
-
providedIn: 'root'
|
|
2964
|
-
},] }
|
|
2965
|
-
];
|
|
2966
|
-
/** @nocollapse */
|
|
2967
|
-
NotificationService.ctorParameters = function () { return [
|
|
2968
|
-
{ type: HttpClient },
|
|
2969
|
-
{ type: WebComponentHttpClient },
|
|
2970
|
-
{ type: ErrorHandlerService },
|
|
2971
|
-
{ type: PaymentLibService }
|
|
2972
|
-
]; };
|
|
2973
|
-
/** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
2974
|
-
return NotificationService;
|
|
2975
|
-
}());
|
|
2976
|
-
|
|
2977
|
-
/**
|
|
2978
|
-
* @fileoverview added by tsickle
|
|
2979
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2980
|
-
*/
|
|
2981
|
-
var ContactDetailsComponent = /** @class */ (function () {
|
|
2982
|
-
function ContactDetailsComponent(formBuilder, notificationService, paymentLibComponent) {
|
|
2983
|
-
this.formBuilder = formBuilder;
|
|
2984
|
-
this.notificationService = notificationService;
|
|
2985
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
2986
|
-
this.assignContactDetails = new EventEmitter();
|
|
2987
|
-
this.assignContactDetailsInFefundsList = new EventEmitter();
|
|
2988
|
-
this.redirectToIssueRefund = new EventEmitter();
|
|
2989
|
-
this.pageTitle = 'Payment status history';
|
|
2990
|
-
this.isEmailSAddressClicked = true;
|
|
2991
|
-
this.isShowPickAddress = false;
|
|
2992
|
-
this.isPostcodeClicked = false;
|
|
2993
|
-
this.isManualAddressClicked = false;
|
|
2994
|
-
this.addressPostcodeList = [];
|
|
2995
|
-
this.isAddressBoxEmpty = false;
|
|
2996
|
-
this.isEmailEmpty = false;
|
|
2997
|
-
this.emailHasError = false;
|
|
2998
|
-
this.isPostcodeEmpty = false;
|
|
2999
|
-
this.postcodeHasError = false;
|
|
3000
|
-
this.isaddressLine1Empty = false;
|
|
3001
|
-
this.addressLine1HasError = false;
|
|
3002
|
-
this.addressLine2HasError = false;
|
|
3003
|
-
this.isTownOrCityEmpty = false;
|
|
3004
|
-
this.townOrCityHasError = false;
|
|
3005
|
-
this.isCountyEmpty = false;
|
|
3006
|
-
this.countyHasError = false;
|
|
3007
|
-
this.isMPostcodeEmpty = false;
|
|
3008
|
-
this.mpostcodeHasError = false;
|
|
3009
|
-
this.isCountryEmpty = false;
|
|
3010
|
-
}
|
|
3011
|
-
/**
|
|
3012
|
-
* @return {?}
|
|
3013
|
-
*/
|
|
3014
|
-
ContactDetailsComponent.prototype.ngOnInit = /**
|
|
3015
|
-
* @return {?}
|
|
3016
|
-
*/
|
|
3017
|
-
function () {
|
|
3018
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3019
|
-
this.emailAddressForm = this.formBuilder.group({
|
|
3020
|
-
email: new FormControl('', Validators.compose([
|
|
3021
|
-
Validators.required,
|
|
3022
|
-
Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
3023
|
-
]))
|
|
3024
|
-
});
|
|
3025
|
-
this.postCodeForm = this.formBuilder.group({
|
|
3026
|
-
postcode: new FormControl('', Validators.compose([
|
|
3027
|
-
Validators.required,
|
|
3028
|
-
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3029
|
-
]))
|
|
3030
|
-
});
|
|
3031
|
-
this.manualAddressForm = this.formBuilder.group({
|
|
3032
|
-
addressl1: new FormControl('', Validators.compose([
|
|
3033
|
-
Validators.required,
|
|
3034
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3035
|
-
])),
|
|
3036
|
-
addressl2: new FormControl('', Validators.compose([
|
|
3037
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3038
|
-
])),
|
|
3039
|
-
townorcity: new FormControl('', Validators.compose([
|
|
3040
|
-
Validators.required,
|
|
3041
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3042
|
-
])),
|
|
3043
|
-
county: new FormControl('', Validators.compose([
|
|
3044
|
-
Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3045
|
-
])),
|
|
3046
|
-
mpostcode: new FormControl('', Validators.compose([
|
|
3047
|
-
Validators.required,
|
|
3048
|
-
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3049
|
-
])),
|
|
3050
|
-
country: new FormControl('', Validators.compose([
|
|
3051
|
-
Validators.required
|
|
3052
|
-
]))
|
|
3053
|
-
});
|
|
3054
|
-
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
3055
|
-
this.setEditDetails();
|
|
3056
|
-
}
|
|
3057
|
-
if (this.isEditOperationInRefundList === undefined) {
|
|
3058
|
-
this.isEditOperationInRefundList = false;
|
|
3059
|
-
}
|
|
3060
|
-
};
|
|
3061
|
-
/**
|
|
3062
|
-
* @return {?}
|
|
3063
|
-
*/
|
|
3064
|
-
ContactDetailsComponent.prototype.setEditDetails = /**
|
|
3065
|
-
* @return {?}
|
|
3066
|
-
*/
|
|
3067
|
-
function () {
|
|
3068
|
-
if (this.addressObj.notification_type === 'EMAIL') {
|
|
3069
|
-
this.isEmailSAddressClicked = true;
|
|
3070
|
-
this.isPostcodeClicked = false;
|
|
3071
|
-
this.isManualAddressClicked = false;
|
|
3072
|
-
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
3073
|
-
}
|
|
3074
|
-
else if (this.addressObj.notification_type === 'LETTER') {
|
|
3075
|
-
this.isEmailSAddressClicked = false;
|
|
3076
|
-
this.isPostcodeClicked = true;
|
|
3077
|
-
this.isManualAddressClicked = true;
|
|
3078
|
-
this.manualAddressForm.patchValue({
|
|
3079
|
-
addressl1: this.addressObj.contact_details.address_line,
|
|
3080
|
-
townorcity: this.addressObj.contact_details.city,
|
|
3081
|
-
county: this.addressObj.contact_details.county,
|
|
3082
|
-
country: this.addressObj.contact_details.country,
|
|
3083
|
-
mpostcode: this.addressObj.contact_details.postal_code
|
|
3084
|
-
});
|
|
3085
|
-
}
|
|
3086
|
-
};
|
|
3087
|
-
/**
|
|
3088
|
-
* @param {?} type
|
|
3089
|
-
* @param {?} isLinkedClied
|
|
3090
|
-
* @return {?}
|
|
3091
|
-
*/
|
|
3092
|
-
ContactDetailsComponent.prototype.selectContactOption = /**
|
|
3093
|
-
* @param {?} type
|
|
3094
|
-
* @param {?} isLinkedClied
|
|
3095
|
-
* @return {?}
|
|
3096
|
-
*/
|
|
3097
|
-
function (type, isLinkedClied) {
|
|
3098
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3099
|
-
if (type === 'Email' && isLinkedClied === 'false') {
|
|
3100
|
-
this.isEmailSAddressClicked = true;
|
|
3101
|
-
this.isPostcodeClicked = false;
|
|
3102
|
-
this.isManualAddressClicked = false;
|
|
3103
|
-
}
|
|
3104
|
-
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
3105
|
-
this.isEmailSAddressClicked = false;
|
|
3106
|
-
this.isPostcodeClicked = true;
|
|
3107
|
-
this.isManualAddressClicked = false;
|
|
3108
|
-
}
|
|
3109
|
-
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
3110
|
-
this.isEmailSAddressClicked = false;
|
|
3111
|
-
this.isPostcodeClicked = true;
|
|
3112
|
-
this.isManualAddressClicked = true;
|
|
3113
|
-
}
|
|
3114
|
-
};
|
|
3115
|
-
/**
|
|
3116
|
-
* @return {?}
|
|
3117
|
-
*/
|
|
3118
|
-
ContactDetailsComponent.prototype.finalFormSubmit = /**
|
|
3119
|
-
* @return {?}
|
|
3120
|
-
*/
|
|
3121
|
-
function () {
|
|
3122
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3123
|
-
if (this.isEmailSAddressClicked) {
|
|
3124
|
-
/** @type {?} */
|
|
3125
|
-
var emailField = this.emailAddressForm.controls.email;
|
|
3126
|
-
if (this.emailAddressForm.valid) {
|
|
3127
|
-
if (!this.isEditOperationInRefundList) {
|
|
3128
|
-
this.assignContactDetails.emit({
|
|
3129
|
-
email: emailField.value,
|
|
3130
|
-
notification_type: 'EMAIL'
|
|
3131
|
-
});
|
|
3132
|
-
}
|
|
3133
|
-
else {
|
|
3134
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3135
|
-
email: emailField.value,
|
|
3136
|
-
notification_type: 'EMAIL'
|
|
3137
|
-
});
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
3140
|
-
else {
|
|
3141
|
-
if (emailField.value == '') {
|
|
3142
|
-
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3143
|
-
}
|
|
3144
|
-
if (emailField.value != '' && emailField.invalid) {
|
|
3145
|
-
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3146
|
-
}
|
|
3147
|
-
}
|
|
3148
|
-
}
|
|
3149
|
-
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
3150
|
-
this.postcodeValidation('FS');
|
|
3151
|
-
}
|
|
3152
|
-
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
3153
|
-
/** @type {?} */
|
|
3154
|
-
var fieldCtrls = this.manualAddressForm.controls;
|
|
3155
|
-
if (this.manualAddressForm.valid) {
|
|
3156
|
-
if (!this.isEditOperationInRefundList) {
|
|
3157
|
-
this.assignContactDetails.emit({
|
|
3158
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3159
|
-
city: fieldCtrls.townorcity.value,
|
|
3160
|
-
county: fieldCtrls.county.value,
|
|
3161
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3162
|
-
country: fieldCtrls.country.value,
|
|
3163
|
-
notification_type: 'LETTER'
|
|
3164
|
-
});
|
|
3165
|
-
}
|
|
3166
|
-
else {
|
|
3167
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3168
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3169
|
-
city: fieldCtrls.townorcity.value,
|
|
3170
|
-
county: fieldCtrls.county.value,
|
|
3171
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3172
|
-
country: fieldCtrls.country.value,
|
|
3173
|
-
notification_type: 'LETTER'
|
|
3174
|
-
});
|
|
3175
|
-
}
|
|
3176
|
-
}
|
|
3177
|
-
else {
|
|
3178
|
-
if (fieldCtrls.addressl1.value == '') {
|
|
3179
|
-
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
3180
|
-
}
|
|
3181
|
-
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
3182
|
-
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
3183
|
-
}
|
|
3184
|
-
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
3185
|
-
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
3186
|
-
}
|
|
3187
|
-
if (fieldCtrls.townorcity.value == '') {
|
|
3188
|
-
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
3189
|
-
}
|
|
3190
|
-
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
3191
|
-
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
3192
|
-
}
|
|
3193
|
-
if (fieldCtrls.county.value == '') {
|
|
3194
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
3195
|
-
}
|
|
3196
|
-
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
3197
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
3198
|
-
}
|
|
3199
|
-
if (fieldCtrls.mpostcode.value == '') {
|
|
3200
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
3201
|
-
}
|
|
3202
|
-
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
3203
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
3204
|
-
}
|
|
3205
|
-
if (fieldCtrls.country.value == '') {
|
|
3206
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
3207
|
-
}
|
|
3208
|
-
}
|
|
3209
|
-
}
|
|
3210
|
-
};
|
|
3211
|
-
/**
|
|
3212
|
-
* @param {?} str
|
|
3213
|
-
* @return {?}
|
|
3214
|
-
*/
|
|
3215
|
-
ContactDetailsComponent.prototype.postcodeValidation = /**
|
|
3216
|
-
* @param {?} str
|
|
3217
|
-
* @return {?}
|
|
3218
|
-
*/
|
|
3219
|
-
function (str) {
|
|
3220
|
-
var _this = this;
|
|
3221
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3222
|
-
/** @type {?} */
|
|
3223
|
-
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3224
|
-
if (this.postCodeForm.valid) {
|
|
3225
|
-
if (str === 'FA') {
|
|
3226
|
-
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe((/**
|
|
3227
|
-
* @param {?} refundsNotification
|
|
3228
|
-
* @return {?}
|
|
3229
|
-
*/
|
|
3230
|
-
function (refundsNotification) {
|
|
3231
|
-
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3232
|
-
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3233
|
-
if (!_this.isShowPickAddress) {
|
|
3234
|
-
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3235
|
-
}
|
|
3236
|
-
})),
|
|
3237
|
-
(/**
|
|
3238
|
-
* @param {?} error
|
|
3239
|
-
* @return {?}
|
|
3240
|
-
*/
|
|
3241
|
-
function (error) {
|
|
3242
|
-
_this.isShowPickAddress = false;
|
|
3243
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
3244
|
-
});
|
|
3245
|
-
}
|
|
3246
|
-
else if (str === 'FS') {
|
|
3247
|
-
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
3248
|
-
this.isAddressBoxEmpty = false;
|
|
3249
|
-
/** @type {?} */
|
|
3250
|
-
var addressLine = "";
|
|
3251
|
-
/** @type {?} */
|
|
3252
|
-
var addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
3253
|
-
for (var i = 0; i < addressArray.length - 2; i++) {
|
|
3254
|
-
addressLine += addressArray[i];
|
|
3255
|
-
}
|
|
3256
|
-
/** @type {?} */
|
|
3257
|
-
var addressObject = {
|
|
3258
|
-
address_line: addressLine,
|
|
3259
|
-
city: this.postcodeAddress.POST_TOWN,
|
|
3260
|
-
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
3261
|
-
postal_code: this.postcodeAddress.POSTCODE,
|
|
3262
|
-
country: 'United Kingdom',
|
|
3263
|
-
notification_type: 'LETTER'
|
|
3264
|
-
};
|
|
3265
|
-
if (!this.isEditOperationInRefundList) {
|
|
3266
|
-
this.assignContactDetails.emit(addressObject);
|
|
3267
|
-
}
|
|
3268
|
-
else {
|
|
3269
|
-
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
else {
|
|
3273
|
-
this.isAddressBoxEmpty = true;
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
|
-
}
|
|
3277
|
-
else {
|
|
3278
|
-
if (postcodeField.value == '') {
|
|
3279
|
-
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3280
|
-
}
|
|
3281
|
-
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
3282
|
-
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3283
|
-
}
|
|
3284
|
-
}
|
|
3285
|
-
};
|
|
3286
|
-
/**
|
|
3287
|
-
* @param {?} event
|
|
3288
|
-
* @return {?}
|
|
3289
|
-
*/
|
|
3290
|
-
ContactDetailsComponent.prototype.redirection = /**
|
|
3291
|
-
* @param {?} event
|
|
3292
|
-
* @return {?}
|
|
3293
|
-
*/
|
|
3294
|
-
function (event) {
|
|
3295
|
-
this.redirectToIssueRefund.emit(event);
|
|
3296
|
-
};
|
|
3297
|
-
/**
|
|
3298
|
-
* @param {?} val
|
|
3299
|
-
* @param {?} field
|
|
3300
|
-
* @return {?}
|
|
3301
|
-
*/
|
|
3302
|
-
ContactDetailsComponent.prototype.resetForm = /**
|
|
3303
|
-
* @param {?} val
|
|
3304
|
-
* @param {?} field
|
|
3305
|
-
* @return {?}
|
|
3306
|
-
*/
|
|
3307
|
-
function (val, field) {
|
|
3308
|
-
if (field === 'email' || field === 'all') {
|
|
3309
|
-
this.isEmailEmpty = val[0];
|
|
3310
|
-
this.emailHasError = val[1];
|
|
3311
|
-
}
|
|
3312
|
-
if (field === 'postcode' || field === 'all') {
|
|
3313
|
-
this.isPostcodeEmpty = val[2];
|
|
3314
|
-
this.postcodeHasError = val[3];
|
|
3315
|
-
}
|
|
3316
|
-
if (field === 'address1' || field === 'all') {
|
|
3317
|
-
this.isaddressLine1Empty = val[4];
|
|
3318
|
-
this.addressLine1HasError = val[5];
|
|
3319
|
-
}
|
|
3320
|
-
if (field === 'address2' || field === 'all') {
|
|
3321
|
-
this.addressLine2HasError = val[6];
|
|
3322
|
-
}
|
|
3323
|
-
if (field === 'town' || field === 'all') {
|
|
3324
|
-
this.isTownOrCityEmpty = val[7];
|
|
3325
|
-
this.townOrCityHasError = val[8];
|
|
3326
|
-
}
|
|
3327
|
-
if (field === 'county' || field === 'all') {
|
|
3328
|
-
this.isCountyEmpty = val[9];
|
|
3329
|
-
this.countyHasError = val[10];
|
|
3330
|
-
}
|
|
3331
|
-
if (field === 'mpostcode' || field === 'all') {
|
|
3332
|
-
this.isMPostcodeEmpty = val[11];
|
|
3333
|
-
this.mpostcodeHasError = val[12];
|
|
3334
|
-
}
|
|
3335
|
-
if (field === 'country' || field === 'all') {
|
|
3336
|
-
this.isCountryEmpty = val[13];
|
|
3337
|
-
}
|
|
3338
|
-
};
|
|
3339
|
-
ContactDetailsComponent.decorators = [
|
|
3340
|
-
{ type: Component, args: [{
|
|
3341
|
-
selector: 'ccpay-contact-details',
|
|
3342
|
-
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>",
|
|
3343
|
-
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}"]
|
|
3344
|
-
}] }
|
|
3345
|
-
];
|
|
3346
|
-
/** @nocollapse */
|
|
3347
|
-
ContactDetailsComponent.ctorParameters = function () { return [
|
|
3348
|
-
{ type: FormBuilder },
|
|
3349
|
-
{ type: NotificationService },
|
|
3350
|
-
{ type: PaymentLibComponent }
|
|
3351
|
-
]; };
|
|
3352
|
-
ContactDetailsComponent.propDecorators = {
|
|
3353
|
-
isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
|
|
3354
|
-
isEditOperationInRefundList: [{ type: Input, args: ['isEditOperationInRefundList',] }],
|
|
3355
|
-
addressObj: [{ type: Input, args: ['addressObj',] }],
|
|
3356
|
-
assignContactDetails: [{ type: Output }],
|
|
3357
|
-
assignContactDetailsInFefundsList: [{ type: Output }],
|
|
3358
|
-
redirectToIssueRefund: [{ type: Output }]
|
|
3359
|
-
};
|
|
3360
|
-
return ContactDetailsComponent;
|
|
3361
|
-
}());
|
|
3362
|
-
|
|
3363
2826
|
/**
|
|
3364
2827
|
* @fileoverview added by tsickle
|
|
3365
2828
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3716,7 +3179,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3716
3179
|
this.viewStatus = 'main';
|
|
3717
3180
|
this.isRemoveBtnDisabled = false;
|
|
3718
3181
|
this.clAmountDue = 0;
|
|
3719
|
-
this.overPaymentAmount = 0;
|
|
3720
3182
|
this.isFeeRecordsExist = false;
|
|
3721
3183
|
this.isGrpOutstandingAmtPositive = false;
|
|
3722
3184
|
//Order changes
|
|
@@ -3815,20 +3277,11 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3815
3277
|
}
|
|
3816
3278
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3817
3279
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3818
|
-
if (this.paymentLibComponent.SERVICEREQUEST
|
|
3819
|
-
this.
|
|
3820
|
-
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3821
|
-
this.serviceRequestValue = 'true';
|
|
3822
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3823
|
-
}
|
|
3824
|
-
else {
|
|
3825
|
-
this.serviceRequestValue = 'false';
|
|
3826
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3827
|
-
}
|
|
3280
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3281
|
+
this.serviceRequestValue = 'true';
|
|
3828
3282
|
}
|
|
3829
3283
|
else {
|
|
3830
3284
|
this.serviceRequestValue = 'false';
|
|
3831
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3832
3285
|
}
|
|
3833
3286
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3834
3287
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -4047,7 +3500,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4047
3500
|
*/
|
|
4048
3501
|
function (fee) {
|
|
4049
3502
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4050
|
-
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
4051
3503
|
}));
|
|
4052
3504
|
}
|
|
4053
3505
|
if (paymentGroup.remissions) {
|
|
@@ -4060,16 +3512,11 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4060
3512
|
}));
|
|
4061
3513
|
}
|
|
4062
3514
|
if (paymentGroup.payments) {
|
|
4063
|
-
/** @type {?} */
|
|
4064
|
-
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4065
3515
|
paymentGroup.payments.forEach((/**
|
|
4066
3516
|
* @param {?} payment
|
|
4067
3517
|
* @return {?}
|
|
4068
3518
|
*/
|
|
4069
3519
|
function (payment) {
|
|
4070
|
-
if (isFeeOverPaymentExist_1) {
|
|
4071
|
-
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4072
|
-
}
|
|
4073
3520
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4074
3521
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4075
3522
|
}
|
|
@@ -4558,17 +4005,19 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4558
4005
|
*/
|
|
4559
4006
|
function (payment, remission, fees) {
|
|
4560
4007
|
var _this = this;
|
|
4561
|
-
this.
|
|
4008
|
+
this.viewStatus = 'addrefundforremission';
|
|
4009
|
+
this.payment = payment;
|
|
4010
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
4562
4011
|
* @param {?} paymentGroup
|
|
4563
4012
|
* @return {?}
|
|
4564
4013
|
*/
|
|
4565
4014
|
function (paymentGroup) {
|
|
4566
4015
|
_this.paymentGroup = paymentGroup;
|
|
4567
|
-
_this.paymentGroup.payments = paymentGroup.payments.filter((/**
|
|
4016
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
4568
4017
|
* @param {?} paymentGroupObj
|
|
4569
4018
|
* @return {?}
|
|
4570
4019
|
*/
|
|
4571
|
-
function (paymentGroupObj) { return paymentGroupObj.
|
|
4020
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
4572
4021
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4573
4022
|
_this.remissions = remission;
|
|
4574
4023
|
_this.remissionFeeAmt = fees.filter((/**
|
|
@@ -4576,7 +4025,6 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4576
4025
|
* @return {?}
|
|
4577
4026
|
*/
|
|
4578
4027
|
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4579
|
-
_this.viewStatus = 'addrefundforremission';
|
|
4580
4028
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4581
4029
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4582
4030
|
}), (/**
|
|
@@ -4868,21 +4316,16 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4868
4316
|
* @return {?}
|
|
4869
4317
|
*/
|
|
4870
4318
|
function (payment) {
|
|
4871
|
-
if (
|
|
4872
|
-
|
|
4319
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4320
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4321
|
+
this.isIssueRefunfBtnEnable = true;
|
|
4322
|
+
}
|
|
4323
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
4324
|
+
return true;
|
|
4873
4325
|
}
|
|
4874
4326
|
else {
|
|
4875
4327
|
return false;
|
|
4876
4328
|
}
|
|
4877
|
-
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4878
|
-
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4879
|
-
// this.isIssueRefunfBtnEnable = true;
|
|
4880
|
-
// }
|
|
4881
|
-
// if (this.isIssueRefunfBtnEnable) {
|
|
4882
|
-
// return true;
|
|
4883
|
-
// } else {
|
|
4884
|
-
// return false;
|
|
4885
|
-
// };
|
|
4886
4329
|
};
|
|
4887
4330
|
/**
|
|
4888
4331
|
* @return {?}
|
|
@@ -4934,7 +4377,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4934
4377
|
CaseTransactionsComponent.decorators = [
|
|
4935
4378
|
{ type: Component, args: [{
|
|
4936
4379
|
selector: 'ccpay-case-transactions',
|
|
4937
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Over payment</td>\n\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ overPaymentAmount | currency :'GBP':'symbol':'1.2-2'}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></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",
|
|
4380
|
+
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n\n</main>\n</div>\n\n\n",
|
|
4938
4381
|
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}"]
|
|
4939
4382
|
}] }
|
|
4940
4383
|
];
|
|
@@ -4949,8 +4392,7 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4949
4392
|
]; };
|
|
4950
4393
|
CaseTransactionsComponent.propDecorators = {
|
|
4951
4394
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4952
|
-
isTakePayment: [{ type: Input }]
|
|
4953
|
-
isFromServiceRequestPage: [{ type: Input }]
|
|
4395
|
+
isTakePayment: [{ type: Input }]
|
|
4954
4396
|
};
|
|
4955
4397
|
return CaseTransactionsComponent;
|
|
4956
4398
|
}());
|
|
@@ -5173,24 +4615,19 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5173
4615
|
if (fee.calculated_amount === 0) {
|
|
5174
4616
|
_this.isFeeAmountZero = true;
|
|
5175
4617
|
}
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
fee['remissions'] = rem;
|
|
5186
|
-
fees.push(fee);
|
|
5187
|
-
}
|
|
5188
|
-
}));
|
|
5189
|
-
if (!_this.isRemissionsMatch) {
|
|
4618
|
+
_this.isRemissionsMatch = false;
|
|
4619
|
+
paymentGroup.remissions.forEach((/**
|
|
4620
|
+
* @param {?} rem
|
|
4621
|
+
* @return {?}
|
|
4622
|
+
*/
|
|
4623
|
+
function (rem) {
|
|
4624
|
+
if (rem.fee_code === fee.code) {
|
|
4625
|
+
_this.isRemissionsMatch = true;
|
|
4626
|
+
fee['remissions'] = rem;
|
|
5190
4627
|
fees.push(fee);
|
|
5191
4628
|
}
|
|
5192
|
-
}
|
|
5193
|
-
|
|
4629
|
+
}));
|
|
4630
|
+
if (!_this.isRemissionsMatch) {
|
|
5194
4631
|
fees.push(fee);
|
|
5195
4632
|
}
|
|
5196
4633
|
}));
|
|
@@ -7278,14 +6715,25 @@ var AddRetroRemissionRequest = /** @class */ (function () {
|
|
|
7278
6715
|
return AddRetroRemissionRequest;
|
|
7279
6716
|
}());
|
|
7280
6717
|
|
|
6718
|
+
/**
|
|
6719
|
+
* @fileoverview added by tsickle
|
|
6720
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6721
|
+
*/
|
|
6722
|
+
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6723
|
+
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6724
|
+
this.payment_reference = payment_reference;
|
|
6725
|
+
this.refund_reason = refund_reason;
|
|
6726
|
+
}
|
|
6727
|
+
return PostRefundRetroRemission;
|
|
6728
|
+
}());
|
|
6729
|
+
|
|
7281
6730
|
/**
|
|
7282
6731
|
* @fileoverview added by tsickle
|
|
7283
6732
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7284
6733
|
*/
|
|
7285
6734
|
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
7286
|
-
function PostIssueRefundRetroRemission(remissionReference
|
|
6735
|
+
function PostIssueRefundRetroRemission(remissionReference) {
|
|
7287
6736
|
this.remissionReference = remissionReference;
|
|
7288
|
-
this.contact_details = contactDeatils;
|
|
7289
6737
|
}
|
|
7290
6738
|
return PostIssueRefundRetroRemission;
|
|
7291
6739
|
}());
|
|
@@ -7307,7 +6755,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7307
6755
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
7308
6756
|
this.refundListReason = new EventEmitter();
|
|
7309
6757
|
this.refundListAmount = new EventEmitter();
|
|
7310
|
-
this.refundFees = new EventEmitter();
|
|
7311
6758
|
this.refund = {
|
|
7312
6759
|
reason: {
|
|
7313
6760
|
duplicate: 'Duplicate payment',
|
|
@@ -7336,8 +6783,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7336
6783
|
this.isRemissionApplied = false;
|
|
7337
6784
|
// refundReasons: any[] = [];
|
|
7338
6785
|
this.commonRefundReasons = [];
|
|
7339
|
-
this.class = '';
|
|
7340
|
-
this.errorMsg = new Array();
|
|
7341
6786
|
}
|
|
7342
6787
|
/**
|
|
7343
6788
|
* @return {?}
|
|
@@ -7347,8 +6792,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7347
6792
|
*/
|
|
7348
6793
|
function () {
|
|
7349
6794
|
var _this = this;
|
|
7350
|
-
this.errorMessage = '';
|
|
7351
|
-
this.errorMsg = [];
|
|
7352
6795
|
this.default = 'Select a different reason';
|
|
7353
6796
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
7354
6797
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -7360,7 +6803,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7360
6803
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
7361
6804
|
}
|
|
7362
6805
|
if (this.payment) {
|
|
7363
|
-
this.paymentReference = this.payment.reference;
|
|
7364
6806
|
this.remessionPayment = this.payment;
|
|
7365
6807
|
if (this.payment.status === 'Success') {
|
|
7366
6808
|
this.isPaymentSuccess = true;
|
|
@@ -7379,73 +6821,15 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7379
6821
|
])),
|
|
7380
6822
|
refundReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7381
6823
|
refundDDReason: new FormControl('', Validators.compose([Validators.required])),
|
|
7382
|
-
reason: new FormControl()
|
|
7383
|
-
feeAmount: new FormControl(),
|
|
7384
|
-
feesList: this.formBuilder.array([])
|
|
6824
|
+
reason: new FormControl()
|
|
7385
6825
|
});
|
|
7386
6826
|
/** @type {?} */
|
|
7387
6827
|
var remissionctrls = this.remissionForm.controls;
|
|
7388
6828
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7389
|
-
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
7390
|
-
this.paymentReference = this.refundPaymentReference;
|
|
7391
|
-
}
|
|
7392
|
-
else {
|
|
7393
|
-
this.paymentReference = this.payment.reference;
|
|
7394
|
-
}
|
|
7395
|
-
if (this.isFromServiceRequestPage) {
|
|
7396
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe((/**
|
|
7397
|
-
* @param {?} paymentGroup
|
|
7398
|
-
* @return {?}
|
|
7399
|
-
*/
|
|
7400
|
-
function (paymentGroup) {
|
|
7401
|
-
/** @type {?} */
|
|
7402
|
-
var fees = [];
|
|
7403
|
-
paymentGroup.fees.forEach((/**
|
|
7404
|
-
* @param {?} fee
|
|
7405
|
-
* @return {?}
|
|
7406
|
-
*/
|
|
7407
|
-
function (fee) {
|
|
7408
|
-
_this.isRemissionsMatch = false;
|
|
7409
|
-
paymentGroup.remissions.forEach((/**
|
|
7410
|
-
* @param {?} rem
|
|
7411
|
-
* @return {?}
|
|
7412
|
-
*/
|
|
7413
|
-
function (rem) {
|
|
7414
|
-
if (rem.fee_code === fee.code) {
|
|
7415
|
-
_this.isRemissionsMatch = true;
|
|
7416
|
-
fee['remissions'] = rem;
|
|
7417
|
-
fees.push(fee);
|
|
7418
|
-
}
|
|
7419
|
-
}));
|
|
7420
|
-
if (!_this.isRemissionsMatch) {
|
|
7421
|
-
fees.push(fee);
|
|
7422
|
-
}
|
|
7423
|
-
}));
|
|
7424
|
-
paymentGroup.fees = fees;
|
|
7425
|
-
_this.paymentFees = fees;
|
|
7426
|
-
_this.fees = fees;
|
|
7427
|
-
_this.paymentGroup = paymentGroup;
|
|
7428
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
7429
|
-
* @param {?} paymentGroupObj
|
|
7430
|
-
* @return {?}
|
|
7431
|
-
*/
|
|
7432
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7433
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7434
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7435
|
-
_this.refundFeesList();
|
|
7436
|
-
}), (/**
|
|
7437
|
-
* @param {?} error
|
|
7438
|
-
* @return {?}
|
|
7439
|
-
*/
|
|
7440
|
-
function (error) { return _this.errorMessage = error; }));
|
|
7441
|
-
}
|
|
7442
|
-
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7443
|
-
this.refundFeesList();
|
|
7444
|
-
}
|
|
7445
6829
|
if (this.viewCompStatus === '') {
|
|
7446
6830
|
this.viewStatus = 'main';
|
|
7447
6831
|
}
|
|
7448
|
-
if (this.viewCompStatus === '
|
|
6832
|
+
if (this.viewCompStatus === 'issuerefund') {
|
|
7449
6833
|
this.refundService.getRefundReasons().subscribe((/**
|
|
7450
6834
|
* @param {?} refundReasons
|
|
7451
6835
|
* @return {?}
|
|
@@ -7460,7 +6844,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7460
6844
|
* @param {?} data
|
|
7461
6845
|
* @return {?}
|
|
7462
6846
|
*/
|
|
7463
|
-
function (data) { return data.name !== 'Retrospective remission'
|
|
6847
|
+
function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7464
6848
|
_this.cd.detectChanges();
|
|
7465
6849
|
_this.commonRefundReasons = refundReasons.filter((/**
|
|
7466
6850
|
* @param {?} data
|
|
@@ -7475,166 +6859,10 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7475
6859
|
function (a, b) { return a.toString().localeCompare(b); }));
|
|
7476
6860
|
_this.cd.detectChanges();
|
|
7477
6861
|
}));
|
|
7478
|
-
this.refundReason = this.changeRefundReason;
|
|
7479
6862
|
}
|
|
7480
6863
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
7481
6864
|
this.viewStatus = 'processretroremissonpage';
|
|
7482
6865
|
}
|
|
7483
|
-
if (this.orderDetail !== undefined) {
|
|
7484
|
-
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
|
|
7485
|
-
* @param {?} paymentGroup
|
|
7486
|
-
* @return {?}
|
|
7487
|
-
*/
|
|
7488
|
-
function (paymentGroup) {
|
|
7489
|
-
_this.fees = paymentGroup.fees;
|
|
7490
|
-
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7491
|
-
}), (/**
|
|
7492
|
-
* @param {?} error
|
|
7493
|
-
* @return {?}
|
|
7494
|
-
*/
|
|
7495
|
-
function (error) { return _this.errorMessage = error; }));
|
|
7496
|
-
}
|
|
7497
|
-
};
|
|
7498
|
-
/**
|
|
7499
|
-
* @return {?}
|
|
7500
|
-
*/
|
|
7501
|
-
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7502
|
-
* @return {?}
|
|
7503
|
-
*/
|
|
7504
|
-
function () {
|
|
7505
|
-
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7506
|
-
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7507
|
-
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7508
|
-
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7509
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
7510
|
-
};
|
|
7511
|
-
/**
|
|
7512
|
-
* @return {?}
|
|
7513
|
-
*/
|
|
7514
|
-
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7515
|
-
* @return {?}
|
|
7516
|
-
*/
|
|
7517
|
-
function () {
|
|
7518
|
-
/** @type {?} */
|
|
7519
|
-
var creds = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
7520
|
-
// if(creds.controls.length > 0) {
|
|
7521
|
-
for (var i = 0; i < this.fees.length; i++) {
|
|
7522
|
-
creds.push(this.formBuilder.group({
|
|
7523
|
-
id: this.fees[i].id,
|
|
7524
|
-
code: this.fees[i].code,
|
|
7525
|
-
volume: this.fees[i].volume,
|
|
7526
|
-
calculated_amount: this.fees[i].calculated_amount,
|
|
7527
|
-
apportion_amount: this.fees[i].apportion_amount,
|
|
7528
|
-
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7529
|
-
description: this.fees[i].description,
|
|
7530
|
-
net_amount: this.fees[i].net_amount,
|
|
7531
|
-
version: this.fees[i].version,
|
|
7532
|
-
refund_amount: [''],
|
|
7533
|
-
selected: [''],
|
|
7534
|
-
updated_volume: this.fees[i].volume
|
|
7535
|
-
}));
|
|
7536
|
-
}
|
|
7537
|
-
this.cd.detectChanges();
|
|
7538
|
-
//}
|
|
7539
|
-
};
|
|
7540
|
-
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7541
|
-
get: /**
|
|
7542
|
-
* @return {?}
|
|
7543
|
-
*/
|
|
7544
|
-
function () {
|
|
7545
|
-
/** @type {?} */
|
|
7546
|
-
var dd = (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
7547
|
-
return (/** @type {?} */ (this.remissionForm.get('feesList')));
|
|
7548
|
-
},
|
|
7549
|
-
enumerable: true,
|
|
7550
|
-
configurable: true
|
|
7551
|
-
});
|
|
7552
|
-
/**
|
|
7553
|
-
* @return {?}
|
|
7554
|
-
*/
|
|
7555
|
-
AddRemissionComponent.prototype.noneSelected = /**
|
|
7556
|
-
* @return {?}
|
|
7557
|
-
*/
|
|
7558
|
-
function () {
|
|
7559
|
-
if (this.isFullyRefund) {
|
|
7560
|
-
return false;
|
|
7561
|
-
}
|
|
7562
|
-
else {
|
|
7563
|
-
if (!this.feesList.controls.some((/**
|
|
7564
|
-
* @param {?} item
|
|
7565
|
-
* @return {?}
|
|
7566
|
-
*/
|
|
7567
|
-
function (item) { return item.get('selected').value === true; }))) {
|
|
7568
|
-
this.errorMsg = [];
|
|
7569
|
-
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
7570
|
-
* @param {?} el
|
|
7571
|
-
* @return {?}
|
|
7572
|
-
*/
|
|
7573
|
-
function (el) {
|
|
7574
|
-
el.classList.remove('inline-error-class');
|
|
7575
|
-
}));
|
|
7576
|
-
}
|
|
7577
|
-
return !this.feesList.controls.some((/**
|
|
7578
|
-
* @param {?} item
|
|
7579
|
-
* @return {?}
|
|
7580
|
-
*/
|
|
7581
|
-
function (item) { return item.get('selected').value === true; }));
|
|
7582
|
-
}
|
|
7583
|
-
};
|
|
7584
|
-
/**
|
|
7585
|
-
* @param {?} i
|
|
7586
|
-
* @param {?} v1
|
|
7587
|
-
* @param {?} AppAmt
|
|
7588
|
-
* @param {?} Volume
|
|
7589
|
-
* @return {?}
|
|
7590
|
-
*/
|
|
7591
|
-
AddRemissionComponent.prototype.check_en = /**
|
|
7592
|
-
* @param {?} i
|
|
7593
|
-
* @param {?} v1
|
|
7594
|
-
* @param {?} AppAmt
|
|
7595
|
-
* @param {?} Volume
|
|
7596
|
-
* @return {?}
|
|
7597
|
-
*/
|
|
7598
|
-
function (i, v1, AppAmt, Volume) {
|
|
7599
|
-
/** @type {?} */
|
|
7600
|
-
var ele = (/** @type {?} */ (document.getElementById(v1)));
|
|
7601
|
-
/** @type {?} */
|
|
7602
|
-
var formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
7603
|
-
if (ele.checked) {
|
|
7604
|
-
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7605
|
-
formArray.at(i).get('volume').setValue(Volume);
|
|
7606
|
-
formArray.at(i).get('selected').setValue(true);
|
|
7607
|
-
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7608
|
-
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7609
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7610
|
-
if (Volume === 1) {
|
|
7611
|
-
((/** @type {?} */ (document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7612
|
-
}
|
|
7613
|
-
else {
|
|
7614
|
-
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7615
|
-
}
|
|
7616
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7617
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7618
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7619
|
-
}
|
|
7620
|
-
this.cd.detectChanges();
|
|
7621
|
-
}
|
|
7622
|
-
else {
|
|
7623
|
-
this.errorMsg = [];
|
|
7624
|
-
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7625
|
-
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7626
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7627
|
-
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7628
|
-
((/** @type {?} */ (document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7629
|
-
if (Volume > 1) {
|
|
7630
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7631
|
-
((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7632
|
-
}
|
|
7633
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7634
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7635
|
-
}
|
|
7636
|
-
this.cd.detectChanges();
|
|
7637
|
-
}
|
|
7638
6866
|
};
|
|
7639
6867
|
/**
|
|
7640
6868
|
* @return {?}
|
|
@@ -7762,8 +6990,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7762
6990
|
*/
|
|
7763
6991
|
function () {
|
|
7764
6992
|
this.errorMessage = false;
|
|
7765
|
-
// this.isFromCheckAnsPage = true;
|
|
7766
|
-
this.errorMsg = [];
|
|
7767
6993
|
this.viewStatus = '';
|
|
7768
6994
|
this.isRefundRemission = false;
|
|
7769
6995
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -7776,14 +7002,8 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7776
7002
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
7777
7003
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
7778
7004
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
this.viewStatus = "processretroremissonpage";
|
|
7782
|
-
}
|
|
7783
|
-
else {
|
|
7784
|
-
this.viewCompStatus = '';
|
|
7785
|
-
this.viewStatus = 'checkretroremissionpage';
|
|
7786
|
-
}
|
|
7005
|
+
this.viewCompStatus = '';
|
|
7006
|
+
this.viewStatus = "processretroremissonpage";
|
|
7787
7007
|
}
|
|
7788
7008
|
else {
|
|
7789
7009
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -7814,8 +7034,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7814
7034
|
*/
|
|
7815
7035
|
function () {
|
|
7816
7036
|
this.errorMessage = false;
|
|
7817
|
-
this.isFromCheckAnsPage = false;
|
|
7818
|
-
this.errorMsg = [];
|
|
7819
7037
|
if (this.isRefundRemission) {
|
|
7820
7038
|
this.paymentLibComponent.iscancelClicked = true;
|
|
7821
7039
|
this.refundListAmount.emit();
|
|
@@ -7833,7 +7051,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7833
7051
|
this.viewCompStatus = "addremission";
|
|
7834
7052
|
this.isRefundRemission = true;
|
|
7835
7053
|
this.errorMessage = '';
|
|
7836
|
-
this.errorMsg = [];
|
|
7837
7054
|
if (this.isFromPaymentDetailPage) {
|
|
7838
7055
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7839
7056
|
}
|
|
@@ -7886,19 +7103,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7886
7103
|
//}
|
|
7887
7104
|
}
|
|
7888
7105
|
};
|
|
7889
|
-
/**
|
|
7890
|
-
* @return {?}
|
|
7891
|
-
*/
|
|
7892
|
-
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7893
|
-
* @return {?}
|
|
7894
|
-
*/
|
|
7895
|
-
function () {
|
|
7896
|
-
this.isFromCheckAnsPage = false;
|
|
7897
|
-
this.viewStatus = 'processretroremissonpage';
|
|
7898
|
-
this.viewCompStatus = '';
|
|
7899
|
-
// this.isRefundRemission = true;
|
|
7900
|
-
this.errorMessage = '';
|
|
7901
|
-
};
|
|
7902
7106
|
/**
|
|
7903
7107
|
* @return {?}
|
|
7904
7108
|
*/
|
|
@@ -7906,30 +7110,10 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7906
7110
|
* @return {?}
|
|
7907
7111
|
*/
|
|
7908
7112
|
function () {
|
|
7909
|
-
this.isFromCheckAnsPage = true;
|
|
7910
7113
|
this.viewStatus = '';
|
|
7911
7114
|
this.viewCompStatus = 'addremission';
|
|
7912
7115
|
this.isRefundRemission = true;
|
|
7913
7116
|
this.errorMessage = '';
|
|
7914
|
-
this.errorMsg = [];
|
|
7915
|
-
};
|
|
7916
|
-
/**
|
|
7917
|
-
* @param {?=} note
|
|
7918
|
-
* @return {?}
|
|
7919
|
-
*/
|
|
7920
|
-
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7921
|
-
* @param {?=} note
|
|
7922
|
-
* @return {?}
|
|
7923
|
-
*/
|
|
7924
|
-
function (note) {
|
|
7925
|
-
if (note) {
|
|
7926
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7927
|
-
}
|
|
7928
|
-
this.isFromCheckAnsPage = true;
|
|
7929
|
-
this.viewStatus = 'remissionAddressPage';
|
|
7930
|
-
this.viewCompStatus = '';
|
|
7931
|
-
this.isRefundRemission = true;
|
|
7932
|
-
this.errorMessage = '';
|
|
7933
7117
|
};
|
|
7934
7118
|
/**
|
|
7935
7119
|
* @return {?}
|
|
@@ -7975,7 +7159,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7975
7159
|
function () {
|
|
7976
7160
|
var _this = this;
|
|
7977
7161
|
this.errorMessage = '';
|
|
7978
|
-
this.errorMsg = [];
|
|
7979
7162
|
this.isConfirmationBtnDisabled = true;
|
|
7980
7163
|
if (this.isRefundRemission) {
|
|
7981
7164
|
this.retroRemission = true;
|
|
@@ -7984,7 +7167,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7984
7167
|
this.remissionReference = this.remission.remission_reference;
|
|
7985
7168
|
}
|
|
7986
7169
|
/** @type {?} */
|
|
7987
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference
|
|
7170
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7988
7171
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
|
|
7989
7172
|
* @param {?} response
|
|
7990
7173
|
* @return {?}
|
|
@@ -8022,14 +7205,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8022
7205
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
8023
7206
|
this.isFromRefundListPage = true;
|
|
8024
7207
|
}
|
|
8025
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8026
|
-
* @param {?} a
|
|
8027
|
-
* @param {?} c
|
|
8028
|
-
* @return {?}
|
|
8029
|
-
*/
|
|
8030
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8031
7208
|
this.errorMessage = '';
|
|
8032
|
-
this.errorMsg = [];
|
|
8033
7209
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
8034
7210
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
8035
7211
|
this.refundHasError = true;
|
|
@@ -8045,43 +7221,19 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8045
7221
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8046
7222
|
}
|
|
8047
7223
|
else {
|
|
8048
|
-
if (this.isFromCheckAnsPage) {
|
|
8049
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8050
|
-
* @param {?} a
|
|
8051
|
-
* @param {?} c
|
|
8052
|
-
* @return {?}
|
|
8053
|
-
*/
|
|
8054
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8055
|
-
this.isFromCheckAnsPage = false;
|
|
8056
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8057
|
-
this.viewCompStatus = '';
|
|
8058
|
-
return;
|
|
8059
|
-
}
|
|
8060
7224
|
this.viewCompStatus = '';
|
|
8061
|
-
this.viewStatus = '
|
|
7225
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
8062
7226
|
}
|
|
8063
7227
|
}
|
|
8064
7228
|
else {
|
|
8065
7229
|
this.displayRefundReason = this.selectedRefundReason;
|
|
8066
|
-
if (this.isFromCheckAnsPage) {
|
|
8067
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8068
|
-
* @param {?} a
|
|
8069
|
-
* @param {?} c
|
|
8070
|
-
* @return {?}
|
|
8071
|
-
*/
|
|
8072
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8073
|
-
this.isFromCheckAnsPage = false;
|
|
8074
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8075
|
-
this.viewCompStatus = '';
|
|
8076
|
-
return;
|
|
8077
|
-
}
|
|
8078
7230
|
if (this.isFromRefundListPage) {
|
|
8079
7231
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
8080
7232
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
8081
7233
|
}
|
|
8082
7234
|
else {
|
|
8083
7235
|
this.viewCompStatus = '';
|
|
8084
|
-
this.viewStatus = '
|
|
7236
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
8085
7237
|
}
|
|
8086
7238
|
}
|
|
8087
7239
|
};
|
|
@@ -8097,293 +7249,81 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8097
7249
|
this.viewStatus = '';
|
|
8098
7250
|
this.isRefundRemission = true;
|
|
8099
7251
|
this.errorMessage = false;
|
|
8100
|
-
this.errorMsg = [];
|
|
8101
7252
|
this.refundHasError = false;
|
|
8102
7253
|
this.isReasonEmpty = false;
|
|
8103
7254
|
};
|
|
8104
7255
|
/**
|
|
8105
|
-
* @param {?} isFullyRefund
|
|
8106
|
-
* @return {?}
|
|
8107
|
-
*/
|
|
8108
|
-
AddRemissionComponent.prototype.gotoIssuePage = /**
|
|
8109
|
-
* @param {?} isFullyRefund
|
|
8110
|
-
* @return {?}
|
|
8111
|
-
*/
|
|
8112
|
-
function (isFullyRefund) {
|
|
8113
|
-
if (isFullyRefund) {
|
|
8114
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8115
|
-
this.getRefundReasons();
|
|
8116
|
-
}
|
|
8117
|
-
else {
|
|
8118
|
-
[].forEach.call(document.querySelectorAll('input'), (/**
|
|
8119
|
-
* @param {?} el
|
|
8120
|
-
* @return {?}
|
|
8121
|
-
*/
|
|
8122
|
-
function (el) {
|
|
8123
|
-
el.classList.remove('inline-error-class');
|
|
8124
|
-
}));
|
|
8125
|
-
/** @type {?} */
|
|
8126
|
-
var checkboxs = document.getElementsByTagName('input');
|
|
8127
|
-
this.errorMessage = '';
|
|
8128
|
-
this.totalRefundAmount = 0;
|
|
8129
|
-
this.errorMsg = [];
|
|
8130
|
-
for (var j = 0; j < checkboxs.length; j++) {
|
|
8131
|
-
if (checkboxs[j].checked) {
|
|
8132
|
-
this.fullRefund = false;
|
|
8133
|
-
/** @type {?} */
|
|
8134
|
-
var quantity = +((/** @type {?} */ (document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
8135
|
-
/** @type {?} */
|
|
8136
|
-
var amountToRefund = +((/** @type {?} */ (document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
8137
|
-
/** @type {?} */
|
|
8138
|
-
var apportionAmount = +((/** @type {?} */ (document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
8139
|
-
/** @type {?} */
|
|
8140
|
-
var calculatedAmount = +((/** @type {?} */ (document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8141
|
-
if (amountToRefund === apportionAmount) {
|
|
8142
|
-
this.fullRefund = true;
|
|
8143
|
-
}
|
|
8144
|
-
if (amountToRefund === 0) {
|
|
8145
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8146
|
-
this.errorMsg.push('You need to enter a refund amount');
|
|
8147
|
-
this.getErrorClass(this.elementId);
|
|
8148
|
-
}
|
|
8149
|
-
if (quantity === 1) {
|
|
8150
|
-
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8151
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8152
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8153
|
-
this.getErrorClass(this.elementId);
|
|
8154
|
-
}
|
|
8155
|
-
}
|
|
8156
|
-
if (quantity > 1) {
|
|
8157
|
-
this.quantityUpdated = +((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8158
|
-
if (this.quantityUpdated === 0) {
|
|
8159
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8160
|
-
this.errorMsg.push('You need to enter quantity');
|
|
8161
|
-
this.getErrorClass(this.elementId);
|
|
8162
|
-
}
|
|
8163
|
-
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8164
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8165
|
-
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8166
|
-
this.getErrorClass(this.elementId);
|
|
8167
|
-
}
|
|
8168
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8169
|
-
this.refundAmtForFeeVolumes = +((/** @type {?} */ (document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8170
|
-
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8171
|
-
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8172
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8173
|
-
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8174
|
-
this.getErrorClass(this.elementId);
|
|
8175
|
-
}
|
|
8176
|
-
}
|
|
8177
|
-
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8178
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8179
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8180
|
-
this.getErrorClass(this.elementId);
|
|
8181
|
-
}
|
|
8182
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8183
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8184
|
-
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8185
|
-
this.getErrorClass(this.elementId);
|
|
8186
|
-
}
|
|
8187
|
-
}
|
|
8188
|
-
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8189
|
-
}
|
|
8190
|
-
}
|
|
8191
|
-
if (this.errorMsg.length === 0) {
|
|
8192
|
-
if (this.isFromCheckAnsPage) {
|
|
8193
|
-
this.isFromCheckAnsPage = false;
|
|
8194
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8195
|
-
* @param {?} a
|
|
8196
|
-
* @param {?} c
|
|
8197
|
-
* @return {?}
|
|
8198
|
-
*/
|
|
8199
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8200
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8201
|
-
* @param {?} value
|
|
8202
|
-
* @return {?}
|
|
8203
|
-
*/
|
|
8204
|
-
function (value) { return value.selected === true; }));
|
|
8205
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8206
|
-
this.viewCompStatus = '';
|
|
8207
|
-
return;
|
|
8208
|
-
}
|
|
8209
|
-
else if (this.isFromRefundStatusPage) {
|
|
8210
|
-
/** @type {?} */
|
|
8211
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8212
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8213
|
-
* @param {?} a
|
|
8214
|
-
* @param {?} c
|
|
8215
|
-
* @return {?}
|
|
8216
|
-
*/
|
|
8217
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8218
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8219
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8220
|
-
* @param {?} value
|
|
8221
|
-
* @return {?}
|
|
8222
|
-
*/
|
|
8223
|
-
function (value) { return value.selected === true; }));
|
|
8224
|
-
this.refundFees.emit(this.fees);
|
|
8225
|
-
return;
|
|
8226
|
-
}
|
|
8227
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8228
|
-
this.getRefundReasons();
|
|
8229
|
-
}
|
|
8230
|
-
}
|
|
8231
|
-
};
|
|
8232
|
-
/**
|
|
8233
|
-
* @param {?} value
|
|
8234
|
-
* @param {?} amount
|
|
8235
|
-
* @param {?} volume
|
|
8236
|
-
* @param {?} i
|
|
8237
|
-
* @return {?}
|
|
8238
|
-
*/
|
|
8239
|
-
AddRemissionComponent.prototype.calAmtToRefund = /**
|
|
8240
|
-
* @param {?} value
|
|
8241
|
-
* @param {?} amount
|
|
8242
|
-
* @param {?} volume
|
|
8243
|
-
* @param {?} i
|
|
8244
|
-
* @return {?}
|
|
8245
|
-
*/
|
|
8246
|
-
function (value, amount, volume, i) {
|
|
8247
|
-
/** @type {?} */
|
|
8248
|
-
var volumeFee = amount / volume;
|
|
8249
|
-
/** @type {?} */
|
|
8250
|
-
var amtToRefund = value * volumeFee;
|
|
8251
|
-
/** @type {?} */
|
|
8252
|
-
var formArray = (/** @type {?} */ (this.remissionForm.controls.feesList));
|
|
8253
|
-
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
8254
|
-
// formArray.at(i).get('volume').setValue(value);
|
|
8255
|
-
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
8256
|
-
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
8257
|
-
// formControl.setValue(value);
|
|
8258
|
-
};
|
|
8259
|
-
/**
|
|
8260
|
-
* @param {?=} note
|
|
8261
7256
|
* @return {?}
|
|
8262
7257
|
*/
|
|
8263
|
-
AddRemissionComponent.prototype.
|
|
8264
|
-
* @param {?=} note
|
|
7258
|
+
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8265
7259
|
* @return {?}
|
|
8266
7260
|
*/
|
|
8267
|
-
function (
|
|
8268
|
-
|
|
8269
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8270
|
-
}
|
|
7261
|
+
function () {
|
|
7262
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
8271
7263
|
this.errorMessage = '';
|
|
8272
|
-
this.
|
|
8273
|
-
this.
|
|
7264
|
+
this.refundHasError = false;
|
|
7265
|
+
this.isReasonEmpty = false;
|
|
7266
|
+
this.viewCompStatus = 'issuerefund';
|
|
7267
|
+
this.viewStatus = '';
|
|
8274
7268
|
this.isRefundRemission = true;
|
|
8275
|
-
this.errorMessage = false;
|
|
8276
7269
|
};
|
|
8277
7270
|
/**
|
|
8278
7271
|
* @return {?}
|
|
8279
7272
|
*/
|
|
8280
|
-
AddRemissionComponent.prototype.
|
|
7273
|
+
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8281
7274
|
* @return {?}
|
|
8282
7275
|
*/
|
|
8283
7276
|
function () {
|
|
8284
7277
|
var _this = this;
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
*/
|
|
8290
|
-
function (refundReasons) {
|
|
8291
|
-
_this.refundReasons = refundReasons.filter((/**
|
|
8292
|
-
* @param {?} data
|
|
8293
|
-
* @return {?}
|
|
8294
|
-
*/
|
|
8295
|
-
function (data) { return data.recently_used === false; }));
|
|
8296
|
-
_this.refundReasons = _this.refundReasons.filter((/**
|
|
8297
|
-
* @param {?} data
|
|
8298
|
-
* @return {?}
|
|
8299
|
-
*/
|
|
8300
|
-
function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8301
|
-
_this.cd.detectChanges();
|
|
8302
|
-
_this.commonRefundReasons = refundReasons.filter((/**
|
|
8303
|
-
* @param {?} data
|
|
8304
|
-
* @return {?}
|
|
8305
|
-
*/
|
|
8306
|
-
function (data) { return data.recently_used === true; }));
|
|
8307
|
-
_this.commonRefundReasons.sort((/**
|
|
8308
|
-
* @param {?} a
|
|
8309
|
-
* @param {?} b
|
|
8310
|
-
* @return {?}
|
|
8311
|
-
*/
|
|
8312
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
8313
|
-
_this.cd.detectChanges();
|
|
8314
|
-
}));
|
|
7278
|
+
this.isConfirmationBtnDisabled = true;
|
|
7279
|
+
this.errorMessage = '';
|
|
7280
|
+
if (this.isRefundRemission) {
|
|
7281
|
+
this.retroRemission = true;
|
|
8315
7282
|
}
|
|
7283
|
+
/** @type {?} */
|
|
7284
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
7285
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
7286
|
+
* @param {?} response
|
|
7287
|
+
* @return {?}
|
|
7288
|
+
*/
|
|
7289
|
+
function (response) {
|
|
7290
|
+
if (JSON.parse(response)) {
|
|
7291
|
+
_this.viewCompStatus = '';
|
|
7292
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7293
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7294
|
+
if (JSON.parse(response).refund_amount) {
|
|
7295
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7296
|
+
}
|
|
7297
|
+
}
|
|
7298
|
+
}), (/**
|
|
7299
|
+
* @param {?} error
|
|
7300
|
+
* @return {?}
|
|
7301
|
+
*/
|
|
7302
|
+
function (error) {
|
|
7303
|
+
_this.errorMessage = error;
|
|
7304
|
+
_this.isConfirmationBtnDisabled = false;
|
|
7305
|
+
_this.cd.detectChanges();
|
|
7306
|
+
}));
|
|
8316
7307
|
};
|
|
7308
|
+
// Retro Refund
|
|
7309
|
+
// Retro Refund
|
|
8317
7310
|
/**
|
|
8318
|
-
* @param {?} elementId
|
|
8319
7311
|
* @return {?}
|
|
8320
7312
|
*/
|
|
8321
|
-
AddRemissionComponent.prototype.
|
|
8322
|
-
|
|
8323
|
-
* @return {?}
|
|
8324
|
-
*/
|
|
8325
|
-
function (elementId) {
|
|
8326
|
-
if (this.errorMsg.length > 0) {
|
|
8327
|
-
/** @type {?} */
|
|
8328
|
-
var ele = document.getElementById(elementId);
|
|
8329
|
-
ele.classList.add('inline-error-class');
|
|
8330
|
-
}
|
|
8331
|
-
};
|
|
7313
|
+
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7314
|
+
// Retro Refund
|
|
8332
7315
|
/**
|
|
8333
7316
|
* @return {?}
|
|
8334
7317
|
*/
|
|
8335
|
-
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8336
|
-
* @return {?}
|
|
8337
|
-
*/
|
|
8338
7318
|
function () {
|
|
8339
|
-
this.isFromCheckAnsPage = true;
|
|
8340
|
-
this.errorMessage = '';
|
|
8341
|
-
this.errorMsg = [];
|
|
8342
|
-
this.refundHasError = false;
|
|
8343
|
-
this.isReasonEmpty = false;
|
|
8344
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8345
|
-
this.viewStatus = '';
|
|
8346
|
-
this.isRefundRemission = true;
|
|
8347
|
-
};
|
|
8348
|
-
/**
|
|
8349
|
-
* @param {?} isFullyRefund
|
|
8350
|
-
* @return {?}
|
|
8351
|
-
*/
|
|
8352
|
-
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8353
|
-
* @param {?} isFullyRefund
|
|
8354
|
-
* @return {?}
|
|
8355
|
-
*/
|
|
8356
|
-
function (isFullyRefund) {
|
|
8357
7319
|
var _this = this;
|
|
8358
7320
|
this.isConfirmationBtnDisabled = true;
|
|
8359
7321
|
this.errorMessage = '';
|
|
8360
|
-
this.errorMsg = [];
|
|
8361
7322
|
if (this.isRefundRemission) {
|
|
8362
7323
|
this.retroRemission = true;
|
|
8363
7324
|
}
|
|
8364
|
-
if (isFullyRefund) {
|
|
8365
|
-
this.totalRefundAmount = this.payment.amount;
|
|
8366
|
-
}
|
|
8367
|
-
if (!isFullyRefund) {
|
|
8368
|
-
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8369
|
-
* @param {?} value
|
|
8370
|
-
* @return {?}
|
|
8371
|
-
*/
|
|
8372
|
-
function (value) { return value.selected === true; }));
|
|
8373
|
-
}
|
|
8374
|
-
this.fees = this.fees.map((/**
|
|
8375
|
-
* @param {?} obj
|
|
8376
|
-
* @return {?}
|
|
8377
|
-
*/
|
|
8378
|
-
function (obj) { return ({ id: obj.id,
|
|
8379
|
-
code: obj.code,
|
|
8380
|
-
version: obj.version,
|
|
8381
|
-
apportion_amount: obj.apportion_amount,
|
|
8382
|
-
calculated_amount: obj.calculated_amount,
|
|
8383
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8384
|
-
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount }); }));
|
|
8385
7325
|
/** @type {?} */
|
|
8386
|
-
var requestBody = new PostRefundRetroRemission(this.
|
|
7326
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
8387
7327
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
8388
7328
|
* @param {?} response
|
|
8389
7329
|
* @return {?}
|
|
@@ -8391,7 +7331,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8391
7331
|
function (response) {
|
|
8392
7332
|
if (JSON.parse(response)) {
|
|
8393
7333
|
_this.viewCompStatus = '';
|
|
8394
|
-
_this.viewStatus = '
|
|
7334
|
+
_this.viewStatus = 'retrorefundconfirmationpage';
|
|
8395
7335
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
8396
7336
|
if (JSON.parse(response).refund_amount) {
|
|
8397
7337
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -8404,101 +7344,14 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8404
7344
|
function (error) {
|
|
8405
7345
|
_this.errorMessage = error;
|
|
8406
7346
|
_this.isConfirmationBtnDisabled = false;
|
|
8407
|
-
_this.cd.detectChanges();
|
|
8408
7347
|
}));
|
|
8409
7348
|
};
|
|
8410
|
-
/**
|
|
8411
|
-
* @return {?}
|
|
8412
|
-
*/
|
|
8413
|
-
AddRemissionComponent.prototype.gotoRefundReasonPage = /**
|
|
8414
|
-
* @return {?}
|
|
8415
|
-
*/
|
|
8416
|
-
function () {
|
|
8417
|
-
this.viewStatus = '';
|
|
8418
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8419
|
-
};
|
|
8420
|
-
// Retro Refund
|
|
8421
|
-
// confirmRetroRefund() {
|
|
8422
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8423
|
-
// this.errorMessage = '';
|
|
8424
|
-
// this.errorMsg = [];
|
|
8425
|
-
// if( this.isRefundRemission) {
|
|
8426
|
-
// this.retroRemission = true;
|
|
8427
|
-
// }
|
|
8428
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8429
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8430
|
-
// response => {
|
|
8431
|
-
// if (JSON.parse(response)) {
|
|
8432
|
-
// this.viewCompStatus = '';
|
|
8433
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8434
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8435
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8436
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8437
|
-
// }
|
|
8438
|
-
// }
|
|
8439
|
-
// },
|
|
8440
|
-
// (error: any) => {
|
|
8441
|
-
// this.errorMessage = error;
|
|
8442
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8443
|
-
// });
|
|
8444
|
-
// }
|
|
8445
|
-
// Retro Refund
|
|
8446
|
-
// confirmRetroRefund() {
|
|
8447
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8448
|
-
// this.errorMessage = '';
|
|
8449
|
-
// this.errorMsg = [];
|
|
8450
|
-
// if( this.isRefundRemission) {
|
|
8451
|
-
// this.retroRemission = true;
|
|
8452
|
-
// }
|
|
8453
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8454
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8455
|
-
// response => {
|
|
8456
|
-
// if (JSON.parse(response)) {
|
|
8457
|
-
// this.viewCompStatus = '';
|
|
8458
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8459
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8460
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8461
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8462
|
-
// }
|
|
8463
|
-
// }
|
|
8464
|
-
// },
|
|
8465
|
-
// (error: any) => {
|
|
8466
|
-
// this.errorMessage = error;
|
|
8467
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8468
|
-
// });
|
|
8469
|
-
// }
|
|
8470
7349
|
/**
|
|
8471
7350
|
* @param {?} key
|
|
8472
7351
|
* @param {?} value
|
|
8473
7352
|
* @return {?}
|
|
8474
7353
|
*/
|
|
8475
|
-
AddRemissionComponent.prototype.selectRadioButton =
|
|
8476
|
-
// Retro Refund
|
|
8477
|
-
// confirmRetroRefund() {
|
|
8478
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8479
|
-
// this.errorMessage = '';
|
|
8480
|
-
// this.errorMsg = [];
|
|
8481
|
-
// if( this.isRefundRemission) {
|
|
8482
|
-
// this.retroRemission = true;
|
|
8483
|
-
// }
|
|
8484
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8485
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8486
|
-
// response => {
|
|
8487
|
-
// if (JSON.parse(response)) {
|
|
8488
|
-
// this.viewCompStatus = '';
|
|
8489
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8490
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8491
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8492
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8493
|
-
// }
|
|
8494
|
-
// }
|
|
8495
|
-
// },
|
|
8496
|
-
// (error: any) => {
|
|
8497
|
-
// this.errorMessage = error;
|
|
8498
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8499
|
-
// });
|
|
8500
|
-
// }
|
|
8501
|
-
/**
|
|
7354
|
+
AddRemissionComponent.prototype.selectRadioButton = /**
|
|
8502
7355
|
* @param {?} key
|
|
8503
7356
|
* @param {?} value
|
|
8504
7357
|
* @return {?}
|
|
@@ -8511,7 +7364,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8511
7364
|
remissionctrls['reason'].reset();
|
|
8512
7365
|
this.isRefundReasonsSelected = true;
|
|
8513
7366
|
this.errorMessage = false;
|
|
8514
|
-
this.errorMsg = [];
|
|
8515
7367
|
this.isReasonEmpty = false;
|
|
8516
7368
|
this.showReasonText = false;
|
|
8517
7369
|
this.refundHasError = false;
|
|
@@ -8546,38 +7398,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8546
7398
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
8547
7399
|
}
|
|
8548
7400
|
};
|
|
8549
|
-
/**
|
|
8550
|
-
* @param {?} obj
|
|
8551
|
-
* @param {?} type
|
|
8552
|
-
* @return {?}
|
|
8553
|
-
*/
|
|
8554
|
-
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8555
|
-
* @param {?} obj
|
|
8556
|
-
* @param {?} type
|
|
8557
|
-
* @return {?}
|
|
8558
|
-
*/
|
|
8559
|
-
function (obj, type) {
|
|
8560
|
-
this.contactDetailsObj = obj;
|
|
8561
|
-
this.viewCompStatus = '';
|
|
8562
|
-
this.viewStatus = type;
|
|
8563
|
-
};
|
|
8564
|
-
/**
|
|
8565
|
-
* @return {?}
|
|
8566
|
-
*/
|
|
8567
|
-
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8568
|
-
* @return {?}
|
|
8569
|
-
*/
|
|
8570
|
-
function () {
|
|
8571
|
-
if (this.isFromRefundStatusPage) {
|
|
8572
|
-
/** @type {?} */
|
|
8573
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8574
|
-
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8575
|
-
return;
|
|
8576
|
-
}
|
|
8577
|
-
this.refundHasError = false;
|
|
8578
|
-
this.viewCompStatus = 'issuerefund';
|
|
8579
|
-
this.viewStatus = '';
|
|
8580
|
-
};
|
|
8581
7401
|
/**
|
|
8582
7402
|
* @param {?} event
|
|
8583
7403
|
* @return {?}
|
|
@@ -8589,21 +7409,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8589
7409
|
function (event) {
|
|
8590
7410
|
var _this = this;
|
|
8591
7411
|
this.errorMessage = '';
|
|
8592
|
-
this.errorMsg = [];
|
|
8593
|
-
this.isFromCheckAnsPage = false;
|
|
8594
7412
|
event.preventDefault();
|
|
8595
|
-
if (this.isFromRefundStatusPage) {
|
|
8596
|
-
/** @type {?} */
|
|
8597
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8598
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
|
|
8599
|
-
* @param {?} a
|
|
8600
|
-
* @param {?} c
|
|
8601
|
-
* @return {?}
|
|
8602
|
-
*/
|
|
8603
|
-
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8604
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8605
|
-
return;
|
|
8606
|
-
}
|
|
8607
7413
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
8608
7414
|
this.viewStatus = 'order-full-view';
|
|
8609
7415
|
this.viewCompStatus = '';
|
|
@@ -8638,40 +7444,68 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8638
7444
|
}
|
|
8639
7445
|
this.viewCompStatus = '';
|
|
8640
7446
|
}
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
this.
|
|
8655
|
-
this.
|
|
8656
|
-
this.
|
|
8657
|
-
|
|
8658
|
-
this.
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
this.
|
|
8671
|
-
this.
|
|
8672
|
-
this.
|
|
8673
|
-
this.
|
|
8674
|
-
this.
|
|
7447
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7448
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7449
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7450
|
+
// }
|
|
7451
|
+
// if (this.isFromServiceRequestPage) {
|
|
7452
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7453
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7454
|
+
// this.viewStatus = 'main'
|
|
7455
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7456
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7457
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7458
|
+
// }
|
|
7459
|
+
// if ( this.isFromRefundListPage ) {
|
|
7460
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7461
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7462
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7463
|
+
// }
|
|
7464
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7465
|
+
// if(this.payment) {
|
|
7466
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7467
|
+
// }
|
|
7468
|
+
// if (this.isFromServiceRequestPage) {
|
|
7469
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7470
|
+
// } else {
|
|
7471
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7472
|
+
// }
|
|
7473
|
+
// this.errorMessage = '';
|
|
7474
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7475
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7476
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7477
|
+
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7478
|
+
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7479
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7480
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7481
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7482
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7483
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7484
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7485
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7486
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7487
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7488
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7489
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7490
|
+
// }
|
|
7491
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7492
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7493
|
+
// }
|
|
7494
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7495
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7496
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7497
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7498
|
+
// this.router.navigateByUrl(url);
|
|
7499
|
+
// } else {
|
|
7500
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7501
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7502
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7503
|
+
// this.router.navigateByUrl(url);
|
|
7504
|
+
// }
|
|
7505
|
+
// } else {
|
|
7506
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7507
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7508
|
+
// }
|
|
8675
7509
|
};
|
|
8676
7510
|
/**
|
|
8677
7511
|
* @return {?}
|
|
@@ -8682,7 +7516,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8682
7516
|
function () {
|
|
8683
7517
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8684
7518
|
this.errorMessage = '';
|
|
8685
|
-
this.errorMsg = [];
|
|
8686
7519
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8687
7520
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8688
7521
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -8717,37 +7550,30 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8717
7550
|
*/
|
|
8718
7551
|
function (event) {
|
|
8719
7552
|
event.preventDefault();
|
|
8720
|
-
this.
|
|
8721
|
-
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8722
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8723
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8724
|
-
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8725
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8726
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
8727
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
7553
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8728
7554
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8729
7555
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8730
7556
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8731
7557
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8732
7558
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8733
7559
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8734
|
-
this.
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
partUrl
|
|
8741
|
-
partUrl += this.paymentLibComponent.
|
|
8742
|
-
partUrl += this.paymentLibComponent.
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
this.
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
this.router.onSameUrlNavigation = 'reload';
|
|
8750
|
-
this.router.navigateByUrl(url);
|
|
7560
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7561
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7562
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7563
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7564
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7565
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7566
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7567
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7568
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7569
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7570
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7571
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7572
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7573
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7574
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7575
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7576
|
+
// this.router.navigateByUrl(url);
|
|
8751
7577
|
}
|
|
8752
7578
|
else {
|
|
8753
7579
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -8816,17 +7642,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8816
7642
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8817
7643
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8818
7644
|
};
|
|
8819
|
-
/**
|
|
8820
|
-
* @return {?}
|
|
8821
|
-
*/
|
|
8822
|
-
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8823
|
-
* @return {?}
|
|
8824
|
-
*/
|
|
8825
|
-
function () {
|
|
8826
|
-
this.isFromCheckAnsPage = true;
|
|
8827
|
-
this.viewCompStatus = 'issuerefund';
|
|
8828
|
-
this.viewStatus = '';
|
|
8829
|
-
};
|
|
8830
7645
|
/**
|
|
8831
7646
|
* @param {?} currency
|
|
8832
7647
|
* @return {?}
|
|
@@ -8844,8 +7659,8 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8844
7659
|
AddRemissionComponent.decorators = [
|
|
8845
7660
|
{ type: Component, args: [{
|
|
8846
7661
|
selector: 'ccpay-add-remission',
|
|
8847
|
-
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>",
|
|
8848
|
-
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 .
|
|
7662
|
+
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n </ccpay-service-request>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n </ccpay-payment-view>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
7663
|
+
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}"]
|
|
8849
7664
|
}] }
|
|
8850
7665
|
];
|
|
8851
7666
|
/** @nocollapse */
|
|
@@ -8860,7 +7675,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8860
7675
|
]; };
|
|
8861
7676
|
AddRemissionComponent.propDecorators = {
|
|
8862
7677
|
fee: [{ type: Input }],
|
|
8863
|
-
fees: [{ type: Input }],
|
|
8864
7678
|
payment: [{ type: Input }],
|
|
8865
7679
|
remission: [{ type: Input }],
|
|
8866
7680
|
ccdCaseNumber: [{ type: Input }],
|
|
@@ -8876,12 +7690,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8876
7690
|
isFromRefundListPage: [{ type: Input }],
|
|
8877
7691
|
isFromPaymentDetailPage: [{ type: Input }],
|
|
8878
7692
|
isFromServiceRequestPage: [{ type: Input }],
|
|
8879
|
-
isFullyRefund: [{ type: Input, args: ['isFullyRefund',] }],
|
|
8880
7693
|
feeamount: [{ type: Input }],
|
|
8881
|
-
refundPaymentReference: [{ type: Input }],
|
|
8882
|
-
isFromRefundStatusPage: [{ type: Input }],
|
|
8883
|
-
changeRefundReason: [{ type: Input }],
|
|
8884
|
-
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
8885
7694
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8886
7695
|
orderDetail: [{ type: Input, args: ['orderDetail',] }],
|
|
8887
7696
|
orderRef: [{ type: Input, args: ['orderRef',] }],
|
|
@@ -8895,8 +7704,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8895
7704
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
8896
7705
|
cancelRemission: [{ type: Output }],
|
|
8897
7706
|
refundListReason: [{ type: Output }],
|
|
8898
|
-
refundListAmount: [{ type: Output }]
|
|
8899
|
-
refundFees: [{ type: Output }]
|
|
7707
|
+
refundListAmount: [{ type: Output }]
|
|
8900
7708
|
};
|
|
8901
7709
|
return AddRemissionComponent;
|
|
8902
7710
|
}());
|
|
@@ -9634,29 +8442,13 @@ var TableComponent = /** @class */ (function () {
|
|
|
9634
8442
|
return (r[user_full_name] = '', r);
|
|
9635
8443
|
}), {});
|
|
9636
8444
|
this.userLst = Object.keys(this.userLst);
|
|
9637
|
-
this.userLst.sort((/**
|
|
9638
|
-
* @param {?} a
|
|
9639
|
-
* @param {?} b
|
|
9640
|
-
* @return {?}
|
|
9641
|
-
*/
|
|
9642
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9643
|
-
this.serviceLst = this.refundList.reduce((/**
|
|
9644
|
-
* @param {?} r
|
|
9645
|
-
* @param {?} __1
|
|
9646
|
-
* @return {?}
|
|
9647
|
-
*/
|
|
9648
|
-
function (r, _a) {
|
|
9649
|
-
var service_type = _a.service_type;
|
|
9650
|
-
return (r[service_type] = '', r);
|
|
9651
|
-
}), {});
|
|
9652
|
-
this.serviceLst = Object.keys(this.serviceLst);
|
|
9653
|
-
this.serviceLst.sort((/**
|
|
9654
|
-
* @param {?} a
|
|
9655
|
-
* @param {?} b
|
|
9656
|
-
* @return {?}
|
|
9657
|
-
*/
|
|
9658
|
-
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9659
8445
|
}
|
|
8446
|
+
this.userLst.sort((/**
|
|
8447
|
+
* @param {?} a
|
|
8448
|
+
* @param {?} b
|
|
8449
|
+
* @return {?}
|
|
8450
|
+
*/
|
|
8451
|
+
function (a, b) { return a.toString().localeCompare(b); }));
|
|
9660
8452
|
};
|
|
9661
8453
|
/**
|
|
9662
8454
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -9756,8 +8548,8 @@ var TableComponent = /** @class */ (function () {
|
|
|
9756
8548
|
TableComponent.decorators = [
|
|
9757
8549
|
{ type: Component, args: [{
|
|
9758
8550
|
selector: 'ccpay-table',
|
|
9759
|
-
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
|
|
9760
|
-
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}
|
|
8551
|
+
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",
|
|
8552
|
+
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}"]
|
|
9761
8553
|
}] }
|
|
9762
8554
|
];
|
|
9763
8555
|
/** @nocollapse */
|
|
@@ -9778,32 +8570,14 @@ var TableComponent = /** @class */ (function () {
|
|
|
9778
8570
|
return TableComponent;
|
|
9779
8571
|
}());
|
|
9780
8572
|
|
|
9781
|
-
/**
|
|
9782
|
-
* @fileoverview added by tsickle
|
|
9783
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9784
|
-
*/
|
|
9785
|
-
var IPutNotificationRequest = /** @class */ (function () {
|
|
9786
|
-
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9787
|
-
if (notificationType === 'EMAIL') {
|
|
9788
|
-
this.recipient_email_address = contactDetails;
|
|
9789
|
-
}
|
|
9790
|
-
else if (notificationType === 'LETTER') {
|
|
9791
|
-
this.recipient_postal_address = contactDetails;
|
|
9792
|
-
}
|
|
9793
|
-
}
|
|
9794
|
-
return IPutNotificationRequest;
|
|
9795
|
-
}());
|
|
9796
|
-
|
|
9797
8573
|
/**
|
|
9798
8574
|
* @fileoverview added by tsickle
|
|
9799
8575
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9800
8576
|
*/
|
|
9801
8577
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9802
|
-
function IResubmitRefundRequest(refund_reason, amount
|
|
8578
|
+
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9803
8579
|
this.refund_reason = refund_reason;
|
|
9804
8580
|
this.amount = amount;
|
|
9805
|
-
this.contact_details = contact_details;
|
|
9806
|
-
this.refund_fees = refund_fees;
|
|
9807
8581
|
}
|
|
9808
8582
|
return IResubmitRefundRequest;
|
|
9809
8583
|
}());
|
|
@@ -9813,18 +8587,19 @@ var IResubmitRefundRequest = /** @class */ (function () {
|
|
|
9813
8587
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9814
8588
|
*/
|
|
9815
8589
|
var RefundStatusComponent = /** @class */ (function () {
|
|
9816
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
9817
|
-
var _this = this;
|
|
8590
|
+
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router, OrderslistService$$1) {
|
|
9818
8591
|
this.formBuilder = formBuilder;
|
|
9819
8592
|
this.refundService = refundService;
|
|
9820
|
-
this.notificationService = notificationService;
|
|
9821
8593
|
this.paymentLibComponent = paymentLibComponent;
|
|
9822
|
-
this.OrderslistService = OrderslistService$$1;
|
|
9823
8594
|
this.paymentViewService = paymentViewService;
|
|
8595
|
+
this.router = router;
|
|
8596
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9824
8597
|
this.LOGGEDINUSERROLES = [];
|
|
9825
8598
|
this.rejectedRefundList = [];
|
|
9826
8599
|
this.approvalStatus = 'Sent for approval';
|
|
9827
8600
|
this.rejectStatus = 'Update required';
|
|
8601
|
+
// approvalStatus = 'sent for approval';
|
|
8602
|
+
// rejectStatus = 'sent back';
|
|
9828
8603
|
this.errorMessage = null;
|
|
9829
8604
|
this.refundButtonState = '';
|
|
9830
8605
|
this.isAmountEmpty = false;
|
|
@@ -9833,25 +8608,9 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9833
8608
|
this.isRemissionLessThanFeeError = false;
|
|
9834
8609
|
this.refundHasError = false;
|
|
9835
8610
|
this.refundReasons = [];
|
|
9836
|
-
this.isResendOperationSuccess = false;
|
|
9837
|
-
this.isEditDetailsClicked = false;
|
|
9838
|
-
this.isEditAddressDeatilsClicked = false;
|
|
9839
8611
|
this.isRefundBtnDisabled = true;
|
|
9840
8612
|
this.isLastUpdatedByCurrentUser = true;
|
|
9841
8613
|
this.isProcessRefund = false;
|
|
9842
|
-
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
9843
|
-
this.check4AllowedRoles2AccessRefund = (/**
|
|
9844
|
-
* @return {?}
|
|
9845
|
-
*/
|
|
9846
|
-
function () {
|
|
9847
|
-
return _this.allowedRolesToAccessRefund.some((/**
|
|
9848
|
-
* @param {?} role
|
|
9849
|
-
* @return {?}
|
|
9850
|
-
*/
|
|
9851
|
-
function (role) {
|
|
9852
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9853
|
-
}));
|
|
9854
|
-
});
|
|
9855
8614
|
}
|
|
9856
8615
|
/**
|
|
9857
8616
|
* @return {?}
|
|
@@ -9861,9 +8620,13 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9861
8620
|
*/
|
|
9862
8621
|
function () {
|
|
9863
8622
|
var _this = this;
|
|
8623
|
+
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
9864
8624
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
9865
8625
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
9866
8626
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8627
|
+
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8628
|
+
// this.viewName = 'reviewandsubmitview';
|
|
8629
|
+
// }
|
|
9867
8630
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
9868
8631
|
this.viewName = 'refundview';
|
|
9869
8632
|
this.OrderslistService.getRefundView().subscribe((/**
|
|
@@ -9879,21 +8642,25 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9879
8642
|
}
|
|
9880
8643
|
else {
|
|
9881
8644
|
this.viewName = 'refundstatuslist';
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
*/
|
|
9886
|
-
function (refundList) {
|
|
9887
|
-
_this.rejectedRefundList = refundList['refund_list'];
|
|
9888
|
-
//this.refundFees = this.rejectedRefundList['refund_fees'];
|
|
9889
|
-
})),
|
|
9890
|
-
(/**
|
|
9891
|
-
* @param {?} error
|
|
8645
|
+
if (this.isEliginbleToAccess) {
|
|
8646
|
+
this.refundService.getRefundStatusList(this.ccdCaseNumber).subscribe((/**
|
|
8647
|
+
* @param {?} refundList
|
|
9892
8648
|
* @return {?}
|
|
9893
8649
|
*/
|
|
9894
|
-
function (
|
|
9895
|
-
_this.
|
|
9896
|
-
})
|
|
8650
|
+
function (refundList) {
|
|
8651
|
+
_this.rejectedRefundList = refundList['refund_list'];
|
|
8652
|
+
})),
|
|
8653
|
+
(/**
|
|
8654
|
+
* @param {?} error
|
|
8655
|
+
* @return {?}
|
|
8656
|
+
*/
|
|
8657
|
+
function (error) {
|
|
8658
|
+
_this.errorMessage = error.replace(/"/g, "");
|
|
8659
|
+
});
|
|
8660
|
+
}
|
|
8661
|
+
else {
|
|
8662
|
+
this.rejectedRefundList = [];
|
|
8663
|
+
}
|
|
9897
8664
|
}
|
|
9898
8665
|
this.refundStatusForm = this.formBuilder.group({
|
|
9899
8666
|
amount: new FormControl('', Validators.compose([
|
|
@@ -9904,7 +8671,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9904
8671
|
reason: new FormControl()
|
|
9905
8672
|
});
|
|
9906
8673
|
if (this.refundlist !== undefined) {
|
|
9907
|
-
this.getRefundsNotification();
|
|
9908
8674
|
this.getRefundsStatusHistoryList();
|
|
9909
8675
|
if (this.LOGGEDINUSERROLES.some((/**
|
|
9910
8676
|
* @param {?} i
|
|
@@ -9924,6 +8690,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9924
8690
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
9925
8691
|
}
|
|
9926
8692
|
}
|
|
8693
|
+
//}
|
|
9927
8694
|
};
|
|
9928
8695
|
/**
|
|
9929
8696
|
* @return {?}
|
|
@@ -9952,36 +8719,13 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
9952
8719
|
}
|
|
9953
8720
|
};
|
|
9954
8721
|
/**
|
|
8722
|
+
* @param {?} refundlist
|
|
8723
|
+
* @param {?} navigationpage
|
|
9955
8724
|
* @return {?}
|
|
9956
8725
|
*/
|
|
9957
|
-
RefundStatusComponent.prototype.
|
|
9958
|
-
* @
|
|
9959
|
-
|
|
9960
|
-
function () {
|
|
9961
|
-
var _this = this;
|
|
9962
|
-
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
|
|
9963
|
-
* @param {?} refundsNotification
|
|
9964
|
-
* @return {?}
|
|
9965
|
-
*/
|
|
9966
|
-
function (refundsNotification) {
|
|
9967
|
-
_this.notificationList = refundsNotification['notifications'];
|
|
9968
|
-
})),
|
|
9969
|
-
(/**
|
|
9970
|
-
* @param {?} error
|
|
9971
|
-
* @return {?}
|
|
9972
|
-
*/
|
|
9973
|
-
function (error) {
|
|
9974
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
9975
|
-
});
|
|
9976
|
-
};
|
|
9977
|
-
/**
|
|
9978
|
-
* @param {?} refundlist
|
|
9979
|
-
* @param {?} navigationpage
|
|
9980
|
-
* @return {?}
|
|
9981
|
-
*/
|
|
9982
|
-
RefundStatusComponent.prototype.goToRefundView = /**
|
|
9983
|
-
* @param {?} refundlist
|
|
9984
|
-
* @param {?} navigationpage
|
|
8726
|
+
RefundStatusComponent.prototype.goToRefundView = /**
|
|
8727
|
+
* @param {?} refundlist
|
|
8728
|
+
* @param {?} navigationpage
|
|
9985
8729
|
* @return {?}
|
|
9986
8730
|
*/
|
|
9987
8731
|
function (refundlist, navigationpage) {
|
|
@@ -10064,21 +8808,18 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10064
8808
|
}));
|
|
10065
8809
|
};
|
|
10066
8810
|
/**
|
|
10067
|
-
* @param {?} refundReason
|
|
10068
8811
|
* @return {?}
|
|
10069
8812
|
*/
|
|
10070
8813
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
10071
|
-
* @param {?} refundReason
|
|
10072
8814
|
* @return {?}
|
|
10073
8815
|
*/
|
|
10074
|
-
function (
|
|
8816
|
+
function () {
|
|
10075
8817
|
this.isRefundBtnDisabled = false;
|
|
10076
8818
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
10077
8819
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10078
8820
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10079
8821
|
this.errorMessage = false;
|
|
10080
|
-
this.
|
|
10081
|
-
this.viewName = 'issuerefundpage1';
|
|
8822
|
+
this.viewName = 'issuerefund';
|
|
10082
8823
|
};
|
|
10083
8824
|
/**
|
|
10084
8825
|
* @return {?}
|
|
@@ -10092,12 +8833,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10092
8833
|
this.isRefundBtnDisabled = false;
|
|
10093
8834
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10094
8835
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10095
|
-
|
|
10096
|
-
this.viewName = 'processretroremissonpage';
|
|
10097
|
-
}
|
|
10098
|
-
else {
|
|
10099
|
-
this.viewName = 'issuerefund';
|
|
10100
|
-
}
|
|
8836
|
+
this.viewName = 'processretroremissonpage';
|
|
10101
8837
|
};
|
|
10102
8838
|
/**
|
|
10103
8839
|
* @return {?}
|
|
@@ -10179,7 +8915,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10179
8915
|
function (refundListReason) {
|
|
10180
8916
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
10181
8917
|
this.refundlist.reason = refundListReason.reason;
|
|
10182
|
-
this.refundlist.code = refundListReason.code;
|
|
10183
8918
|
this.refundCode = refundListReason.code;
|
|
10184
8919
|
}
|
|
10185
8920
|
else {
|
|
@@ -10209,22 +8944,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10209
8944
|
this.viewName = 'reviewandsubmitview';
|
|
10210
8945
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
10211
8946
|
};
|
|
10212
|
-
/**
|
|
10213
|
-
* @param {?} fees
|
|
10214
|
-
* @return {?}
|
|
10215
|
-
*/
|
|
10216
|
-
RefundStatusComponent.prototype.getRefundFees = /**
|
|
10217
|
-
* @param {?} fees
|
|
10218
|
-
* @return {?}
|
|
10219
|
-
*/
|
|
10220
|
-
function (fees) {
|
|
10221
|
-
this.fees = fees;
|
|
10222
|
-
this.refundFees = this.fees.map((/**
|
|
10223
|
-
* @param {?} obj
|
|
10224
|
-
* @return {?}
|
|
10225
|
-
*/
|
|
10226
|
-
function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10227
|
-
};
|
|
10228
8947
|
/**
|
|
10229
8948
|
* @return {?}
|
|
10230
8949
|
*/
|
|
@@ -10233,15 +8952,11 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10233
8952
|
*/
|
|
10234
8953
|
function () {
|
|
10235
8954
|
var _this = this;
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
// }
|
|
10239
|
-
if (this.refundFees === undefined) {
|
|
10240
|
-
this.refundFees = this.refundlist['refund_fees'];
|
|
8955
|
+
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8956
|
+
this.refundCode = '';
|
|
10241
8957
|
}
|
|
10242
|
-
this.refundCode = this.refundlist.code;
|
|
10243
8958
|
/** @type {?} */
|
|
10244
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount
|
|
8959
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10245
8960
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe((/**
|
|
10246
8961
|
* @param {?} response
|
|
10247
8962
|
* @return {?}
|
|
@@ -10260,144 +8975,6 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10260
8975
|
_this.errorMessage = error.replace(/"/g, "");
|
|
10261
8976
|
}));
|
|
10262
8977
|
};
|
|
10263
|
-
/**
|
|
10264
|
-
* @param {?} note
|
|
10265
|
-
* @return {?}
|
|
10266
|
-
*/
|
|
10267
|
-
RefundStatusComponent.prototype.gotoEditAddressDetails = /**
|
|
10268
|
-
* @param {?} note
|
|
10269
|
-
* @return {?}
|
|
10270
|
-
*/
|
|
10271
|
-
function (note) {
|
|
10272
|
-
this.notification = note;
|
|
10273
|
-
this.isEditDetailsClicked = true;
|
|
10274
|
-
this.viewName = 'refundEditView';
|
|
10275
|
-
};
|
|
10276
|
-
/**
|
|
10277
|
-
* @param {?} obj
|
|
10278
|
-
* @return {?}
|
|
10279
|
-
*/
|
|
10280
|
-
RefundStatusComponent.prototype.getContactDetails = /**
|
|
10281
|
-
* @param {?} obj
|
|
10282
|
-
* @return {?}
|
|
10283
|
-
*/
|
|
10284
|
-
function (obj) {
|
|
10285
|
-
this.addressDetails = obj;
|
|
10286
|
-
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
10287
|
-
};
|
|
10288
|
-
/**
|
|
10289
|
-
* @param {?} obj
|
|
10290
|
-
* @return {?}
|
|
10291
|
-
*/
|
|
10292
|
-
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10293
|
-
* @param {?} obj
|
|
10294
|
-
* @return {?}
|
|
10295
|
-
*/
|
|
10296
|
-
function (obj) {
|
|
10297
|
-
this.refundlist.contact_details = obj;
|
|
10298
|
-
this.isEditDetailsClicked = false;
|
|
10299
|
-
this.isRefundBtnDisabled = false;
|
|
10300
|
-
this.viewName = 'reviewandsubmitview';
|
|
10301
|
-
};
|
|
10302
|
-
/**
|
|
10303
|
-
* @param {?=} note
|
|
10304
|
-
* @return {?}
|
|
10305
|
-
*/
|
|
10306
|
-
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10307
|
-
* @param {?=} note
|
|
10308
|
-
* @return {?}
|
|
10309
|
-
*/
|
|
10310
|
-
function (note) {
|
|
10311
|
-
if (note) {
|
|
10312
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10313
|
-
}
|
|
10314
|
-
this.isEditDetailsClicked = true;
|
|
10315
|
-
this.viewName = 'refundEditView';
|
|
10316
|
-
};
|
|
10317
|
-
/**
|
|
10318
|
-
* @return {?}
|
|
10319
|
-
*/
|
|
10320
|
-
RefundStatusComponent.prototype.submitEditDetail = /**
|
|
10321
|
-
* @return {?}
|
|
10322
|
-
*/
|
|
10323
|
-
function () {
|
|
10324
|
-
var _this = this;
|
|
10325
|
-
this.isResendOperationSuccess = false;
|
|
10326
|
-
/** @type {?} */
|
|
10327
|
-
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10328
|
-
{
|
|
10329
|
-
address_line: this.addressDetails.address_line,
|
|
10330
|
-
city: this.addressDetails.city,
|
|
10331
|
-
county: this.addressDetails.county,
|
|
10332
|
-
country: this.addressDetails.country,
|
|
10333
|
-
postal_code: this.addressDetails.postal_code,
|
|
10334
|
-
};
|
|
10335
|
-
/** @type {?} */
|
|
10336
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10337
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
|
|
10338
|
-
* @param {?} response
|
|
10339
|
-
* @return {?}
|
|
10340
|
-
*/
|
|
10341
|
-
function (response) {
|
|
10342
|
-
_this.isResendOperationSuccess = response;
|
|
10343
|
-
}), (/**
|
|
10344
|
-
* @param {?} error
|
|
10345
|
-
* @return {?}
|
|
10346
|
-
*/
|
|
10347
|
-
function (error) {
|
|
10348
|
-
_this.isResendOperationSuccess = false;
|
|
10349
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10350
|
-
}));
|
|
10351
|
-
};
|
|
10352
|
-
/**
|
|
10353
|
-
* @param {?} notification
|
|
10354
|
-
* @return {?}
|
|
10355
|
-
*/
|
|
10356
|
-
RefundStatusComponent.prototype.putResend = /**
|
|
10357
|
-
* @param {?} notification
|
|
10358
|
-
* @return {?}
|
|
10359
|
-
*/
|
|
10360
|
-
function (notification) {
|
|
10361
|
-
var _this = this;
|
|
10362
|
-
this.isResendOperationSuccess = false;
|
|
10363
|
-
/** @type {?} */
|
|
10364
|
-
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10365
|
-
{
|
|
10366
|
-
address_line: notification.contact_details.address_line,
|
|
10367
|
-
city: notification.contact_details.city,
|
|
10368
|
-
county: notification.contact_details.county,
|
|
10369
|
-
country: notification.contact_details.country,
|
|
10370
|
-
postal_code: notification.contact_details.postal_code,
|
|
10371
|
-
};
|
|
10372
|
-
/** @type {?} */
|
|
10373
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10374
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
|
|
10375
|
-
* @param {?} response
|
|
10376
|
-
* @return {?}
|
|
10377
|
-
*/
|
|
10378
|
-
function (response) {
|
|
10379
|
-
_this.isResendOperationSuccess = response;
|
|
10380
|
-
}), (/**
|
|
10381
|
-
* @param {?} error
|
|
10382
|
-
* @return {?}
|
|
10383
|
-
*/
|
|
10384
|
-
function (error) {
|
|
10385
|
-
_this.isResendOperationSuccess = false;
|
|
10386
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10387
|
-
}));
|
|
10388
|
-
};
|
|
10389
|
-
/**
|
|
10390
|
-
* @param {?} Event
|
|
10391
|
-
* @return {?}
|
|
10392
|
-
*/
|
|
10393
|
-
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10394
|
-
* @param {?} Event
|
|
10395
|
-
* @return {?}
|
|
10396
|
-
*/
|
|
10397
|
-
function (Event) {
|
|
10398
|
-
event.preventDefault();
|
|
10399
|
-
this.viewName = 'refundstatuslist';
|
|
10400
|
-
};
|
|
10401
8978
|
/**
|
|
10402
8979
|
* @param {?} refundReference
|
|
10403
8980
|
* @param {?} refundList
|
|
@@ -10411,24 +8988,23 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10411
8988
|
function (refundReference, refundList) {
|
|
10412
8989
|
this.paymentLibComponent.refundlistsource = refundList;
|
|
10413
8990
|
this.paymentLibComponent.refundReference = refundReference;
|
|
10414
|
-
this.paymentLibComponent.isFromPayBubble = true;
|
|
10415
8991
|
this.paymentLibComponent.viewName = 'process-refund';
|
|
10416
8992
|
};
|
|
10417
8993
|
RefundStatusComponent.decorators = [
|
|
10418
8994
|
{ type: Component, args: [{
|
|
10419
8995
|
selector: 'ccpay-refund-status',
|
|
10420
|
-
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",
|
|
10421
|
-
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-
|
|
8996
|
+
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",
|
|
8997
|
+
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}"]
|
|
10422
8998
|
}] }
|
|
10423
8999
|
];
|
|
10424
9000
|
/** @nocollapse */
|
|
10425
9001
|
RefundStatusComponent.ctorParameters = function () { return [
|
|
10426
9002
|
{ type: FormBuilder },
|
|
10427
9003
|
{ type: RefundsService },
|
|
10428
|
-
{ type: NotificationService },
|
|
10429
9004
|
{ type: PaymentLibComponent },
|
|
10430
|
-
{ type:
|
|
10431
|
-
{ type:
|
|
9005
|
+
{ type: PaymentViewService },
|
|
9006
|
+
{ type: Router },
|
|
9007
|
+
{ type: OrderslistService }
|
|
10432
9008
|
]; };
|
|
10433
9009
|
RefundStatusComponent.propDecorators = {
|
|
10434
9010
|
LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
|
|
@@ -10436,7 +9012,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10436
9012
|
isNewPcipalOff: [{ type: Input }],
|
|
10437
9013
|
ccdCaseNumber: [{ type: Input }],
|
|
10438
9014
|
isTurnOff: [{ type: Input }],
|
|
10439
|
-
|
|
9015
|
+
isEliginbleToAccess: [{ type: Input }]
|
|
10440
9016
|
};
|
|
10441
9017
|
return RefundStatusComponent;
|
|
10442
9018
|
}());
|
|
@@ -10446,11 +9022,11 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
10446
9022
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10447
9023
|
*/
|
|
10448
9024
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
10449
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1,
|
|
9025
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router) {
|
|
9026
|
+
var _this = this;
|
|
10450
9027
|
this.paymentLibComponent = paymentLibComponent;
|
|
10451
9028
|
this.paymentViewService = paymentViewService;
|
|
10452
9029
|
this.OrderslistService = OrderslistService$$1;
|
|
10453
|
-
this.cd = cd;
|
|
10454
9030
|
this.router = router;
|
|
10455
9031
|
this.goToServiceRquestComponent = new EventEmitter();
|
|
10456
9032
|
this.paymentGroups = [];
|
|
@@ -10458,6 +9034,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10458
9034
|
this.nonPayments = [];
|
|
10459
9035
|
this.allPayments = [];
|
|
10460
9036
|
this.remissions = [];
|
|
9037
|
+
this.fees = [];
|
|
10461
9038
|
this.isRefundRemission = true;
|
|
10462
9039
|
this.isAddFeeBtnEnabled = true;
|
|
10463
9040
|
this.isExceptionRecord = false;
|
|
@@ -10477,7 +9054,30 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10477
9054
|
this.isAddRemissionBtnEnabled = false;
|
|
10478
9055
|
this.isRefundRemissionBtnEnable = false;
|
|
10479
9056
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
10480
|
-
this.
|
|
9057
|
+
this.check4AllowedRoles2AccessRefund = (/**
|
|
9058
|
+
* @return {?}
|
|
9059
|
+
*/
|
|
9060
|
+
function () {
|
|
9061
|
+
return _this.allowedRolesToAccessRefund.some((/**
|
|
9062
|
+
* @param {?} role
|
|
9063
|
+
* @return {?}
|
|
9064
|
+
*/
|
|
9065
|
+
function (role) {
|
|
9066
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9067
|
+
}));
|
|
9068
|
+
});
|
|
9069
|
+
this.allowFurtherAccessAfter4Days = (/**
|
|
9070
|
+
* @param {?} payment
|
|
9071
|
+
* @return {?}
|
|
9072
|
+
*/
|
|
9073
|
+
function (payment) {
|
|
9074
|
+
if (payment !== null && payment !== undefined) {
|
|
9075
|
+
/** @type {?} */
|
|
9076
|
+
var tmp4DayAgo = new Date();
|
|
9077
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
9078
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
9079
|
+
}
|
|
9080
|
+
});
|
|
10481
9081
|
}
|
|
10482
9082
|
/**
|
|
10483
9083
|
* @return {?}
|
|
@@ -10487,8 +9087,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10487
9087
|
*/
|
|
10488
9088
|
function () {
|
|
10489
9089
|
var _this = this;
|
|
10490
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10491
|
-
this.isServiceRequest = 'false';
|
|
10492
9090
|
if (this.viewStatus === undefined) {
|
|
10493
9091
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
10494
9092
|
}
|
|
@@ -10536,9 +9134,9 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10536
9134
|
function (data) { return _this.orderTotalPayments = data; }));
|
|
10537
9135
|
}
|
|
10538
9136
|
}
|
|
10539
|
-
if (this.
|
|
10540
|
-
|
|
10541
|
-
}
|
|
9137
|
+
// if (this.takePayment) {
|
|
9138
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
9139
|
+
// }
|
|
10542
9140
|
};
|
|
10543
9141
|
/**
|
|
10544
9142
|
* @return {?}
|
|
@@ -10567,7 +9165,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10567
9165
|
if (this.takePayment) {
|
|
10568
9166
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
10569
9167
|
}
|
|
10570
|
-
|
|
9168
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10571
9169
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
10572
9170
|
if (this.isServiceRequest !== 'false') {
|
|
10573
9171
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -10595,6 +9193,75 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10595
9193
|
this.router.onSameUrlNavigation = 'reload';
|
|
10596
9194
|
this.router.navigateByUrl(url);
|
|
10597
9195
|
};
|
|
9196
|
+
/**
|
|
9197
|
+
* @param {?} feeCode
|
|
9198
|
+
* @return {?}
|
|
9199
|
+
*/
|
|
9200
|
+
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9201
|
+
* @param {?} feeCode
|
|
9202
|
+
* @return {?}
|
|
9203
|
+
*/
|
|
9204
|
+
function (feeCode) {
|
|
9205
|
+
var e_1, _a;
|
|
9206
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9207
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9208
|
+
try {
|
|
9209
|
+
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9210
|
+
var remission = _c.value;
|
|
9211
|
+
if (remission.fee_code === feeCode) {
|
|
9212
|
+
return false;
|
|
9213
|
+
}
|
|
9214
|
+
}
|
|
9215
|
+
}
|
|
9216
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9217
|
+
finally {
|
|
9218
|
+
try {
|
|
9219
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9220
|
+
}
|
|
9221
|
+
finally { if (e_1) throw e_1.error; }
|
|
9222
|
+
}
|
|
9223
|
+
}
|
|
9224
|
+
return true;
|
|
9225
|
+
}
|
|
9226
|
+
else {
|
|
9227
|
+
return false;
|
|
9228
|
+
}
|
|
9229
|
+
};
|
|
9230
|
+
/**
|
|
9231
|
+
* @return {?}
|
|
9232
|
+
*/
|
|
9233
|
+
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9234
|
+
* @return {?}
|
|
9235
|
+
*/
|
|
9236
|
+
function () {
|
|
9237
|
+
var _this = this;
|
|
9238
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9239
|
+
this.orderDetail.forEach((/**
|
|
9240
|
+
* @param {?} orderDetail
|
|
9241
|
+
* @return {?}
|
|
9242
|
+
*/
|
|
9243
|
+
function (orderDetail) {
|
|
9244
|
+
if (orderDetail.payments) {
|
|
9245
|
+
orderDetail.payments.forEach((/**
|
|
9246
|
+
* @param {?} payment
|
|
9247
|
+
* @return {?}
|
|
9248
|
+
*/
|
|
9249
|
+
function (payment) {
|
|
9250
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9251
|
+
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9252
|
+
_this.isPBA = true;
|
|
9253
|
+
}
|
|
9254
|
+
}));
|
|
9255
|
+
}
|
|
9256
|
+
}));
|
|
9257
|
+
if (this.isPBA) {
|
|
9258
|
+
return true;
|
|
9259
|
+
}
|
|
9260
|
+
else {
|
|
9261
|
+
return false;
|
|
9262
|
+
}
|
|
9263
|
+
}
|
|
9264
|
+
};
|
|
10598
9265
|
/**
|
|
10599
9266
|
* @param {?} fee
|
|
10600
9267
|
* @return {?}
|
|
@@ -10605,7 +9272,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10605
9272
|
*/
|
|
10606
9273
|
function (fee) {
|
|
10607
9274
|
var _this = this;
|
|
10608
|
-
if (this.
|
|
9275
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
10609
9276
|
this.feeId = fee;
|
|
10610
9277
|
this.viewStatus = 'addremission';
|
|
10611
9278
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -10621,8 +9288,8 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10621
9288
|
*/
|
|
10622
9289
|
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10623
9290
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10624
|
-
//
|
|
10625
|
-
//
|
|
9291
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9292
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10626
9293
|
}), (/**
|
|
10627
9294
|
* @param {?} error
|
|
10628
9295
|
* @return {?}
|
|
@@ -10644,8 +9311,9 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10644
9311
|
*/
|
|
10645
9312
|
function (payment, remission, fees) {
|
|
10646
9313
|
var _this = this;
|
|
10647
|
-
this.
|
|
10648
|
-
this.
|
|
9314
|
+
this.viewStatus = 'addrefundforremission';
|
|
9315
|
+
this.payment = payment;
|
|
9316
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
10649
9317
|
* @param {?} paymentGroup
|
|
10650
9318
|
* @return {?}
|
|
10651
9319
|
*/
|
|
@@ -10655,7 +9323,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10655
9323
|
* @param {?} paymentGroupObj
|
|
10656
9324
|
* @return {?}
|
|
10657
9325
|
*/
|
|
10658
|
-
function (paymentGroupObj) { return paymentGroupObj.
|
|
9326
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
10659
9327
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10660
9328
|
_this.remissions = remission;
|
|
10661
9329
|
_this.remissionFeeAmt = fees.filter((/**
|
|
@@ -10663,7 +9331,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10663
9331
|
* @return {?}
|
|
10664
9332
|
*/
|
|
10665
9333
|
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10666
|
-
_this.viewStatus = 'addrefundforremission';
|
|
10667
9334
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10668
9335
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10669
9336
|
}), (/**
|
|
@@ -10711,43 +9378,72 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10711
9378
|
* @param {?} payment
|
|
10712
9379
|
* @return {?}
|
|
10713
9380
|
*/
|
|
10714
|
-
ServiceRequestComponent.prototype.
|
|
9381
|
+
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
10715
9382
|
* @param {?} payment
|
|
10716
9383
|
* @return {?}
|
|
10717
9384
|
*/
|
|
10718
9385
|
function (payment) {
|
|
9386
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9387
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9388
|
+
this.isIssueRefunfBtnEnable = true;
|
|
9389
|
+
}
|
|
9390
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
9391
|
+
return true;
|
|
9392
|
+
}
|
|
9393
|
+
else {
|
|
9394
|
+
return false;
|
|
9395
|
+
}
|
|
9396
|
+
};
|
|
9397
|
+
/**
|
|
9398
|
+
* @return {?}
|
|
9399
|
+
*/
|
|
9400
|
+
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9401
|
+
* @return {?}
|
|
9402
|
+
*/
|
|
9403
|
+
function () {
|
|
10719
9404
|
var _this = this;
|
|
10720
|
-
if (
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
9405
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9406
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9407
|
+
this.orderDetail.forEach((/**
|
|
9408
|
+
* @param {?} orderDetail
|
|
9409
|
+
* @return {?}
|
|
9410
|
+
*/
|
|
9411
|
+
function (orderDetail) {
|
|
9412
|
+
if (orderDetail.payments) {
|
|
9413
|
+
orderDetail.payments.forEach((/**
|
|
9414
|
+
* @param {?} payment
|
|
10729
9415
|
* @return {?}
|
|
10730
9416
|
*/
|
|
10731
|
-
function (
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
9417
|
+
function (payment) {
|
|
9418
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9419
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
9420
|
+
}
|
|
9421
|
+
}));
|
|
9422
|
+
}
|
|
9423
|
+
}));
|
|
9424
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
9425
|
+
return true;
|
|
9426
|
+
}
|
|
9427
|
+
else {
|
|
9428
|
+
return false;
|
|
9429
|
+
}
|
|
9430
|
+
}
|
|
9431
|
+
};
|
|
9432
|
+
/**
|
|
9433
|
+
* @param {?} payment
|
|
9434
|
+
* @return {?}
|
|
9435
|
+
*/
|
|
9436
|
+
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9437
|
+
* @param {?} payment
|
|
9438
|
+
* @return {?}
|
|
9439
|
+
*/
|
|
9440
|
+
function (payment) {
|
|
9441
|
+
if (payment !== null && payment !== undefined) {
|
|
9442
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
9443
|
+
this.viewStatus = 'issuerefund';
|
|
9444
|
+
this.payment = payment;
|
|
9445
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9446
|
+
this.isRefundRemission = true;
|
|
10751
9447
|
}
|
|
10752
9448
|
}
|
|
10753
9449
|
};
|
|
@@ -10789,54 +9485,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10789
9485
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
10790
9486
|
this.viewStatus = 'payment-view';
|
|
10791
9487
|
};
|
|
10792
|
-
/**
|
|
10793
|
-
* @param {?} payment
|
|
10794
|
-
* @return {?}
|
|
10795
|
-
*/
|
|
10796
|
-
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10797
|
-
* @param {?} payment
|
|
10798
|
-
* @return {?}
|
|
10799
|
-
*/
|
|
10800
|
-
function (payment) {
|
|
10801
|
-
if (payment !== null && payment !== undefined) {
|
|
10802
|
-
return payment.issue_refund && payment.refund_enable;
|
|
10803
|
-
}
|
|
10804
|
-
else {
|
|
10805
|
-
return false;
|
|
10806
|
-
}
|
|
10807
|
-
};
|
|
10808
|
-
/**
|
|
10809
|
-
* @param {?} remission
|
|
10810
|
-
* @return {?}
|
|
10811
|
-
*/
|
|
10812
|
-
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10813
|
-
* @param {?} remission
|
|
10814
|
-
* @return {?}
|
|
10815
|
-
*/
|
|
10816
|
-
function (remission) {
|
|
10817
|
-
if (remission !== null && remission !== undefined) {
|
|
10818
|
-
return remission.add_refund;
|
|
10819
|
-
}
|
|
10820
|
-
else {
|
|
10821
|
-
return false;
|
|
10822
|
-
}
|
|
10823
|
-
};
|
|
10824
|
-
/**
|
|
10825
|
-
* @param {?} fee
|
|
10826
|
-
* @return {?}
|
|
10827
|
-
*/
|
|
10828
|
-
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10829
|
-
* @param {?} fee
|
|
10830
|
-
* @return {?}
|
|
10831
|
-
*/
|
|
10832
|
-
function (fee) {
|
|
10833
|
-
if (fee !== null && fee !== undefined) {
|
|
10834
|
-
return fee.add_remission && fee.remission_enable;
|
|
10835
|
-
}
|
|
10836
|
-
else {
|
|
10837
|
-
return false;
|
|
10838
|
-
}
|
|
10839
|
-
};
|
|
10840
9488
|
/**
|
|
10841
9489
|
* @return {?}
|
|
10842
9490
|
*/
|
|
@@ -10853,161 +9501,11 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10853
9501
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
10854
9502
|
this.OrderslistService.setorderFeesTotal(null);
|
|
10855
9503
|
};
|
|
10856
|
-
/**
|
|
10857
|
-
* @param {?} paymentType
|
|
10858
|
-
* @return {?}
|
|
10859
|
-
*/
|
|
10860
|
-
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
10861
|
-
* @param {?} paymentType
|
|
10862
|
-
* @return {?}
|
|
10863
|
-
*/
|
|
10864
|
-
function (paymentType) {
|
|
10865
|
-
this.paymentType = paymentType;
|
|
10866
|
-
this.isContinueBtnDisabled = false;
|
|
10867
|
-
};
|
|
10868
|
-
/**
|
|
10869
|
-
* @return {?}
|
|
10870
|
-
*/
|
|
10871
|
-
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
10872
|
-
* @return {?}
|
|
10873
|
-
*/
|
|
10874
|
-
function () {
|
|
10875
|
-
this.viewCompStatus = '';
|
|
10876
|
-
this.viewStatus = 'paymentview';
|
|
10877
|
-
};
|
|
10878
|
-
/**
|
|
10879
|
-
* @param {?} paymentgrp
|
|
10880
|
-
* @return {?}
|
|
10881
|
-
*/
|
|
10882
|
-
ServiceRequestComponent.prototype.continuePayment = /**
|
|
10883
|
-
* @param {?} paymentgrp
|
|
10884
|
-
* @return {?}
|
|
10885
|
-
*/
|
|
10886
|
-
function (paymentgrp) {
|
|
10887
|
-
if (this.paymentType === 'op') {
|
|
10888
|
-
this.isFullyRefund = false;
|
|
10889
|
-
this.viewStatus = '';
|
|
10890
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10891
|
-
}
|
|
10892
|
-
else if (this.paymentType === 'fp') {
|
|
10893
|
-
this.isFullyRefund = true;
|
|
10894
|
-
this.paymentGroupList = paymentgrp;
|
|
10895
|
-
this.viewStatus = 'issuerefund';
|
|
10896
|
-
this.viewCompStatus = "";
|
|
10897
|
-
this.isRefundRemission = true;
|
|
10898
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
10899
|
-
this.isFromPaymentDetailPage = true;
|
|
10900
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
10901
|
-
}
|
|
10902
|
-
};
|
|
10903
|
-
/**
|
|
10904
|
-
* @param {?} obj
|
|
10905
|
-
* @return {?}
|
|
10906
|
-
*/
|
|
10907
|
-
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
10908
|
-
* @param {?} obj
|
|
10909
|
-
* @return {?}
|
|
10910
|
-
*/
|
|
10911
|
-
function (obj) {
|
|
10912
|
-
this.contactDetailsObj = obj;
|
|
10913
|
-
this.viewStatus = '';
|
|
10914
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10915
|
-
};
|
|
10916
|
-
/**
|
|
10917
|
-
* @param {?} event
|
|
10918
|
-
* @return {?}
|
|
10919
|
-
*/
|
|
10920
|
-
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
10921
|
-
* @param {?} event
|
|
10922
|
-
* @return {?}
|
|
10923
|
-
*/
|
|
10924
|
-
function (event) {
|
|
10925
|
-
event.preventDefault();
|
|
10926
|
-
this.viewStatus = '';
|
|
10927
|
-
this.viewCompStatus = 'overpayment';
|
|
10928
|
-
};
|
|
10929
|
-
/**
|
|
10930
|
-
* @param {?=} note
|
|
10931
|
-
* @return {?}
|
|
10932
|
-
*/
|
|
10933
|
-
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
10934
|
-
* @param {?=} note
|
|
10935
|
-
* @return {?}
|
|
10936
|
-
*/
|
|
10937
|
-
function (note) {
|
|
10938
|
-
if (note) {
|
|
10939
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10940
|
-
}
|
|
10941
|
-
this.errorMessage = '';
|
|
10942
|
-
this.viewStatus = '';
|
|
10943
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10944
|
-
};
|
|
10945
|
-
/**
|
|
10946
|
-
* @return {?}
|
|
10947
|
-
*/
|
|
10948
|
-
ServiceRequestComponent.prototype.processRefund = /**
|
|
10949
|
-
* @return {?}
|
|
10950
|
-
*/
|
|
10951
|
-
function () {
|
|
10952
|
-
var _this = this;
|
|
10953
|
-
this.isConfirmationBtnDisabled = true;
|
|
10954
|
-
this.errorMessage = '';
|
|
10955
|
-
/** @type {?} */
|
|
10956
|
-
var obj = this.paymentGroupList.fees[0];
|
|
10957
|
-
this.fees = [{ id: obj.id,
|
|
10958
|
-
code: obj.code,
|
|
10959
|
-
version: obj.version,
|
|
10960
|
-
apportion_amount: obj.apportion_amount,
|
|
10961
|
-
calculated_amount: obj.calculated_amount,
|
|
10962
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
10963
|
-
volume: obj.volume,
|
|
10964
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
10965
|
-
/** @type {?} */
|
|
10966
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
10967
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|
|
10968
|
-
* @param {?} response
|
|
10969
|
-
* @return {?}
|
|
10970
|
-
*/
|
|
10971
|
-
function (response) {
|
|
10972
|
-
if (JSON.parse(response)) {
|
|
10973
|
-
_this.viewCompStatus = '';
|
|
10974
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
10975
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
10976
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
10977
|
-
}
|
|
10978
|
-
}), (/**
|
|
10979
|
-
* @param {?} error
|
|
10980
|
-
* @return {?}
|
|
10981
|
-
*/
|
|
10982
|
-
function (error) {
|
|
10983
|
-
_this.errorMessage = error;
|
|
10984
|
-
_this.isConfirmationBtnDisabled = false;
|
|
10985
|
-
_this.cd.detectChanges();
|
|
10986
|
-
}));
|
|
10987
|
-
};
|
|
10988
|
-
/**
|
|
10989
|
-
* @return {?}
|
|
10990
|
-
*/
|
|
10991
|
-
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
10992
|
-
* @return {?}
|
|
10993
|
-
*/
|
|
10994
|
-
function () {
|
|
10995
|
-
/** @type {?} */
|
|
10996
|
-
var feesOverPayment = 0;
|
|
10997
|
-
this.paymentGroupList.fees.forEach((/**
|
|
10998
|
-
* @param {?} fee
|
|
10999
|
-
* @return {?}
|
|
11000
|
-
*/
|
|
11001
|
-
function (fee) {
|
|
11002
|
-
feesOverPayment += fee.over_payment;
|
|
11003
|
-
}));
|
|
11004
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
11005
|
-
};
|
|
11006
9504
|
ServiceRequestComponent.decorators = [
|
|
11007
9505
|
{ type: Component, args: [{
|
|
11008
9506
|
selector: 'ccpay-service-request',
|
|
11009
|
-
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>",
|
|
11010
|
-
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%}
|
|
9507
|
+
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>",
|
|
9508
|
+
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%}"]
|
|
11011
9509
|
}] }
|
|
11012
9510
|
];
|
|
11013
9511
|
/** @nocollapse */
|
|
@@ -11015,7 +9513,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
11015
9513
|
{ type: PaymentLibComponent },
|
|
11016
9514
|
{ type: PaymentViewService },
|
|
11017
9515
|
{ type: OrderslistService },
|
|
11018
|
-
{ type: ChangeDetectorRef },
|
|
11019
9516
|
{ type: Router }
|
|
11020
9517
|
]; };
|
|
11021
9518
|
ServiceRequestComponent.propDecorators = {
|
|
@@ -11030,7 +9527,6 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
11030
9527
|
orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
|
|
11031
9528
|
orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
|
|
11032
9529
|
orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
|
|
11033
|
-
paymentGroupList: [{ type: Input, args: ['paymentGroupList',] }],
|
|
11034
9530
|
takePayment: [{ type: Input, args: ['takePayment',] }],
|
|
11035
9531
|
ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }],
|
|
11036
9532
|
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }],
|
|
@@ -11303,7 +9799,6 @@ var PaymentLibModule = /** @class */ (function () {
|
|
|
11303
9799
|
PaymentListComponent,
|
|
11304
9800
|
PaymentViewComponent,
|
|
11305
9801
|
PbaPaymentComponent,
|
|
11306
|
-
ContactDetailsComponent,
|
|
11307
9802
|
ProcessRefundComponent,
|
|
11308
9803
|
RefundListComponent,
|
|
11309
9804
|
CardDetailsComponent,
|
|
@@ -11349,6 +9844,6 @@ var PaymentLibModule = /** @class */ (function () {
|
|
|
11349
9844
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11350
9845
|
*/
|
|
11351
9846
|
|
|
11352
|
-
export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as
|
|
9847
|
+
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 };
|
|
11353
9848
|
|
|
11354
9849
|
//# sourceMappingURL=hmcts-ccpay-web-component.js.map
|