@hmcts/ccpay-web-component 5.0.2-beta126 → 5.0.2-beta129
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 +550 -2047
- 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 +20 -41
- 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 +9 -31
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +31 -209
- 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 -6
- 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 +20 -41
- 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 +12 -30
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +29 -245
- 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 -6
- 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 +492 -1821
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +530 -2068
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +30 -32
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +3 -45
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -2
- package/lib/components/payment-view/payment-view.component.d.ts +6 -23
- package/lib/components/process-refund/process-refund.component.d.ts +2 -5
- package/lib/components/refund-status/refund-status.component.d.ts +6 -33
- 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 -1
- 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
|
@@ -71,26 +71,6 @@
|
|
|
71
71
|
function () {
|
|
72
72
|
return this.REFUNDS_API_ROOT;
|
|
73
73
|
};
|
|
74
|
-
/**
|
|
75
|
-
* @param {?} notificationapiRoot
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
PaymentLibService.prototype.setNoticationApiRootUrl = /**
|
|
79
|
-
* @param {?} notificationapiRoot
|
|
80
|
-
* @return {?}
|
|
81
|
-
*/
|
|
82
|
-
function (notificationapiRoot) {
|
|
83
|
-
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
PaymentLibService.prototype.getNoticationApiRootUrl = /**
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
function () {
|
|
92
|
-
return this.NOTIFICATION_API_ROOT;
|
|
93
|
-
};
|
|
94
74
|
/**
|
|
95
75
|
* @param {?} cardPaymentReturnUrl
|
|
96
76
|
* @return {?}
|
|
@@ -566,7 +546,6 @@
|
|
|
566
546
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
567
547
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
568
548
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
569
|
-
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
570
549
|
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
571
550
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
572
551
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
@@ -597,7 +576,7 @@
|
|
|
597
576
|
PaymentLibComponent.decorators = [
|
|
598
577
|
{ type: i0.Component, args: [{
|
|
599
578
|
selector: 'ccpay-payment-lib',
|
|
600
|
-
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\" [
|
|
579
|
+
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status [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 "
|
|
601
580
|
}] }
|
|
602
581
|
];
|
|
603
582
|
/** @nocollapse */
|
|
@@ -612,7 +591,6 @@
|
|
|
612
591
|
API_ROOT: [{ type: i0.Input, args: ['API_ROOT',] }],
|
|
613
592
|
BULKSCAN_API_ROOT: [{ type: i0.Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
614
593
|
REFUNDS_API_ROOT: [{ type: i0.Input, args: ['REFUNDS_API_ROOT',] }],
|
|
615
|
-
NOTIFICATION_API_ROOT: [{ type: i0.Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
616
594
|
CARDPAYMENTRETURNURL: [{ type: i0.Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
617
595
|
CCD_CASE_NUMBER: [{ type: i0.Input, args: ['CCD_CASE_NUMBER',] }],
|
|
618
596
|
EXC_REFERENCE: [{ type: i0.Input, args: ['EXC_REFERENCE',] }],
|
|
@@ -1405,28 +1383,13 @@
|
|
|
1405
1383
|
return PaymentViewService;
|
|
1406
1384
|
}());
|
|
1407
1385
|
|
|
1408
|
-
/**
|
|
1409
|
-
* @fileoverview added by tsickle
|
|
1410
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1411
|
-
*/
|
|
1412
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
1413
|
-
function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1414
|
-
this.contact_details = contact_details;
|
|
1415
|
-
this.fees = fees;
|
|
1416
|
-
this.payment_reference = payment_reference;
|
|
1417
|
-
this.refund_reason = refund_reason;
|
|
1418
|
-
this.total_refund_amount = total_refund_amount;
|
|
1419
|
-
this.is_over_payment = is_over_payment === 'op';
|
|
1420
|
-
}
|
|
1421
|
-
return PostRefundRetroRemission;
|
|
1422
|
-
}());
|
|
1423
|
-
|
|
1424
1386
|
/**
|
|
1425
1387
|
* @fileoverview added by tsickle
|
|
1426
1388
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1427
1389
|
*/
|
|
1428
1390
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1429
1391
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1392
|
+
var _this = this;
|
|
1430
1393
|
this.paymentViewService = paymentViewService;
|
|
1431
1394
|
this.paymentLibComponent = paymentLibComponent;
|
|
1432
1395
|
this.cd = cd;
|
|
@@ -1436,7 +1399,27 @@
|
|
|
1436
1399
|
this.isIssueRefunfBtnEnable = false;
|
|
1437
1400
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1438
1401
|
this.remissions = [];
|
|
1439
|
-
this.
|
|
1402
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
1403
|
+
* @return {?}
|
|
1404
|
+
*/function () {
|
|
1405
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
1406
|
+
* @param {?} role
|
|
1407
|
+
* @return {?}
|
|
1408
|
+
*/function (role) {
|
|
1409
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1410
|
+
}));
|
|
1411
|
+
});
|
|
1412
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
1413
|
+
* @param {?} payment
|
|
1414
|
+
* @return {?}
|
|
1415
|
+
*/function (payment) {
|
|
1416
|
+
if (payment !== null && payment !== undefined) {
|
|
1417
|
+
/** @type {?} */
|
|
1418
|
+
var tmp4DayAgo = new Date();
|
|
1419
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1420
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1421
|
+
}
|
|
1422
|
+
});
|
|
1440
1423
|
}
|
|
1441
1424
|
/**
|
|
1442
1425
|
* @return {?}
|
|
@@ -1487,7 +1470,6 @@
|
|
|
1487
1470
|
}
|
|
1488
1471
|
}));
|
|
1489
1472
|
paymentGroup.fees = fees;
|
|
1490
|
-
_this.paymentFees = fees;
|
|
1491
1473
|
_this.paymentGroup = paymentGroup;
|
|
1492
1474
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1493
1475
|
* @param {?} paymentGroupObj
|
|
@@ -1531,23 +1513,6 @@
|
|
|
1531
1513
|
/**
|
|
1532
1514
|
* @return {?}
|
|
1533
1515
|
*/
|
|
1534
|
-
PaymentViewComponent.prototype.getOverPaymentValue = /**
|
|
1535
|
-
* @return {?}
|
|
1536
|
-
*/
|
|
1537
|
-
function () {
|
|
1538
|
-
/** @type {?} */
|
|
1539
|
-
var feesOverPayment = 0;
|
|
1540
|
-
this.paymentGroup.fees.forEach(( /**
|
|
1541
|
-
* @param {?} fee
|
|
1542
|
-
* @return {?}
|
|
1543
|
-
*/function (fee) {
|
|
1544
|
-
feesOverPayment += fee.over_payment;
|
|
1545
|
-
}));
|
|
1546
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1547
|
-
};
|
|
1548
|
-
/**
|
|
1549
|
-
* @return {?}
|
|
1550
|
-
*/
|
|
1551
1516
|
PaymentViewComponent.prototype.goToServiceRequestPage = /**
|
|
1552
1517
|
* @return {?}
|
|
1553
1518
|
*/
|
|
@@ -1622,7 +1587,7 @@
|
|
|
1622
1587
|
*/
|
|
1623
1588
|
function (fee) {
|
|
1624
1589
|
var _this = this;
|
|
1625
|
-
if (this.
|
|
1590
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
1626
1591
|
this.feeId = fee;
|
|
1627
1592
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe(( /**
|
|
1628
1593
|
* @param {?} paymentGroup
|
|
@@ -1660,62 +1625,6 @@
|
|
|
1660
1625
|
}
|
|
1661
1626
|
return false;
|
|
1662
1627
|
};
|
|
1663
|
-
/**
|
|
1664
|
-
* @return {?}
|
|
1665
|
-
*/
|
|
1666
|
-
PaymentViewComponent.prototype.processRefund = /**
|
|
1667
|
-
* @return {?}
|
|
1668
|
-
*/
|
|
1669
|
-
function () {
|
|
1670
|
-
var _this = this;
|
|
1671
|
-
this.isConfirmationBtnDisabled = true;
|
|
1672
|
-
this.errorMessage = '';
|
|
1673
|
-
/** @type {?} */
|
|
1674
|
-
var obj = this.paymentGroup.fees[0];
|
|
1675
|
-
this.fees = [{ id: obj.id,
|
|
1676
|
-
code: obj.code,
|
|
1677
|
-
version: obj.version,
|
|
1678
|
-
apportion_amount: obj.apportion_amount,
|
|
1679
|
-
calculated_amount: obj.calculated_amount,
|
|
1680
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1681
|
-
volume: obj.volume,
|
|
1682
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
1683
|
-
/** @type {?} */
|
|
1684
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1685
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
1686
|
-
* @param {?} response
|
|
1687
|
-
* @return {?}
|
|
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
|
-
*/function (error) {
|
|
1699
|
-
_this.errorMessage = error;
|
|
1700
|
-
_this.isConfirmationBtnDisabled = false;
|
|
1701
|
-
_this.cd.detectChanges();
|
|
1702
|
-
}));
|
|
1703
|
-
};
|
|
1704
|
-
/**
|
|
1705
|
-
* @param {?=} note
|
|
1706
|
-
* @return {?}
|
|
1707
|
-
*/
|
|
1708
|
-
PaymentViewComponent.prototype.gotoAddressPage = /**
|
|
1709
|
-
* @param {?=} note
|
|
1710
|
-
* @return {?}
|
|
1711
|
-
*/
|
|
1712
|
-
function (note) {
|
|
1713
|
-
if (note) {
|
|
1714
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1715
|
-
}
|
|
1716
|
-
this.errorMessage = '';
|
|
1717
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1718
|
-
};
|
|
1719
1628
|
/**
|
|
1720
1629
|
* @param {?} payment
|
|
1721
1630
|
* @param {?} remission
|
|
@@ -1730,40 +1639,56 @@
|
|
|
1730
1639
|
*/
|
|
1731
1640
|
function (payment, remission, fees) {
|
|
1732
1641
|
var _this = this;
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
*/function (paymentGroup) {
|
|
1738
|
-
_this.paymentGroup = paymentGroup;
|
|
1739
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1740
|
-
* @param {?} paymentGroupObj
|
|
1642
|
+
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1643
|
+
this.payment = payment;
|
|
1644
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
1645
|
+
* @param {?} paymentGroup
|
|
1741
1646
|
* @return {?}
|
|
1742
|
-
*/function (
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1647
|
+
*/function (paymentGroup) {
|
|
1648
|
+
_this.paymentGroup = paymentGroup;
|
|
1649
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1650
|
+
* @param {?} paymentGroupObj
|
|
1651
|
+
* @return {?}
|
|
1652
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1653
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1654
|
+
_this.remissions = remission;
|
|
1655
|
+
_this.remissionFeeAmt = fees.filter(( /**
|
|
1656
|
+
* @param {?} data
|
|
1657
|
+
* @return {?}
|
|
1658
|
+
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1659
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1660
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1661
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1662
|
+
}), ( /**
|
|
1663
|
+
* @param {?} error
|
|
1747
1664
|
* @return {?}
|
|
1748
|
-
*/function (
|
|
1749
|
-
|
|
1750
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1751
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1752
|
-
}), ( /**
|
|
1753
|
-
* @param {?} error
|
|
1754
|
-
* @return {?}
|
|
1755
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
1756
|
-
//}
|
|
1665
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
1666
|
+
}
|
|
1757
1667
|
};
|
|
1758
1668
|
/**
|
|
1759
1669
|
* @return {?}
|
|
1760
1670
|
*/
|
|
1761
|
-
PaymentViewComponent.prototype.
|
|
1671
|
+
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
1762
1672
|
* @return {?}
|
|
1763
1673
|
*/
|
|
1764
1674
|
function () {
|
|
1765
|
-
|
|
1766
|
-
this.
|
|
1675
|
+
var _this = this;
|
|
1676
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1677
|
+
this.paymentGroup.payments.forEach(( /**
|
|
1678
|
+
* @param {?} payment
|
|
1679
|
+
* @return {?}
|
|
1680
|
+
*/function (payment) {
|
|
1681
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1682
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1683
|
+
}
|
|
1684
|
+
}));
|
|
1685
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1686
|
+
return true;
|
|
1687
|
+
}
|
|
1688
|
+
else {
|
|
1689
|
+
return false;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1767
1692
|
};
|
|
1768
1693
|
/**
|
|
1769
1694
|
* @param {?} paymentgrp
|
|
@@ -1775,18 +1700,13 @@
|
|
|
1775
1700
|
*/
|
|
1776
1701
|
function (paymentgrp) {
|
|
1777
1702
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1778
|
-
if (this.
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
this.isRefundRemission = true;
|
|
1786
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1787
|
-
this.isFromPaymentDetailPage = true;
|
|
1788
|
-
this.isFromServiceRequestPage = false;
|
|
1789
|
-
}
|
|
1703
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1704
|
+
this.paymentGroup = paymentgrp;
|
|
1705
|
+
this.viewStatus = 'issuerefund';
|
|
1706
|
+
this.isRefundRemission = true;
|
|
1707
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1708
|
+
this.isFromPaymentDetailPage = true;
|
|
1709
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1790
1710
|
}
|
|
1791
1711
|
}
|
|
1792
1712
|
};
|
|
@@ -1831,110 +1751,79 @@
|
|
|
1831
1751
|
* @param {?} payment
|
|
1832
1752
|
* @return {?}
|
|
1833
1753
|
*/
|
|
1834
|
-
PaymentViewComponent.prototype.
|
|
1754
|
+
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
1835
1755
|
* @param {?} payment
|
|
1836
1756
|
* @return {?}
|
|
1837
1757
|
*/
|
|
1838
1758
|
function (payment) {
|
|
1839
|
-
if (
|
|
1840
|
-
|
|
1759
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
1760
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
1761
|
+
this.isIssueRefunfBtnEnable = true;
|
|
1762
|
+
}
|
|
1763
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
1764
|
+
return true;
|
|
1841
1765
|
}
|
|
1842
1766
|
else {
|
|
1843
1767
|
return false;
|
|
1844
1768
|
}
|
|
1845
1769
|
};
|
|
1846
1770
|
/**
|
|
1847
|
-
* @param {?} remission
|
|
1848
1771
|
* @return {?}
|
|
1849
1772
|
*/
|
|
1850
|
-
PaymentViewComponent.prototype.
|
|
1851
|
-
* @param {?} remission
|
|
1773
|
+
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
1852
1774
|
* @return {?}
|
|
1853
1775
|
*/
|
|
1854
|
-
function (
|
|
1855
|
-
if (
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1776
|
+
function () {
|
|
1777
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1778
|
+
/** @type {?} */
|
|
1779
|
+
var payment = this.paymentGroup.payments[0];
|
|
1780
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1781
|
+
return true;
|
|
1782
|
+
}
|
|
1859
1783
|
return false;
|
|
1860
1784
|
}
|
|
1861
1785
|
};
|
|
1862
1786
|
/**
|
|
1863
|
-
* @param {?}
|
|
1787
|
+
* @param {?} feeCode
|
|
1864
1788
|
* @return {?}
|
|
1865
1789
|
*/
|
|
1866
|
-
PaymentViewComponent.prototype.
|
|
1867
|
-
* @param {?}
|
|
1790
|
+
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
1791
|
+
* @param {?} feeCode
|
|
1868
1792
|
* @return {?}
|
|
1869
1793
|
*/
|
|
1870
|
-
function (
|
|
1871
|
-
|
|
1872
|
-
|
|
1794
|
+
function (feeCode) {
|
|
1795
|
+
var e_2, _a;
|
|
1796
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
1797
|
+
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1798
|
+
try {
|
|
1799
|
+
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1800
|
+
var remission = _c.value;
|
|
1801
|
+
if (remission.fee_code === feeCode) {
|
|
1802
|
+
return false;
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
catch (e_2_1) {
|
|
1807
|
+
e_2 = { error: e_2_1 };
|
|
1808
|
+
}
|
|
1809
|
+
finally {
|
|
1810
|
+
try {
|
|
1811
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
1812
|
+
_a.call(_b);
|
|
1813
|
+
}
|
|
1814
|
+
finally {
|
|
1815
|
+
if (e_2)
|
|
1816
|
+
throw e_2.error;
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
return true;
|
|
1820
|
+
}
|
|
1821
|
+
return true;
|
|
1873
1822
|
}
|
|
1874
1823
|
else {
|
|
1875
1824
|
return false;
|
|
1876
1825
|
}
|
|
1877
1826
|
};
|
|
1878
|
-
/**
|
|
1879
|
-
* @param {?} paymentType
|
|
1880
|
-
* @return {?}
|
|
1881
|
-
*/
|
|
1882
|
-
PaymentViewComponent.prototype.selectPymentOption = /**
|
|
1883
|
-
* @param {?} paymentType
|
|
1884
|
-
* @return {?}
|
|
1885
|
-
*/
|
|
1886
|
-
function (paymentType) {
|
|
1887
|
-
this.paymentType = paymentType;
|
|
1888
|
-
this.isContinueBtnDisabled = false;
|
|
1889
|
-
};
|
|
1890
|
-
/**
|
|
1891
|
-
* @param {?} paymentgrp
|
|
1892
|
-
* @return {?}
|
|
1893
|
-
*/
|
|
1894
|
-
PaymentViewComponent.prototype.continuePayment = /**
|
|
1895
|
-
* @param {?} paymentgrp
|
|
1896
|
-
* @return {?}
|
|
1897
|
-
*/
|
|
1898
|
-
function (paymentgrp) {
|
|
1899
|
-
if (this.paymentType === 'op') {
|
|
1900
|
-
this.isFullyRefund = false;
|
|
1901
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1902
|
-
}
|
|
1903
|
-
else if (this.paymentType === 'fp') {
|
|
1904
|
-
this.isFullyRefund = true;
|
|
1905
|
-
this.paymentGroup = paymentgrp;
|
|
1906
|
-
this.viewStatus = 'issuerefund';
|
|
1907
|
-
this.viewCompStatus = "";
|
|
1908
|
-
this.isRefundRemission = true;
|
|
1909
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1910
|
-
this.isFromPaymentDetailPage = true;
|
|
1911
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
/**
|
|
1915
|
-
* @param {?} event
|
|
1916
|
-
* @return {?}
|
|
1917
|
-
*/
|
|
1918
|
-
PaymentViewComponent.prototype.gotoPaymentSelectPage = /**
|
|
1919
|
-
* @param {?} event
|
|
1920
|
-
* @return {?}
|
|
1921
|
-
*/
|
|
1922
|
-
function (event) {
|
|
1923
|
-
event.preventDefault();
|
|
1924
|
-
this.viewCompStatus = 'overpayment';
|
|
1925
|
-
};
|
|
1926
|
-
/**
|
|
1927
|
-
* @param {?} obj
|
|
1928
|
-
* @return {?}
|
|
1929
|
-
*/
|
|
1930
|
-
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1931
|
-
* @param {?} obj
|
|
1932
|
-
* @return {?}
|
|
1933
|
-
*/
|
|
1934
|
-
function (obj) {
|
|
1935
|
-
this.contactDetailsObj = obj;
|
|
1936
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1937
|
-
};
|
|
1938
1827
|
/**
|
|
1939
1828
|
* @return {?}
|
|
1940
1829
|
*/
|
|
@@ -1954,8 +1843,8 @@
|
|
|
1954
1843
|
PaymentViewComponent.decorators = [
|
|
1955
1844
|
{ type: i0.Component, args: [{
|
|
1956
1845
|
selector: 'ccpay-payment-view',
|
|
1957
|
-
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>",
|
|
1958
|
-
styles: [".
|
|
1846
|
+
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",
|
|
1847
|
+
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}"]
|
|
1959
1848
|
}] }
|
|
1960
1849
|
];
|
|
1961
1850
|
/** @nocollapse */
|
|
@@ -2123,21 +2012,6 @@
|
|
|
2123
2012
|
function (body) {
|
|
2124
2013
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2125
2014
|
};
|
|
2126
|
-
/**
|
|
2127
|
-
* @param {?} body
|
|
2128
|
-
* @param {?} refundRef
|
|
2129
|
-
* @param {?} notificationType
|
|
2130
|
-
* @return {?}
|
|
2131
|
-
*/
|
|
2132
|
-
RefundsService.prototype.putResendOrEdit = /**
|
|
2133
|
-
* @param {?} body
|
|
2134
|
-
* @param {?} refundRef
|
|
2135
|
-
* @param {?} notificationType
|
|
2136
|
-
* @return {?}
|
|
2137
|
-
*/
|
|
2138
|
-
function (body, refundRef, notificationType) {
|
|
2139
|
-
return this.https.put(this.paymentLibService.REFUNDS_API_ROOT + "/resend/notification/" + refundRef + "?notificationType=" + notificationType, body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2140
|
-
};
|
|
2141
2015
|
/**
|
|
2142
2016
|
* @param {?} body
|
|
2143
2017
|
* @param {?} refund_reference
|
|
@@ -2222,9 +2096,8 @@
|
|
|
2222
2096
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2223
2097
|
*/
|
|
2224
2098
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2225
|
-
function ProcessRefundComponent(RefundsService$$1,
|
|
2099
|
+
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2226
2100
|
this.RefundsService = RefundsService$$1;
|
|
2227
|
-
this.paymentViewService = paymentViewService;
|
|
2228
2101
|
this.formBuilder = formBuilder;
|
|
2229
2102
|
this.OrderslistService = OrderslistService$$1;
|
|
2230
2103
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2247,7 +2120,6 @@
|
|
|
2247
2120
|
this.isReasonEmpty = false;
|
|
2248
2121
|
this.isReasonInvalid = false;
|
|
2249
2122
|
this.successMsg = null;
|
|
2250
|
-
this.cpoDetails = null;
|
|
2251
2123
|
this.isConfirmButtondisabled = true;
|
|
2252
2124
|
}
|
|
2253
2125
|
/**
|
|
@@ -2293,18 +2165,6 @@
|
|
|
2293
2165
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2294
2166
|
this.isFromRefundListPage = true;
|
|
2295
2167
|
}
|
|
2296
|
-
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe(( /**
|
|
2297
|
-
* @param {?} response
|
|
2298
|
-
* @return {?}
|
|
2299
|
-
*/function (response) {
|
|
2300
|
-
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2301
|
-
}), ( /**
|
|
2302
|
-
* @param {?} error
|
|
2303
|
-
* @return {?}
|
|
2304
|
-
*/function (error) {
|
|
2305
|
-
_this.errorMessage = ( /** @type {?} */(error.replace(/"/g, "")));
|
|
2306
|
-
_this.isCPODown = true;
|
|
2307
|
-
}));
|
|
2308
2168
|
};
|
|
2309
2169
|
/**
|
|
2310
2170
|
* @param {?} code
|
|
@@ -2639,10 +2499,19 @@
|
|
|
2639
2499
|
this.isReasonInvalid = vals[7];
|
|
2640
2500
|
}
|
|
2641
2501
|
};
|
|
2502
|
+
/**
|
|
2503
|
+
* @return {?}
|
|
2504
|
+
*/
|
|
2505
|
+
ProcessRefundComponent.prototype.goToCaseReview = /**
|
|
2506
|
+
* @return {?}
|
|
2507
|
+
*/
|
|
2508
|
+
function () {
|
|
2509
|
+
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2510
|
+
};
|
|
2642
2511
|
ProcessRefundComponent.decorators = [
|
|
2643
2512
|
{ type: i0.Component, args: [{
|
|
2644
2513
|
selector: 'ccpay-process-refund',
|
|
2645
|
-
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",
|
|
2646
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}"]
|
|
2647
2516
|
}] }
|
|
2648
2517
|
];
|
|
@@ -2650,7 +2519,6 @@
|
|
|
2650
2519
|
ProcessRefundComponent.ctorParameters = function () {
|
|
2651
2520
|
return [
|
|
2652
2521
|
{ type: RefundsService },
|
|
2653
|
-
{ type: PaymentViewService },
|
|
2654
2522
|
{ type: forms.FormBuilder },
|
|
2655
2523
|
{ type: OrderslistService },
|
|
2656
2524
|
{ type: PaymentLibComponent },
|
|
@@ -2674,10 +2542,10 @@
|
|
|
2674
2542
|
this.refundService = refundService;
|
|
2675
2543
|
this.submittedRefundList = [];
|
|
2676
2544
|
this.rejectedRefundList = [];
|
|
2677
|
-
// approvalStatus = 'Sent for approval';
|
|
2678
|
-
// rejectStatus = 'Update required';
|
|
2679
2545
|
this.approvalStatus = 'Sent for approval';
|
|
2680
2546
|
this.rejectStatus = 'Update required';
|
|
2547
|
+
// approvalStatus = 'sent for approval';
|
|
2548
|
+
// rejectStatus = 'sent back';
|
|
2681
2549
|
this.errorMessage = null;
|
|
2682
2550
|
this.isAuthorized = true;
|
|
2683
2551
|
}
|
|
@@ -2961,456 +2829,13 @@
|
|
|
2961
2829
|
* @fileoverview added by tsickle
|
|
2962
2830
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2963
2831
|
*/
|
|
2964
|
-
var
|
|
2965
|
-
function
|
|
2966
|
-
this.http = http;
|
|
2967
|
-
this.https = https;
|
|
2968
|
-
this.errorHandlerService = errorHandlerService;
|
|
2969
|
-
this.paymentLibService = paymentLibService;
|
|
2832
|
+
var PbaDetailsComponent = /** @class */ (function () {
|
|
2833
|
+
function PbaDetailsComponent() {
|
|
2970
2834
|
}
|
|
2971
2835
|
/**
|
|
2972
|
-
* @param {?} reference
|
|
2973
2836
|
* @return {?}
|
|
2974
2837
|
*/
|
|
2975
|
-
|
|
2976
|
-
* @param {?} reference
|
|
2977
|
-
* @return {?}
|
|
2978
|
-
*/
|
|
2979
|
-
function (reference) {
|
|
2980
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/notifications/" + reference, {
|
|
2981
|
-
withCredentials: true
|
|
2982
|
-
})
|
|
2983
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2984
|
-
};
|
|
2985
|
-
/**
|
|
2986
|
-
* @param {?} postcode
|
|
2987
|
-
* @return {?}
|
|
2988
|
-
*/
|
|
2989
|
-
NotificationService.prototype.getAddressByPostcode = /**
|
|
2990
|
-
* @param {?} postcode
|
|
2991
|
-
* @return {?}
|
|
2992
|
-
*/
|
|
2993
|
-
function (postcode) {
|
|
2994
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/search/places/v1/postcode?postcode=" + postcode, {
|
|
2995
|
-
withCredentials: true
|
|
2996
|
-
})
|
|
2997
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2998
|
-
};
|
|
2999
|
-
NotificationService.decorators = [
|
|
3000
|
-
{ type: i0.Injectable, args: [{
|
|
3001
|
-
providedIn: 'root'
|
|
3002
|
-
},] }
|
|
3003
|
-
];
|
|
3004
|
-
/** @nocollapse */
|
|
3005
|
-
NotificationService.ctorParameters = function () {
|
|
3006
|
-
return [
|
|
3007
|
-
{ type: i1.HttpClient },
|
|
3008
|
-
{ type: WebComponentHttpClient },
|
|
3009
|
-
{ type: ErrorHandlerService },
|
|
3010
|
-
{ type: PaymentLibService }
|
|
3011
|
-
];
|
|
3012
|
-
};
|
|
3013
|
-
/** @nocollapse */ NotificationService.ngInjectableDef = i0.defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0.inject(i1.HttpClient), i0.inject(WebComponentHttpClient), i0.inject(ErrorHandlerService), i0.inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
|
|
3014
|
-
return NotificationService;
|
|
3015
|
-
}());
|
|
3016
|
-
|
|
3017
|
-
/**
|
|
3018
|
-
* @fileoverview added by tsickle
|
|
3019
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3020
|
-
*/
|
|
3021
|
-
var ContactDetailsComponent = /** @class */ (function () {
|
|
3022
|
-
function ContactDetailsComponent(formBuilder, notificationService, paymentLibComponent) {
|
|
3023
|
-
this.formBuilder = formBuilder;
|
|
3024
|
-
this.notificationService = notificationService;
|
|
3025
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
3026
|
-
this.assignContactDetails = new i0.EventEmitter();
|
|
3027
|
-
this.assignContactDetailsInFefundsList = new i0.EventEmitter();
|
|
3028
|
-
this.redirectToIssueRefund = new i0.EventEmitter();
|
|
3029
|
-
this.pageTitle = 'Payment status history';
|
|
3030
|
-
this.isEmailSAddressClicked = true;
|
|
3031
|
-
this.isShowPickAddress = false;
|
|
3032
|
-
this.isPostcodeClicked = false;
|
|
3033
|
-
this.isManualAddressClicked = false;
|
|
3034
|
-
this.addressPostcodeList = [];
|
|
3035
|
-
this.isAddressBoxEmpty = false;
|
|
3036
|
-
this.isEmailEmpty = false;
|
|
3037
|
-
this.emailHasError = false;
|
|
3038
|
-
this.isPostcodeEmpty = false;
|
|
3039
|
-
this.postcodeHasError = false;
|
|
3040
|
-
this.isaddressLine1Empty = false;
|
|
3041
|
-
this.addressLine1HasError = false;
|
|
3042
|
-
this.addressLine2HasError = false;
|
|
3043
|
-
this.isTownOrCityEmpty = false;
|
|
3044
|
-
this.townOrCityHasError = false;
|
|
3045
|
-
this.isCountyEmpty = false;
|
|
3046
|
-
this.countyHasError = false;
|
|
3047
|
-
this.isMPostcodeEmpty = false;
|
|
3048
|
-
this.mpostcodeHasError = false;
|
|
3049
|
-
this.isCountryEmpty = false;
|
|
3050
|
-
}
|
|
3051
|
-
/**
|
|
3052
|
-
* @return {?}
|
|
3053
|
-
*/
|
|
3054
|
-
ContactDetailsComponent.prototype.ngOnInit = /**
|
|
3055
|
-
* @return {?}
|
|
3056
|
-
*/
|
|
3057
|
-
function () {
|
|
3058
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3059
|
-
this.emailAddressForm = this.formBuilder.group({
|
|
3060
|
-
email: new forms.FormControl('', forms.Validators.compose([
|
|
3061
|
-
forms.Validators.required,
|
|
3062
|
-
forms.Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
3063
|
-
]))
|
|
3064
|
-
});
|
|
3065
|
-
this.postCodeForm = this.formBuilder.group({
|
|
3066
|
-
postcode: new forms.FormControl('', forms.Validators.compose([
|
|
3067
|
-
forms.Validators.required,
|
|
3068
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3069
|
-
]))
|
|
3070
|
-
});
|
|
3071
|
-
this.manualAddressForm = this.formBuilder.group({
|
|
3072
|
-
addressl1: new forms.FormControl('', forms.Validators.compose([
|
|
3073
|
-
forms.Validators.required,
|
|
3074
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3075
|
-
])),
|
|
3076
|
-
addressl2: new forms.FormControl('', forms.Validators.compose([
|
|
3077
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3078
|
-
])),
|
|
3079
|
-
townorcity: new forms.FormControl('', forms.Validators.compose([
|
|
3080
|
-
forms.Validators.required,
|
|
3081
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3082
|
-
])),
|
|
3083
|
-
county: new forms.FormControl('', forms.Validators.compose([
|
|
3084
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3085
|
-
])),
|
|
3086
|
-
mpostcode: new forms.FormControl('', forms.Validators.compose([
|
|
3087
|
-
forms.Validators.required,
|
|
3088
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3089
|
-
])),
|
|
3090
|
-
country: new forms.FormControl('', forms.Validators.compose([
|
|
3091
|
-
forms.Validators.required
|
|
3092
|
-
]))
|
|
3093
|
-
});
|
|
3094
|
-
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
3095
|
-
this.setEditDetails();
|
|
3096
|
-
}
|
|
3097
|
-
if (this.isEditOperationInRefundList === undefined) {
|
|
3098
|
-
this.isEditOperationInRefundList = false;
|
|
3099
|
-
}
|
|
3100
|
-
};
|
|
3101
|
-
/**
|
|
3102
|
-
* @return {?}
|
|
3103
|
-
*/
|
|
3104
|
-
ContactDetailsComponent.prototype.setEditDetails = /**
|
|
3105
|
-
* @return {?}
|
|
3106
|
-
*/
|
|
3107
|
-
function () {
|
|
3108
|
-
if (this.addressObj.notification_type === 'EMAIL') {
|
|
3109
|
-
this.isEmailSAddressClicked = true;
|
|
3110
|
-
this.isPostcodeClicked = false;
|
|
3111
|
-
this.isManualAddressClicked = false;
|
|
3112
|
-
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
3113
|
-
}
|
|
3114
|
-
else if (this.addressObj.notification_type === 'LETTER') {
|
|
3115
|
-
this.isEmailSAddressClicked = false;
|
|
3116
|
-
this.isPostcodeClicked = true;
|
|
3117
|
-
this.isManualAddressClicked = true;
|
|
3118
|
-
this.manualAddressForm.patchValue({
|
|
3119
|
-
addressl1: this.addressObj.contact_details.address_line,
|
|
3120
|
-
townorcity: this.addressObj.contact_details.city,
|
|
3121
|
-
county: this.addressObj.contact_details.county,
|
|
3122
|
-
country: this.addressObj.contact_details.country,
|
|
3123
|
-
mpostcode: this.addressObj.contact_details.postal_code
|
|
3124
|
-
});
|
|
3125
|
-
}
|
|
3126
|
-
};
|
|
3127
|
-
/**
|
|
3128
|
-
* @param {?} type
|
|
3129
|
-
* @param {?} isLinkedClied
|
|
3130
|
-
* @return {?}
|
|
3131
|
-
*/
|
|
3132
|
-
ContactDetailsComponent.prototype.selectContactOption = /**
|
|
3133
|
-
* @param {?} type
|
|
3134
|
-
* @param {?} isLinkedClied
|
|
3135
|
-
* @return {?}
|
|
3136
|
-
*/
|
|
3137
|
-
function (type, isLinkedClied) {
|
|
3138
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3139
|
-
if (type === 'Email' && isLinkedClied === 'false') {
|
|
3140
|
-
this.isEmailSAddressClicked = true;
|
|
3141
|
-
this.isPostcodeClicked = false;
|
|
3142
|
-
this.isManualAddressClicked = false;
|
|
3143
|
-
}
|
|
3144
|
-
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
3145
|
-
this.isEmailSAddressClicked = false;
|
|
3146
|
-
this.isPostcodeClicked = true;
|
|
3147
|
-
this.isManualAddressClicked = false;
|
|
3148
|
-
}
|
|
3149
|
-
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
3150
|
-
this.isEmailSAddressClicked = false;
|
|
3151
|
-
this.isPostcodeClicked = true;
|
|
3152
|
-
this.isManualAddressClicked = true;
|
|
3153
|
-
}
|
|
3154
|
-
};
|
|
3155
|
-
/**
|
|
3156
|
-
* @return {?}
|
|
3157
|
-
*/
|
|
3158
|
-
ContactDetailsComponent.prototype.finalFormSubmit = /**
|
|
3159
|
-
* @return {?}
|
|
3160
|
-
*/
|
|
3161
|
-
function () {
|
|
3162
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3163
|
-
if (this.isEmailSAddressClicked) {
|
|
3164
|
-
/** @type {?} */
|
|
3165
|
-
var emailField = this.emailAddressForm.controls.email;
|
|
3166
|
-
if (this.emailAddressForm.valid) {
|
|
3167
|
-
if (!this.isEditOperationInRefundList) {
|
|
3168
|
-
this.assignContactDetails.emit({
|
|
3169
|
-
email: emailField.value,
|
|
3170
|
-
notification_type: 'EMAIL'
|
|
3171
|
-
});
|
|
3172
|
-
}
|
|
3173
|
-
else {
|
|
3174
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3175
|
-
email: emailField.value,
|
|
3176
|
-
notification_type: 'EMAIL'
|
|
3177
|
-
});
|
|
3178
|
-
}
|
|
3179
|
-
}
|
|
3180
|
-
else {
|
|
3181
|
-
if (emailField.value == '') {
|
|
3182
|
-
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3183
|
-
}
|
|
3184
|
-
if (emailField.value != '' && emailField.invalid) {
|
|
3185
|
-
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3186
|
-
}
|
|
3187
|
-
}
|
|
3188
|
-
}
|
|
3189
|
-
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
3190
|
-
this.postcodeValidation('FS');
|
|
3191
|
-
}
|
|
3192
|
-
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
3193
|
-
/** @type {?} */
|
|
3194
|
-
var fieldCtrls = this.manualAddressForm.controls;
|
|
3195
|
-
if (this.manualAddressForm.valid) {
|
|
3196
|
-
if (!this.isEditOperationInRefundList) {
|
|
3197
|
-
this.assignContactDetails.emit({
|
|
3198
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3199
|
-
city: fieldCtrls.townorcity.value,
|
|
3200
|
-
county: fieldCtrls.county.value,
|
|
3201
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3202
|
-
country: fieldCtrls.country.value,
|
|
3203
|
-
notification_type: 'LETTER'
|
|
3204
|
-
});
|
|
3205
|
-
}
|
|
3206
|
-
else {
|
|
3207
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3208
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3209
|
-
city: fieldCtrls.townorcity.value,
|
|
3210
|
-
county: fieldCtrls.county.value,
|
|
3211
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3212
|
-
country: fieldCtrls.country.value,
|
|
3213
|
-
notification_type: 'LETTER'
|
|
3214
|
-
});
|
|
3215
|
-
}
|
|
3216
|
-
}
|
|
3217
|
-
else {
|
|
3218
|
-
if (fieldCtrls.addressl1.value == '') {
|
|
3219
|
-
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
3220
|
-
}
|
|
3221
|
-
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
3222
|
-
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
3223
|
-
}
|
|
3224
|
-
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
3225
|
-
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
3226
|
-
}
|
|
3227
|
-
if (fieldCtrls.townorcity.value == '') {
|
|
3228
|
-
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
3229
|
-
}
|
|
3230
|
-
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
3231
|
-
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
3232
|
-
}
|
|
3233
|
-
if (fieldCtrls.county.value == '') {
|
|
3234
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
3235
|
-
}
|
|
3236
|
-
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
3237
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
3238
|
-
}
|
|
3239
|
-
if (fieldCtrls.mpostcode.value == '') {
|
|
3240
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
3241
|
-
}
|
|
3242
|
-
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
3243
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
3244
|
-
}
|
|
3245
|
-
if (fieldCtrls.country.value == '') {
|
|
3246
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
3247
|
-
}
|
|
3248
|
-
}
|
|
3249
|
-
}
|
|
3250
|
-
};
|
|
3251
|
-
/**
|
|
3252
|
-
* @param {?} str
|
|
3253
|
-
* @return {?}
|
|
3254
|
-
*/
|
|
3255
|
-
ContactDetailsComponent.prototype.postcodeValidation = /**
|
|
3256
|
-
* @param {?} str
|
|
3257
|
-
* @return {?}
|
|
3258
|
-
*/
|
|
3259
|
-
function (str) {
|
|
3260
|
-
var _this = this;
|
|
3261
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3262
|
-
/** @type {?} */
|
|
3263
|
-
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3264
|
-
if (this.postCodeForm.valid) {
|
|
3265
|
-
if (str === 'FA') {
|
|
3266
|
-
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe(( /**
|
|
3267
|
-
* @param {?} refundsNotification
|
|
3268
|
-
* @return {?}
|
|
3269
|
-
*/function (refundsNotification) {
|
|
3270
|
-
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3271
|
-
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3272
|
-
if (!_this.isShowPickAddress) {
|
|
3273
|
-
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3274
|
-
}
|
|
3275
|
-
})),
|
|
3276
|
-
( /**
|
|
3277
|
-
* @param {?} error
|
|
3278
|
-
* @return {?}
|
|
3279
|
-
*/function (error) {
|
|
3280
|
-
_this.isShowPickAddress = false;
|
|
3281
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
3282
|
-
});
|
|
3283
|
-
}
|
|
3284
|
-
else if (str === 'FS') {
|
|
3285
|
-
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
3286
|
-
this.isAddressBoxEmpty = false;
|
|
3287
|
-
/** @type {?} */
|
|
3288
|
-
var addressLine = "";
|
|
3289
|
-
/** @type {?} */
|
|
3290
|
-
var addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
3291
|
-
for (var i = 0; i < addressArray.length - 2; i++) {
|
|
3292
|
-
addressLine += addressArray[i];
|
|
3293
|
-
}
|
|
3294
|
-
/** @type {?} */
|
|
3295
|
-
var addressObject = {
|
|
3296
|
-
address_line: addressLine,
|
|
3297
|
-
city: this.postcodeAddress.POST_TOWN,
|
|
3298
|
-
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
3299
|
-
postal_code: this.postcodeAddress.POSTCODE,
|
|
3300
|
-
country: 'United Kingdom',
|
|
3301
|
-
notification_type: 'LETTER'
|
|
3302
|
-
};
|
|
3303
|
-
if (!this.isEditOperationInRefundList) {
|
|
3304
|
-
this.assignContactDetails.emit(addressObject);
|
|
3305
|
-
}
|
|
3306
|
-
else {
|
|
3307
|
-
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
3308
|
-
}
|
|
3309
|
-
}
|
|
3310
|
-
else {
|
|
3311
|
-
this.isAddressBoxEmpty = true;
|
|
3312
|
-
}
|
|
3313
|
-
}
|
|
3314
|
-
}
|
|
3315
|
-
else {
|
|
3316
|
-
if (postcodeField.value == '') {
|
|
3317
|
-
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3318
|
-
}
|
|
3319
|
-
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
3320
|
-
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3321
|
-
}
|
|
3322
|
-
}
|
|
3323
|
-
};
|
|
3324
|
-
/**
|
|
3325
|
-
* @param {?} event
|
|
3326
|
-
* @return {?}
|
|
3327
|
-
*/
|
|
3328
|
-
ContactDetailsComponent.prototype.redirection = /**
|
|
3329
|
-
* @param {?} event
|
|
3330
|
-
* @return {?}
|
|
3331
|
-
*/
|
|
3332
|
-
function (event) {
|
|
3333
|
-
this.redirectToIssueRefund.emit(event);
|
|
3334
|
-
};
|
|
3335
|
-
/**
|
|
3336
|
-
* @param {?} val
|
|
3337
|
-
* @param {?} field
|
|
3338
|
-
* @return {?}
|
|
3339
|
-
*/
|
|
3340
|
-
ContactDetailsComponent.prototype.resetForm = /**
|
|
3341
|
-
* @param {?} val
|
|
3342
|
-
* @param {?} field
|
|
3343
|
-
* @return {?}
|
|
3344
|
-
*/
|
|
3345
|
-
function (val, field) {
|
|
3346
|
-
if (field === 'email' || field === 'all') {
|
|
3347
|
-
this.isEmailEmpty = val[0];
|
|
3348
|
-
this.emailHasError = val[1];
|
|
3349
|
-
}
|
|
3350
|
-
if (field === 'postcode' || field === 'all') {
|
|
3351
|
-
this.isPostcodeEmpty = val[2];
|
|
3352
|
-
this.postcodeHasError = val[3];
|
|
3353
|
-
}
|
|
3354
|
-
if (field === 'address1' || field === 'all') {
|
|
3355
|
-
this.isaddressLine1Empty = val[4];
|
|
3356
|
-
this.addressLine1HasError = val[5];
|
|
3357
|
-
}
|
|
3358
|
-
if (field === 'address2' || field === 'all') {
|
|
3359
|
-
this.addressLine2HasError = val[6];
|
|
3360
|
-
}
|
|
3361
|
-
if (field === 'town' || field === 'all') {
|
|
3362
|
-
this.isTownOrCityEmpty = val[7];
|
|
3363
|
-
this.townOrCityHasError = val[8];
|
|
3364
|
-
}
|
|
3365
|
-
if (field === 'county' || field === 'all') {
|
|
3366
|
-
this.isCountyEmpty = val[9];
|
|
3367
|
-
this.countyHasError = val[10];
|
|
3368
|
-
}
|
|
3369
|
-
if (field === 'mpostcode' || field === 'all') {
|
|
3370
|
-
this.isMPostcodeEmpty = val[11];
|
|
3371
|
-
this.mpostcodeHasError = val[12];
|
|
3372
|
-
}
|
|
3373
|
-
if (field === 'country' || field === 'all') {
|
|
3374
|
-
this.isCountryEmpty = val[13];
|
|
3375
|
-
}
|
|
3376
|
-
};
|
|
3377
|
-
ContactDetailsComponent.decorators = [
|
|
3378
|
-
{ type: i0.Component, args: [{
|
|
3379
|
-
selector: 'ccpay-contact-details',
|
|
3380
|
-
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>",
|
|
3381
|
-
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}"]
|
|
3382
|
-
}] }
|
|
3383
|
-
];
|
|
3384
|
-
/** @nocollapse */
|
|
3385
|
-
ContactDetailsComponent.ctorParameters = function () {
|
|
3386
|
-
return [
|
|
3387
|
-
{ type: forms.FormBuilder },
|
|
3388
|
-
{ type: NotificationService },
|
|
3389
|
-
{ type: PaymentLibComponent }
|
|
3390
|
-
];
|
|
3391
|
-
};
|
|
3392
|
-
ContactDetailsComponent.propDecorators = {
|
|
3393
|
-
isEditOperation: [{ type: i0.Input, args: ['isEditOperation',] }],
|
|
3394
|
-
isEditOperationInRefundList: [{ type: i0.Input, args: ['isEditOperationInRefundList',] }],
|
|
3395
|
-
addressObj: [{ type: i0.Input, args: ['addressObj',] }],
|
|
3396
|
-
assignContactDetails: [{ type: i0.Output }],
|
|
3397
|
-
assignContactDetailsInFefundsList: [{ type: i0.Output }],
|
|
3398
|
-
redirectToIssueRefund: [{ type: i0.Output }]
|
|
3399
|
-
};
|
|
3400
|
-
return ContactDetailsComponent;
|
|
3401
|
-
}());
|
|
3402
|
-
|
|
3403
|
-
/**
|
|
3404
|
-
* @fileoverview added by tsickle
|
|
3405
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3406
|
-
*/
|
|
3407
|
-
var PbaDetailsComponent = /** @class */ (function () {
|
|
3408
|
-
function PbaDetailsComponent() {
|
|
3409
|
-
}
|
|
3410
|
-
/**
|
|
3411
|
-
* @return {?}
|
|
3412
|
-
*/
|
|
3413
|
-
PbaDetailsComponent.prototype.ngOnInit = /**
|
|
2838
|
+
PbaDetailsComponent.prototype.ngOnInit = /**
|
|
3414
2839
|
* @return {?}
|
|
3415
2840
|
*/
|
|
3416
2841
|
function () {
|
|
@@ -3753,7 +3178,6 @@
|
|
|
3753
3178
|
this.viewStatus = 'main';
|
|
3754
3179
|
this.isRemoveBtnDisabled = false;
|
|
3755
3180
|
this.clAmountDue = 0;
|
|
3756
|
-
this.overPaymentAmount = 0;
|
|
3757
3181
|
this.isFeeRecordsExist = false;
|
|
3758
3182
|
this.isGrpOutstandingAmtPositive = false;
|
|
3759
3183
|
//Order changes
|
|
@@ -3844,20 +3268,12 @@
|
|
|
3844
3268
|
}
|
|
3845
3269
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3846
3270
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
this.serviceRequestValue = 'true';
|
|
3851
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3852
|
-
}
|
|
3853
|
-
else {
|
|
3854
|
-
this.serviceRequestValue = 'false';
|
|
3855
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3856
|
-
}
|
|
3271
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
|
|
3272
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3273
|
+
this.serviceRequestValue = 'true';
|
|
3857
3274
|
}
|
|
3858
3275
|
else {
|
|
3859
3276
|
this.serviceRequestValue = 'false';
|
|
3860
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3861
3277
|
}
|
|
3862
3278
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3863
3279
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -4061,7 +3477,6 @@
|
|
|
4061
3477
|
* @return {?}
|
|
4062
3478
|
*/function (fee) {
|
|
4063
3479
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4064
|
-
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
4065
3480
|
}));
|
|
4066
3481
|
}
|
|
4067
3482
|
if (paymentGroup.remissions) {
|
|
@@ -4073,15 +3488,10 @@
|
|
|
4073
3488
|
}));
|
|
4074
3489
|
}
|
|
4075
3490
|
if (paymentGroup.payments) {
|
|
4076
|
-
/** @type {?} */
|
|
4077
|
-
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4078
3491
|
paymentGroup.payments.forEach(( /**
|
|
4079
3492
|
* @param {?} payment
|
|
4080
3493
|
* @return {?}
|
|
4081
3494
|
*/function (payment) {
|
|
4082
|
-
if (isFeeOverPaymentExist_1) {
|
|
4083
|
-
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4084
|
-
}
|
|
4085
3495
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4086
3496
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4087
3497
|
}
|
|
@@ -4549,22 +3959,23 @@
|
|
|
4549
3959
|
*/
|
|
4550
3960
|
function (payment, remission, fees) {
|
|
4551
3961
|
var _this = this;
|
|
4552
|
-
this.
|
|
3962
|
+
this.viewStatus = 'addrefundforremission';
|
|
3963
|
+
this.payment = payment;
|
|
3964
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
4553
3965
|
* @param {?} paymentGroup
|
|
4554
3966
|
* @return {?}
|
|
4555
3967
|
*/function (paymentGroup) {
|
|
4556
3968
|
_this.paymentGroup = paymentGroup;
|
|
4557
|
-
_this.paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
3969
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
4558
3970
|
* @param {?} paymentGroupObj
|
|
4559
3971
|
* @return {?}
|
|
4560
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
3972
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
4561
3973
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4562
3974
|
_this.remissions = remission;
|
|
4563
3975
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
4564
3976
|
* @param {?} data
|
|
4565
3977
|
* @return {?}
|
|
4566
3978
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4567
|
-
_this.viewStatus = 'addrefundforremission';
|
|
4568
3979
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4569
3980
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4570
3981
|
}), ( /**
|
|
@@ -4857,21 +4268,16 @@
|
|
|
4857
4268
|
* @return {?}
|
|
4858
4269
|
*/
|
|
4859
4270
|
function (payment) {
|
|
4860
|
-
if (
|
|
4861
|
-
|
|
4271
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4272
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4273
|
+
this.isIssueRefunfBtnEnable = true;
|
|
4274
|
+
}
|
|
4275
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
4276
|
+
return true;
|
|
4862
4277
|
}
|
|
4863
4278
|
else {
|
|
4864
4279
|
return false;
|
|
4865
4280
|
}
|
|
4866
|
-
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4867
|
-
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4868
|
-
// this.isIssueRefunfBtnEnable = true;
|
|
4869
|
-
// }
|
|
4870
|
-
// if (this.isIssueRefunfBtnEnable) {
|
|
4871
|
-
// return true;
|
|
4872
|
-
// } else {
|
|
4873
|
-
// return false;
|
|
4874
|
-
// };
|
|
4875
4281
|
};
|
|
4876
4282
|
/**
|
|
4877
4283
|
* @return {?}
|
|
@@ -4921,7 +4327,7 @@
|
|
|
4921
4327
|
CaseTransactionsComponent.decorators = [
|
|
4922
4328
|
{ type: i0.Component, args: [{
|
|
4923
4329
|
selector: 'ccpay-case-transactions',
|
|
4924
|
-
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",
|
|
4330
|
+
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 ></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 [ccdCaseNumber]=\"ccdCaseNumber\" ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[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",
|
|
4925
4331
|
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}"]
|
|
4926
4332
|
}] }
|
|
4927
4333
|
];
|
|
@@ -4938,8 +4344,7 @@
|
|
|
4938
4344
|
};
|
|
4939
4345
|
CaseTransactionsComponent.propDecorators = {
|
|
4940
4346
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4941
|
-
isTakePayment: [{ type: i0.Input }]
|
|
4942
|
-
isFromServiceRequestPage: [{ type: i0.Input }]
|
|
4347
|
+
isTakePayment: [{ type: i0.Input }]
|
|
4943
4348
|
};
|
|
4944
4349
|
return CaseTransactionsComponent;
|
|
4945
4350
|
}());
|
|
@@ -5159,23 +4564,18 @@
|
|
|
5159
4564
|
if (fee.calculated_amount === 0) {
|
|
5160
4565
|
_this.isFeeAmountZero = true;
|
|
5161
4566
|
}
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
fee['remissions'] = rem;
|
|
5171
|
-
fees.push(fee);
|
|
5172
|
-
}
|
|
5173
|
-
}));
|
|
5174
|
-
if (!_this.isRemissionsMatch) {
|
|
4567
|
+
_this.isRemissionsMatch = false;
|
|
4568
|
+
paymentGroup.remissions.forEach(( /**
|
|
4569
|
+
* @param {?} rem
|
|
4570
|
+
* @return {?}
|
|
4571
|
+
*/function (rem) {
|
|
4572
|
+
if (rem.fee_code === fee.code) {
|
|
4573
|
+
_this.isRemissionsMatch = true;
|
|
4574
|
+
fee['remissions'] = rem;
|
|
5175
4575
|
fees.push(fee);
|
|
5176
4576
|
}
|
|
5177
|
-
}
|
|
5178
|
-
|
|
4577
|
+
}));
|
|
4578
|
+
if (!_this.isRemissionsMatch) {
|
|
5179
4579
|
fees.push(fee);
|
|
5180
4580
|
}
|
|
5181
4581
|
}));
|
|
@@ -7215,14 +6615,25 @@
|
|
|
7215
6615
|
return AddRetroRemissionRequest;
|
|
7216
6616
|
}());
|
|
7217
6617
|
|
|
6618
|
+
/**
|
|
6619
|
+
* @fileoverview added by tsickle
|
|
6620
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6621
|
+
*/
|
|
6622
|
+
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6623
|
+
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6624
|
+
this.payment_reference = payment_reference;
|
|
6625
|
+
this.refund_reason = refund_reason;
|
|
6626
|
+
}
|
|
6627
|
+
return PostRefundRetroRemission;
|
|
6628
|
+
}());
|
|
6629
|
+
|
|
7218
6630
|
/**
|
|
7219
6631
|
* @fileoverview added by tsickle
|
|
7220
6632
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7221
6633
|
*/
|
|
7222
6634
|
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
7223
|
-
function PostIssueRefundRetroRemission(remissionReference
|
|
6635
|
+
function PostIssueRefundRetroRemission(remissionReference) {
|
|
7224
6636
|
this.remissionReference = remissionReference;
|
|
7225
|
-
this.contact_details = contactDeatils;
|
|
7226
6637
|
}
|
|
7227
6638
|
return PostIssueRefundRetroRemission;
|
|
7228
6639
|
}());
|
|
@@ -7244,7 +6655,6 @@
|
|
|
7244
6655
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
7245
6656
|
this.refundListReason = new i0.EventEmitter();
|
|
7246
6657
|
this.refundListAmount = new i0.EventEmitter();
|
|
7247
|
-
this.refundFees = new i0.EventEmitter();
|
|
7248
6658
|
this.refund = {
|
|
7249
6659
|
reason: {
|
|
7250
6660
|
duplicate: 'Duplicate payment',
|
|
@@ -7273,8 +6683,6 @@
|
|
|
7273
6683
|
this.isRemissionApplied = false;
|
|
7274
6684
|
// refundReasons: any[] = [];
|
|
7275
6685
|
this.commonRefundReasons = [];
|
|
7276
|
-
this.class = '';
|
|
7277
|
-
this.errorMsg = new Array();
|
|
7278
6686
|
}
|
|
7279
6687
|
/**
|
|
7280
6688
|
* @return {?}
|
|
@@ -7284,8 +6692,6 @@
|
|
|
7284
6692
|
*/
|
|
7285
6693
|
function () {
|
|
7286
6694
|
var _this = this;
|
|
7287
|
-
this.errorMessage = '';
|
|
7288
|
-
this.errorMsg = [];
|
|
7289
6695
|
this.default = 'Select a different reason';
|
|
7290
6696
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
7291
6697
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -7297,7 +6703,6 @@
|
|
|
7297
6703
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
7298
6704
|
}
|
|
7299
6705
|
if (this.payment) {
|
|
7300
|
-
this.paymentReference = this.payment.reference;
|
|
7301
6706
|
this.remessionPayment = this.payment;
|
|
7302
6707
|
if (this.payment.status === 'Success') {
|
|
7303
6708
|
this.isPaymentSuccess = true;
|
|
@@ -7316,70 +6721,17 @@
|
|
|
7316
6721
|
])),
|
|
7317
6722
|
refundReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7318
6723
|
refundDDReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7319
|
-
reason: new forms.FormControl()
|
|
7320
|
-
feeAmount: new forms.FormControl(),
|
|
7321
|
-
feesList: this.formBuilder.array([])
|
|
6724
|
+
reason: new forms.FormControl()
|
|
7322
6725
|
});
|
|
7323
6726
|
/** @type {?} */
|
|
7324
6727
|
var remissionctrls = this.remissionForm.controls;
|
|
7325
6728
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7326
|
-
if (this.
|
|
7327
|
-
this.
|
|
7328
|
-
}
|
|
7329
|
-
else {
|
|
7330
|
-
this.paymentReference = this.payment.reference;
|
|
6729
|
+
if (this.viewCompStatus === '') {
|
|
6730
|
+
this.viewStatus = 'main';
|
|
7331
6731
|
}
|
|
7332
|
-
if (this.
|
|
7333
|
-
this.
|
|
7334
|
-
* @param {?}
|
|
7335
|
-
* @return {?}
|
|
7336
|
-
*/function (paymentGroup) {
|
|
7337
|
-
/** @type {?} */
|
|
7338
|
-
var fees = [];
|
|
7339
|
-
paymentGroup.fees.forEach(( /**
|
|
7340
|
-
* @param {?} fee
|
|
7341
|
-
* @return {?}
|
|
7342
|
-
*/function (fee) {
|
|
7343
|
-
_this.isRemissionsMatch = false;
|
|
7344
|
-
paymentGroup.remissions.forEach(( /**
|
|
7345
|
-
* @param {?} rem
|
|
7346
|
-
* @return {?}
|
|
7347
|
-
*/function (rem) {
|
|
7348
|
-
if (rem.fee_code === fee.code) {
|
|
7349
|
-
_this.isRemissionsMatch = true;
|
|
7350
|
-
fee['remissions'] = rem;
|
|
7351
|
-
fees.push(fee);
|
|
7352
|
-
}
|
|
7353
|
-
}));
|
|
7354
|
-
if (!_this.isRemissionsMatch) {
|
|
7355
|
-
fees.push(fee);
|
|
7356
|
-
}
|
|
7357
|
-
}));
|
|
7358
|
-
paymentGroup.fees = fees;
|
|
7359
|
-
_this.paymentFees = fees;
|
|
7360
|
-
_this.fees = fees;
|
|
7361
|
-
_this.paymentGroup = paymentGroup;
|
|
7362
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
7363
|
-
* @param {?} paymentGroupObj
|
|
7364
|
-
* @return {?}
|
|
7365
|
-
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7366
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7367
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7368
|
-
_this.refundFeesList();
|
|
7369
|
-
}), ( /**
|
|
7370
|
-
* @param {?} error
|
|
7371
|
-
* @return {?}
|
|
7372
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7373
|
-
}
|
|
7374
|
-
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7375
|
-
this.refundFeesList();
|
|
7376
|
-
}
|
|
7377
|
-
if (this.viewCompStatus === '') {
|
|
7378
|
-
this.viewStatus = 'main';
|
|
7379
|
-
}
|
|
7380
|
-
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
7381
|
-
this.refundService.getRefundReasons().subscribe(( /**
|
|
7382
|
-
* @param {?} refundReasons
|
|
6732
|
+
if (this.viewCompStatus === 'issuerefund') {
|
|
6733
|
+
this.refundService.getRefundReasons().subscribe(( /**
|
|
6734
|
+
* @param {?} refundReasons
|
|
7383
6735
|
* @return {?}
|
|
7384
6736
|
*/function (refundReasons) {
|
|
7385
6737
|
_this.refundReasons = refundReasons.filter(( /**
|
|
@@ -7389,7 +6741,7 @@
|
|
|
7389
6741
|
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
7390
6742
|
* @param {?} data
|
|
7391
6743
|
* @return {?}
|
|
7392
|
-
*/function (data) { return data.name !== 'Retrospective remission'
|
|
6744
|
+
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7393
6745
|
_this.cd.detectChanges();
|
|
7394
6746
|
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
7395
6747
|
* @param {?} data
|
|
@@ -7402,160 +6754,10 @@
|
|
|
7402
6754
|
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
7403
6755
|
_this.cd.detectChanges();
|
|
7404
6756
|
}));
|
|
7405
|
-
this.refundReason = this.changeRefundReason;
|
|
7406
6757
|
}
|
|
7407
6758
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
7408
6759
|
this.viewStatus = 'processretroremissonpage';
|
|
7409
6760
|
}
|
|
7410
|
-
if (this.orderDetail !== undefined) {
|
|
7411
|
-
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe(( /**
|
|
7412
|
-
* @param {?} paymentGroup
|
|
7413
|
-
* @return {?}
|
|
7414
|
-
*/function (paymentGroup) {
|
|
7415
|
-
_this.fees = paymentGroup.fees;
|
|
7416
|
-
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7417
|
-
}), ( /**
|
|
7418
|
-
* @param {?} error
|
|
7419
|
-
* @return {?}
|
|
7420
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7421
|
-
}
|
|
7422
|
-
};
|
|
7423
|
-
/**
|
|
7424
|
-
* @return {?}
|
|
7425
|
-
*/
|
|
7426
|
-
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7427
|
-
* @return {?}
|
|
7428
|
-
*/
|
|
7429
|
-
function () {
|
|
7430
|
-
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7431
|
-
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7432
|
-
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7433
|
-
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7434
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
7435
|
-
};
|
|
7436
|
-
/**
|
|
7437
|
-
* @return {?}
|
|
7438
|
-
*/
|
|
7439
|
-
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7440
|
-
* @return {?}
|
|
7441
|
-
*/
|
|
7442
|
-
function () {
|
|
7443
|
-
/** @type {?} */
|
|
7444
|
-
var creds = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7445
|
-
// if(creds.controls.length > 0) {
|
|
7446
|
-
for (var i = 0; i < this.fees.length; i++) {
|
|
7447
|
-
creds.push(this.formBuilder.group({
|
|
7448
|
-
id: this.fees[i].id,
|
|
7449
|
-
code: this.fees[i].code,
|
|
7450
|
-
volume: this.fees[i].volume,
|
|
7451
|
-
calculated_amount: this.fees[i].calculated_amount,
|
|
7452
|
-
apportion_amount: this.fees[i].apportion_amount,
|
|
7453
|
-
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7454
|
-
description: this.fees[i].description,
|
|
7455
|
-
net_amount: this.fees[i].net_amount,
|
|
7456
|
-
version: this.fees[i].version,
|
|
7457
|
-
refund_amount: [''],
|
|
7458
|
-
selected: [''],
|
|
7459
|
-
updated_volume: this.fees[i].volume
|
|
7460
|
-
}));
|
|
7461
|
-
}
|
|
7462
|
-
this.cd.detectChanges();
|
|
7463
|
-
//}
|
|
7464
|
-
};
|
|
7465
|
-
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7466
|
-
get: /**
|
|
7467
|
-
* @return {?}
|
|
7468
|
-
*/ function () {
|
|
7469
|
-
/** @type {?} */
|
|
7470
|
-
var dd = ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7471
|
-
return ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7472
|
-
},
|
|
7473
|
-
enumerable: true,
|
|
7474
|
-
configurable: true
|
|
7475
|
-
});
|
|
7476
|
-
/**
|
|
7477
|
-
* @return {?}
|
|
7478
|
-
*/
|
|
7479
|
-
AddRemissionComponent.prototype.noneSelected = /**
|
|
7480
|
-
* @return {?}
|
|
7481
|
-
*/
|
|
7482
|
-
function () {
|
|
7483
|
-
if (this.isFullyRefund) {
|
|
7484
|
-
return false;
|
|
7485
|
-
}
|
|
7486
|
-
else {
|
|
7487
|
-
if (!this.feesList.controls.some(( /**
|
|
7488
|
-
* @param {?} item
|
|
7489
|
-
* @return {?}
|
|
7490
|
-
*/function (item) { return item.get('selected').value === true; }))) {
|
|
7491
|
-
this.errorMsg = [];
|
|
7492
|
-
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7493
|
-
* @param {?} el
|
|
7494
|
-
* @return {?}
|
|
7495
|
-
*/function (el) {
|
|
7496
|
-
el.classList.remove('inline-error-class');
|
|
7497
|
-
}));
|
|
7498
|
-
}
|
|
7499
|
-
return !this.feesList.controls.some(( /**
|
|
7500
|
-
* @param {?} item
|
|
7501
|
-
* @return {?}
|
|
7502
|
-
*/function (item) { return item.get('selected').value === true; }));
|
|
7503
|
-
}
|
|
7504
|
-
};
|
|
7505
|
-
/**
|
|
7506
|
-
* @param {?} i
|
|
7507
|
-
* @param {?} v1
|
|
7508
|
-
* @param {?} AppAmt
|
|
7509
|
-
* @param {?} Volume
|
|
7510
|
-
* @return {?}
|
|
7511
|
-
*/
|
|
7512
|
-
AddRemissionComponent.prototype.check_en = /**
|
|
7513
|
-
* @param {?} i
|
|
7514
|
-
* @param {?} v1
|
|
7515
|
-
* @param {?} AppAmt
|
|
7516
|
-
* @param {?} Volume
|
|
7517
|
-
* @return {?}
|
|
7518
|
-
*/
|
|
7519
|
-
function (i, v1, AppAmt, Volume) {
|
|
7520
|
-
/** @type {?} */
|
|
7521
|
-
var ele = ( /** @type {?} */(document.getElementById(v1)));
|
|
7522
|
-
/** @type {?} */
|
|
7523
|
-
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7524
|
-
if (ele.checked) {
|
|
7525
|
-
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7526
|
-
formArray.at(i).get('volume').setValue(Volume);
|
|
7527
|
-
formArray.at(i).get('selected').setValue(true);
|
|
7528
|
-
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7529
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7530
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7531
|
-
if (Volume === 1) {
|
|
7532
|
-
(( /** @type {?} */(document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7533
|
-
}
|
|
7534
|
-
else {
|
|
7535
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7536
|
-
}
|
|
7537
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7538
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7539
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7540
|
-
}
|
|
7541
|
-
this.cd.detectChanges();
|
|
7542
|
-
}
|
|
7543
|
-
else {
|
|
7544
|
-
this.errorMsg = [];
|
|
7545
|
-
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7546
|
-
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7547
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7548
|
-
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7549
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7550
|
-
if (Volume > 1) {
|
|
7551
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7552
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7553
|
-
}
|
|
7554
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7555
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7556
|
-
}
|
|
7557
|
-
this.cd.detectChanges();
|
|
7558
|
-
}
|
|
7559
6761
|
};
|
|
7560
6762
|
/**
|
|
7561
6763
|
* @return {?}
|
|
@@ -7680,8 +6882,6 @@
|
|
|
7680
6882
|
*/
|
|
7681
6883
|
function () {
|
|
7682
6884
|
this.errorMessage = false;
|
|
7683
|
-
// this.isFromCheckAnsPage = true;
|
|
7684
|
-
this.errorMsg = [];
|
|
7685
6885
|
this.viewStatus = '';
|
|
7686
6886
|
this.isRefundRemission = false;
|
|
7687
6887
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -7692,14 +6892,8 @@
|
|
|
7692
6892
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
7693
6893
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
7694
6894
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
this.viewStatus = "processretroremissonpage";
|
|
7698
|
-
}
|
|
7699
|
-
else {
|
|
7700
|
-
this.viewCompStatus = '';
|
|
7701
|
-
this.viewStatus = 'checkretroremissionpage';
|
|
7702
|
-
}
|
|
6895
|
+
this.viewCompStatus = '';
|
|
6896
|
+
this.viewStatus = "processretroremissonpage";
|
|
7703
6897
|
}
|
|
7704
6898
|
else {
|
|
7705
6899
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -7730,8 +6924,6 @@
|
|
|
7730
6924
|
*/
|
|
7731
6925
|
function () {
|
|
7732
6926
|
this.errorMessage = false;
|
|
7733
|
-
this.isFromCheckAnsPage = false;
|
|
7734
|
-
this.errorMsg = [];
|
|
7735
6927
|
if (this.isRefundRemission) {
|
|
7736
6928
|
this.paymentLibComponent.iscancelClicked = true;
|
|
7737
6929
|
this.refundListAmount.emit();
|
|
@@ -7749,7 +6941,6 @@
|
|
|
7749
6941
|
this.viewCompStatus = "addremission";
|
|
7750
6942
|
this.isRefundRemission = true;
|
|
7751
6943
|
this.errorMessage = '';
|
|
7752
|
-
this.errorMsg = [];
|
|
7753
6944
|
if (this.isFromPaymentDetailPage) {
|
|
7754
6945
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7755
6946
|
}
|
|
@@ -7805,47 +6996,14 @@
|
|
|
7805
6996
|
/**
|
|
7806
6997
|
* @return {?}
|
|
7807
6998
|
*/
|
|
7808
|
-
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7809
|
-
* @return {?}
|
|
7810
|
-
*/
|
|
7811
|
-
function () {
|
|
7812
|
-
this.isFromCheckAnsPage = false;
|
|
7813
|
-
this.viewStatus = 'processretroremissonpage';
|
|
7814
|
-
this.viewCompStatus = '';
|
|
7815
|
-
// this.isRefundRemission = true;
|
|
7816
|
-
this.errorMessage = '';
|
|
7817
|
-
};
|
|
7818
|
-
/**
|
|
7819
|
-
* @return {?}
|
|
7820
|
-
*/
|
|
7821
6999
|
AddRemissionComponent.prototype.gotoProcessRetroRemissionPage = /**
|
|
7822
7000
|
* @return {?}
|
|
7823
7001
|
*/
|
|
7824
7002
|
function () {
|
|
7825
|
-
this.isFromCheckAnsPage = true;
|
|
7826
7003
|
this.viewStatus = '';
|
|
7827
7004
|
this.viewCompStatus = 'addremission';
|
|
7828
7005
|
this.isRefundRemission = true;
|
|
7829
7006
|
this.errorMessage = '';
|
|
7830
|
-
this.errorMsg = [];
|
|
7831
|
-
};
|
|
7832
|
-
/**
|
|
7833
|
-
* @param {?=} note
|
|
7834
|
-
* @return {?}
|
|
7835
|
-
*/
|
|
7836
|
-
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7837
|
-
* @param {?=} note
|
|
7838
|
-
* @return {?}
|
|
7839
|
-
*/
|
|
7840
|
-
function (note) {
|
|
7841
|
-
if (note) {
|
|
7842
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7843
|
-
}
|
|
7844
|
-
this.isFromCheckAnsPage = true;
|
|
7845
|
-
this.viewStatus = 'remissionAddressPage';
|
|
7846
|
-
this.viewCompStatus = '';
|
|
7847
|
-
this.isRefundRemission = true;
|
|
7848
|
-
this.errorMessage = '';
|
|
7849
7007
|
};
|
|
7850
7008
|
/**
|
|
7851
7009
|
* @return {?}
|
|
@@ -7889,7 +7047,6 @@
|
|
|
7889
7047
|
function () {
|
|
7890
7048
|
var _this = this;
|
|
7891
7049
|
this.errorMessage = '';
|
|
7892
|
-
this.errorMsg = [];
|
|
7893
7050
|
this.isConfirmationBtnDisabled = true;
|
|
7894
7051
|
if (this.isRefundRemission) {
|
|
7895
7052
|
this.retroRemission = true;
|
|
@@ -7898,7 +7055,7 @@
|
|
|
7898
7055
|
this.remissionReference = this.remission.remission_reference;
|
|
7899
7056
|
}
|
|
7900
7057
|
/** @type {?} */
|
|
7901
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference
|
|
7058
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7902
7059
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe(( /**
|
|
7903
7060
|
* @param {?} response
|
|
7904
7061
|
* @return {?}
|
|
@@ -7934,13 +7091,7 @@
|
|
|
7934
7091
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
7935
7092
|
this.isFromRefundListPage = true;
|
|
7936
7093
|
}
|
|
7937
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7938
|
-
* @param {?} a
|
|
7939
|
-
* @param {?} c
|
|
7940
|
-
* @return {?}
|
|
7941
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7942
7094
|
this.errorMessage = '';
|
|
7943
|
-
this.errorMsg = [];
|
|
7944
7095
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
7945
7096
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
7946
7097
|
this.refundHasError = true;
|
|
@@ -7956,41 +7107,19 @@
|
|
|
7956
7107
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
7957
7108
|
}
|
|
7958
7109
|
else {
|
|
7959
|
-
if (this.isFromCheckAnsPage) {
|
|
7960
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7961
|
-
* @param {?} a
|
|
7962
|
-
* @param {?} c
|
|
7963
|
-
* @return {?}
|
|
7964
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7965
|
-
this.isFromCheckAnsPage = false;
|
|
7966
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7967
|
-
this.viewCompStatus = '';
|
|
7968
|
-
return;
|
|
7969
|
-
}
|
|
7970
7110
|
this.viewCompStatus = '';
|
|
7971
|
-
this.viewStatus = '
|
|
7111
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7972
7112
|
}
|
|
7973
7113
|
}
|
|
7974
7114
|
else {
|
|
7975
7115
|
this.displayRefundReason = this.selectedRefundReason;
|
|
7976
|
-
if (this.isFromCheckAnsPage) {
|
|
7977
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7978
|
-
* @param {?} a
|
|
7979
|
-
* @param {?} c
|
|
7980
|
-
* @return {?}
|
|
7981
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7982
|
-
this.isFromCheckAnsPage = false;
|
|
7983
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7984
|
-
this.viewCompStatus = '';
|
|
7985
|
-
return;
|
|
7986
|
-
}
|
|
7987
7116
|
if (this.isFromRefundListPage) {
|
|
7988
7117
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7989
7118
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
7990
7119
|
}
|
|
7991
7120
|
else {
|
|
7992
7121
|
this.viewCompStatus = '';
|
|
7993
|
-
this.viewStatus = '
|
|
7122
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7994
7123
|
}
|
|
7995
7124
|
}
|
|
7996
7125
|
};
|
|
@@ -8006,228 +7135,9 @@
|
|
|
8006
7135
|
this.viewStatus = '';
|
|
8007
7136
|
this.isRefundRemission = true;
|
|
8008
7137
|
this.errorMessage = false;
|
|
8009
|
-
this.errorMsg = [];
|
|
8010
7138
|
this.refundHasError = false;
|
|
8011
7139
|
this.isReasonEmpty = false;
|
|
8012
7140
|
};
|
|
8013
|
-
/**
|
|
8014
|
-
* @param {?} isFullyRefund
|
|
8015
|
-
* @return {?}
|
|
8016
|
-
*/
|
|
8017
|
-
AddRemissionComponent.prototype.gotoIssuePage = /**
|
|
8018
|
-
* @param {?} isFullyRefund
|
|
8019
|
-
* @return {?}
|
|
8020
|
-
*/
|
|
8021
|
-
function (isFullyRefund) {
|
|
8022
|
-
if (isFullyRefund) {
|
|
8023
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8024
|
-
this.getRefundReasons();
|
|
8025
|
-
}
|
|
8026
|
-
else {
|
|
8027
|
-
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
8028
|
-
* @param {?} el
|
|
8029
|
-
* @return {?}
|
|
8030
|
-
*/function (el) {
|
|
8031
|
-
el.classList.remove('inline-error-class');
|
|
8032
|
-
}));
|
|
8033
|
-
/** @type {?} */
|
|
8034
|
-
var checkboxs = document.getElementsByTagName('input');
|
|
8035
|
-
this.errorMessage = '';
|
|
8036
|
-
this.totalRefundAmount = 0;
|
|
8037
|
-
this.errorMsg = [];
|
|
8038
|
-
for (var j = 0; j < checkboxs.length; j++) {
|
|
8039
|
-
if (checkboxs[j].checked) {
|
|
8040
|
-
this.fullRefund = false;
|
|
8041
|
-
/** @type {?} */
|
|
8042
|
-
var quantity = +(( /** @type {?} */(document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
8043
|
-
/** @type {?} */
|
|
8044
|
-
var amountToRefund = +(( /** @type {?} */(document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
8045
|
-
/** @type {?} */
|
|
8046
|
-
var apportionAmount = +(( /** @type {?} */(document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
8047
|
-
/** @type {?} */
|
|
8048
|
-
var calculatedAmount = +(( /** @type {?} */(document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8049
|
-
if (amountToRefund === apportionAmount) {
|
|
8050
|
-
this.fullRefund = true;
|
|
8051
|
-
}
|
|
8052
|
-
if (amountToRefund === 0) {
|
|
8053
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8054
|
-
this.errorMsg.push('You need to enter a refund amount');
|
|
8055
|
-
this.getErrorClass(this.elementId);
|
|
8056
|
-
}
|
|
8057
|
-
if (quantity === 1) {
|
|
8058
|
-
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8059
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8060
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8061
|
-
this.getErrorClass(this.elementId);
|
|
8062
|
-
}
|
|
8063
|
-
}
|
|
8064
|
-
if (quantity > 1) {
|
|
8065
|
-
this.quantityUpdated = +(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8066
|
-
if (this.quantityUpdated === 0) {
|
|
8067
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8068
|
-
this.errorMsg.push('You need to enter quantity');
|
|
8069
|
-
this.getErrorClass(this.elementId);
|
|
8070
|
-
}
|
|
8071
|
-
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8072
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8073
|
-
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8074
|
-
this.getErrorClass(this.elementId);
|
|
8075
|
-
}
|
|
8076
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8077
|
-
this.refundAmtForFeeVolumes = +(( /** @type {?} */(document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8078
|
-
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8079
|
-
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8080
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8081
|
-
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8082
|
-
this.getErrorClass(this.elementId);
|
|
8083
|
-
}
|
|
8084
|
-
}
|
|
8085
|
-
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8086
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8087
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8088
|
-
this.getErrorClass(this.elementId);
|
|
8089
|
-
}
|
|
8090
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8091
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8092
|
-
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8093
|
-
this.getErrorClass(this.elementId);
|
|
8094
|
-
}
|
|
8095
|
-
}
|
|
8096
|
-
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8097
|
-
}
|
|
8098
|
-
}
|
|
8099
|
-
if (this.errorMsg.length === 0) {
|
|
8100
|
-
if (this.isFromCheckAnsPage) {
|
|
8101
|
-
this.isFromCheckAnsPage = false;
|
|
8102
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8103
|
-
* @param {?} a
|
|
8104
|
-
* @param {?} c
|
|
8105
|
-
* @return {?}
|
|
8106
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8107
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8108
|
-
* @param {?} value
|
|
8109
|
-
* @return {?}
|
|
8110
|
-
*/function (value) { return value.selected === true; }));
|
|
8111
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8112
|
-
this.viewCompStatus = '';
|
|
8113
|
-
return;
|
|
8114
|
-
}
|
|
8115
|
-
else if (this.isFromRefundStatusPage) {
|
|
8116
|
-
/** @type {?} */
|
|
8117
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8118
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8119
|
-
* @param {?} a
|
|
8120
|
-
* @param {?} c
|
|
8121
|
-
* @return {?}
|
|
8122
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8123
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8124
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8125
|
-
* @param {?} value
|
|
8126
|
-
* @return {?}
|
|
8127
|
-
*/function (value) { return value.selected === true; }));
|
|
8128
|
-
this.refundFees.emit(this.fees);
|
|
8129
|
-
return;
|
|
8130
|
-
}
|
|
8131
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8132
|
-
this.getRefundReasons();
|
|
8133
|
-
}
|
|
8134
|
-
}
|
|
8135
|
-
};
|
|
8136
|
-
/**
|
|
8137
|
-
* @param {?} value
|
|
8138
|
-
* @param {?} amount
|
|
8139
|
-
* @param {?} volume
|
|
8140
|
-
* @param {?} i
|
|
8141
|
-
* @return {?}
|
|
8142
|
-
*/
|
|
8143
|
-
AddRemissionComponent.prototype.calAmtToRefund = /**
|
|
8144
|
-
* @param {?} value
|
|
8145
|
-
* @param {?} amount
|
|
8146
|
-
* @param {?} volume
|
|
8147
|
-
* @param {?} i
|
|
8148
|
-
* @return {?}
|
|
8149
|
-
*/
|
|
8150
|
-
function (value, amount, volume, i) {
|
|
8151
|
-
/** @type {?} */
|
|
8152
|
-
var volumeFee = amount / volume;
|
|
8153
|
-
/** @type {?} */
|
|
8154
|
-
var amtToRefund = value * volumeFee;
|
|
8155
|
-
/** @type {?} */
|
|
8156
|
-
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
8157
|
-
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
8158
|
-
// formArray.at(i).get('volume').setValue(value);
|
|
8159
|
-
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
8160
|
-
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
8161
|
-
// formControl.setValue(value);
|
|
8162
|
-
};
|
|
8163
|
-
/**
|
|
8164
|
-
* @param {?=} note
|
|
8165
|
-
* @return {?}
|
|
8166
|
-
*/
|
|
8167
|
-
AddRemissionComponent.prototype.gotoContactDetailsPage = /**
|
|
8168
|
-
* @param {?=} note
|
|
8169
|
-
* @return {?}
|
|
8170
|
-
*/
|
|
8171
|
-
function (note) {
|
|
8172
|
-
if (note) {
|
|
8173
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8174
|
-
}
|
|
8175
|
-
this.errorMessage = '';
|
|
8176
|
-
this.viewCompStatus = '';
|
|
8177
|
-
this.viewStatus = 'contactDetailsPage';
|
|
8178
|
-
this.isRefundRemission = true;
|
|
8179
|
-
this.errorMessage = false;
|
|
8180
|
-
};
|
|
8181
|
-
/**
|
|
8182
|
-
* @return {?}
|
|
8183
|
-
*/
|
|
8184
|
-
AddRemissionComponent.prototype.getRefundReasons = /**
|
|
8185
|
-
* @return {?}
|
|
8186
|
-
*/
|
|
8187
|
-
function () {
|
|
8188
|
-
var _this = this;
|
|
8189
|
-
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
8190
|
-
this.refundService.getRefundReasons().subscribe(( /**
|
|
8191
|
-
* @param {?} refundReasons
|
|
8192
|
-
* @return {?}
|
|
8193
|
-
*/function (refundReasons) {
|
|
8194
|
-
_this.refundReasons = refundReasons.filter(( /**
|
|
8195
|
-
* @param {?} data
|
|
8196
|
-
* @return {?}
|
|
8197
|
-
*/function (data) { return data.recently_used === false; }));
|
|
8198
|
-
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
8199
|
-
* @param {?} data
|
|
8200
|
-
* @return {?}
|
|
8201
|
-
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8202
|
-
_this.cd.detectChanges();
|
|
8203
|
-
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
8204
|
-
* @param {?} data
|
|
8205
|
-
* @return {?}
|
|
8206
|
-
*/function (data) { return data.recently_used === true; }));
|
|
8207
|
-
_this.commonRefundReasons.sort(( /**
|
|
8208
|
-
* @param {?} a
|
|
8209
|
-
* @param {?} b
|
|
8210
|
-
* @return {?}
|
|
8211
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8212
|
-
_this.cd.detectChanges();
|
|
8213
|
-
}));
|
|
8214
|
-
}
|
|
8215
|
-
};
|
|
8216
|
-
/**
|
|
8217
|
-
* @param {?} elementId
|
|
8218
|
-
* @return {?}
|
|
8219
|
-
*/
|
|
8220
|
-
AddRemissionComponent.prototype.getErrorClass = /**
|
|
8221
|
-
* @param {?} elementId
|
|
8222
|
-
* @return {?}
|
|
8223
|
-
*/
|
|
8224
|
-
function (elementId) {
|
|
8225
|
-
if (this.errorMsg.length > 0) {
|
|
8226
|
-
/** @type {?} */
|
|
8227
|
-
var ele = document.getElementById(elementId);
|
|
8228
|
-
ele.classList.add('inline-error-class');
|
|
8229
|
-
}
|
|
8230
|
-
};
|
|
8231
7141
|
/**
|
|
8232
7142
|
* @return {?}
|
|
8233
7143
|
*/
|
|
@@ -8235,54 +7145,29 @@
|
|
|
8235
7145
|
* @return {?}
|
|
8236
7146
|
*/
|
|
8237
7147
|
function () {
|
|
8238
|
-
this.
|
|
7148
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
8239
7149
|
this.errorMessage = '';
|
|
8240
|
-
this.errorMsg = [];
|
|
8241
7150
|
this.refundHasError = false;
|
|
8242
7151
|
this.isReasonEmpty = false;
|
|
8243
|
-
this.viewCompStatus = '
|
|
7152
|
+
this.viewCompStatus = 'issuerefund';
|
|
8244
7153
|
this.viewStatus = '';
|
|
8245
7154
|
this.isRefundRemission = true;
|
|
8246
7155
|
};
|
|
8247
7156
|
/**
|
|
8248
|
-
* @param {?} isFullyRefund
|
|
8249
7157
|
* @return {?}
|
|
8250
7158
|
*/
|
|
8251
7159
|
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8252
|
-
* @param {?} isFullyRefund
|
|
8253
7160
|
* @return {?}
|
|
8254
7161
|
*/
|
|
8255
|
-
function (
|
|
7162
|
+
function () {
|
|
8256
7163
|
var _this = this;
|
|
8257
7164
|
this.isConfirmationBtnDisabled = true;
|
|
8258
7165
|
this.errorMessage = '';
|
|
8259
|
-
this.errorMsg = [];
|
|
8260
7166
|
if (this.isRefundRemission) {
|
|
8261
7167
|
this.retroRemission = true;
|
|
8262
7168
|
}
|
|
8263
|
-
if (isFullyRefund) {
|
|
8264
|
-
this.totalRefundAmount = this.payment.amount;
|
|
8265
|
-
}
|
|
8266
|
-
if (!isFullyRefund) {
|
|
8267
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8268
|
-
* @param {?} value
|
|
8269
|
-
* @return {?}
|
|
8270
|
-
*/function (value) { return value.selected === true; }));
|
|
8271
|
-
}
|
|
8272
|
-
this.fees = this.fees.map(( /**
|
|
8273
|
-
* @param {?} obj
|
|
8274
|
-
* @return {?}
|
|
8275
|
-
*/function (obj) {
|
|
8276
|
-
return ({ id: obj.id,
|
|
8277
|
-
code: obj.code,
|
|
8278
|
-
version: obj.version,
|
|
8279
|
-
apportion_amount: obj.apportion_amount,
|
|
8280
|
-
calculated_amount: obj.calculated_amount,
|
|
8281
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8282
|
-
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount });
|
|
8283
|
-
}));
|
|
8284
7169
|
/** @type {?} */
|
|
8285
|
-
var requestBody = new PostRefundRetroRemission(this.
|
|
7170
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
8286
7171
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
8287
7172
|
* @param {?} response
|
|
8288
7173
|
* @return {?}
|
|
@@ -8304,102 +7189,55 @@
|
|
|
8304
7189
|
_this.cd.detectChanges();
|
|
8305
7190
|
}));
|
|
8306
7191
|
};
|
|
7192
|
+
// Retro Refund
|
|
7193
|
+
// Retro Refund
|
|
8307
7194
|
/**
|
|
8308
7195
|
* @return {?}
|
|
8309
7196
|
*/
|
|
8310
|
-
AddRemissionComponent.prototype.
|
|
8311
|
-
|
|
8312
|
-
|
|
7197
|
+
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7198
|
+
// Retro Refund
|
|
7199
|
+
/**
|
|
7200
|
+
* @return {?}
|
|
7201
|
+
*/
|
|
8313
7202
|
function () {
|
|
8314
|
-
|
|
8315
|
-
this.
|
|
7203
|
+
var _this = this;
|
|
7204
|
+
this.isConfirmationBtnDisabled = true;
|
|
7205
|
+
this.errorMessage = '';
|
|
7206
|
+
if (this.isRefundRemission) {
|
|
7207
|
+
this.retroRemission = true;
|
|
7208
|
+
}
|
|
7209
|
+
/** @type {?} */
|
|
7210
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
7211
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
7212
|
+
* @param {?} response
|
|
7213
|
+
* @return {?}
|
|
7214
|
+
*/function (response) {
|
|
7215
|
+
if (JSON.parse(response)) {
|
|
7216
|
+
_this.viewCompStatus = '';
|
|
7217
|
+
_this.viewStatus = 'retrorefundconfirmationpage';
|
|
7218
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7219
|
+
if (JSON.parse(response).refund_amount) {
|
|
7220
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7221
|
+
}
|
|
7222
|
+
}
|
|
7223
|
+
}), ( /**
|
|
7224
|
+
* @param {?} error
|
|
7225
|
+
* @return {?}
|
|
7226
|
+
*/function (error) {
|
|
7227
|
+
_this.errorMessage = error;
|
|
7228
|
+
_this.isConfirmationBtnDisabled = false;
|
|
7229
|
+
}));
|
|
8316
7230
|
};
|
|
8317
|
-
// Retro Refund
|
|
8318
|
-
// confirmRetroRefund() {
|
|
8319
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8320
|
-
// this.errorMessage = '';
|
|
8321
|
-
// this.errorMsg = [];
|
|
8322
|
-
// if( this.isRefundRemission) {
|
|
8323
|
-
// this.retroRemission = true;
|
|
8324
|
-
// }
|
|
8325
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8326
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8327
|
-
// response => {
|
|
8328
|
-
// if (JSON.parse(response)) {
|
|
8329
|
-
// this.viewCompStatus = '';
|
|
8330
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8331
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8332
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8333
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8334
|
-
// }
|
|
8335
|
-
// }
|
|
8336
|
-
// },
|
|
8337
|
-
// (error: any) => {
|
|
8338
|
-
// this.errorMessage = error;
|
|
8339
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8340
|
-
// });
|
|
8341
|
-
// }
|
|
8342
|
-
// Retro Refund
|
|
8343
|
-
// confirmRetroRefund() {
|
|
8344
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8345
|
-
// this.errorMessage = '';
|
|
8346
|
-
// this.errorMsg = [];
|
|
8347
|
-
// if( this.isRefundRemission) {
|
|
8348
|
-
// this.retroRemission = true;
|
|
8349
|
-
// }
|
|
8350
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8351
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8352
|
-
// response => {
|
|
8353
|
-
// if (JSON.parse(response)) {
|
|
8354
|
-
// this.viewCompStatus = '';
|
|
8355
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8356
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8357
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8358
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8359
|
-
// }
|
|
8360
|
-
// }
|
|
8361
|
-
// },
|
|
8362
|
-
// (error: any) => {
|
|
8363
|
-
// this.errorMessage = error;
|
|
8364
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8365
|
-
// });
|
|
8366
|
-
// }
|
|
8367
7231
|
/**
|
|
8368
7232
|
* @param {?} key
|
|
8369
7233
|
* @param {?} value
|
|
8370
7234
|
* @return {?}
|
|
8371
7235
|
*/
|
|
8372
|
-
AddRemissionComponent.prototype.selectRadioButton =
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
// this.errorMsg = [];
|
|
8378
|
-
// if( this.isRefundRemission) {
|
|
8379
|
-
// this.retroRemission = true;
|
|
8380
|
-
// }
|
|
8381
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8382
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8383
|
-
// response => {
|
|
8384
|
-
// if (JSON.parse(response)) {
|
|
8385
|
-
// this.viewCompStatus = '';
|
|
8386
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8387
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8388
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8389
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8390
|
-
// }
|
|
8391
|
-
// }
|
|
8392
|
-
// },
|
|
8393
|
-
// (error: any) => {
|
|
8394
|
-
// this.errorMessage = error;
|
|
8395
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8396
|
-
// });
|
|
8397
|
-
// }
|
|
8398
|
-
/**
|
|
8399
|
-
* @param {?} key
|
|
8400
|
-
* @param {?} value
|
|
8401
|
-
* @return {?}
|
|
8402
|
-
*/
|
|
7236
|
+
AddRemissionComponent.prototype.selectRadioButton = /**
|
|
7237
|
+
* @param {?} key
|
|
7238
|
+
* @param {?} value
|
|
7239
|
+
* @return {?}
|
|
7240
|
+
*/
|
|
8403
7241
|
function (key, value) {
|
|
8404
7242
|
localStorage.setItem("myradio", key);
|
|
8405
7243
|
/** @type {?} */
|
|
@@ -8408,7 +7246,6 @@
|
|
|
8408
7246
|
remissionctrls['reason'].reset();
|
|
8409
7247
|
this.isRefundReasonsSelected = true;
|
|
8410
7248
|
this.errorMessage = false;
|
|
8411
|
-
this.errorMsg = [];
|
|
8412
7249
|
this.isReasonEmpty = false;
|
|
8413
7250
|
this.showReasonText = false;
|
|
8414
7251
|
this.refundHasError = false;
|
|
@@ -8443,38 +7280,6 @@
|
|
|
8443
7280
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
8444
7281
|
}
|
|
8445
7282
|
};
|
|
8446
|
-
/**
|
|
8447
|
-
* @param {?} obj
|
|
8448
|
-
* @param {?} type
|
|
8449
|
-
* @return {?}
|
|
8450
|
-
*/
|
|
8451
|
-
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8452
|
-
* @param {?} obj
|
|
8453
|
-
* @param {?} type
|
|
8454
|
-
* @return {?}
|
|
8455
|
-
*/
|
|
8456
|
-
function (obj, type) {
|
|
8457
|
-
this.contactDetailsObj = obj;
|
|
8458
|
-
this.viewCompStatus = '';
|
|
8459
|
-
this.viewStatus = type;
|
|
8460
|
-
};
|
|
8461
|
-
/**
|
|
8462
|
-
* @return {?}
|
|
8463
|
-
*/
|
|
8464
|
-
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8465
|
-
* @return {?}
|
|
8466
|
-
*/
|
|
8467
|
-
function () {
|
|
8468
|
-
if (this.isFromRefundStatusPage) {
|
|
8469
|
-
/** @type {?} */
|
|
8470
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8471
|
-
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8472
|
-
return;
|
|
8473
|
-
}
|
|
8474
|
-
this.refundHasError = false;
|
|
8475
|
-
this.viewCompStatus = 'issuerefund';
|
|
8476
|
-
this.viewStatus = '';
|
|
8477
|
-
};
|
|
8478
7283
|
/**
|
|
8479
7284
|
* @param {?} event
|
|
8480
7285
|
* @return {?}
|
|
@@ -8486,20 +7291,7 @@
|
|
|
8486
7291
|
function (event) {
|
|
8487
7292
|
var _this = this;
|
|
8488
7293
|
this.errorMessage = '';
|
|
8489
|
-
this.errorMsg = [];
|
|
8490
|
-
this.isFromCheckAnsPage = false;
|
|
8491
7294
|
event.preventDefault();
|
|
8492
|
-
if (this.isFromRefundStatusPage) {
|
|
8493
|
-
/** @type {?} */
|
|
8494
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8495
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8496
|
-
* @param {?} a
|
|
8497
|
-
* @param {?} c
|
|
8498
|
-
* @return {?}
|
|
8499
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8500
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8501
|
-
return;
|
|
8502
|
-
}
|
|
8503
7295
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
8504
7296
|
this.viewStatus = 'order-full-view';
|
|
8505
7297
|
this.viewCompStatus = '';
|
|
@@ -8533,40 +7325,68 @@
|
|
|
8533
7325
|
}
|
|
8534
7326
|
this.viewCompStatus = '';
|
|
8535
7327
|
}
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
this.
|
|
8550
|
-
this.
|
|
8551
|
-
this.
|
|
8552
|
-
|
|
8553
|
-
this.
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
this.
|
|
8566
|
-
this.
|
|
8567
|
-
this.
|
|
8568
|
-
this.
|
|
8569
|
-
this.
|
|
7328
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7329
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7330
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7331
|
+
// }
|
|
7332
|
+
// if (this.isFromServiceRequestPage) {
|
|
7333
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7334
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7335
|
+
// this.viewStatus = 'main'
|
|
7336
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7337
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7338
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7339
|
+
// }
|
|
7340
|
+
// if ( this.isFromRefundListPage ) {
|
|
7341
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7342
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7343
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7344
|
+
// }
|
|
7345
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7346
|
+
// if(this.payment) {
|
|
7347
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7348
|
+
// }
|
|
7349
|
+
// if (this.isFromServiceRequestPage) {
|
|
7350
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7351
|
+
// } else {
|
|
7352
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7353
|
+
// }
|
|
7354
|
+
// this.errorMessage = '';
|
|
7355
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7356
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7357
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7358
|
+
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7359
|
+
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7360
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7361
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7362
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7363
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7364
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7365
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7366
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7367
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7368
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7369
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7370
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7371
|
+
// }
|
|
7372
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7373
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7374
|
+
// }
|
|
7375
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7376
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7377
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7378
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7379
|
+
// this.router.navigateByUrl(url);
|
|
7380
|
+
// } else {
|
|
7381
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7382
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7383
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7384
|
+
// this.router.navigateByUrl(url);
|
|
7385
|
+
// }
|
|
7386
|
+
// } else {
|
|
7387
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7388
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7389
|
+
// }
|
|
8570
7390
|
};
|
|
8571
7391
|
/**
|
|
8572
7392
|
* @return {?}
|
|
@@ -8577,7 +7397,6 @@
|
|
|
8577
7397
|
function () {
|
|
8578
7398
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8579
7399
|
this.errorMessage = '';
|
|
8580
|
-
this.errorMsg = [];
|
|
8581
7400
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8582
7401
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8583
7402
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -8611,36 +7430,30 @@
|
|
|
8611
7430
|
*/
|
|
8612
7431
|
function (event) {
|
|
8613
7432
|
event.preventDefault();
|
|
8614
|
-
this.
|
|
8615
|
-
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8616
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8617
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8618
|
-
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8619
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8620
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
8621
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
7433
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8622
7434
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8623
7435
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8624
7436
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8625
7437
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8626
7438
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8627
7439
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8628
|
-
this.
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
partUrl
|
|
8635
|
-
partUrl += this.paymentLibComponent.
|
|
8636
|
-
partUrl += this.paymentLibComponent.
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
this.
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
this.router.
|
|
8643
|
-
this.router.
|
|
7440
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7441
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7442
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7443
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7444
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7445
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7446
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7447
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7448
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7449
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7450
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7451
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7452
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7453
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7454
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7455
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7456
|
+
// this.router.navigateByUrl(url);
|
|
8644
7457
|
}
|
|
8645
7458
|
else {
|
|
8646
7459
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -8707,17 +7520,6 @@
|
|
|
8707
7520
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8708
7521
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8709
7522
|
};
|
|
8710
|
-
/**
|
|
8711
|
-
* @return {?}
|
|
8712
|
-
*/
|
|
8713
|
-
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8714
|
-
* @return {?}
|
|
8715
|
-
*/
|
|
8716
|
-
function () {
|
|
8717
|
-
this.isFromCheckAnsPage = true;
|
|
8718
|
-
this.viewCompStatus = 'issuerefund';
|
|
8719
|
-
this.viewStatus = '';
|
|
8720
|
-
};
|
|
8721
7523
|
/**
|
|
8722
7524
|
* @param {?} currency
|
|
8723
7525
|
* @return {?}
|
|
@@ -8735,8 +7537,8 @@
|
|
|
8735
7537
|
AddRemissionComponent.decorators = [
|
|
8736
7538
|
{ type: i0.Component, args: [{
|
|
8737
7539
|
selector: 'ccpay-add-remission',
|
|
8738
|
-
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>",
|
|
8739
|
-
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 .
|
|
7540
|
+
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",
|
|
7541
|
+
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}"]
|
|
8740
7542
|
}] }
|
|
8741
7543
|
];
|
|
8742
7544
|
/** @nocollapse */
|
|
@@ -8753,7 +7555,6 @@
|
|
|
8753
7555
|
};
|
|
8754
7556
|
AddRemissionComponent.propDecorators = {
|
|
8755
7557
|
fee: [{ type: i0.Input }],
|
|
8756
|
-
fees: [{ type: i0.Input }],
|
|
8757
7558
|
payment: [{ type: i0.Input }],
|
|
8758
7559
|
remission: [{ type: i0.Input }],
|
|
8759
7560
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
@@ -8769,12 +7570,7 @@
|
|
|
8769
7570
|
isFromRefundListPage: [{ type: i0.Input }],
|
|
8770
7571
|
isFromPaymentDetailPage: [{ type: i0.Input }],
|
|
8771
7572
|
isFromServiceRequestPage: [{ type: i0.Input }],
|
|
8772
|
-
isFullyRefund: [{ type: i0.Input, args: ['isFullyRefund',] }],
|
|
8773
7573
|
feeamount: [{ type: i0.Input }],
|
|
8774
|
-
refundPaymentReference: [{ type: i0.Input }],
|
|
8775
|
-
isFromRefundStatusPage: [{ type: i0.Input }],
|
|
8776
|
-
changeRefundReason: [{ type: i0.Input }],
|
|
8777
|
-
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
8778
7574
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8779
7575
|
orderDetail: [{ type: i0.Input, args: ['orderDetail',] }],
|
|
8780
7576
|
orderRef: [{ type: i0.Input, args: ['orderRef',] }],
|
|
@@ -8788,8 +7584,7 @@
|
|
|
8788
7584
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
8789
7585
|
cancelRemission: [{ type: i0.Output }],
|
|
8790
7586
|
refundListReason: [{ type: i0.Output }],
|
|
8791
|
-
refundListAmount: [{ type: i0.Output }]
|
|
8792
|
-
refundFees: [{ type: i0.Output }]
|
|
7587
|
+
refundListAmount: [{ type: i0.Output }]
|
|
8793
7588
|
};
|
|
8794
7589
|
return AddRemissionComponent;
|
|
8795
7590
|
}());
|
|
@@ -9525,26 +8320,12 @@
|
|
|
9525
8320
|
return (r[user_full_name] = '', r);
|
|
9526
8321
|
}), {});
|
|
9527
8322
|
this.userLst = Object.keys(this.userLst);
|
|
9528
|
-
this.userLst.sort(( /**
|
|
9529
|
-
* @param {?} a
|
|
9530
|
-
* @param {?} b
|
|
9531
|
-
* @return {?}
|
|
9532
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9533
|
-
this.serviceLst = this.refundList.reduce(( /**
|
|
9534
|
-
* @param {?} r
|
|
9535
|
-
* @param {?} __1
|
|
9536
|
-
* @return {?}
|
|
9537
|
-
*/function (r, _a) {
|
|
9538
|
-
var service_type = _a.service_type;
|
|
9539
|
-
return (r[service_type] = '', r);
|
|
9540
|
-
}), {});
|
|
9541
|
-
this.serviceLst = Object.keys(this.serviceLst);
|
|
9542
|
-
this.serviceLst.sort(( /**
|
|
9543
|
-
* @param {?} a
|
|
9544
|
-
* @param {?} b
|
|
9545
|
-
* @return {?}
|
|
9546
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9547
8323
|
}
|
|
8324
|
+
this.userLst.sort(( /**
|
|
8325
|
+
* @param {?} a
|
|
8326
|
+
* @param {?} b
|
|
8327
|
+
* @return {?}
|
|
8328
|
+
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9548
8329
|
};
|
|
9549
8330
|
/**
|
|
9550
8331
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -9644,8 +8425,8 @@
|
|
|
9644
8425
|
TableComponent.decorators = [
|
|
9645
8426
|
{ type: i0.Component, args: [{
|
|
9646
8427
|
selector: 'ccpay-table',
|
|
9647
|
-
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
|
|
9648
|
-
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}
|
|
8428
|
+
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",
|
|
8429
|
+
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}"]
|
|
9649
8430
|
}] }
|
|
9650
8431
|
];
|
|
9651
8432
|
/** @nocollapse */
|
|
@@ -9668,32 +8449,14 @@
|
|
|
9668
8449
|
return TableComponent;
|
|
9669
8450
|
}());
|
|
9670
8451
|
|
|
9671
|
-
/**
|
|
9672
|
-
* @fileoverview added by tsickle
|
|
9673
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9674
|
-
*/
|
|
9675
|
-
var IPutNotificationRequest = /** @class */ (function () {
|
|
9676
|
-
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9677
|
-
if (notificationType === 'EMAIL') {
|
|
9678
|
-
this.recipient_email_address = contactDetails;
|
|
9679
|
-
}
|
|
9680
|
-
else if (notificationType === 'LETTER') {
|
|
9681
|
-
this.recipient_postal_address = contactDetails;
|
|
9682
|
-
}
|
|
9683
|
-
}
|
|
9684
|
-
return IPutNotificationRequest;
|
|
9685
|
-
}());
|
|
9686
|
-
|
|
9687
8452
|
/**
|
|
9688
8453
|
* @fileoverview added by tsickle
|
|
9689
8454
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9690
8455
|
*/
|
|
9691
8456
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9692
|
-
function IResubmitRefundRequest(refund_reason, amount
|
|
8457
|
+
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9693
8458
|
this.refund_reason = refund_reason;
|
|
9694
8459
|
this.amount = amount;
|
|
9695
|
-
this.contact_details = contact_details;
|
|
9696
|
-
this.refund_fees = refund_fees;
|
|
9697
8460
|
}
|
|
9698
8461
|
return IResubmitRefundRequest;
|
|
9699
8462
|
}());
|
|
@@ -9703,18 +8466,20 @@
|
|
|
9703
8466
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9704
8467
|
*/
|
|
9705
8468
|
var RefundStatusComponent = /** @class */ (function () {
|
|
9706
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
8469
|
+
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router$$1, OrderslistService$$1) {
|
|
9707
8470
|
var _this = this;
|
|
9708
8471
|
this.formBuilder = formBuilder;
|
|
9709
8472
|
this.refundService = refundService;
|
|
9710
|
-
this.notificationService = notificationService;
|
|
9711
8473
|
this.paymentLibComponent = paymentLibComponent;
|
|
9712
|
-
this.OrderslistService = OrderslistService$$1;
|
|
9713
8474
|
this.paymentViewService = paymentViewService;
|
|
8475
|
+
this.router = router$$1;
|
|
8476
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9714
8477
|
this.LOGGEDINUSERROLES = [];
|
|
9715
8478
|
this.rejectedRefundList = [];
|
|
9716
8479
|
this.approvalStatus = 'Sent for approval';
|
|
9717
8480
|
this.rejectStatus = 'Update required';
|
|
8481
|
+
// approvalStatus = 'sent for approval';
|
|
8482
|
+
// rejectStatus = 'sent back';
|
|
9718
8483
|
this.errorMessage = null;
|
|
9719
8484
|
this.refundButtonState = '';
|
|
9720
8485
|
this.isAmountEmpty = false;
|
|
@@ -9723,9 +8488,6 @@
|
|
|
9723
8488
|
this.isRemissionLessThanFeeError = false;
|
|
9724
8489
|
this.refundHasError = false;
|
|
9725
8490
|
this.refundReasons = [];
|
|
9726
|
-
this.isResendOperationSuccess = false;
|
|
9727
|
-
this.isEditDetailsClicked = false;
|
|
9728
|
-
this.isEditAddressDeatilsClicked = false;
|
|
9729
8491
|
this.isRefundBtnDisabled = true;
|
|
9730
8492
|
this.isLastUpdatedByCurrentUser = true;
|
|
9731
8493
|
this.isProcessRefund = false;
|
|
@@ -9749,9 +8511,13 @@
|
|
|
9749
8511
|
*/
|
|
9750
8512
|
function () {
|
|
9751
8513
|
var _this = this;
|
|
8514
|
+
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
9752
8515
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
9753
8516
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
9754
8517
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8518
|
+
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8519
|
+
// this.viewName = 'reviewandsubmitview';
|
|
8520
|
+
// }
|
|
9755
8521
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
9756
8522
|
this.viewName = 'refundview';
|
|
9757
8523
|
this.OrderslistService.getRefundView().subscribe(( /**
|
|
@@ -9770,7 +8536,6 @@
|
|
|
9770
8536
|
* @return {?}
|
|
9771
8537
|
*/function (refundList) {
|
|
9772
8538
|
_this.rejectedRefundList = refundList['refund_list'];
|
|
9773
|
-
//this.refundFees = this.rejectedRefundList['refund_fees'];
|
|
9774
8539
|
})),
|
|
9775
8540
|
( /**
|
|
9776
8541
|
* @param {?} error
|
|
@@ -9788,7 +8553,6 @@
|
|
|
9788
8553
|
reason: new forms.FormControl()
|
|
9789
8554
|
});
|
|
9790
8555
|
if (this.refundlist !== undefined) {
|
|
9791
|
-
this.getRefundsNotification();
|
|
9792
8556
|
this.getRefundsStatusHistoryList();
|
|
9793
8557
|
if (this.LOGGEDINUSERROLES.some(( /**
|
|
9794
8558
|
* @param {?} i
|
|
@@ -9806,6 +8570,7 @@
|
|
|
9806
8570
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
9807
8571
|
}
|
|
9808
8572
|
}
|
|
8573
|
+
//}
|
|
9809
8574
|
};
|
|
9810
8575
|
/**
|
|
9811
8576
|
* @return {?}
|
|
@@ -9831,27 +8596,6 @@
|
|
|
9831
8596
|
});
|
|
9832
8597
|
}
|
|
9833
8598
|
};
|
|
9834
|
-
/**
|
|
9835
|
-
* @return {?}
|
|
9836
|
-
*/
|
|
9837
|
-
RefundStatusComponent.prototype.getRefundsNotification = /**
|
|
9838
|
-
* @return {?}
|
|
9839
|
-
*/
|
|
9840
|
-
function () {
|
|
9841
|
-
var _this = this;
|
|
9842
|
-
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe(( /**
|
|
9843
|
-
* @param {?} refundsNotification
|
|
9844
|
-
* @return {?}
|
|
9845
|
-
*/function (refundsNotification) {
|
|
9846
|
-
_this.notificationList = refundsNotification['notifications'];
|
|
9847
|
-
})),
|
|
9848
|
-
( /**
|
|
9849
|
-
* @param {?} error
|
|
9850
|
-
* @return {?}
|
|
9851
|
-
*/function (error) {
|
|
9852
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
9853
|
-
});
|
|
9854
|
-
};
|
|
9855
8599
|
/**
|
|
9856
8600
|
* @param {?} refundlist
|
|
9857
8601
|
* @param {?} navigationpage
|
|
@@ -9939,21 +8683,18 @@
|
|
|
9939
8683
|
}));
|
|
9940
8684
|
};
|
|
9941
8685
|
/**
|
|
9942
|
-
* @param {?} refundReason
|
|
9943
8686
|
* @return {?}
|
|
9944
8687
|
*/
|
|
9945
8688
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
9946
|
-
* @param {?} refundReason
|
|
9947
8689
|
* @return {?}
|
|
9948
8690
|
*/
|
|
9949
|
-
function (
|
|
8691
|
+
function () {
|
|
9950
8692
|
this.isRefundBtnDisabled = false;
|
|
9951
8693
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
9952
8694
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
9953
8695
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
9954
8696
|
this.errorMessage = false;
|
|
9955
|
-
this.
|
|
9956
|
-
this.viewName = 'issuerefundpage1';
|
|
8697
|
+
this.viewName = 'issuerefund';
|
|
9957
8698
|
};
|
|
9958
8699
|
/**
|
|
9959
8700
|
* @return {?}
|
|
@@ -9967,12 +8708,7 @@
|
|
|
9967
8708
|
this.isRefundBtnDisabled = false;
|
|
9968
8709
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
9969
8710
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
9970
|
-
|
|
9971
|
-
this.viewName = 'processretroremissonpage';
|
|
9972
|
-
}
|
|
9973
|
-
else {
|
|
9974
|
-
this.viewName = 'issuerefund';
|
|
9975
|
-
}
|
|
8711
|
+
this.viewName = 'processretroremissonpage';
|
|
9976
8712
|
};
|
|
9977
8713
|
/**
|
|
9978
8714
|
* @return {?}
|
|
@@ -10054,7 +8790,6 @@
|
|
|
10054
8790
|
function (refundListReason) {
|
|
10055
8791
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
10056
8792
|
this.refundlist.reason = refundListReason.reason;
|
|
10057
|
-
this.refundlist.code = refundListReason.code;
|
|
10058
8793
|
this.refundCode = refundListReason.code;
|
|
10059
8794
|
}
|
|
10060
8795
|
else {
|
|
@@ -10084,21 +8819,6 @@
|
|
|
10084
8819
|
this.viewName = 'reviewandsubmitview';
|
|
10085
8820
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
10086
8821
|
};
|
|
10087
|
-
/**
|
|
10088
|
-
* @param {?} fees
|
|
10089
|
-
* @return {?}
|
|
10090
|
-
*/
|
|
10091
|
-
RefundStatusComponent.prototype.getRefundFees = /**
|
|
10092
|
-
* @param {?} fees
|
|
10093
|
-
* @return {?}
|
|
10094
|
-
*/
|
|
10095
|
-
function (fees) {
|
|
10096
|
-
this.fees = fees;
|
|
10097
|
-
this.refundFees = this.fees.map(( /**
|
|
10098
|
-
* @param {?} obj
|
|
10099
|
-
* @return {?}
|
|
10100
|
-
*/function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10101
|
-
};
|
|
10102
8822
|
/**
|
|
10103
8823
|
* @return {?}
|
|
10104
8824
|
*/
|
|
@@ -10107,15 +8827,11 @@
|
|
|
10107
8827
|
*/
|
|
10108
8828
|
function () {
|
|
10109
8829
|
var _this = this;
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
// }
|
|
10113
|
-
if (this.refundFees === undefined) {
|
|
10114
|
-
this.refundFees = this.refundlist['refund_fees'];
|
|
8830
|
+
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8831
|
+
this.refundCode = '';
|
|
10115
8832
|
}
|
|
10116
|
-
this.refundCode = this.refundlist.code;
|
|
10117
8833
|
/** @type {?} */
|
|
10118
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount
|
|
8834
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10119
8835
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe(( /**
|
|
10120
8836
|
* @param {?} response
|
|
10121
8837
|
* @return {?}
|
|
@@ -10133,159 +8849,25 @@
|
|
|
10133
8849
|
}));
|
|
10134
8850
|
};
|
|
10135
8851
|
/**
|
|
10136
|
-
* @param {?}
|
|
10137
|
-
* @
|
|
10138
|
-
*/
|
|
10139
|
-
RefundStatusComponent.prototype.gotoEditAddressDetails = /**
|
|
10140
|
-
* @param {?} note
|
|
10141
|
-
* @return {?}
|
|
10142
|
-
*/
|
|
10143
|
-
function (note) {
|
|
10144
|
-
this.notification = note;
|
|
10145
|
-
this.isEditDetailsClicked = true;
|
|
10146
|
-
this.viewName = 'refundEditView';
|
|
10147
|
-
};
|
|
10148
|
-
/**
|
|
10149
|
-
* @param {?} obj
|
|
10150
|
-
* @return {?}
|
|
10151
|
-
*/
|
|
10152
|
-
RefundStatusComponent.prototype.getContactDetails = /**
|
|
10153
|
-
* @param {?} obj
|
|
10154
|
-
* @return {?}
|
|
10155
|
-
*/
|
|
10156
|
-
function (obj) {
|
|
10157
|
-
this.addressDetails = obj;
|
|
10158
|
-
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
10159
|
-
};
|
|
10160
|
-
/**
|
|
10161
|
-
* @param {?} obj
|
|
10162
|
-
* @return {?}
|
|
10163
|
-
*/
|
|
10164
|
-
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10165
|
-
* @param {?} obj
|
|
10166
|
-
* @return {?}
|
|
10167
|
-
*/
|
|
10168
|
-
function (obj) {
|
|
10169
|
-
this.refundlist.contact_details = obj;
|
|
10170
|
-
this.isEditDetailsClicked = false;
|
|
10171
|
-
this.isRefundBtnDisabled = false;
|
|
10172
|
-
this.viewName = 'reviewandsubmitview';
|
|
10173
|
-
};
|
|
10174
|
-
/**
|
|
10175
|
-
* @param {?=} note
|
|
10176
|
-
* @return {?}
|
|
10177
|
-
*/
|
|
10178
|
-
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10179
|
-
* @param {?=} note
|
|
10180
|
-
* @return {?}
|
|
10181
|
-
*/
|
|
10182
|
-
function (note) {
|
|
10183
|
-
if (note) {
|
|
10184
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10185
|
-
}
|
|
10186
|
-
this.isEditDetailsClicked = true;
|
|
10187
|
-
this.viewName = 'refundEditView';
|
|
10188
|
-
};
|
|
10189
|
-
/**
|
|
8852
|
+
* @param {?} refundReference
|
|
8853
|
+
* @param {?} refundList
|
|
10190
8854
|
* @return {?}
|
|
10191
8855
|
*/
|
|
10192
|
-
RefundStatusComponent.prototype.
|
|
8856
|
+
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
8857
|
+
* @param {?} refundReference
|
|
8858
|
+
* @param {?} refundList
|
|
10193
8859
|
* @return {?}
|
|
10194
8860
|
*/
|
|
10195
|
-
function () {
|
|
10196
|
-
|
|
10197
|
-
this.
|
|
10198
|
-
|
|
10199
|
-
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10200
|
-
{
|
|
10201
|
-
address_line: this.addressDetails.address_line,
|
|
10202
|
-
city: this.addressDetails.city,
|
|
10203
|
-
county: this.addressDetails.county,
|
|
10204
|
-
country: this.addressDetails.country,
|
|
10205
|
-
postal_code: this.addressDetails.postal_code,
|
|
10206
|
-
};
|
|
10207
|
-
/** @type {?} */
|
|
10208
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10209
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe(( /**
|
|
10210
|
-
* @param {?} response
|
|
10211
|
-
* @return {?}
|
|
10212
|
-
*/function (response) {
|
|
10213
|
-
_this.isResendOperationSuccess = response;
|
|
10214
|
-
}), ( /**
|
|
10215
|
-
* @param {?} error
|
|
10216
|
-
* @return {?}
|
|
10217
|
-
*/function (error) {
|
|
10218
|
-
_this.isResendOperationSuccess = false;
|
|
10219
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10220
|
-
}));
|
|
10221
|
-
};
|
|
10222
|
-
/**
|
|
10223
|
-
* @param {?} notification
|
|
10224
|
-
* @return {?}
|
|
10225
|
-
*/
|
|
10226
|
-
RefundStatusComponent.prototype.putResend = /**
|
|
10227
|
-
* @param {?} notification
|
|
10228
|
-
* @return {?}
|
|
10229
|
-
*/
|
|
10230
|
-
function (notification) {
|
|
10231
|
-
var _this = this;
|
|
10232
|
-
this.isResendOperationSuccess = false;
|
|
10233
|
-
/** @type {?} */
|
|
10234
|
-
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10235
|
-
{
|
|
10236
|
-
address_line: notification.contact_details.address_line,
|
|
10237
|
-
city: notification.contact_details.city,
|
|
10238
|
-
county: notification.contact_details.county,
|
|
10239
|
-
country: notification.contact_details.country,
|
|
10240
|
-
postal_code: notification.contact_details.postal_code,
|
|
10241
|
-
};
|
|
10242
|
-
/** @type {?} */
|
|
10243
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10244
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe(( /**
|
|
10245
|
-
* @param {?} response
|
|
10246
|
-
* @return {?}
|
|
10247
|
-
*/function (response) {
|
|
10248
|
-
_this.isResendOperationSuccess = response;
|
|
10249
|
-
}), ( /**
|
|
10250
|
-
* @param {?} error
|
|
10251
|
-
* @return {?}
|
|
10252
|
-
*/function (error) {
|
|
10253
|
-
_this.isResendOperationSuccess = false;
|
|
10254
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10255
|
-
}));
|
|
10256
|
-
};
|
|
10257
|
-
/**
|
|
10258
|
-
* @param {?} Event
|
|
10259
|
-
* @return {?}
|
|
10260
|
-
*/
|
|
10261
|
-
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10262
|
-
* @param {?} Event
|
|
10263
|
-
* @return {?}
|
|
10264
|
-
*/
|
|
10265
|
-
function (Event) {
|
|
10266
|
-
event.preventDefault();
|
|
10267
|
-
this.viewName = 'refundstatuslist';
|
|
10268
|
-
};
|
|
10269
|
-
/**
|
|
10270
|
-
* @param {?} refundReference
|
|
10271
|
-
* @param {?} refundList
|
|
10272
|
-
* @return {?}
|
|
10273
|
-
*/
|
|
10274
|
-
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
10275
|
-
* @param {?} refundReference
|
|
10276
|
-
* @param {?} refundList
|
|
10277
|
-
* @return {?}
|
|
10278
|
-
*/
|
|
10279
|
-
function (refundReference, refundList) {
|
|
10280
|
-
this.paymentLibComponent.refundlistsource = refundList;
|
|
10281
|
-
this.paymentLibComponent.refundReference = refundReference;
|
|
10282
|
-
this.paymentLibComponent.viewName = 'process-refund';
|
|
8861
|
+
function (refundReference, refundList) {
|
|
8862
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
8863
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
8864
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
10283
8865
|
};
|
|
10284
8866
|
RefundStatusComponent.decorators = [
|
|
10285
8867
|
{ type: i0.Component, args: [{
|
|
10286
8868
|
selector: 'ccpay-refund-status',
|
|
10287
|
-
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",
|
|
10288
|
-
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-
|
|
8869
|
+
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",
|
|
8870
|
+
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}"]
|
|
10289
8871
|
}] }
|
|
10290
8872
|
];
|
|
10291
8873
|
/** @nocollapse */
|
|
@@ -10293,10 +8875,10 @@
|
|
|
10293
8875
|
return [
|
|
10294
8876
|
{ type: forms.FormBuilder },
|
|
10295
8877
|
{ type: RefundsService },
|
|
10296
|
-
{ type: NotificationService },
|
|
10297
8878
|
{ type: PaymentLibComponent },
|
|
10298
|
-
{ type:
|
|
10299
|
-
{ type:
|
|
8879
|
+
{ type: PaymentViewService },
|
|
8880
|
+
{ type: router.Router },
|
|
8881
|
+
{ type: OrderslistService }
|
|
10300
8882
|
];
|
|
10301
8883
|
};
|
|
10302
8884
|
RefundStatusComponent.propDecorators = {
|
|
@@ -10304,8 +8886,7 @@
|
|
|
10304
8886
|
isOldPcipalOff: [{ type: i0.Input }],
|
|
10305
8887
|
isNewPcipalOff: [{ type: i0.Input }],
|
|
10306
8888
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
10307
|
-
isTurnOff: [{ type: i0.Input }]
|
|
10308
|
-
orderParty: [{ type: i0.Input }]
|
|
8889
|
+
isTurnOff: [{ type: i0.Input }]
|
|
10309
8890
|
};
|
|
10310
8891
|
return RefundStatusComponent;
|
|
10311
8892
|
}());
|
|
@@ -10315,11 +8896,11 @@
|
|
|
10315
8896
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10316
8897
|
*/
|
|
10317
8898
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
10318
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1,
|
|
8899
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router$$1) {
|
|
8900
|
+
var _this = this;
|
|
10319
8901
|
this.paymentLibComponent = paymentLibComponent;
|
|
10320
8902
|
this.paymentViewService = paymentViewService;
|
|
10321
8903
|
this.OrderslistService = OrderslistService$$1;
|
|
10322
|
-
this.cd = cd;
|
|
10323
8904
|
this.router = router$$1;
|
|
10324
8905
|
this.goToServiceRquestComponent = new i0.EventEmitter();
|
|
10325
8906
|
this.paymentGroups = [];
|
|
@@ -10327,6 +8908,7 @@
|
|
|
10327
8908
|
this.nonPayments = [];
|
|
10328
8909
|
this.allPayments = [];
|
|
10329
8910
|
this.remissions = [];
|
|
8911
|
+
this.fees = [];
|
|
10330
8912
|
this.isRefundRemission = true;
|
|
10331
8913
|
this.isAddFeeBtnEnabled = true;
|
|
10332
8914
|
this.isExceptionRecord = false;
|
|
@@ -10346,7 +8928,27 @@
|
|
|
10346
8928
|
this.isAddRemissionBtnEnabled = false;
|
|
10347
8929
|
this.isRefundRemissionBtnEnable = false;
|
|
10348
8930
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
10349
|
-
this.
|
|
8931
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
8932
|
+
* @return {?}
|
|
8933
|
+
*/function () {
|
|
8934
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
8935
|
+
* @param {?} role
|
|
8936
|
+
* @return {?}
|
|
8937
|
+
*/function (role) {
|
|
8938
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
8939
|
+
}));
|
|
8940
|
+
});
|
|
8941
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
8942
|
+
* @param {?} payment
|
|
8943
|
+
* @return {?}
|
|
8944
|
+
*/function (payment) {
|
|
8945
|
+
if (payment !== null && payment !== undefined) {
|
|
8946
|
+
/** @type {?} */
|
|
8947
|
+
var tmp4DayAgo = new Date();
|
|
8948
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
8949
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
8950
|
+
}
|
|
8951
|
+
});
|
|
10350
8952
|
}
|
|
10351
8953
|
/**
|
|
10352
8954
|
* @return {?}
|
|
@@ -10356,8 +8958,6 @@
|
|
|
10356
8958
|
*/
|
|
10357
8959
|
function () {
|
|
10358
8960
|
var _this = this;
|
|
10359
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10360
|
-
this.isServiceRequest = 'false';
|
|
10361
8961
|
if (this.viewStatus === undefined) {
|
|
10362
8962
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
10363
8963
|
}
|
|
@@ -10397,9 +8997,9 @@
|
|
|
10397
8997
|
*/function (data) { return _this.orderTotalPayments = data; }));
|
|
10398
8998
|
}
|
|
10399
8999
|
}
|
|
10400
|
-
if (this.
|
|
10401
|
-
|
|
10402
|
-
}
|
|
9000
|
+
// if (this.takePayment) {
|
|
9001
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
9002
|
+
// }
|
|
10403
9003
|
};
|
|
10404
9004
|
/**
|
|
10405
9005
|
* @return {?}
|
|
@@ -10428,7 +9028,7 @@
|
|
|
10428
9028
|
if (this.takePayment) {
|
|
10429
9029
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
10430
9030
|
}
|
|
10431
|
-
|
|
9031
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10432
9032
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
10433
9033
|
if (this.isServiceRequest !== 'false') {
|
|
10434
9034
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -10455,6 +9055,79 @@
|
|
|
10455
9055
|
this.router.onSameUrlNavigation = 'reload';
|
|
10456
9056
|
this.router.navigateByUrl(url);
|
|
10457
9057
|
};
|
|
9058
|
+
/**
|
|
9059
|
+
* @param {?} feeCode
|
|
9060
|
+
* @return {?}
|
|
9061
|
+
*/
|
|
9062
|
+
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9063
|
+
* @param {?} feeCode
|
|
9064
|
+
* @return {?}
|
|
9065
|
+
*/
|
|
9066
|
+
function (feeCode) {
|
|
9067
|
+
var e_1, _a;
|
|
9068
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9069
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9070
|
+
try {
|
|
9071
|
+
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9072
|
+
var remission = _c.value;
|
|
9073
|
+
if (remission.fee_code === feeCode) {
|
|
9074
|
+
return false;
|
|
9075
|
+
}
|
|
9076
|
+
}
|
|
9077
|
+
}
|
|
9078
|
+
catch (e_1_1) {
|
|
9079
|
+
e_1 = { error: e_1_1 };
|
|
9080
|
+
}
|
|
9081
|
+
finally {
|
|
9082
|
+
try {
|
|
9083
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
9084
|
+
_a.call(_b);
|
|
9085
|
+
}
|
|
9086
|
+
finally {
|
|
9087
|
+
if (e_1)
|
|
9088
|
+
throw e_1.error;
|
|
9089
|
+
}
|
|
9090
|
+
}
|
|
9091
|
+
}
|
|
9092
|
+
return true;
|
|
9093
|
+
}
|
|
9094
|
+
else {
|
|
9095
|
+
return false;
|
|
9096
|
+
}
|
|
9097
|
+
};
|
|
9098
|
+
/**
|
|
9099
|
+
* @return {?}
|
|
9100
|
+
*/
|
|
9101
|
+
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9102
|
+
* @return {?}
|
|
9103
|
+
*/
|
|
9104
|
+
function () {
|
|
9105
|
+
var _this = this;
|
|
9106
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9107
|
+
this.orderDetail.forEach(( /**
|
|
9108
|
+
* @param {?} orderDetail
|
|
9109
|
+
* @return {?}
|
|
9110
|
+
*/function (orderDetail) {
|
|
9111
|
+
if (orderDetail.payments) {
|
|
9112
|
+
orderDetail.payments.forEach(( /**
|
|
9113
|
+
* @param {?} payment
|
|
9114
|
+
* @return {?}
|
|
9115
|
+
*/function (payment) {
|
|
9116
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9117
|
+
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9118
|
+
_this.isPBA = true;
|
|
9119
|
+
}
|
|
9120
|
+
}));
|
|
9121
|
+
}
|
|
9122
|
+
}));
|
|
9123
|
+
if (this.isPBA) {
|
|
9124
|
+
return true;
|
|
9125
|
+
}
|
|
9126
|
+
else {
|
|
9127
|
+
return false;
|
|
9128
|
+
}
|
|
9129
|
+
}
|
|
9130
|
+
};
|
|
10458
9131
|
/**
|
|
10459
9132
|
* @param {?} fee
|
|
10460
9133
|
* @return {?}
|
|
@@ -10465,7 +9138,7 @@
|
|
|
10465
9138
|
*/
|
|
10466
9139
|
function (fee) {
|
|
10467
9140
|
var _this = this;
|
|
10468
|
-
if (this.
|
|
9141
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
10469
9142
|
this.feeId = fee;
|
|
10470
9143
|
this.viewStatus = 'addremission';
|
|
10471
9144
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -10479,8 +9152,8 @@
|
|
|
10479
9152
|
* @return {?}
|
|
10480
9153
|
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10481
9154
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10482
|
-
//
|
|
10483
|
-
//
|
|
9155
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9156
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10484
9157
|
}), ( /**
|
|
10485
9158
|
* @param {?} error
|
|
10486
9159
|
* @return {?}
|
|
@@ -10501,8 +9174,9 @@
|
|
|
10501
9174
|
*/
|
|
10502
9175
|
function (payment, remission, fees) {
|
|
10503
9176
|
var _this = this;
|
|
10504
|
-
this.
|
|
10505
|
-
this.
|
|
9177
|
+
this.viewStatus = 'addrefundforremission';
|
|
9178
|
+
this.payment = payment;
|
|
9179
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
10506
9180
|
* @param {?} paymentGroup
|
|
10507
9181
|
* @return {?}
|
|
10508
9182
|
*/function (paymentGroup) {
|
|
@@ -10510,14 +9184,13 @@
|
|
|
10510
9184
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
10511
9185
|
* @param {?} paymentGroupObj
|
|
10512
9186
|
* @return {?}
|
|
10513
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
9187
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
10514
9188
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10515
9189
|
_this.remissions = remission;
|
|
10516
9190
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
10517
9191
|
* @param {?} data
|
|
10518
9192
|
* @return {?}
|
|
10519
9193
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10520
|
-
_this.viewStatus = 'addrefundforremission';
|
|
10521
9194
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10522
9195
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10523
9196
|
}), ( /**
|
|
@@ -10562,40 +9235,70 @@
|
|
|
10562
9235
|
* @param {?} payment
|
|
10563
9236
|
* @return {?}
|
|
10564
9237
|
*/
|
|
10565
|
-
ServiceRequestComponent.prototype.
|
|
9238
|
+
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
10566
9239
|
* @param {?} payment
|
|
10567
9240
|
* @return {?}
|
|
10568
9241
|
*/
|
|
10569
9242
|
function (payment) {
|
|
9243
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9244
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9245
|
+
this.isIssueRefunfBtnEnable = true;
|
|
9246
|
+
}
|
|
9247
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
9248
|
+
return true;
|
|
9249
|
+
}
|
|
9250
|
+
else {
|
|
9251
|
+
return false;
|
|
9252
|
+
}
|
|
9253
|
+
};
|
|
9254
|
+
/**
|
|
9255
|
+
* @return {?}
|
|
9256
|
+
*/
|
|
9257
|
+
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9258
|
+
* @return {?}
|
|
9259
|
+
*/
|
|
9260
|
+
function () {
|
|
10570
9261
|
var _this = this;
|
|
10571
|
-
if (
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
9262
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9263
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9264
|
+
this.orderDetail.forEach(( /**
|
|
9265
|
+
* @param {?} orderDetail
|
|
9266
|
+
* @return {?}
|
|
9267
|
+
*/function (orderDetail) {
|
|
9268
|
+
if (orderDetail.payments) {
|
|
9269
|
+
orderDetail.payments.forEach(( /**
|
|
9270
|
+
* @param {?} payment
|
|
10579
9271
|
* @return {?}
|
|
10580
|
-
*/function (
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
9272
|
+
*/function (payment) {
|
|
9273
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9274
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
9275
|
+
}
|
|
9276
|
+
}));
|
|
9277
|
+
}
|
|
9278
|
+
}));
|
|
9279
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
9280
|
+
return true;
|
|
9281
|
+
}
|
|
9282
|
+
else {
|
|
9283
|
+
return false;
|
|
9284
|
+
}
|
|
9285
|
+
}
|
|
9286
|
+
};
|
|
9287
|
+
/**
|
|
9288
|
+
* @param {?} payment
|
|
9289
|
+
* @return {?}
|
|
9290
|
+
*/
|
|
9291
|
+
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9292
|
+
* @param {?} payment
|
|
9293
|
+
* @return {?}
|
|
9294
|
+
*/
|
|
9295
|
+
function (payment) {
|
|
9296
|
+
if (payment !== null && payment !== undefined) {
|
|
9297
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
9298
|
+
this.viewStatus = 'issuerefund';
|
|
9299
|
+
this.payment = payment;
|
|
9300
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9301
|
+
this.isRefundRemission = true;
|
|
10599
9302
|
}
|
|
10600
9303
|
}
|
|
10601
9304
|
};
|
|
@@ -10637,54 +9340,6 @@
|
|
|
10637
9340
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
10638
9341
|
this.viewStatus = 'payment-view';
|
|
10639
9342
|
};
|
|
10640
|
-
/**
|
|
10641
|
-
* @param {?} payment
|
|
10642
|
-
* @return {?}
|
|
10643
|
-
*/
|
|
10644
|
-
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10645
|
-
* @param {?} payment
|
|
10646
|
-
* @return {?}
|
|
10647
|
-
*/
|
|
10648
|
-
function (payment) {
|
|
10649
|
-
if (payment !== null && payment !== undefined) {
|
|
10650
|
-
return payment.issue_refund && payment.refund_enable;
|
|
10651
|
-
}
|
|
10652
|
-
else {
|
|
10653
|
-
return false;
|
|
10654
|
-
}
|
|
10655
|
-
};
|
|
10656
|
-
/**
|
|
10657
|
-
* @param {?} remission
|
|
10658
|
-
* @return {?}
|
|
10659
|
-
*/
|
|
10660
|
-
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10661
|
-
* @param {?} remission
|
|
10662
|
-
* @return {?}
|
|
10663
|
-
*/
|
|
10664
|
-
function (remission) {
|
|
10665
|
-
if (remission !== null && remission !== undefined) {
|
|
10666
|
-
return remission.add_refund;
|
|
10667
|
-
}
|
|
10668
|
-
else {
|
|
10669
|
-
return false;
|
|
10670
|
-
}
|
|
10671
|
-
};
|
|
10672
|
-
/**
|
|
10673
|
-
* @param {?} fee
|
|
10674
|
-
* @return {?}
|
|
10675
|
-
*/
|
|
10676
|
-
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10677
|
-
* @param {?} fee
|
|
10678
|
-
* @return {?}
|
|
10679
|
-
*/
|
|
10680
|
-
function (fee) {
|
|
10681
|
-
if (fee !== null && fee !== undefined) {
|
|
10682
|
-
return fee.add_remission && fee.remission_enable;
|
|
10683
|
-
}
|
|
10684
|
-
else {
|
|
10685
|
-
return false;
|
|
10686
|
-
}
|
|
10687
|
-
};
|
|
10688
9343
|
/**
|
|
10689
9344
|
* @return {?}
|
|
10690
9345
|
*/
|
|
@@ -10701,158 +9356,11 @@
|
|
|
10701
9356
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
10702
9357
|
this.OrderslistService.setorderFeesTotal(null);
|
|
10703
9358
|
};
|
|
10704
|
-
/**
|
|
10705
|
-
* @param {?} paymentType
|
|
10706
|
-
* @return {?}
|
|
10707
|
-
*/
|
|
10708
|
-
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
10709
|
-
* @param {?} paymentType
|
|
10710
|
-
* @return {?}
|
|
10711
|
-
*/
|
|
10712
|
-
function (paymentType) {
|
|
10713
|
-
this.paymentType = paymentType;
|
|
10714
|
-
this.isContinueBtnDisabled = false;
|
|
10715
|
-
};
|
|
10716
|
-
/**
|
|
10717
|
-
* @return {?}
|
|
10718
|
-
*/
|
|
10719
|
-
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
10720
|
-
* @return {?}
|
|
10721
|
-
*/
|
|
10722
|
-
function () {
|
|
10723
|
-
this.viewCompStatus = '';
|
|
10724
|
-
this.viewStatus = 'paymentview';
|
|
10725
|
-
};
|
|
10726
|
-
/**
|
|
10727
|
-
* @param {?} paymentgrp
|
|
10728
|
-
* @return {?}
|
|
10729
|
-
*/
|
|
10730
|
-
ServiceRequestComponent.prototype.continuePayment = /**
|
|
10731
|
-
* @param {?} paymentgrp
|
|
10732
|
-
* @return {?}
|
|
10733
|
-
*/
|
|
10734
|
-
function (paymentgrp) {
|
|
10735
|
-
if (this.paymentType === 'op') {
|
|
10736
|
-
this.isFullyRefund = false;
|
|
10737
|
-
this.viewStatus = '';
|
|
10738
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10739
|
-
}
|
|
10740
|
-
else if (this.paymentType === 'fp') {
|
|
10741
|
-
this.isFullyRefund = true;
|
|
10742
|
-
this.paymentGroupList = paymentgrp;
|
|
10743
|
-
this.viewStatus = 'issuerefund';
|
|
10744
|
-
this.viewCompStatus = "";
|
|
10745
|
-
this.isRefundRemission = true;
|
|
10746
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
10747
|
-
this.isFromPaymentDetailPage = true;
|
|
10748
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
10749
|
-
}
|
|
10750
|
-
};
|
|
10751
|
-
/**
|
|
10752
|
-
* @param {?} obj
|
|
10753
|
-
* @return {?}
|
|
10754
|
-
*/
|
|
10755
|
-
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
10756
|
-
* @param {?} obj
|
|
10757
|
-
* @return {?}
|
|
10758
|
-
*/
|
|
10759
|
-
function (obj) {
|
|
10760
|
-
this.contactDetailsObj = obj;
|
|
10761
|
-
this.viewStatus = '';
|
|
10762
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10763
|
-
};
|
|
10764
|
-
/**
|
|
10765
|
-
* @param {?} event
|
|
10766
|
-
* @return {?}
|
|
10767
|
-
*/
|
|
10768
|
-
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
10769
|
-
* @param {?} event
|
|
10770
|
-
* @return {?}
|
|
10771
|
-
*/
|
|
10772
|
-
function (event) {
|
|
10773
|
-
event.preventDefault();
|
|
10774
|
-
this.viewStatus = '';
|
|
10775
|
-
this.viewCompStatus = 'overpayment';
|
|
10776
|
-
};
|
|
10777
|
-
/**
|
|
10778
|
-
* @param {?=} note
|
|
10779
|
-
* @return {?}
|
|
10780
|
-
*/
|
|
10781
|
-
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
10782
|
-
* @param {?=} note
|
|
10783
|
-
* @return {?}
|
|
10784
|
-
*/
|
|
10785
|
-
function (note) {
|
|
10786
|
-
if (note) {
|
|
10787
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10788
|
-
}
|
|
10789
|
-
this.errorMessage = '';
|
|
10790
|
-
this.viewStatus = '';
|
|
10791
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10792
|
-
};
|
|
10793
|
-
/**
|
|
10794
|
-
* @return {?}
|
|
10795
|
-
*/
|
|
10796
|
-
ServiceRequestComponent.prototype.processRefund = /**
|
|
10797
|
-
* @return {?}
|
|
10798
|
-
*/
|
|
10799
|
-
function () {
|
|
10800
|
-
var _this = this;
|
|
10801
|
-
this.isConfirmationBtnDisabled = true;
|
|
10802
|
-
this.errorMessage = '';
|
|
10803
|
-
/** @type {?} */
|
|
10804
|
-
var obj = this.paymentGroupList.fees[0];
|
|
10805
|
-
this.fees = [{ id: obj.id,
|
|
10806
|
-
code: obj.code,
|
|
10807
|
-
version: obj.version,
|
|
10808
|
-
apportion_amount: obj.apportion_amount,
|
|
10809
|
-
calculated_amount: obj.calculated_amount,
|
|
10810
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
10811
|
-
volume: obj.volume,
|
|
10812
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
10813
|
-
/** @type {?} */
|
|
10814
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
10815
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
10816
|
-
* @param {?} response
|
|
10817
|
-
* @return {?}
|
|
10818
|
-
*/function (response) {
|
|
10819
|
-
if (JSON.parse(response)) {
|
|
10820
|
-
_this.viewCompStatus = '';
|
|
10821
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
10822
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
10823
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
10824
|
-
}
|
|
10825
|
-
}), ( /**
|
|
10826
|
-
* @param {?} error
|
|
10827
|
-
* @return {?}
|
|
10828
|
-
*/function (error) {
|
|
10829
|
-
_this.errorMessage = error;
|
|
10830
|
-
_this.isConfirmationBtnDisabled = false;
|
|
10831
|
-
_this.cd.detectChanges();
|
|
10832
|
-
}));
|
|
10833
|
-
};
|
|
10834
|
-
/**
|
|
10835
|
-
* @return {?}
|
|
10836
|
-
*/
|
|
10837
|
-
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
10838
|
-
* @return {?}
|
|
10839
|
-
*/
|
|
10840
|
-
function () {
|
|
10841
|
-
/** @type {?} */
|
|
10842
|
-
var feesOverPayment = 0;
|
|
10843
|
-
this.paymentGroupList.fees.forEach(( /**
|
|
10844
|
-
* @param {?} fee
|
|
10845
|
-
* @return {?}
|
|
10846
|
-
*/function (fee) {
|
|
10847
|
-
feesOverPayment += fee.over_payment;
|
|
10848
|
-
}));
|
|
10849
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
10850
|
-
};
|
|
10851
9359
|
ServiceRequestComponent.decorators = [
|
|
10852
9360
|
{ type: i0.Component, args: [{
|
|
10853
9361
|
selector: 'ccpay-service-request',
|
|
10854
|
-
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>",
|
|
10855
|
-
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%}
|
|
9362
|
+
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>",
|
|
9363
|
+
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%}"]
|
|
10856
9364
|
}] }
|
|
10857
9365
|
];
|
|
10858
9366
|
/** @nocollapse */
|
|
@@ -10861,7 +9369,6 @@
|
|
|
10861
9369
|
{ type: PaymentLibComponent },
|
|
10862
9370
|
{ type: PaymentViewService },
|
|
10863
9371
|
{ type: OrderslistService },
|
|
10864
|
-
{ type: i0.ChangeDetectorRef },
|
|
10865
9372
|
{ type: router.Router }
|
|
10866
9373
|
];
|
|
10867
9374
|
};
|
|
@@ -10877,7 +9384,6 @@
|
|
|
10877
9384
|
orderFeesTotal: [{ type: i0.Input, args: ['orderFeesTotal',] }],
|
|
10878
9385
|
orderTotalPayments: [{ type: i0.Input, args: ['orderTotalPayments',] }],
|
|
10879
9386
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
10880
|
-
paymentGroupList: [{ type: i0.Input, args: ['paymentGroupList',] }],
|
|
10881
9387
|
takePayment: [{ type: i0.Input, args: ['takePayment',] }],
|
|
10882
9388
|
ccdCaseNumber: [{ type: i0.Input, args: ['ccdCaseNumber',] }],
|
|
10883
9389
|
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
@@ -11146,7 +9652,6 @@
|
|
|
11146
9652
|
PaymentListComponent,
|
|
11147
9653
|
PaymentViewComponent,
|
|
11148
9654
|
PbaPaymentComponent,
|
|
11149
|
-
ContactDetailsComponent,
|
|
11150
9655
|
ProcessRefundComponent,
|
|
11151
9656
|
RefundListComponent,
|
|
11152
9657
|
CardDetailsComponent,
|
|
@@ -11195,47 +9700,45 @@
|
|
|
11195
9700
|
exports.PaymentLibService = PaymentLibService;
|
|
11196
9701
|
exports.PaymentLibComponent = PaymentLibComponent;
|
|
11197
9702
|
exports.PaymentLibModule = PaymentLibModule;
|
|
11198
|
-
exports.ɵ
|
|
11199
|
-
exports.ɵ
|
|
11200
|
-
exports.ɵ
|
|
11201
|
-
exports.ɵ
|
|
11202
|
-
exports.ɵ
|
|
11203
|
-
exports.ɵ
|
|
11204
|
-
exports.ɵ
|
|
11205
|
-
exports.ɵt =
|
|
11206
|
-
exports.ɵ
|
|
11207
|
-
exports.ɵq = PageNotFoundComponent;
|
|
9703
|
+
exports.ɵbb = AddRemissionComponent;
|
|
9704
|
+
exports.ɵw = AllocatePaymentsComponent;
|
|
9705
|
+
exports.ɵm = CardDetailsComponent;
|
|
9706
|
+
exports.ɵz = CaseTransactionsComponent;
|
|
9707
|
+
exports.ɵbi = ErrorBannerComponent;
|
|
9708
|
+
exports.ɵba = FeeSummaryComponent;
|
|
9709
|
+
exports.ɵr = MarkUnidentifiedPaymentComponent;
|
|
9710
|
+
exports.ɵt = MarkUnsolicitedPaymentComponent;
|
|
9711
|
+
exports.ɵo = PageNotFoundComponent;
|
|
11208
9712
|
exports.ɵb = PaymentListComponent;
|
|
11209
9713
|
exports.ɵf = PaymentViewComponent;
|
|
11210
|
-
exports.ɵ
|
|
9714
|
+
exports.ɵy = PbaDetailsComponent;
|
|
11211
9715
|
exports.ɵi = PbaPaymentComponent;
|
|
11212
|
-
exports.ɵ
|
|
11213
|
-
exports.ɵ
|
|
11214
|
-
exports.ɵ
|
|
11215
|
-
exports.ɵ
|
|
11216
|
-
exports.ɵ
|
|
11217
|
-
exports.ɵ
|
|
11218
|
-
exports.ɵ
|
|
11219
|
-
exports.ɵ
|
|
11220
|
-
exports.ɵ
|
|
11221
|
-
exports.ɵ
|
|
11222
|
-
exports.ɵ
|
|
11223
|
-
exports.ɵ
|
|
11224
|
-
exports.ɵ
|
|
11225
|
-
exports.ɵ
|
|
11226
|
-
exports.ɵ
|
|
11227
|
-
exports.ɵ
|
|
11228
|
-
exports.ɵk = NotificationService;
|
|
9716
|
+
exports.ɵj = ProcessRefundComponent;
|
|
9717
|
+
exports.ɵv = ProcessedPaymentsComponent;
|
|
9718
|
+
exports.ɵl = RefundListComponent;
|
|
9719
|
+
exports.ɵbk = RefundStatusComponent;
|
|
9720
|
+
exports.ɵbg = ReportsComponent;
|
|
9721
|
+
exports.ɵbl = ServiceRequestComponent;
|
|
9722
|
+
exports.ɵp = StatusHistoryComponent;
|
|
9723
|
+
exports.ɵbj = TableComponent;
|
|
9724
|
+
exports.ɵu = UnprocessedPaymentsComponent;
|
|
9725
|
+
exports.ɵbd = CapitalizePipe;
|
|
9726
|
+
exports.ɵbc = CcdHyphensPipe;
|
|
9727
|
+
exports.ɵbe = keyValuePipe;
|
|
9728
|
+
exports.ɵbf = SanitizeHtmlPipe;
|
|
9729
|
+
exports.ɵs = BulkScaningPaymentService;
|
|
9730
|
+
exports.ɵn = CardDetailsService;
|
|
9731
|
+
exports.ɵx = CaseTransactionsService;
|
|
11229
9732
|
exports.ɵa = OrderslistService;
|
|
11230
9733
|
exports.ɵc = PaymentListService;
|
|
11231
9734
|
exports.ɵg = PaymentViewService;
|
|
11232
|
-
exports.ɵ
|
|
9735
|
+
exports.ɵk = RefundsService;
|
|
11233
9736
|
exports.ɵe = ErrorHandlerService;
|
|
11234
9737
|
exports.ɵh = WebComponentHttpClient;
|
|
11235
|
-
exports.ɵ
|
|
9738
|
+
exports.ɵbm = ConsoleLoggerService;
|
|
11236
9739
|
exports.ɵd = LoggerService;
|
|
11237
|
-
exports.ɵ
|
|
11238
|
-
exports.ɵ
|
|
9740
|
+
exports.ɵq = StatusHistoryService;
|
|
9741
|
+
exports.ɵbh = XlFileService;
|
|
11239
9742
|
|
|
11240
9743
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11241
9744
|
|