@hmcts/ccpay-web-component 5.0.7-beta22 → 5.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccpay-web-component.umd.js +633 -2069
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/hmcts-ccpay-web-component.js +31 -33
- package/esm2015/lib/components/add-remission/add-remission.component.js +120 -695
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +13 -18
- package/esm2015/lib/components/payment-view/payment-view.component.js +106 -188
- package/esm2015/lib/components/process-refund/process-refund.component.js +28 -49
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +30 -211
- package/esm2015/lib/components/reports/reports.component.js +16 -1
- package/esm2015/lib/components/service-request/service-request.component.js +146 -237
- package/esm2015/lib/components/table/table.component.js +9 -24
- package/esm2015/lib/interfaces/IFee.js +1 -13
- package/esm2015/lib/interfaces/IPayment.js +1 -7
- package/esm2015/lib/interfaces/IRefundList.js +1 -7
- package/esm2015/lib/interfaces/IRemission.js +1 -7
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -20
- package/esm2015/lib/payment-lib.component.js +2 -9
- package/esm2015/lib/payment-lib.module.js +1 -3
- package/esm2015/lib/payment-lib.service.js +1 -16
- package/esm2015/lib/services/refunds/refunds.service.js +1 -10
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm2015/lib/services/xl-file/xl-file.service.js +2 -1
- package/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +125 -817
- package/esm5/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm5/lib/components/fee-summary/fee-summary.component.js +13 -18
- package/esm5/lib/components/payment-view/payment-view.component.js +124 -219
- package/esm5/lib/components/process-refund/process-refund.component.js +78 -52
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +28 -247
- package/esm5/lib/components/reports/reports.component.js +16 -1
- package/esm5/lib/components/service-request/service-request.component.js +176 -278
- package/esm5/lib/components/table/table.component.js +9 -27
- package/esm5/lib/interfaces/IFee.js +1 -13
- package/esm5/lib/interfaces/IPayment.js +1 -7
- package/esm5/lib/interfaces/IRefundList.js +1 -7
- package/esm5/lib/interfaces/IRemission.js +1 -7
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -16
- package/esm5/lib/payment-lib.component.js +2 -9
- package/esm5/lib/payment-lib.module.js +1 -3
- package/esm5/lib/payment-lib.service.js +1 -23
- package/esm5/lib/services/refunds/refunds.service.js +1 -16
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/lib/services/xl-file/xl-file.service.js +2 -1
- package/fesm2015/hmcts-ccpay-web-component.js +507 -1818
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +592 -2069
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +30 -32
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +3 -45
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -2
- package/lib/components/payment-view/payment-view.component.d.ts +6 -23
- package/lib/components/process-refund/process-refund.component.d.ts +1 -6
- package/lib/components/refund-status/refund-status.component.d.ts +6 -34
- package/lib/components/service-request/service-request.component.d.ts +9 -28
- package/lib/components/table/table.component.d.ts +0 -1
- package/lib/interfaces/IFee.d.ts +0 -6
- package/lib/interfaces/IPayment.d.ts +0 -3
- package/lib/interfaces/IRefundList.d.ts +0 -4
- package/lib/interfaces/IRemission.d.ts +0 -3
- package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
- package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -7
- package/lib/payment-lib.component.d.ts +0 -2
- package/lib/payment-lib.service.d.ts +0 -3
- package/lib/services/refunds/refunds.service.d.ts +0 -2
- package/package.json +1 -5
- package/esm2015/lib/components/contact-details/contact-details.component.js +0 -447
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
- package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm2015/lib/interfaces/IRefundFee.js +0 -21
- package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm2015/lib/services/notification/notification.service.js +0 -85
- package/esm5/lib/components/contact-details/contact-details.component.js +0 -472
- package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
- package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm5/lib/interfaces/IRefundFee.js +0 -21
- package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm5/lib/services/notification/notification.service.js +0 -89
- package/lib/components/contact-details/contact-details.component.d.ts +0 -49
- package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
- package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
- package/lib/interfaces/IRefundFee.d.ts +0 -7
- package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
- package/lib/services/notification/notification.service.d.ts +0 -15
|
@@ -71,26 +71,6 @@
|
|
|
71
71
|
function () {
|
|
72
72
|
return this.REFUNDS_API_ROOT;
|
|
73
73
|
};
|
|
74
|
-
/**
|
|
75
|
-
* @param {?} notificationapiRoot
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
PaymentLibService.prototype.setNoticationApiRootUrl = /**
|
|
79
|
-
* @param {?} notificationapiRoot
|
|
80
|
-
* @return {?}
|
|
81
|
-
*/
|
|
82
|
-
function (notificationapiRoot) {
|
|
83
|
-
this.NOTIFICATION_API_ROOT = notificationapiRoot;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
PaymentLibService.prototype.getNoticationApiRootUrl = /**
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
function () {
|
|
92
|
-
return this.NOTIFICATION_API_ROOT;
|
|
93
|
-
};
|
|
94
74
|
/**
|
|
95
75
|
* @param {?} cardPaymentReturnUrl
|
|
96
76
|
* @return {?}
|
|
@@ -541,7 +521,6 @@
|
|
|
541
521
|
this.cd = cd;
|
|
542
522
|
this.OrderslistService = OrderslistService$$1;
|
|
543
523
|
this.unProcessedPaymentServiceId = null;
|
|
544
|
-
this.isFromPayBubble = false;
|
|
545
524
|
this.unProcessedPayment = null;
|
|
546
525
|
this.orderFeesTotal = 0.00;
|
|
547
526
|
this.orderRemissionTotal = 0.00;
|
|
@@ -567,7 +546,6 @@
|
|
|
567
546
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
568
547
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
569
548
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
570
|
-
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
571
549
|
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
572
550
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
573
551
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
@@ -598,7 +576,7 @@
|
|
|
598
576
|
PaymentLibComponent.decorators = [
|
|
599
577
|
{ type: i0.Component, args: [{
|
|
600
578
|
selector: 'ccpay-payment-lib',
|
|
601
|
-
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\"\n [API_ROOT]=\"API_ROOT\"\n *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [ISPAYMENTSTATUSENABLED] = \"ISPAYMENTSTATUSENABLED\"\n ></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [
|
|
579
|
+
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\"\n [API_ROOT]=\"API_ROOT\"\n *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [ISPAYMENTSTATUSENABLED] = \"ISPAYMENTSTATUSENABLED\"\n ></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'case-transactions'\"></ccpay-case-transactions>\n <app-mark-unidentified-payment *ngIf=\"viewName === 'unidentifiedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unidentified-payment>\n <app-mark-unsolicited-payment *ngIf=\"viewName === 'unsolicitedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unsolicited-payment>\n <app-allocate-payments *ngIf=\"viewName === 'allocate-payments'\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n ></app-allocate-payments>\n <ccpay-fee-summary *ngIf=\"viewName === 'fee-summary'\"\n [ccdCaseNumber]=\"CCD_CASE_NUMBER\"\n [paymentGroupRef]=\"paymentGroupReference\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n ></ccpay-fee-summary>\n <ccpay-reports *ngIf=\"viewName === 'reports'\"\n [ISPAYMENTSTATUSENABLED] = \"ISPAYMENTSTATUSENABLED\"\n ></ccpay-reports>\n "
|
|
602
580
|
}] }
|
|
603
581
|
];
|
|
604
582
|
/** @nocollapse */
|
|
@@ -613,7 +591,6 @@
|
|
|
613
591
|
API_ROOT: [{ type: i0.Input, args: ['API_ROOT',] }],
|
|
614
592
|
BULKSCAN_API_ROOT: [{ type: i0.Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
615
593
|
REFUNDS_API_ROOT: [{ type: i0.Input, args: ['REFUNDS_API_ROOT',] }],
|
|
616
|
-
NOTIFICATION_API_ROOT: [{ type: i0.Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
617
594
|
CARDPAYMENTRETURNURL: [{ type: i0.Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
618
595
|
CCD_CASE_NUMBER: [{ type: i0.Input, args: ['CCD_CASE_NUMBER',] }],
|
|
619
596
|
EXC_REFERENCE: [{ type: i0.Input, args: ['EXC_REFERENCE',] }],
|
|
@@ -1445,28 +1422,13 @@
|
|
|
1445
1422
|
return PaymentViewService;
|
|
1446
1423
|
}());
|
|
1447
1424
|
|
|
1448
|
-
/**
|
|
1449
|
-
* @fileoverview added by tsickle
|
|
1450
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1451
|
-
*/
|
|
1452
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
1453
|
-
function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1454
|
-
this.contact_details = contact_details;
|
|
1455
|
-
this.fees = fees;
|
|
1456
|
-
this.payment_reference = payment_reference;
|
|
1457
|
-
this.refund_reason = refund_reason;
|
|
1458
|
-
this.total_refund_amount = total_refund_amount;
|
|
1459
|
-
this.is_over_payment = is_over_payment === 'op';
|
|
1460
|
-
}
|
|
1461
|
-
return PostRefundRetroRemission;
|
|
1462
|
-
}());
|
|
1463
|
-
|
|
1464
1425
|
/**
|
|
1465
1426
|
* @fileoverview added by tsickle
|
|
1466
1427
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1467
1428
|
*/
|
|
1468
1429
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1469
1430
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1431
|
+
var _this = this;
|
|
1470
1432
|
this.paymentViewService = paymentViewService;
|
|
1471
1433
|
this.paymentLibComponent = paymentLibComponent;
|
|
1472
1434
|
this.cd = cd;
|
|
@@ -1477,7 +1439,27 @@
|
|
|
1477
1439
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1478
1440
|
this.remissions = [];
|
|
1479
1441
|
this.allPaymentsFailure = [];
|
|
1480
|
-
this.
|
|
1442
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
1443
|
+
* @return {?}
|
|
1444
|
+
*/function () {
|
|
1445
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
1446
|
+
* @param {?} role
|
|
1447
|
+
* @return {?}
|
|
1448
|
+
*/function (role) {
|
|
1449
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1450
|
+
}));
|
|
1451
|
+
});
|
|
1452
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
1453
|
+
* @param {?} payment
|
|
1454
|
+
* @return {?}
|
|
1455
|
+
*/function (payment) {
|
|
1456
|
+
if (payment !== null && payment !== undefined) {
|
|
1457
|
+
/** @type {?} */
|
|
1458
|
+
var tmp4DayAgo = new Date();
|
|
1459
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1460
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1481
1463
|
}
|
|
1482
1464
|
/**
|
|
1483
1465
|
* @return {?}
|
|
@@ -1528,7 +1510,6 @@
|
|
|
1528
1510
|
}
|
|
1529
1511
|
}));
|
|
1530
1512
|
paymentGroup.fees = fees;
|
|
1531
|
-
_this.paymentFees = fees;
|
|
1532
1513
|
_this.paymentGroup = paymentGroup;
|
|
1533
1514
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1534
1515
|
* @param {?} paymentGroupObj
|
|
@@ -1596,23 +1577,6 @@
|
|
|
1596
1577
|
/**
|
|
1597
1578
|
* @return {?}
|
|
1598
1579
|
*/
|
|
1599
|
-
PaymentViewComponent.prototype.getOverPaymentValue = /**
|
|
1600
|
-
* @return {?}
|
|
1601
|
-
*/
|
|
1602
|
-
function () {
|
|
1603
|
-
/** @type {?} */
|
|
1604
|
-
var feesOverPayment = 0;
|
|
1605
|
-
this.paymentGroup.fees.forEach(( /**
|
|
1606
|
-
* @param {?} fee
|
|
1607
|
-
* @return {?}
|
|
1608
|
-
*/function (fee) {
|
|
1609
|
-
feesOverPayment += fee.over_payment;
|
|
1610
|
-
}));
|
|
1611
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1612
|
-
};
|
|
1613
|
-
/**
|
|
1614
|
-
* @return {?}
|
|
1615
|
-
*/
|
|
1616
1580
|
PaymentViewComponent.prototype.goToServiceRequestPage = /**
|
|
1617
1581
|
* @return {?}
|
|
1618
1582
|
*/
|
|
@@ -1687,7 +1651,7 @@
|
|
|
1687
1651
|
*/
|
|
1688
1652
|
function (fee) {
|
|
1689
1653
|
var _this = this;
|
|
1690
|
-
if (this.
|
|
1654
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
1691
1655
|
this.feeId = fee;
|
|
1692
1656
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe(( /**
|
|
1693
1657
|
* @param {?} paymentGroup
|
|
@@ -1725,62 +1689,6 @@
|
|
|
1725
1689
|
}
|
|
1726
1690
|
return false;
|
|
1727
1691
|
};
|
|
1728
|
-
/**
|
|
1729
|
-
* @return {?}
|
|
1730
|
-
*/
|
|
1731
|
-
PaymentViewComponent.prototype.processRefund = /**
|
|
1732
|
-
* @return {?}
|
|
1733
|
-
*/
|
|
1734
|
-
function () {
|
|
1735
|
-
var _this = this;
|
|
1736
|
-
this.isConfirmationBtnDisabled = true;
|
|
1737
|
-
this.errorMessage = '';
|
|
1738
|
-
/** @type {?} */
|
|
1739
|
-
var obj = this.paymentGroup.fees[0];
|
|
1740
|
-
this.fees = [{ id: obj.id,
|
|
1741
|
-
code: obj.code,
|
|
1742
|
-
version: obj.version,
|
|
1743
|
-
apportion_amount: obj.apportion_amount,
|
|
1744
|
-
calculated_amount: obj.calculated_amount,
|
|
1745
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1746
|
-
volume: obj.volume,
|
|
1747
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
1748
|
-
/** @type {?} */
|
|
1749
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1750
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
1751
|
-
* @param {?} response
|
|
1752
|
-
* @return {?}
|
|
1753
|
-
*/function (response) {
|
|
1754
|
-
if (JSON.parse(response)) {
|
|
1755
|
-
_this.viewCompStatus = '';
|
|
1756
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
1757
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
1758
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
1759
|
-
}
|
|
1760
|
-
}), ( /**
|
|
1761
|
-
* @param {?} error
|
|
1762
|
-
* @return {?}
|
|
1763
|
-
*/function (error) {
|
|
1764
|
-
_this.errorMessage = error;
|
|
1765
|
-
_this.isConfirmationBtnDisabled = false;
|
|
1766
|
-
_this.cd.detectChanges();
|
|
1767
|
-
}));
|
|
1768
|
-
};
|
|
1769
|
-
/**
|
|
1770
|
-
* @param {?=} note
|
|
1771
|
-
* @return {?}
|
|
1772
|
-
*/
|
|
1773
|
-
PaymentViewComponent.prototype.gotoAddressPage = /**
|
|
1774
|
-
* @param {?=} note
|
|
1775
|
-
* @return {?}
|
|
1776
|
-
*/
|
|
1777
|
-
function (note) {
|
|
1778
|
-
if (note) {
|
|
1779
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1780
|
-
}
|
|
1781
|
-
this.errorMessage = '';
|
|
1782
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1783
|
-
};
|
|
1784
1692
|
/**
|
|
1785
1693
|
* @param {?} payment
|
|
1786
1694
|
* @param {?} remission
|
|
@@ -1795,40 +1703,56 @@
|
|
|
1795
1703
|
*/
|
|
1796
1704
|
function (payment, remission, fees) {
|
|
1797
1705
|
var _this = this;
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
*/function (paymentGroup) {
|
|
1803
|
-
_this.paymentGroup = paymentGroup;
|
|
1804
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1805
|
-
* @param {?} paymentGroupObj
|
|
1706
|
+
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1707
|
+
this.payment = payment;
|
|
1708
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
1709
|
+
* @param {?} paymentGroup
|
|
1806
1710
|
* @return {?}
|
|
1807
|
-
*/function (
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1711
|
+
*/function (paymentGroup) {
|
|
1712
|
+
_this.paymentGroup = paymentGroup;
|
|
1713
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1714
|
+
* @param {?} paymentGroupObj
|
|
1715
|
+
* @return {?}
|
|
1716
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1717
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1718
|
+
_this.remissions = remission;
|
|
1719
|
+
_this.remissionFeeAmt = fees.filter(( /**
|
|
1720
|
+
* @param {?} data
|
|
1721
|
+
* @return {?}
|
|
1722
|
+
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1723
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1724
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1725
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1726
|
+
}), ( /**
|
|
1727
|
+
* @param {?} error
|
|
1812
1728
|
* @return {?}
|
|
1813
|
-
*/function (
|
|
1814
|
-
|
|
1815
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1816
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1817
|
-
}), ( /**
|
|
1818
|
-
* @param {?} error
|
|
1819
|
-
* @return {?}
|
|
1820
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
1821
|
-
//}
|
|
1729
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
1730
|
+
}
|
|
1822
1731
|
};
|
|
1823
1732
|
/**
|
|
1824
1733
|
* @return {?}
|
|
1825
1734
|
*/
|
|
1826
|
-
PaymentViewComponent.prototype.
|
|
1735
|
+
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
1827
1736
|
* @return {?}
|
|
1828
1737
|
*/
|
|
1829
1738
|
function () {
|
|
1830
|
-
|
|
1831
|
-
this.
|
|
1739
|
+
var _this = this;
|
|
1740
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1741
|
+
this.paymentGroup.payments.forEach(( /**
|
|
1742
|
+
* @param {?} payment
|
|
1743
|
+
* @return {?}
|
|
1744
|
+
*/function (payment) {
|
|
1745
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1746
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1747
|
+
}
|
|
1748
|
+
}));
|
|
1749
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1750
|
+
return true;
|
|
1751
|
+
}
|
|
1752
|
+
else {
|
|
1753
|
+
return false;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1832
1756
|
};
|
|
1833
1757
|
/**
|
|
1834
1758
|
* @param {?} paymentgrp
|
|
@@ -1840,18 +1764,13 @@
|
|
|
1840
1764
|
*/
|
|
1841
1765
|
function (paymentgrp) {
|
|
1842
1766
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1843
|
-
if (this.
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
this.isRefundRemission = true;
|
|
1851
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1852
|
-
this.isFromPaymentDetailPage = true;
|
|
1853
|
-
this.isFromServiceRequestPage = false;
|
|
1854
|
-
}
|
|
1767
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1768
|
+
this.paymentGroup = paymentgrp;
|
|
1769
|
+
this.viewStatus = 'issuerefund';
|
|
1770
|
+
this.isRefundRemission = true;
|
|
1771
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1772
|
+
this.isFromPaymentDetailPage = true;
|
|
1773
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1855
1774
|
}
|
|
1856
1775
|
}
|
|
1857
1776
|
};
|
|
@@ -1896,110 +1815,79 @@
|
|
|
1896
1815
|
* @param {?} payment
|
|
1897
1816
|
* @return {?}
|
|
1898
1817
|
*/
|
|
1899
|
-
PaymentViewComponent.prototype.
|
|
1818
|
+
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
1900
1819
|
* @param {?} payment
|
|
1901
1820
|
* @return {?}
|
|
1902
1821
|
*/
|
|
1903
1822
|
function (payment) {
|
|
1904
|
-
if (
|
|
1905
|
-
|
|
1823
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
1824
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
1825
|
+
this.isIssueRefunfBtnEnable = true;
|
|
1826
|
+
}
|
|
1827
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
1828
|
+
return true;
|
|
1906
1829
|
}
|
|
1907
1830
|
else {
|
|
1908
1831
|
return false;
|
|
1909
1832
|
}
|
|
1910
1833
|
};
|
|
1911
1834
|
/**
|
|
1912
|
-
* @param {?} remission
|
|
1913
1835
|
* @return {?}
|
|
1914
1836
|
*/
|
|
1915
|
-
PaymentViewComponent.prototype.
|
|
1916
|
-
* @param {?} remission
|
|
1837
|
+
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
1917
1838
|
* @return {?}
|
|
1918
1839
|
*/
|
|
1919
|
-
function (
|
|
1920
|
-
if (
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1840
|
+
function () {
|
|
1841
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1842
|
+
/** @type {?} */
|
|
1843
|
+
var payment = this.paymentGroup.payments[0];
|
|
1844
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1845
|
+
return true;
|
|
1846
|
+
}
|
|
1924
1847
|
return false;
|
|
1925
1848
|
}
|
|
1926
1849
|
};
|
|
1927
1850
|
/**
|
|
1928
|
-
* @param {?}
|
|
1851
|
+
* @param {?} feeCode
|
|
1929
1852
|
* @return {?}
|
|
1930
1853
|
*/
|
|
1931
|
-
PaymentViewComponent.prototype.
|
|
1932
|
-
* @param {?}
|
|
1854
|
+
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
1855
|
+
* @param {?} feeCode
|
|
1933
1856
|
* @return {?}
|
|
1934
1857
|
*/
|
|
1935
|
-
function (
|
|
1936
|
-
|
|
1937
|
-
|
|
1858
|
+
function (feeCode) {
|
|
1859
|
+
var e_2, _a;
|
|
1860
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
1861
|
+
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1862
|
+
try {
|
|
1863
|
+
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1864
|
+
var remission = _c.value;
|
|
1865
|
+
if (remission.fee_code === feeCode) {
|
|
1866
|
+
return false;
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
catch (e_2_1) {
|
|
1871
|
+
e_2 = { error: e_2_1 };
|
|
1872
|
+
}
|
|
1873
|
+
finally {
|
|
1874
|
+
try {
|
|
1875
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
1876
|
+
_a.call(_b);
|
|
1877
|
+
}
|
|
1878
|
+
finally {
|
|
1879
|
+
if (e_2)
|
|
1880
|
+
throw e_2.error;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
return true;
|
|
1884
|
+
}
|
|
1885
|
+
return true;
|
|
1938
1886
|
}
|
|
1939
1887
|
else {
|
|
1940
1888
|
return false;
|
|
1941
1889
|
}
|
|
1942
1890
|
};
|
|
1943
|
-
/**
|
|
1944
|
-
* @param {?} paymentType
|
|
1945
|
-
* @return {?}
|
|
1946
|
-
*/
|
|
1947
|
-
PaymentViewComponent.prototype.selectPymentOption = /**
|
|
1948
|
-
* @param {?} paymentType
|
|
1949
|
-
* @return {?}
|
|
1950
|
-
*/
|
|
1951
|
-
function (paymentType) {
|
|
1952
|
-
this.paymentType = paymentType;
|
|
1953
|
-
this.isContinueBtnDisabled = false;
|
|
1954
|
-
};
|
|
1955
|
-
/**
|
|
1956
|
-
* @param {?} paymentgrp
|
|
1957
|
-
* @return {?}
|
|
1958
|
-
*/
|
|
1959
|
-
PaymentViewComponent.prototype.continuePayment = /**
|
|
1960
|
-
* @param {?} paymentgrp
|
|
1961
|
-
* @return {?}
|
|
1962
|
-
*/
|
|
1963
|
-
function (paymentgrp) {
|
|
1964
|
-
if (this.paymentType === 'op') {
|
|
1965
|
-
this.isFullyRefund = false;
|
|
1966
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1967
|
-
}
|
|
1968
|
-
else if (this.paymentType === 'fp') {
|
|
1969
|
-
this.isFullyRefund = true;
|
|
1970
|
-
this.paymentGroup = paymentgrp;
|
|
1971
|
-
this.viewStatus = 'issuerefund';
|
|
1972
|
-
this.viewCompStatus = "";
|
|
1973
|
-
this.isRefundRemission = true;
|
|
1974
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1975
|
-
this.isFromPaymentDetailPage = true;
|
|
1976
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1977
|
-
}
|
|
1978
|
-
};
|
|
1979
|
-
/**
|
|
1980
|
-
* @param {?} event
|
|
1981
|
-
* @return {?}
|
|
1982
|
-
*/
|
|
1983
|
-
PaymentViewComponent.prototype.gotoPaymentSelectPage = /**
|
|
1984
|
-
* @param {?} event
|
|
1985
|
-
* @return {?}
|
|
1986
|
-
*/
|
|
1987
|
-
function (event) {
|
|
1988
|
-
event.preventDefault();
|
|
1989
|
-
this.viewCompStatus = 'overpayment';
|
|
1990
|
-
};
|
|
1991
|
-
/**
|
|
1992
|
-
* @param {?} obj
|
|
1993
|
-
* @return {?}
|
|
1994
|
-
*/
|
|
1995
|
-
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1996
|
-
* @param {?} obj
|
|
1997
|
-
* @return {?}
|
|
1998
|
-
*/
|
|
1999
|
-
function (obj) {
|
|
2000
|
-
this.contactDetailsObj = obj;
|
|
2001
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
2002
|
-
};
|
|
2003
1891
|
/**
|
|
2004
1892
|
* @return {?}
|
|
2005
1893
|
*/
|
|
@@ -2043,8 +1931,8 @@
|
|
|
2043
1931
|
PaymentViewComponent.decorators = [
|
|
2044
1932
|
{ type: i0.Component, args: [{
|
|
2045
1933
|
selector: 'ccpay-payment-view',
|
|
2046
|
-
template: "<div class=\"payment-view-section\">\n<ng-container *ngIf=\"viewStatus === 'paymentview' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.over_payment > 0\">\n <td class=\"bold tb-col-w\">Over payment</td>\n <td class=\"tb-col-w\">\u00A3{{ getOverPaymentValue() | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n<div *ngIf=\"ISPAYMENTSTATUSENABLED\">\n <div class=\"column\">\n <h2 class=\"heading-medium\">Disputed payment history</h2>\n </div>\n \n <div>\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th>Amount</th>\n <th>Date</th>\n <th>Payment reference</th>\n <th>Event</th>\n <th></th>\n </tr>\n </thead> \n <tbody *ngIf=\"!errorMsg && allPaymentsFailure.length > 0\">\n <tr *ngFor=\"let payment of allPaymentsFailure\">\n <td>{{ payment.status }}</td>\n <td>\u00A3{{ payment.disputed_amount | number:'.2' }}</td>\n <td>{{(payment.representment_date ? payment.representment_date : payment.failure_event_date_time) | date:'dd MMM yyyy'}}</td>\n <td>{{ payment.payment_reference }}</td>\n <td >{{ payment.failure_type }}</td>\n <td>\n \n <a href=\"javascript:void(0)\" (click)=\"goToPaymentFailuePage(payment)\">Show detail</a>\n\n </td>\n </tr>\n </tbody>\n <tbody *ngIf=\"errorMsg || allPaymentsFailure.length === 0\">\n <tr>\n <td colspan=\"6\"> No disputed payment history available. </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n\n </div>\n </div>\n\n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n </tr>\n </tbody>\n\n\n </table>\n </div></div>\n\n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n\n </div>\n </div>\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[fee]=\"feeId\"\n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n\n<ccpay-add-remission\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\"\n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\"\n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\"\n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [fees] =\"paymentFees\"\n [isFullyRefund] = \"isFullyRefund\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n \n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n</ng-container>\n</div>\n<div class=\"over-payment\">\n<ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroup?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComponent()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroup)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event)\"\n(redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroup.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n\n</ng-container>\n</div>\n\n<ng-container *ngIf=\"viewStatus === 'payment-failure'\">\n <div class=\"payment-failure-alignment\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goBackToPaymentView($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Failure event details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold\">Failure reference</td>\n <td>\t{{selectedPaymentsStatus.failure_reference}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure reason</td>\n <td>\t{{selectedPaymentsStatus.failure_reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment reference</td>\n <td>{{ selectedPaymentsStatus.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment amount</td>\n <td> \u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Disputed amount</td>\n <td>\t\u00A3{{selectedPaymentsStatus.disputed_amount | number:'.2'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Additional information</td>\n <td>\t{{selectedPaymentsStatus.additional_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure type</td>\n <td>\t{{ selectedPaymentsStatus.failure_type }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure event date and time</td>\n <td> {{ selectedPaymentsStatus.failure_event_date_time | date:'dd MMM yyyy HH:mm:ss' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.has_amount_debited\">\n <td class=\"bold\">Has disputed amount debited</td>\n <td>\t{{selectedPaymentsStatus.has_amount_debited}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_status\">\n <td class=\"bold\">Status following representation of payment</td>\n <td>\t{{(selectedPaymentsStatus.representment_status === 'Yes' || selectedPaymentsStatus.representment_status === 'yes') ? 'Success' : 'Failure'}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_date\">\n <td class=\"bold\">Date payment represented</td>\n <td>\t{{selectedPaymentsStatus.representment_date | date:'dd MMM yyyy HH:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n</ng-container>\n",
|
|
2047
|
-
styles: [".
|
|
1934
|
+
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n<div *ngIf=\"ISPAYMENTSTATUSENABLED\">\n <div class=\"column\">\n <h2 class=\"heading-medium\">Disputed payment history</h2>\n </div>\n \n <div>\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th>Amount</th>\n <th>Date</th>\n <th>Payment reference</th>\n <th>Event</th>\n <th></th>\n </tr>\n </thead> \n <tbody *ngIf=\"!errorMsg && allPaymentsFailure.length > 0\">\n <tr *ngFor=\"let payment of allPaymentsFailure\">\n <td>{{ payment.status | capitalize }}</td>\n <td>\u00A3{{ payment.disputed_amount | number:'.2' }}</td>\n <td>{{(payment.representment_date ? payment.representment_date : payment.failure_event_date_time) | date:'dd MMM yyyy'}}</td>\n <td>{{ payment.payment_reference }}</td>\n <td >{{ payment.failure_type }}</td>\n <td>\n \n <a href=\"javascript:void(0)\" (click)=\"goToPaymentFailuePage(payment)\">Show detail</a>\n\n </td>\n </tr>\n </tbody>\n <tbody *ngIf=\"errorMsg || allPaymentsFailure.length === 0\">\n <tr>\n <td colspan=\"6\"> No disputed payment history available. </td>\n </tr>\n </tbody>\n </table>\n </div>\n <br/>\n <br/>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n\n </div>\n </div>\n\n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n </tr>\n </tbody>\n\n\n </table>\n </div></div>\n\n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n\n </div>\n </div>\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[fee]=\"feeId\"\n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\"\n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission\n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\"\n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\"\n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-failure'\">\n <div class=\"payment-failure-alignment\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goBackToPaymentView($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Failure event details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold\">Failure reference</td>\n <td>\t{{selectedPaymentsStatus.failure_reference}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure reason</td>\n <td>\t{{selectedPaymentsStatus.failure_reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment reference</td>\n <td>{{ selectedPaymentsStatus.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment amount</td>\n <td> \u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Disputed amount</td>\n <td>\t\u00A3{{selectedPaymentsStatus.disputed_amount | number:'.2'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Additional information</td>\n <td>\t{{selectedPaymentsStatus.additional_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure type</td>\n <td>\t{{ selectedPaymentsStatus.failure_type }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure event date and time</td>\n <td> {{ selectedPaymentsStatus.failure_event_date_time | date:'dd MMM yyyy HH:mm:ss' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.has_amount_debited\">\n <td class=\"bold\">Has disputed amount debited</td>\n <td>\t{{selectedPaymentsStatus.has_amount_debited}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_status\">\n <td class=\"bold\">Status following representation of payment</td>\n <td>\t{{(selectedPaymentsStatus.representment_status === 'Yes' || selectedPaymentsStatus.representment_status === 'yes') ? 'Success' : 'Failure'}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_date\">\n <td class=\"bold\">Date payment represented</td>\n <td>\t{{selectedPaymentsStatus.representment_date | date:'dd MMM yyyy HH:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n</ng-container>\n",
|
|
1935
|
+
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}.text-transform::first-letter{text-transform:capitalize}.govuk-link{cursor:pointer}.mar-17{font-size:19px!important}.payment-failure-alignment{margin-bottom:50px!important;margin-left:15px!important}"]
|
|
2048
1936
|
}] }
|
|
2049
1937
|
];
|
|
2050
1938
|
/** @nocollapse */
|
|
@@ -2211,21 +2099,6 @@
|
|
|
2211
2099
|
function (body) {
|
|
2212
2100
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2213
2101
|
};
|
|
2214
|
-
/**
|
|
2215
|
-
* @param {?} body
|
|
2216
|
-
* @param {?} refundRef
|
|
2217
|
-
* @param {?} notificationType
|
|
2218
|
-
* @return {?}
|
|
2219
|
-
*/
|
|
2220
|
-
RefundsService.prototype.putResendOrEdit = /**
|
|
2221
|
-
* @param {?} body
|
|
2222
|
-
* @param {?} refundRef
|
|
2223
|
-
* @param {?} notificationType
|
|
2224
|
-
* @return {?}
|
|
2225
|
-
*/
|
|
2226
|
-
function (body, refundRef, notificationType) {
|
|
2227
|
-
return this.https.put(this.paymentLibService.REFUNDS_API_ROOT + "/resend/notification/" + refundRef + "?notificationType=" + notificationType, body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2228
|
-
};
|
|
2229
2102
|
/**
|
|
2230
2103
|
* @param {?} body
|
|
2231
2104
|
* @param {?} refund_reference
|
|
@@ -2310,9 +2183,8 @@
|
|
|
2310
2183
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2311
2184
|
*/
|
|
2312
2185
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2313
|
-
function ProcessRefundComponent(RefundsService$$1,
|
|
2186
|
+
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2314
2187
|
this.RefundsService = RefundsService$$1;
|
|
2315
|
-
this.paymentViewService = paymentViewService;
|
|
2316
2188
|
this.formBuilder = formBuilder;
|
|
2317
2189
|
this.OrderslistService = OrderslistService$$1;
|
|
2318
2190
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2335,7 +2207,6 @@
|
|
|
2335
2207
|
this.isReasonEmpty = false;
|
|
2336
2208
|
this.isReasonInvalid = false;
|
|
2337
2209
|
this.successMsg = null;
|
|
2338
|
-
this.cpoDetails = null;
|
|
2339
2210
|
this.isConfirmButtondisabled = true;
|
|
2340
2211
|
}
|
|
2341
2212
|
/**
|
|
@@ -2381,18 +2252,6 @@
|
|
|
2381
2252
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2382
2253
|
this.isFromRefundListPage = true;
|
|
2383
2254
|
}
|
|
2384
|
-
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe(( /**
|
|
2385
|
-
* @param {?} response
|
|
2386
|
-
* @return {?}
|
|
2387
|
-
*/function (response) {
|
|
2388
|
-
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2389
|
-
}), ( /**
|
|
2390
|
-
* @param {?} error
|
|
2391
|
-
* @return {?}
|
|
2392
|
-
*/function (error) {
|
|
2393
|
-
_this.errorMessage = ( /** @type {?} */(error.replace(/"/g, "")));
|
|
2394
|
-
_this.isCPODown = true;
|
|
2395
|
-
}));
|
|
2396
2255
|
};
|
|
2397
2256
|
/**
|
|
2398
2257
|
* @param {?} code
|
|
@@ -2626,29 +2485,89 @@
|
|
|
2626
2485
|
this.loadRefundListPage();
|
|
2627
2486
|
}
|
|
2628
2487
|
};
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2488
|
+
// loadCaseTransactionPage() {
|
|
2489
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2490
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2491
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2492
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2493
|
+
// features => {
|
|
2494
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2495
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2496
|
+
// },
|
|
2497
|
+
// err => {
|
|
2498
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2499
|
+
// }
|
|
2500
|
+
// );
|
|
2501
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2502
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2503
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2504
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2505
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2506
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2507
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2508
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2509
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2510
|
+
// this.router.navigateByUrl(url);
|
|
2511
|
+
// }
|
|
2512
|
+
// loadCaseTransactionPage() {
|
|
2513
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2514
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2515
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2516
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2517
|
+
// features => {
|
|
2518
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2519
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2520
|
+
// },
|
|
2521
|
+
// err => {
|
|
2522
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2523
|
+
// }
|
|
2524
|
+
// );
|
|
2525
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2526
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2527
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2528
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2529
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2530
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2531
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2532
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2533
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2534
|
+
// this.router.navigateByUrl(url);
|
|
2535
|
+
// }
|
|
2642
2536
|
/**
|
|
2643
2537
|
* @param {?} vals
|
|
2644
2538
|
* @param {?} field
|
|
2645
2539
|
* @return {?}
|
|
2646
2540
|
*/
|
|
2647
|
-
ProcessRefundComponent.prototype.resetForm =
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2541
|
+
ProcessRefundComponent.prototype.resetForm =
|
|
2542
|
+
// loadCaseTransactionPage() {
|
|
2543
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2544
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2545
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2546
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2547
|
+
// features => {
|
|
2548
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2549
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2550
|
+
// },
|
|
2551
|
+
// err => {
|
|
2552
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2553
|
+
// }
|
|
2554
|
+
// );
|
|
2555
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2556
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2557
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2558
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2559
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2560
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2561
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2562
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2563
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2564
|
+
// this.router.navigateByUrl(url);
|
|
2565
|
+
// }
|
|
2566
|
+
/**
|
|
2567
|
+
* @param {?} vals
|
|
2568
|
+
* @param {?} field
|
|
2569
|
+
* @return {?}
|
|
2570
|
+
*/
|
|
2652
2571
|
function (vals, field) {
|
|
2653
2572
|
if (field === 'action' || field === 'all') {
|
|
2654
2573
|
this.refundActionsHasError = vals[0];
|
|
@@ -2674,19 +2593,12 @@
|
|
|
2674
2593
|
* @return {?}
|
|
2675
2594
|
*/
|
|
2676
2595
|
function () {
|
|
2677
|
-
|
|
2678
|
-
var isPayBubble = this.paymentLibComponent.isFromPayBubble;
|
|
2679
|
-
if (isPayBubble) {
|
|
2680
|
-
this.loadCaseTransactionPage();
|
|
2681
|
-
}
|
|
2682
|
-
else {
|
|
2683
|
-
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2684
|
-
}
|
|
2596
|
+
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2685
2597
|
};
|
|
2686
2598
|
ProcessRefundComponent.decorators = [
|
|
2687
2599
|
{ type: i0.Component, args: [{
|
|
2688
2600
|
selector: 'ccpay-process-refund',
|
|
2689
|
-
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
|
|
2601
|
+
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",
|
|
2690
2602
|
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}"]
|
|
2691
2603
|
}] }
|
|
2692
2604
|
];
|
|
@@ -2694,7 +2606,6 @@
|
|
|
2694
2606
|
ProcessRefundComponent.ctorParameters = function () {
|
|
2695
2607
|
return [
|
|
2696
2608
|
{ type: RefundsService },
|
|
2697
|
-
{ type: PaymentViewService },
|
|
2698
2609
|
{ type: forms.FormBuilder },
|
|
2699
2610
|
{ type: OrderslistService },
|
|
2700
2611
|
{ type: PaymentLibComponent },
|
|
@@ -2718,10 +2629,10 @@
|
|
|
2718
2629
|
this.refundService = refundService;
|
|
2719
2630
|
this.submittedRefundList = [];
|
|
2720
2631
|
this.rejectedRefundList = [];
|
|
2721
|
-
// approvalStatus = 'Sent for approval';
|
|
2722
|
-
// rejectStatus = 'Update required';
|
|
2723
2632
|
this.approvalStatus = 'Sent for approval';
|
|
2724
2633
|
this.rejectStatus = 'Update required';
|
|
2634
|
+
// approvalStatus = 'sent for approval';
|
|
2635
|
+
// rejectStatus = 'sent back';
|
|
2725
2636
|
this.errorMessage = null;
|
|
2726
2637
|
this.isAuthorized = true;
|
|
2727
2638
|
}
|
|
@@ -3001,449 +2912,6 @@
|
|
|
3001
2912
|
return StatusHistoryComponent;
|
|
3002
2913
|
}());
|
|
3003
2914
|
|
|
3004
|
-
/**
|
|
3005
|
-
* @fileoverview added by tsickle
|
|
3006
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3007
|
-
*/
|
|
3008
|
-
var NotificationService = /** @class */ (function () {
|
|
3009
|
-
function NotificationService(http, https, errorHandlerService, paymentLibService) {
|
|
3010
|
-
this.http = http;
|
|
3011
|
-
this.https = https;
|
|
3012
|
-
this.errorHandlerService = errorHandlerService;
|
|
3013
|
-
this.paymentLibService = paymentLibService;
|
|
3014
|
-
}
|
|
3015
|
-
/**
|
|
3016
|
-
* @param {?} reference
|
|
3017
|
-
* @return {?}
|
|
3018
|
-
*/
|
|
3019
|
-
NotificationService.prototype.getRefundNotification = /**
|
|
3020
|
-
* @param {?} reference
|
|
3021
|
-
* @return {?}
|
|
3022
|
-
*/
|
|
3023
|
-
function (reference) {
|
|
3024
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/notifications/" + reference, {
|
|
3025
|
-
withCredentials: true
|
|
3026
|
-
})
|
|
3027
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
3028
|
-
};
|
|
3029
|
-
/**
|
|
3030
|
-
* @param {?} postcode
|
|
3031
|
-
* @return {?}
|
|
3032
|
-
*/
|
|
3033
|
-
NotificationService.prototype.getAddressByPostcode = /**
|
|
3034
|
-
* @param {?} postcode
|
|
3035
|
-
* @return {?}
|
|
3036
|
-
*/
|
|
3037
|
-
function (postcode) {
|
|
3038
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/search/places/v1/postcode?postcode=" + postcode, {
|
|
3039
|
-
withCredentials: true
|
|
3040
|
-
})
|
|
3041
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
3042
|
-
};
|
|
3043
|
-
NotificationService.decorators = [
|
|
3044
|
-
{ type: i0.Injectable, args: [{
|
|
3045
|
-
providedIn: 'root'
|
|
3046
|
-
},] }
|
|
3047
|
-
];
|
|
3048
|
-
/** @nocollapse */
|
|
3049
|
-
NotificationService.ctorParameters = function () {
|
|
3050
|
-
return [
|
|
3051
|
-
{ type: i1.HttpClient },
|
|
3052
|
-
{ type: WebComponentHttpClient },
|
|
3053
|
-
{ type: ErrorHandlerService },
|
|
3054
|
-
{ type: PaymentLibService }
|
|
3055
|
-
];
|
|
3056
|
-
};
|
|
3057
|
-
/** @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" });
|
|
3058
|
-
return NotificationService;
|
|
3059
|
-
}());
|
|
3060
|
-
|
|
3061
|
-
/**
|
|
3062
|
-
* @fileoverview added by tsickle
|
|
3063
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3064
|
-
*/
|
|
3065
|
-
var ContactDetailsComponent = /** @class */ (function () {
|
|
3066
|
-
function ContactDetailsComponent(formBuilder, notificationService, paymentLibComponent) {
|
|
3067
|
-
this.formBuilder = formBuilder;
|
|
3068
|
-
this.notificationService = notificationService;
|
|
3069
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
3070
|
-
this.assignContactDetails = new i0.EventEmitter();
|
|
3071
|
-
this.assignContactDetailsInFefundsList = new i0.EventEmitter();
|
|
3072
|
-
this.redirectToIssueRefund = new i0.EventEmitter();
|
|
3073
|
-
this.pageTitle = 'Payment status history';
|
|
3074
|
-
this.isEmailSAddressClicked = true;
|
|
3075
|
-
this.isShowPickAddress = false;
|
|
3076
|
-
this.isPostcodeClicked = false;
|
|
3077
|
-
this.isManualAddressClicked = false;
|
|
3078
|
-
this.addressPostcodeList = [];
|
|
3079
|
-
this.isAddressBoxEmpty = false;
|
|
3080
|
-
this.isEmailEmpty = false;
|
|
3081
|
-
this.emailHasError = false;
|
|
3082
|
-
this.isPostcodeEmpty = false;
|
|
3083
|
-
this.postcodeHasError = false;
|
|
3084
|
-
this.isaddressLine1Empty = false;
|
|
3085
|
-
this.addressLine1HasError = false;
|
|
3086
|
-
this.addressLine2HasError = false;
|
|
3087
|
-
this.isTownOrCityEmpty = false;
|
|
3088
|
-
this.townOrCityHasError = false;
|
|
3089
|
-
this.isCountyEmpty = false;
|
|
3090
|
-
this.countyHasError = false;
|
|
3091
|
-
this.isMPostcodeEmpty = false;
|
|
3092
|
-
this.mpostcodeHasError = false;
|
|
3093
|
-
this.isCountryEmpty = false;
|
|
3094
|
-
}
|
|
3095
|
-
/**
|
|
3096
|
-
* @return {?}
|
|
3097
|
-
*/
|
|
3098
|
-
ContactDetailsComponent.prototype.ngOnInit = /**
|
|
3099
|
-
* @return {?}
|
|
3100
|
-
*/
|
|
3101
|
-
function () {
|
|
3102
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3103
|
-
this.emailAddressForm = this.formBuilder.group({
|
|
3104
|
-
email: new forms.FormControl('', forms.Validators.compose([
|
|
3105
|
-
forms.Validators.required,
|
|
3106
|
-
forms.Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
3107
|
-
]))
|
|
3108
|
-
});
|
|
3109
|
-
this.postCodeForm = this.formBuilder.group({
|
|
3110
|
-
postcode: new forms.FormControl('', forms.Validators.compose([
|
|
3111
|
-
forms.Validators.required,
|
|
3112
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3113
|
-
]))
|
|
3114
|
-
});
|
|
3115
|
-
this.manualAddressForm = this.formBuilder.group({
|
|
3116
|
-
addressl1: new forms.FormControl('', forms.Validators.compose([
|
|
3117
|
-
forms.Validators.required,
|
|
3118
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3119
|
-
])),
|
|
3120
|
-
addressl2: new forms.FormControl('', forms.Validators.compose([
|
|
3121
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3122
|
-
])),
|
|
3123
|
-
townorcity: new forms.FormControl('', forms.Validators.compose([
|
|
3124
|
-
forms.Validators.required,
|
|
3125
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3126
|
-
])),
|
|
3127
|
-
county: new forms.FormControl('', forms.Validators.compose([
|
|
3128
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3129
|
-
])),
|
|
3130
|
-
mpostcode: new forms.FormControl('', forms.Validators.compose([
|
|
3131
|
-
forms.Validators.required,
|
|
3132
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3133
|
-
])),
|
|
3134
|
-
country: new forms.FormControl('', forms.Validators.compose([
|
|
3135
|
-
forms.Validators.required
|
|
3136
|
-
]))
|
|
3137
|
-
});
|
|
3138
|
-
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
3139
|
-
this.setEditDetails();
|
|
3140
|
-
}
|
|
3141
|
-
if (this.isEditOperationInRefundList === undefined) {
|
|
3142
|
-
this.isEditOperationInRefundList = false;
|
|
3143
|
-
}
|
|
3144
|
-
};
|
|
3145
|
-
/**
|
|
3146
|
-
* @return {?}
|
|
3147
|
-
*/
|
|
3148
|
-
ContactDetailsComponent.prototype.setEditDetails = /**
|
|
3149
|
-
* @return {?}
|
|
3150
|
-
*/
|
|
3151
|
-
function () {
|
|
3152
|
-
if (this.addressObj.notification_type === 'EMAIL') {
|
|
3153
|
-
this.isEmailSAddressClicked = true;
|
|
3154
|
-
this.isPostcodeClicked = false;
|
|
3155
|
-
this.isManualAddressClicked = false;
|
|
3156
|
-
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
3157
|
-
}
|
|
3158
|
-
else if (this.addressObj.notification_type === 'LETTER') {
|
|
3159
|
-
this.isEmailSAddressClicked = false;
|
|
3160
|
-
this.isPostcodeClicked = true;
|
|
3161
|
-
this.isManualAddressClicked = true;
|
|
3162
|
-
this.manualAddressForm.patchValue({
|
|
3163
|
-
addressl1: this.addressObj.contact_details.address_line,
|
|
3164
|
-
townorcity: this.addressObj.contact_details.city,
|
|
3165
|
-
county: this.addressObj.contact_details.county,
|
|
3166
|
-
country: this.addressObj.contact_details.country,
|
|
3167
|
-
mpostcode: this.addressObj.contact_details.postal_code
|
|
3168
|
-
});
|
|
3169
|
-
}
|
|
3170
|
-
};
|
|
3171
|
-
/**
|
|
3172
|
-
* @param {?} type
|
|
3173
|
-
* @param {?} isLinkedClied
|
|
3174
|
-
* @return {?}
|
|
3175
|
-
*/
|
|
3176
|
-
ContactDetailsComponent.prototype.selectContactOption = /**
|
|
3177
|
-
* @param {?} type
|
|
3178
|
-
* @param {?} isLinkedClied
|
|
3179
|
-
* @return {?}
|
|
3180
|
-
*/
|
|
3181
|
-
function (type, isLinkedClied) {
|
|
3182
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3183
|
-
if (type === 'Email' && isLinkedClied === 'false') {
|
|
3184
|
-
this.isEmailSAddressClicked = true;
|
|
3185
|
-
this.isPostcodeClicked = false;
|
|
3186
|
-
this.isManualAddressClicked = false;
|
|
3187
|
-
}
|
|
3188
|
-
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
3189
|
-
this.isEmailSAddressClicked = false;
|
|
3190
|
-
this.isPostcodeClicked = true;
|
|
3191
|
-
this.isManualAddressClicked = false;
|
|
3192
|
-
}
|
|
3193
|
-
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
3194
|
-
this.isEmailSAddressClicked = false;
|
|
3195
|
-
this.isPostcodeClicked = true;
|
|
3196
|
-
this.isManualAddressClicked = true;
|
|
3197
|
-
}
|
|
3198
|
-
};
|
|
3199
|
-
/**
|
|
3200
|
-
* @return {?}
|
|
3201
|
-
*/
|
|
3202
|
-
ContactDetailsComponent.prototype.finalFormSubmit = /**
|
|
3203
|
-
* @return {?}
|
|
3204
|
-
*/
|
|
3205
|
-
function () {
|
|
3206
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3207
|
-
if (this.isEmailSAddressClicked) {
|
|
3208
|
-
/** @type {?} */
|
|
3209
|
-
var emailField = this.emailAddressForm.controls.email;
|
|
3210
|
-
if (this.emailAddressForm.valid) {
|
|
3211
|
-
if (!this.isEditOperationInRefundList) {
|
|
3212
|
-
this.assignContactDetails.emit({
|
|
3213
|
-
email: emailField.value,
|
|
3214
|
-
notification_type: 'EMAIL'
|
|
3215
|
-
});
|
|
3216
|
-
}
|
|
3217
|
-
else {
|
|
3218
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3219
|
-
email: emailField.value,
|
|
3220
|
-
notification_type: 'EMAIL'
|
|
3221
|
-
});
|
|
3222
|
-
}
|
|
3223
|
-
}
|
|
3224
|
-
else {
|
|
3225
|
-
if (emailField.value == '') {
|
|
3226
|
-
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3227
|
-
}
|
|
3228
|
-
if (emailField.value != '' && emailField.invalid) {
|
|
3229
|
-
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3230
|
-
}
|
|
3231
|
-
}
|
|
3232
|
-
}
|
|
3233
|
-
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
3234
|
-
this.postcodeValidation('FS');
|
|
3235
|
-
}
|
|
3236
|
-
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
3237
|
-
/** @type {?} */
|
|
3238
|
-
var fieldCtrls = this.manualAddressForm.controls;
|
|
3239
|
-
if (this.manualAddressForm.valid) {
|
|
3240
|
-
if (!this.isEditOperationInRefundList) {
|
|
3241
|
-
this.assignContactDetails.emit({
|
|
3242
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3243
|
-
city: fieldCtrls.townorcity.value,
|
|
3244
|
-
county: fieldCtrls.county.value,
|
|
3245
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3246
|
-
country: fieldCtrls.country.value,
|
|
3247
|
-
notification_type: 'LETTER'
|
|
3248
|
-
});
|
|
3249
|
-
}
|
|
3250
|
-
else {
|
|
3251
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3252
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3253
|
-
city: fieldCtrls.townorcity.value,
|
|
3254
|
-
county: fieldCtrls.county.value,
|
|
3255
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3256
|
-
country: fieldCtrls.country.value,
|
|
3257
|
-
notification_type: 'LETTER'
|
|
3258
|
-
});
|
|
3259
|
-
}
|
|
3260
|
-
}
|
|
3261
|
-
else {
|
|
3262
|
-
if (fieldCtrls.addressl1.value == '') {
|
|
3263
|
-
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
3264
|
-
}
|
|
3265
|
-
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
3266
|
-
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
3267
|
-
}
|
|
3268
|
-
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
3269
|
-
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
3270
|
-
}
|
|
3271
|
-
if (fieldCtrls.townorcity.value == '') {
|
|
3272
|
-
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
3273
|
-
}
|
|
3274
|
-
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
3275
|
-
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
3276
|
-
}
|
|
3277
|
-
if (fieldCtrls.county.value == '') {
|
|
3278
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
3279
|
-
}
|
|
3280
|
-
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
3281
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
3282
|
-
}
|
|
3283
|
-
if (fieldCtrls.mpostcode.value == '') {
|
|
3284
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
3285
|
-
}
|
|
3286
|
-
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
3287
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
3288
|
-
}
|
|
3289
|
-
if (fieldCtrls.country.value == '') {
|
|
3290
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
3291
|
-
}
|
|
3292
|
-
}
|
|
3293
|
-
}
|
|
3294
|
-
};
|
|
3295
|
-
/**
|
|
3296
|
-
* @param {?} str
|
|
3297
|
-
* @return {?}
|
|
3298
|
-
*/
|
|
3299
|
-
ContactDetailsComponent.prototype.postcodeValidation = /**
|
|
3300
|
-
* @param {?} str
|
|
3301
|
-
* @return {?}
|
|
3302
|
-
*/
|
|
3303
|
-
function (str) {
|
|
3304
|
-
var _this = this;
|
|
3305
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3306
|
-
/** @type {?} */
|
|
3307
|
-
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3308
|
-
if (this.postCodeForm.valid) {
|
|
3309
|
-
if (str === 'FA') {
|
|
3310
|
-
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe(( /**
|
|
3311
|
-
* @param {?} refundsNotification
|
|
3312
|
-
* @return {?}
|
|
3313
|
-
*/function (refundsNotification) {
|
|
3314
|
-
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3315
|
-
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3316
|
-
if (!_this.isShowPickAddress) {
|
|
3317
|
-
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3318
|
-
}
|
|
3319
|
-
})),
|
|
3320
|
-
( /**
|
|
3321
|
-
* @param {?} error
|
|
3322
|
-
* @return {?}
|
|
3323
|
-
*/function (error) {
|
|
3324
|
-
_this.isShowPickAddress = false;
|
|
3325
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
3326
|
-
});
|
|
3327
|
-
}
|
|
3328
|
-
else if (str === 'FS') {
|
|
3329
|
-
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
3330
|
-
this.isAddressBoxEmpty = false;
|
|
3331
|
-
/** @type {?} */
|
|
3332
|
-
var addressLine = "";
|
|
3333
|
-
/** @type {?} */
|
|
3334
|
-
var addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
3335
|
-
for (var i = 0; i < addressArray.length - 2; i++) {
|
|
3336
|
-
addressLine += addressArray[i];
|
|
3337
|
-
}
|
|
3338
|
-
/** @type {?} */
|
|
3339
|
-
var addressObject = {
|
|
3340
|
-
address_line: addressLine,
|
|
3341
|
-
city: this.postcodeAddress.POST_TOWN,
|
|
3342
|
-
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
3343
|
-
postal_code: this.postcodeAddress.POSTCODE,
|
|
3344
|
-
country: 'United Kingdom',
|
|
3345
|
-
notification_type: 'LETTER'
|
|
3346
|
-
};
|
|
3347
|
-
if (!this.isEditOperationInRefundList) {
|
|
3348
|
-
this.assignContactDetails.emit(addressObject);
|
|
3349
|
-
}
|
|
3350
|
-
else {
|
|
3351
|
-
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
3352
|
-
}
|
|
3353
|
-
}
|
|
3354
|
-
else {
|
|
3355
|
-
this.isAddressBoxEmpty = true;
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
}
|
|
3359
|
-
else {
|
|
3360
|
-
if (postcodeField.value == '') {
|
|
3361
|
-
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3362
|
-
}
|
|
3363
|
-
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
3364
|
-
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3365
|
-
}
|
|
3366
|
-
}
|
|
3367
|
-
};
|
|
3368
|
-
/**
|
|
3369
|
-
* @param {?} event
|
|
3370
|
-
* @return {?}
|
|
3371
|
-
*/
|
|
3372
|
-
ContactDetailsComponent.prototype.redirection = /**
|
|
3373
|
-
* @param {?} event
|
|
3374
|
-
* @return {?}
|
|
3375
|
-
*/
|
|
3376
|
-
function (event) {
|
|
3377
|
-
this.redirectToIssueRefund.emit(event);
|
|
3378
|
-
};
|
|
3379
|
-
/**
|
|
3380
|
-
* @param {?} val
|
|
3381
|
-
* @param {?} field
|
|
3382
|
-
* @return {?}
|
|
3383
|
-
*/
|
|
3384
|
-
ContactDetailsComponent.prototype.resetForm = /**
|
|
3385
|
-
* @param {?} val
|
|
3386
|
-
* @param {?} field
|
|
3387
|
-
* @return {?}
|
|
3388
|
-
*/
|
|
3389
|
-
function (val, field) {
|
|
3390
|
-
if (field === 'email' || field === 'all') {
|
|
3391
|
-
this.isEmailEmpty = val[0];
|
|
3392
|
-
this.emailHasError = val[1];
|
|
3393
|
-
}
|
|
3394
|
-
if (field === 'postcode' || field === 'all') {
|
|
3395
|
-
this.isPostcodeEmpty = val[2];
|
|
3396
|
-
this.postcodeHasError = val[3];
|
|
3397
|
-
}
|
|
3398
|
-
if (field === 'address1' || field === 'all') {
|
|
3399
|
-
this.isaddressLine1Empty = val[4];
|
|
3400
|
-
this.addressLine1HasError = val[5];
|
|
3401
|
-
}
|
|
3402
|
-
if (field === 'address2' || field === 'all') {
|
|
3403
|
-
this.addressLine2HasError = val[6];
|
|
3404
|
-
}
|
|
3405
|
-
if (field === 'town' || field === 'all') {
|
|
3406
|
-
this.isTownOrCityEmpty = val[7];
|
|
3407
|
-
this.townOrCityHasError = val[8];
|
|
3408
|
-
}
|
|
3409
|
-
if (field === 'county' || field === 'all') {
|
|
3410
|
-
this.isCountyEmpty = val[9];
|
|
3411
|
-
this.countyHasError = val[10];
|
|
3412
|
-
}
|
|
3413
|
-
if (field === 'mpostcode' || field === 'all') {
|
|
3414
|
-
this.isMPostcodeEmpty = val[11];
|
|
3415
|
-
this.mpostcodeHasError = val[12];
|
|
3416
|
-
}
|
|
3417
|
-
if (field === 'country' || field === 'all') {
|
|
3418
|
-
this.isCountryEmpty = val[13];
|
|
3419
|
-
}
|
|
3420
|
-
};
|
|
3421
|
-
ContactDetailsComponent.decorators = [
|
|
3422
|
-
{ type: i0.Component, args: [{
|
|
3423
|
-
selector: 'ccpay-contact-details',
|
|
3424
|
-
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>",
|
|
3425
|
-
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}"]
|
|
3426
|
-
}] }
|
|
3427
|
-
];
|
|
3428
|
-
/** @nocollapse */
|
|
3429
|
-
ContactDetailsComponent.ctorParameters = function () {
|
|
3430
|
-
return [
|
|
3431
|
-
{ type: forms.FormBuilder },
|
|
3432
|
-
{ type: NotificationService },
|
|
3433
|
-
{ type: PaymentLibComponent }
|
|
3434
|
-
];
|
|
3435
|
-
};
|
|
3436
|
-
ContactDetailsComponent.propDecorators = {
|
|
3437
|
-
isEditOperation: [{ type: i0.Input, args: ['isEditOperation',] }],
|
|
3438
|
-
isEditOperationInRefundList: [{ type: i0.Input, args: ['isEditOperationInRefundList',] }],
|
|
3439
|
-
addressObj: [{ type: i0.Input, args: ['addressObj',] }],
|
|
3440
|
-
assignContactDetails: [{ type: i0.Output }],
|
|
3441
|
-
assignContactDetailsInFefundsList: [{ type: i0.Output }],
|
|
3442
|
-
redirectToIssueRefund: [{ type: i0.Output }]
|
|
3443
|
-
};
|
|
3444
|
-
return ContactDetailsComponent;
|
|
3445
|
-
}());
|
|
3446
|
-
|
|
3447
2915
|
/**
|
|
3448
2916
|
* @fileoverview added by tsickle
|
|
3449
2917
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3797,7 +3265,6 @@
|
|
|
3797
3265
|
this.viewStatus = 'main';
|
|
3798
3266
|
this.isRemoveBtnDisabled = false;
|
|
3799
3267
|
this.clAmountDue = 0;
|
|
3800
|
-
this.overPaymentAmount = 0;
|
|
3801
3268
|
this.isFeeRecordsExist = false;
|
|
3802
3269
|
this.isGrpOutstandingAmtPositive = false;
|
|
3803
3270
|
//Order changes
|
|
@@ -3895,7 +3362,6 @@
|
|
|
3895
3362
|
}
|
|
3896
3363
|
else {
|
|
3897
3364
|
this.serviceRequestValue = 'false';
|
|
3898
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3899
3365
|
}
|
|
3900
3366
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3901
3367
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -4097,7 +3563,6 @@
|
|
|
4097
3563
|
* @return {?}
|
|
4098
3564
|
*/function (fee) {
|
|
4099
3565
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4100
|
-
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
4101
3566
|
}));
|
|
4102
3567
|
}
|
|
4103
3568
|
if (paymentGroup.remissions) {
|
|
@@ -4109,15 +3574,10 @@
|
|
|
4109
3574
|
}));
|
|
4110
3575
|
}
|
|
4111
3576
|
if (paymentGroup.payments) {
|
|
4112
|
-
/** @type {?} */
|
|
4113
|
-
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4114
3577
|
paymentGroup.payments.forEach(( /**
|
|
4115
3578
|
* @param {?} payment
|
|
4116
3579
|
* @return {?}
|
|
4117
3580
|
*/function (payment) {
|
|
4118
|
-
if (isFeeOverPaymentExist_1) {
|
|
4119
|
-
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4120
|
-
}
|
|
4121
3581
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4122
3582
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4123
3583
|
}
|
|
@@ -4583,22 +4043,23 @@
|
|
|
4583
4043
|
*/
|
|
4584
4044
|
function (payment, remission, fees) {
|
|
4585
4045
|
var _this = this;
|
|
4586
|
-
this.
|
|
4046
|
+
this.viewStatus = 'addrefundforremission';
|
|
4047
|
+
this.payment = payment;
|
|
4048
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
4587
4049
|
* @param {?} paymentGroup
|
|
4588
4050
|
* @return {?}
|
|
4589
4051
|
*/function (paymentGroup) {
|
|
4590
4052
|
_this.paymentGroup = paymentGroup;
|
|
4591
|
-
_this.paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
4053
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
4592
4054
|
* @param {?} paymentGroupObj
|
|
4593
4055
|
* @return {?}
|
|
4594
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
4056
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
4595
4057
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4596
4058
|
_this.remissions = remission;
|
|
4597
4059
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
4598
4060
|
* @param {?} data
|
|
4599
4061
|
* @return {?}
|
|
4600
4062
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4601
|
-
_this.viewStatus = 'addrefundforremission';
|
|
4602
4063
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4603
4064
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4604
4065
|
}), ( /**
|
|
@@ -4891,21 +4352,16 @@
|
|
|
4891
4352
|
* @return {?}
|
|
4892
4353
|
*/
|
|
4893
4354
|
function (payment) {
|
|
4894
|
-
if (
|
|
4895
|
-
|
|
4355
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4356
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4357
|
+
this.isIssueRefunfBtnEnable = true;
|
|
4358
|
+
}
|
|
4359
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
4360
|
+
return true;
|
|
4896
4361
|
}
|
|
4897
4362
|
else {
|
|
4898
4363
|
return false;
|
|
4899
4364
|
}
|
|
4900
|
-
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4901
|
-
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4902
|
-
// this.isIssueRefunfBtnEnable = true;
|
|
4903
|
-
// }
|
|
4904
|
-
// if (this.isIssueRefunfBtnEnable) {
|
|
4905
|
-
// return true;
|
|
4906
|
-
// } else {
|
|
4907
|
-
// return false;
|
|
4908
|
-
// };
|
|
4909
4365
|
};
|
|
4910
4366
|
/**
|
|
4911
4367
|
* @return {?}
|
|
@@ -4955,7 +4411,7 @@
|
|
|
4955
4411
|
CaseTransactionsComponent.decorators = [
|
|
4956
4412
|
{ type: i0.Component, args: [{
|
|
4957
4413
|
selector: 'ccpay-case-transactions',
|
|
4958
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n\n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div>\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n\n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n\n <div class=\"govuk-grid-column-full\">\n\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Over payment</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ overPaymentAmount | currency :'GBP':'symbol':'1.2-2'}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td>\n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n\n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n </ng-container>\n\n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\">\n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td>\n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [paymentGroupList] = \"paymentGroups\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n\n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[fee]=\"feeId\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"orderRef\"\n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"orderRef\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n</main>\n</div>\n",
|
|
4414
|
+
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n\n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div>\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n\n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n\n <div class=\"govuk-grid-column-full\">\n\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td>\n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n\n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n </ng-container>\n\n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [isTurnOff]=\"isTurnOff\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\">\n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td>\n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n\n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[fee]=\"feeId\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"orderRef\"\n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"orderRef\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n\n</main>\n</div>\n",
|
|
4959
4415
|
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}"]
|
|
4960
4416
|
}] }
|
|
4961
4417
|
];
|
|
@@ -4972,8 +4428,7 @@
|
|
|
4972
4428
|
};
|
|
4973
4429
|
CaseTransactionsComponent.propDecorators = {
|
|
4974
4430
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4975
|
-
isTakePayment: [{ type: i0.Input }]
|
|
4976
|
-
isFromServiceRequestPage: [{ type: i0.Input }]
|
|
4431
|
+
isTakePayment: [{ type: i0.Input }]
|
|
4977
4432
|
};
|
|
4978
4433
|
return CaseTransactionsComponent;
|
|
4979
4434
|
}());
|
|
@@ -5185,23 +4640,18 @@
|
|
|
5185
4640
|
if (fee.calculated_amount === 0) {
|
|
5186
4641
|
_this.isFeeAmountZero = true;
|
|
5187
4642
|
}
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
fee['remissions'] = rem;
|
|
5197
|
-
fees.push(fee);
|
|
5198
|
-
}
|
|
5199
|
-
}));
|
|
5200
|
-
if (!_this.isRemissionsMatch) {
|
|
4643
|
+
_this.isRemissionsMatch = false;
|
|
4644
|
+
paymentGroup.remissions.forEach(( /**
|
|
4645
|
+
* @param {?} rem
|
|
4646
|
+
* @return {?}
|
|
4647
|
+
*/function (rem) {
|
|
4648
|
+
if (rem.fee_code === fee.code) {
|
|
4649
|
+
_this.isRemissionsMatch = true;
|
|
4650
|
+
fee['remissions'] = rem;
|
|
5201
4651
|
fees.push(fee);
|
|
5202
4652
|
}
|
|
5203
|
-
}
|
|
5204
|
-
|
|
4653
|
+
}));
|
|
4654
|
+
if (!_this.isRemissionsMatch) {
|
|
5205
4655
|
fees.push(fee);
|
|
5206
4656
|
}
|
|
5207
4657
|
}));
|
|
@@ -5391,7 +4841,7 @@
|
|
|
5391
4841
|
FeeSummaryComponent.decorators = [
|
|
5392
4842
|
{ type: i0.Component, args: [{
|
|
5393
4843
|
selector: 'ccpay-fee-summary',
|
|
5394
|
-
template: "\n<div class=\"govuk-breadcrumbs\" *ngIf=\"isBackButtonEnable\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"!isTurnOff\">\n <a (click)=\"loadCaseTransactionPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isTurnOff\">\n <a (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n</div>\n<div class=\"fee-summary\" *ngIf=\"viewStatus === 'main'\">\n <main class=\"govuk-main-wrapper\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEESUMMARY'>\n <div class=\"summaryheader\">\n <h1 class=\"heading-large govuk-!-margin-top-3 govuk-!-margin-bottom-4\">Summary </h1>\n <p class=\"govuk-!-margin-top-5 caseref\">Case reference:{{ccdCaseNumber | ccdHyphens}}</p>\n </div>\n\n <!-- <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"heading-xlarge\">Fee Summary</h1>\n </div>\n\n\n \u00A0<div\u00A0class=\"govuk-grid-column-one-third\"\u00A0align=\"right\">\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<button\u00A0 *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[disabled]=\"isPaymentExist\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[ngClass]='isPaymentExist ?\u00A0\"button\u00A0button--disabled govuk-!-margin-right-1\"\u00A0:\u00A0\"button govuk-!-margin-right-1\"'>\n Add a new fee\n </button>\n\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"button\">Add a new fee</a>\n </div>\n </div> -->\n\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment Group details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"govuk-!-margin-top-3\">\n <table class=\"govuk-table govuk-!-margin-bottom-2\" *ngIf=\"!errorMessage && paymentGroup\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class600\">Description</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class60\">Quantity</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class80\"></th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class100\">Amount</th>\n </tr>\n </thead>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">{{ fee.description }}\n\n <span class=\"no-border\" *ngIf=\"(isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && !isTurnOff\">\n\n\n <a (click)=\"confirmRemoveFee(fee.id)\" *ngIf=\"(!isPaymentExist || !fee.remissions)\" [ngClass]='isPaymentExist || fee.remissions? \"disable-link\" : \"\"'> <br>Remove</a>\n </span>\n\n <span class=\"no-border\" *ngIf=\"(!isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && isTurnOff \">\n <a (click)=\"confirmRemoveFee(fee.id)\">Remove</a>\n </span>\n\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && !isPaymentExist && !isTurnOff\">\n Add help with fees or remission\n </a>\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && isTurnOff\">\n Add help with fees or remission\n </a>\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell\" *ngIf=\"fee.volume && fee.volume > 0\">\n {{ fee.volume }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\">1</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell alignright\">\n <br>\n <div *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\" class=\"govuk-table__cell_border\"> <br><br></div>\n </td>\n <td class=\"govuk-table__cell alignright\" >\n {{ fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_rmborder alignright\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </span>\n </td>\n\n\n </tr>\n <!-- <tr>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount ===''\">\n <div class=\"govuk-table__cell_border\"></div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\"></div>\n </td>\n <td>\n <br>\n <div class=\"govuk-table__cell_border\" style=\"text-align: right;\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </td>\n </tr> -->\n </tbody>\n </table>\n </div>\n <div class=\"addfee\">\n <button *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n [disabled]=\"isPaymentExist\"\n [ngClass]='isPaymentExist ? \"govuk-button govuk-button--secondary button--disabled\" : \"govuk-button govuk-button--secondary\"'>\n Add fee\n </button>\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-button govuk-button--secondary\">Add a new fee</a>\n <div class=\"feeAddButton\">\n <p class=\"paddigleft govuk-!-margin-top-2\">Total to pay: {{ outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</p>\n </div>\n </div>\n<!--\n <div class=\"govuk-form-group govuk-form-group--mg\" *ngIf=\"!bsPaymentDcnNumber\">\n <label class=\"govuk-label custom-govuk-label govuk-fieldset__heading--fz\" for=\"responsibleOffice\">\n <strong>What service is this fee for?</strong>\n </label>\n <select class=\"govuk-select govuk-select--custom\" id=\"responsibleOffice\" [(ngModel)]=\"service\" name=\"responsibleOffice\">\n <option value=\"\" selected='selected'>Please select</option>\n <option value=\"AA07\">Divorce</option>\n <option value=\"AA09\">Financial Remedy</option>\n <option value=\"AA08\">Probate</option>\n </select>\n </div> -->\n\n <div>\n <button *ngIf=\"!bsPaymentDcnNumber\" type=\"submit\" (click)=\"takePayment()\"\n [disabled]=\"totalFee <= 0 || isConfirmationBtnDisabled\"\n [ngClass]='totalFee <= 0 || !platForm || !service || isConfirmationBtnDisabled? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'>\n Take payment\n </button>\n <button *ngIf=\"bsPaymentDcnNumber\" type=\"button\" (click)=\"goToAllocatePage(outStandingAmount, isFeeAmountZero)\" class=\"button govuk-!-margin-right-1\">\n <span *ngIf=\"outStandingAmount > 0 || (isFeeAmountZero && outStandingAmount === 0)\">\n Allocate payment\n </span>\n <span *ngIf=\"outStandingAmount < 0 || (!isFeeAmountZero && outStandingAmount === 0)\">\n Continue\n </span>\n </button>\n </div>\n\n</main>\n</div>\n\n <ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_1'>\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n *ngIf =\"!isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(currentFee)\">\n Remove\n </button>\n </form>\n </div>\n </ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'add_remission' && currentFee\"\n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\"\n [fee]=\"currentFee\"\n [caseType]=\"caseType\"\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [paymentGroupRef]=\"paymentGroupRef\"\n (cancelRemission)=\"cancelRemission()\"></ccpay-add-remission>\n <input *ngIf=\"viewStatus === 'payhub_view' && payhubHtml\" #myInput type='hidden' id='iFrameDrivenImageValue' value='PCIPAL'>\n",
|
|
4844
|
+
template: "\n<div class=\"govuk-breadcrumbs\" *ngIf=\"isBackButtonEnable\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"!isTurnOff\">\n <a (click)=\"loadCaseTransactionPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isTurnOff\">\n <a (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n</div>\n<div class=\"fee-summary\" *ngIf=\"viewStatus === 'main'\">\n <main class=\"govuk-main-wrapper\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEESUMMARY'>\n <div class=\"summaryheader\">\n <h1 class=\"heading-large govuk-!-margin-top-3 govuk-!-margin-bottom-4\">Summary </h1>\n <p class=\"govuk-!-margin-top-5 caseref\">Case reference:{{ccdCaseNumber | ccdHyphens}}</p>\n </div>\n\n <!-- <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"heading-xlarge\">Fee Summary</h1>\n </div>\n\n\n \u00A0<div\u00A0class=\"govuk-grid-column-one-third\"\u00A0align=\"right\">\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<button\u00A0 *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[disabled]=\"isPaymentExist\"\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0[ngClass]='isPaymentExist ?\u00A0\"button\u00A0button--disabled govuk-!-margin-right-1\"\u00A0:\u00A0\"button govuk-!-margin-right-1\"'>\n Add a new fee\n </button>\n\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"button\">Add a new fee</a>\n </div>\n </div> -->\n\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment Group details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <!-- <table class=\"govuk-table\" *ngIf=\"!errorMessage && paymentGroup\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\">Fee Code</th>\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\">Fee description</th>\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\">Remission code</th>\n <th class=\"govuk-table__header govuk-!-font-weight-bold\" scope=\"col\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n <td class=\"govuk-table__cell\">{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</td>\n <td class=\"govuk-table__cell grey-text\">\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Fee amount:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.fee_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"!isTurnOff\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='isPaymentExist || fee.remissions ? \"disable-link\" : \"\"'>remove fee</a>\n </td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"isTurnOff\">\n <a (click)=\"confirmRemoveFee(fee.id)\">remove fee</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"fee.volume && fee.volume > 0\">\n <td class=\"no-border grey-text subcolumn-1\">Volume:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.volume }}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Fee total:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Remission amount:</td>\n <td class=\"no-border subcolumn-2\">{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}</td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"!isTurnOff\">\n <a (click)=\"addRemission(fee)\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && !isPaymentExist\">\n Deduct remission\n </a>\n </td>\n <td class=\"no-border subcolumn-3\" *ngIf=\"isTurnOff\">\n <a (click)=\"addRemission(fee)\" *ngIf=\"getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount\">\n Deduct remission\n </a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border grey-text subcolumn-1\">Total after remission:</td>\n <td class=\"no-border subcolumn-2\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\">\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"no-border govuk-!-font-weight-bold subcolumn-1\">Total payment</td>\n <td class=\"no-border subcolumn-2\">{{ totalAfterRemission - outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border govuk-!-font-weight-bold subcolumn-1\">Total outstanding amount</td>\n <td class=\"no-border subcolumn-2\">{{ outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"no-border subcolumn-3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!bsPaymentDcnNumber && isOldPcipalOff && isNewPcipalOff\">\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\">\n <div class=\"govuk-form-group govuk-form-group--mg\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <span class=\"govuk-fieldset__heading govuk-fieldset__heading--fz\">\n Which system are you using to take the payment?\n </span>\n </legend>\n <div class=\"govuk-radios govuk-radios--small\">\n <div class=\"govuk-radios__item\">\n <input id=\"changed-name\" class=\"govuk-radios__input\" [(ngModel)]=\"platForm\" type=\"radio\" aria-label=\"8x8\" value=\"8x8\">\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name\">\n 8x8\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input id=\"changed-name-2\" class=\"govuk-radios__input\" [(ngModel)]=\"platForm\" type=\"radio\" aria-label=\"Antenna\" value=\"Antenna\">\n <label class=\"govuk-label govuk-radios__label\" for=\"changed-name-2\">\n Antenna\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n </td>\n </tr>\n </tbody>\n <tr class=\"govuk-table__row\">\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\"></td>\n <td class=\"no-border\">\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"no-border subcolumn-2\">\n <button *ngIf=\"!bsPaymentDcnNumber\" type=\"submit\" (click)=\"takePayment()\"\n [disabled]=\"totalFee <= 0 || !platForm || isConfirmationBtnDisabled\"\n [ngClass]='totalFee <= 0 || !platForm || isConfirmationBtnDisabled? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'>\n Take payment\n </button>\n <button *ngIf=\"bsPaymentDcnNumber\" type=\"button\" (click)=\"goToAllocatePage(outStandingAmount, isFeeAmountZero)\" class=\"button govuk-!-margin-right-1\">\n <span *ngIf=\"outStandingAmount > 0 || (isFeeAmountZero && outStandingAmount === 0)\">\n Allocate payment\n </span>\n <span *ngIf=\"outStandingAmount < 0 || (!isFeeAmountZero && outStandingAmount === 0)\">\n Continue\n </span>\n </button>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table> -->\n\n <div class=\"govuk-!-margin-top-3\">\n <table class=\"govuk-table govuk-!-margin-bottom-2\" *ngIf=\"!errorMessage && paymentGroup\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class600\">Description</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class60\">Quantity</th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class80\"></th>\n <th class=\"govuk-table__header\" scope=\"col\" class=\"class100\">Amount</th>\n </tr>\n </thead>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">{{ fee.description }}\n\n <span class=\"no-border\" *ngIf=\"(isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && !isTurnOff\">\n\n\n <a (click)=\"confirmRemoveFee(fee.id)\" *ngIf=\"(!isPaymentExist || !fee.remissions)\" [ngClass]='isPaymentExist || fee.remissions? \"disable-link\" : \"\"'> <br>Remove</a>\n </span>\n\n <span class=\"no-border\" *ngIf=\"(!isPaymentExist || (getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount)) && isTurnOff \">\n <a (click)=\"confirmRemoveFee(fee.id)\">Remove</a>\n </span>\n\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && !isPaymentExist && !isTurnOff\">\n Add help with fees or remission\n </a>\n <a (click)=\"addRemission(fee)\" class=\"remissionActive\" *ngIf=\"(getRemissionByFeeCode(fee.code)?.hwf_amount === 0 || !getRemissionByFeeCode(fee.code)?.hwf_amount) && isTurnOff\">\n Add help with fees or remission\n </a>\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell\" *ngIf=\"fee.volume && fee.volume > 0\">\n {{ fee.volume }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\">1</div>\n </span>\n </td>\n\n <td class=\"govuk-table__cell alignright\">\n <br>\n <div *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\" class=\"govuk-table__cell_border\"> <br><br></div>\n </td>\n <td class=\"govuk-table__cell alignright\" >\n {{ fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <span *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_rmborder alignright\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </span>\n </td>\n\n\n </tr>\n <!-- <tr>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount > 0\">Remission,{{ getRemissionByFeeCode(fee.code)?.hwf_reference }}</div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount ===''\">\n <div class=\"govuk-table__cell_border\"></div>\n </td>\n <td *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\">\n <br>\n <div class=\"govuk-table__cell_border\" *ngIf = \"getRemissionByFeeCode(fee.code)?.hwf_amount === ''\"></div>\n </td>\n <td>\n <br>\n <div class=\"govuk-table__cell_border\" style=\"text-align: right;\">\n -{{ getRemissionByFeeCode(fee.code)?.hwf_amount? ( getRemissionByFeeCode(fee.code)?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2') : '-' }}\n </div>\n </td>\n </tr> -->\n </tbody>\n </table>\n </div>\n <div class=\"addfee\">\n <button *ngIf=\"!isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\"\n [disabled]=\"isPaymentExist\"\n [ngClass]='isPaymentExist ? \"govuk-button govuk-button--secondary button--disabled\" : \"govuk-button govuk-button--secondary\"'>\n Add fee\n </button>\n <a *ngIf=\"isTurnOff\" (click)=\"redirectToFeeSearchPage($event,'summary')\" class=\"govuk-button govuk-button--secondary\">Add a new fee</a>\n <div class=\"feeAddButton\">\n <p class=\"paddigleft govuk-!-margin-top-2\">Total to pay: {{ outStandingAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</p>\n </div>\n </div>\n<!--\n <div class=\"govuk-form-group govuk-form-group--mg\" *ngIf=\"!bsPaymentDcnNumber\">\n <label class=\"govuk-label custom-govuk-label govuk-fieldset__heading--fz\" for=\"responsibleOffice\">\n <strong>What service is this fee for?</strong>\n </label>\n <select class=\"govuk-select govuk-select--custom\" id=\"responsibleOffice\" [(ngModel)]=\"service\" name=\"responsibleOffice\">\n <option value=\"\" selected='selected'>Please select</option>\n <option value=\"AA07\">Divorce</option>\n <option value=\"AA09\">Financial Remedy</option>\n <option value=\"AA08\">Probate</option>\n </select>\n </div> -->\n\n <div>\n <button *ngIf=\"!bsPaymentDcnNumber\" type=\"submit\" (click)=\"takePayment()\"\n [disabled]=\"totalFee <= 0 || isConfirmationBtnDisabled\"\n [ngClass]='totalFee <= 0 || !platForm || !service || isConfirmationBtnDisabled? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'>\n Take payment\n </button>\n <button *ngIf=\"bsPaymentDcnNumber\" type=\"button\" (click)=\"goToAllocatePage(outStandingAmount, isFeeAmountZero)\" class=\"button govuk-!-margin-right-1\">\n <span *ngIf=\"outStandingAmount > 0 || (isFeeAmountZero && outStandingAmount === 0)\">\n Allocate payment\n </span>\n <span *ngIf=\"outStandingAmount < 0 || (!isFeeAmountZero && outStandingAmount === 0)\">\n Continue\n </span>\n </button>\n </div>\n\n</main>\n</div>\n\n <ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_1'>\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n *ngIf =\"!isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(currentFee)\">\n Remove\n </button>\n </form>\n </div>\n </ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'add_remission' && currentFee\"\n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\"\n [fee]=\"currentFee\"\n [caseType]=\"caseType\"\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [paymentGroupRef]=\"paymentGroupRef\"\n (cancelRemission)=\"cancelRemission()\"></ccpay-add-remission>\n <input *ngIf=\"viewStatus === 'payhub_view' && payhubHtml\" #myInput type='hidden' id='iFrameDrivenImageValue' value='PCIPAL'>\n",
|
|
5395
4845
|
styles: [".fee-summary .grey-text{color:#6b7376;font-weight:500}.fee-summary .govuk-table{margin-bottom:0}.fee-summary .no-border{border:none;border-bottom:none}.fee-summary table td,.fee-summary table th{font-size:19px;vertical-align:top}.fee-summary table td .no-padding,.fee-summary table th .no-padding{padding:0}.fee-summary table td .subcolumn-1,.fee-summary table th .subcolumn-1{width:45%}.fee-summary table td .subcolumn-2,.fee-summary table th .subcolumn-2{width:25%;text-align:right}.fee-summary table td .subcolumn-3,.fee-summary table th .subcolumn-3{width:30%;text-align:center}table th{font-weight:700}.govuk-button-grb{padding-bottom:20px}.govuk-button-grb .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:10px}.govuk-form-group--mg{margin-top:10px!important}.govuk-fieldset__heading--fz{font-size:16px}.remissionDisable{color:grey;cursor:default}.heading-xlarge{margin:0 0 14px -20px}.govuk-select--custom{width:50%}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.govuk-table__cell_border,.govuk-table__header{padding:10px 0 0;border-top:1px solid #bfc1c3;text-align:left}.govuk-table__cell,.govuk-table__header{padding:10px 0}.govuk-table__cell_rmborder,.govuk-table__header{padding:10px 0 0;border-top:1px solid #bfc1c3;text-align:left}.govuk-table__fessheader{font-weight:700}.govuk-button{font-size:19px}.feeAddButton{padding-left:65rem}.remissionActive{padding-left:10px}.paddigleft{padding-left:2em}.govuk-back-link{font-size:1.5rem!important}.govuk-warning-text__text{font-size:19px}.summaryheader{display:flex;flex-direction:row;justify-content:space-between;width:960px}.class600{width:600px}.class60{width:60px}.class80{width:80px;text-align:right}.class100{width:100px;text-align:right}.alignright{text-align:right}.caseref{align-self:flex-end}.addfee{display:flex;flex-direction:row}"]
|
|
5396
4846
|
}] }
|
|
5397
4847
|
];
|
|
@@ -7213,12 +6663,23 @@
|
|
|
7213
6663
|
* @fileoverview added by tsickle
|
|
7214
6664
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7215
6665
|
*/
|
|
7216
|
-
var
|
|
7217
|
-
function
|
|
7218
|
-
this.
|
|
7219
|
-
this.
|
|
6666
|
+
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6667
|
+
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6668
|
+
this.payment_reference = payment_reference;
|
|
6669
|
+
this.refund_reason = refund_reason;
|
|
7220
6670
|
}
|
|
7221
|
-
return
|
|
6671
|
+
return PostRefundRetroRemission;
|
|
6672
|
+
}());
|
|
6673
|
+
|
|
6674
|
+
/**
|
|
6675
|
+
* @fileoverview added by tsickle
|
|
6676
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6677
|
+
*/
|
|
6678
|
+
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
6679
|
+
function PostIssueRefundRetroRemission(remissionReference) {
|
|
6680
|
+
this.remissionReference = remissionReference;
|
|
6681
|
+
}
|
|
6682
|
+
return PostIssueRefundRetroRemission;
|
|
7222
6683
|
}());
|
|
7223
6684
|
|
|
7224
6685
|
/**
|
|
@@ -7238,7 +6699,6 @@
|
|
|
7238
6699
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
7239
6700
|
this.refundListReason = new i0.EventEmitter();
|
|
7240
6701
|
this.refundListAmount = new i0.EventEmitter();
|
|
7241
|
-
this.refundFees = new i0.EventEmitter();
|
|
7242
6702
|
this.refund = {
|
|
7243
6703
|
reason: {
|
|
7244
6704
|
duplicate: 'Duplicate payment',
|
|
@@ -7267,8 +6727,6 @@
|
|
|
7267
6727
|
this.isRemissionApplied = false;
|
|
7268
6728
|
// refundReasons: any[] = [];
|
|
7269
6729
|
this.commonRefundReasons = [];
|
|
7270
|
-
this.class = '';
|
|
7271
|
-
this.errorMsg = new Array();
|
|
7272
6730
|
}
|
|
7273
6731
|
/**
|
|
7274
6732
|
* @return {?}
|
|
@@ -7278,8 +6736,6 @@
|
|
|
7278
6736
|
*/
|
|
7279
6737
|
function () {
|
|
7280
6738
|
var _this = this;
|
|
7281
|
-
this.errorMessage = '';
|
|
7282
|
-
this.errorMsg = [];
|
|
7283
6739
|
this.default = 'Select a different reason';
|
|
7284
6740
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
7285
6741
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -7291,7 +6747,6 @@
|
|
|
7291
6747
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
7292
6748
|
}
|
|
7293
6749
|
if (this.payment) {
|
|
7294
|
-
this.paymentReference = this.payment.reference;
|
|
7295
6750
|
this.remessionPayment = this.payment;
|
|
7296
6751
|
if (this.payment.status === 'Success') {
|
|
7297
6752
|
this.isPaymentSuccess = true;
|
|
@@ -7310,68 +6765,15 @@
|
|
|
7310
6765
|
])),
|
|
7311
6766
|
refundReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7312
6767
|
refundDDReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7313
|
-
reason: new forms.FormControl()
|
|
7314
|
-
feeAmount: new forms.FormControl(),
|
|
7315
|
-
feesList: this.formBuilder.array([])
|
|
6768
|
+
reason: new forms.FormControl()
|
|
7316
6769
|
});
|
|
7317
6770
|
/** @type {?} */
|
|
7318
6771
|
var remissionctrls = this.remissionForm.controls;
|
|
7319
6772
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7320
|
-
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
7321
|
-
this.paymentReference = this.refundPaymentReference;
|
|
7322
|
-
}
|
|
7323
|
-
else {
|
|
7324
|
-
this.paymentReference = (this.payment !== undefined) ? this.payment.reference : '';
|
|
7325
|
-
}
|
|
7326
|
-
if (this.isFromServiceRequestPage) {
|
|
7327
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe(( /**
|
|
7328
|
-
* @param {?} paymentGroup
|
|
7329
|
-
* @return {?}
|
|
7330
|
-
*/function (paymentGroup) {
|
|
7331
|
-
/** @type {?} */
|
|
7332
|
-
var fees = [];
|
|
7333
|
-
paymentGroup.fees.forEach(( /**
|
|
7334
|
-
* @param {?} fee
|
|
7335
|
-
* @return {?}
|
|
7336
|
-
*/function (fee) {
|
|
7337
|
-
_this.isRemissionsMatch = false;
|
|
7338
|
-
paymentGroup.remissions.forEach(( /**
|
|
7339
|
-
* @param {?} rem
|
|
7340
|
-
* @return {?}
|
|
7341
|
-
*/function (rem) {
|
|
7342
|
-
if (rem.fee_code === fee.code) {
|
|
7343
|
-
_this.isRemissionsMatch = true;
|
|
7344
|
-
fee['remissions'] = rem;
|
|
7345
|
-
fees.push(fee);
|
|
7346
|
-
}
|
|
7347
|
-
}));
|
|
7348
|
-
if (!_this.isRemissionsMatch) {
|
|
7349
|
-
fees.push(fee);
|
|
7350
|
-
}
|
|
7351
|
-
}));
|
|
7352
|
-
paymentGroup.fees = fees;
|
|
7353
|
-
_this.paymentFees = fees;
|
|
7354
|
-
_this.fees = fees;
|
|
7355
|
-
_this.paymentGroup = paymentGroup;
|
|
7356
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
7357
|
-
* @param {?} paymentGroupObj
|
|
7358
|
-
* @return {?}
|
|
7359
|
-
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7360
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7361
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7362
|
-
_this.refundFeesList();
|
|
7363
|
-
}), ( /**
|
|
7364
|
-
* @param {?} error
|
|
7365
|
-
* @return {?}
|
|
7366
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7367
|
-
}
|
|
7368
|
-
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7369
|
-
this.refundFeesList();
|
|
7370
|
-
}
|
|
7371
6773
|
if (this.viewCompStatus === '') {
|
|
7372
6774
|
this.viewStatus = 'main';
|
|
7373
6775
|
}
|
|
7374
|
-
if (this.viewCompStatus === '
|
|
6776
|
+
if (this.viewCompStatus === 'issuerefund') {
|
|
7375
6777
|
this.refundService.getRefundReasons().subscribe(( /**
|
|
7376
6778
|
* @param {?} refundReasons
|
|
7377
6779
|
* @return {?}
|
|
@@ -7383,7 +6785,7 @@
|
|
|
7383
6785
|
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
7384
6786
|
* @param {?} data
|
|
7385
6787
|
* @return {?}
|
|
7386
|
-
*/function (data) { return data.name !== 'Retrospective remission'
|
|
6788
|
+
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7387
6789
|
_this.cd.detectChanges();
|
|
7388
6790
|
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
7389
6791
|
* @param {?} data
|
|
@@ -7396,160 +6798,10 @@
|
|
|
7396
6798
|
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
7397
6799
|
_this.cd.detectChanges();
|
|
7398
6800
|
}));
|
|
7399
|
-
this.refundReason = this.changeRefundReason;
|
|
7400
6801
|
}
|
|
7401
6802
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
7402
6803
|
this.viewStatus = 'processretroremissonpage';
|
|
7403
6804
|
}
|
|
7404
|
-
if (this.orderDetail !== undefined) {
|
|
7405
|
-
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe(( /**
|
|
7406
|
-
* @param {?} paymentGroup
|
|
7407
|
-
* @return {?}
|
|
7408
|
-
*/function (paymentGroup) {
|
|
7409
|
-
_this.fees = paymentGroup.fees;
|
|
7410
|
-
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7411
|
-
}), ( /**
|
|
7412
|
-
* @param {?} error
|
|
7413
|
-
* @return {?}
|
|
7414
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7415
|
-
}
|
|
7416
|
-
};
|
|
7417
|
-
/**
|
|
7418
|
-
* @return {?}
|
|
7419
|
-
*/
|
|
7420
|
-
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7421
|
-
* @return {?}
|
|
7422
|
-
*/
|
|
7423
|
-
function () {
|
|
7424
|
-
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7425
|
-
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7426
|
-
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7427
|
-
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7428
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
7429
|
-
};
|
|
7430
|
-
/**
|
|
7431
|
-
* @return {?}
|
|
7432
|
-
*/
|
|
7433
|
-
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7434
|
-
* @return {?}
|
|
7435
|
-
*/
|
|
7436
|
-
function () {
|
|
7437
|
-
/** @type {?} */
|
|
7438
|
-
var creds = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7439
|
-
// if(creds.controls.length > 0) {
|
|
7440
|
-
for (var i = 0; i < this.fees.length; i++) {
|
|
7441
|
-
creds.push(this.formBuilder.group({
|
|
7442
|
-
id: this.fees[i].id,
|
|
7443
|
-
code: this.fees[i].code,
|
|
7444
|
-
volume: this.fees[i].volume,
|
|
7445
|
-
calculated_amount: this.fees[i].calculated_amount,
|
|
7446
|
-
apportion_amount: this.fees[i].apportion_amount,
|
|
7447
|
-
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7448
|
-
description: this.fees[i].description,
|
|
7449
|
-
net_amount: this.fees[i].net_amount,
|
|
7450
|
-
version: this.fees[i].version,
|
|
7451
|
-
refund_amount: [''],
|
|
7452
|
-
selected: [''],
|
|
7453
|
-
updated_volume: this.fees[i].volume
|
|
7454
|
-
}));
|
|
7455
|
-
}
|
|
7456
|
-
this.cd.detectChanges();
|
|
7457
|
-
//}
|
|
7458
|
-
};
|
|
7459
|
-
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7460
|
-
get: /**
|
|
7461
|
-
* @return {?}
|
|
7462
|
-
*/ function () {
|
|
7463
|
-
/** @type {?} */
|
|
7464
|
-
var dd = ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7465
|
-
return ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7466
|
-
},
|
|
7467
|
-
enumerable: true,
|
|
7468
|
-
configurable: true
|
|
7469
|
-
});
|
|
7470
|
-
/**
|
|
7471
|
-
* @return {?}
|
|
7472
|
-
*/
|
|
7473
|
-
AddRemissionComponent.prototype.noneSelected = /**
|
|
7474
|
-
* @return {?}
|
|
7475
|
-
*/
|
|
7476
|
-
function () {
|
|
7477
|
-
if (this.isFullyRefund) {
|
|
7478
|
-
return false;
|
|
7479
|
-
}
|
|
7480
|
-
else {
|
|
7481
|
-
if (!this.feesList.controls.some(( /**
|
|
7482
|
-
* @param {?} item
|
|
7483
|
-
* @return {?}
|
|
7484
|
-
*/function (item) { return item.get('selected').value === true; }))) {
|
|
7485
|
-
this.errorMsg = [];
|
|
7486
|
-
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7487
|
-
* @param {?} el
|
|
7488
|
-
* @return {?}
|
|
7489
|
-
*/function (el) {
|
|
7490
|
-
el.classList.remove('inline-error-class');
|
|
7491
|
-
}));
|
|
7492
|
-
}
|
|
7493
|
-
return !this.feesList.controls.some(( /**
|
|
7494
|
-
* @param {?} item
|
|
7495
|
-
* @return {?}
|
|
7496
|
-
*/function (item) { return item.get('selected').value === true; }));
|
|
7497
|
-
}
|
|
7498
|
-
};
|
|
7499
|
-
/**
|
|
7500
|
-
* @param {?} i
|
|
7501
|
-
* @param {?} v1
|
|
7502
|
-
* @param {?} AppAmt
|
|
7503
|
-
* @param {?} Volume
|
|
7504
|
-
* @return {?}
|
|
7505
|
-
*/
|
|
7506
|
-
AddRemissionComponent.prototype.check_en = /**
|
|
7507
|
-
* @param {?} i
|
|
7508
|
-
* @param {?} v1
|
|
7509
|
-
* @param {?} AppAmt
|
|
7510
|
-
* @param {?} Volume
|
|
7511
|
-
* @return {?}
|
|
7512
|
-
*/
|
|
7513
|
-
function (i, v1, AppAmt, Volume) {
|
|
7514
|
-
/** @type {?} */
|
|
7515
|
-
var ele = ( /** @type {?} */(document.getElementById(v1)));
|
|
7516
|
-
/** @type {?} */
|
|
7517
|
-
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7518
|
-
if (ele.checked) {
|
|
7519
|
-
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7520
|
-
formArray.at(i).get('volume').setValue(Volume);
|
|
7521
|
-
formArray.at(i).get('selected').setValue(true);
|
|
7522
|
-
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7523
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7524
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7525
|
-
if (Volume === 1) {
|
|
7526
|
-
(( /** @type {?} */(document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7527
|
-
}
|
|
7528
|
-
else {
|
|
7529
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7530
|
-
}
|
|
7531
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7532
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7533
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7534
|
-
}
|
|
7535
|
-
this.cd.detectChanges();
|
|
7536
|
-
}
|
|
7537
|
-
else {
|
|
7538
|
-
this.errorMsg = [];
|
|
7539
|
-
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7540
|
-
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7541
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7542
|
-
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7543
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7544
|
-
if (Volume > 1) {
|
|
7545
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7546
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7547
|
-
}
|
|
7548
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7549
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7550
|
-
}
|
|
7551
|
-
this.cd.detectChanges();
|
|
7552
|
-
}
|
|
7553
6805
|
};
|
|
7554
6806
|
/**
|
|
7555
6807
|
* @return {?}
|
|
@@ -7672,8 +6924,6 @@
|
|
|
7672
6924
|
*/
|
|
7673
6925
|
function () {
|
|
7674
6926
|
this.errorMessage = false;
|
|
7675
|
-
// this.isFromCheckAnsPage = true;
|
|
7676
|
-
this.errorMsg = [];
|
|
7677
6927
|
this.viewStatus = '';
|
|
7678
6928
|
this.isRefundRemission = false;
|
|
7679
6929
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -7684,14 +6934,8 @@
|
|
|
7684
6934
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
7685
6935
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
7686
6936
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
this.viewStatus = "processretroremissonpage";
|
|
7690
|
-
}
|
|
7691
|
-
else {
|
|
7692
|
-
this.viewCompStatus = '';
|
|
7693
|
-
this.viewStatus = 'checkretroremissionpage';
|
|
7694
|
-
}
|
|
6937
|
+
this.viewCompStatus = '';
|
|
6938
|
+
this.viewStatus = "processretroremissonpage";
|
|
7695
6939
|
}
|
|
7696
6940
|
else {
|
|
7697
6941
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -7722,8 +6966,6 @@
|
|
|
7722
6966
|
*/
|
|
7723
6967
|
function () {
|
|
7724
6968
|
this.errorMessage = false;
|
|
7725
|
-
this.isFromCheckAnsPage = false;
|
|
7726
|
-
this.errorMsg = [];
|
|
7727
6969
|
if (this.isRefundRemission) {
|
|
7728
6970
|
this.paymentLibComponent.iscancelClicked = true;
|
|
7729
6971
|
this.refundListAmount.emit();
|
|
@@ -7741,7 +6983,6 @@
|
|
|
7741
6983
|
this.viewCompStatus = "addremission";
|
|
7742
6984
|
this.isRefundRemission = true;
|
|
7743
6985
|
this.errorMessage = '';
|
|
7744
|
-
this.errorMsg = [];
|
|
7745
6986
|
if (this.isFromPaymentDetailPage) {
|
|
7746
6987
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7747
6988
|
}
|
|
@@ -7797,47 +7038,14 @@
|
|
|
7797
7038
|
/**
|
|
7798
7039
|
* @return {?}
|
|
7799
7040
|
*/
|
|
7800
|
-
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7801
|
-
* @return {?}
|
|
7802
|
-
*/
|
|
7803
|
-
function () {
|
|
7804
|
-
this.isFromCheckAnsPage = false;
|
|
7805
|
-
this.viewStatus = 'processretroremissonpage';
|
|
7806
|
-
this.viewCompStatus = '';
|
|
7807
|
-
// this.isRefundRemission = true;
|
|
7808
|
-
this.errorMessage = '';
|
|
7809
|
-
};
|
|
7810
|
-
/**
|
|
7811
|
-
* @return {?}
|
|
7812
|
-
*/
|
|
7813
7041
|
AddRemissionComponent.prototype.gotoProcessRetroRemissionPage = /**
|
|
7814
7042
|
* @return {?}
|
|
7815
7043
|
*/
|
|
7816
7044
|
function () {
|
|
7817
|
-
this.isFromCheckAnsPage = true;
|
|
7818
7045
|
this.viewStatus = '';
|
|
7819
7046
|
this.viewCompStatus = 'addremission';
|
|
7820
7047
|
this.isRefundRemission = true;
|
|
7821
7048
|
this.errorMessage = '';
|
|
7822
|
-
this.errorMsg = [];
|
|
7823
|
-
};
|
|
7824
|
-
/**
|
|
7825
|
-
* @param {?=} note
|
|
7826
|
-
* @return {?}
|
|
7827
|
-
*/
|
|
7828
|
-
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7829
|
-
* @param {?=} note
|
|
7830
|
-
* @return {?}
|
|
7831
|
-
*/
|
|
7832
|
-
function (note) {
|
|
7833
|
-
if (note) {
|
|
7834
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7835
|
-
}
|
|
7836
|
-
this.isFromCheckAnsPage = true;
|
|
7837
|
-
this.viewStatus = 'remissionAddressPage';
|
|
7838
|
-
this.viewCompStatus = '';
|
|
7839
|
-
this.isRefundRemission = true;
|
|
7840
|
-
this.errorMessage = '';
|
|
7841
7049
|
};
|
|
7842
7050
|
/**
|
|
7843
7051
|
* @return {?}
|
|
@@ -7881,7 +7089,6 @@
|
|
|
7881
7089
|
function () {
|
|
7882
7090
|
var _this = this;
|
|
7883
7091
|
this.errorMessage = '';
|
|
7884
|
-
this.errorMsg = [];
|
|
7885
7092
|
this.isConfirmationBtnDisabled = true;
|
|
7886
7093
|
if (this.isRefundRemission) {
|
|
7887
7094
|
this.retroRemission = true;
|
|
@@ -7890,7 +7097,7 @@
|
|
|
7890
7097
|
this.remissionReference = this.remission.remission_reference;
|
|
7891
7098
|
}
|
|
7892
7099
|
/** @type {?} */
|
|
7893
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference
|
|
7100
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7894
7101
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe(( /**
|
|
7895
7102
|
* @param {?} response
|
|
7896
7103
|
* @return {?}
|
|
@@ -7926,13 +7133,7 @@
|
|
|
7926
7133
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
7927
7134
|
this.isFromRefundListPage = true;
|
|
7928
7135
|
}
|
|
7929
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7930
|
-
* @param {?} a
|
|
7931
|
-
* @param {?} c
|
|
7932
|
-
* @return {?}
|
|
7933
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7934
7136
|
this.errorMessage = '';
|
|
7935
|
-
this.errorMsg = [];
|
|
7936
7137
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
7937
7138
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
7938
7139
|
this.refundHasError = true;
|
|
@@ -7948,41 +7149,19 @@
|
|
|
7948
7149
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
7949
7150
|
}
|
|
7950
7151
|
else {
|
|
7951
|
-
if (this.isFromCheckAnsPage) {
|
|
7952
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7953
|
-
* @param {?} a
|
|
7954
|
-
* @param {?} c
|
|
7955
|
-
* @return {?}
|
|
7956
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7957
|
-
this.isFromCheckAnsPage = false;
|
|
7958
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7959
|
-
this.viewCompStatus = '';
|
|
7960
|
-
return;
|
|
7961
|
-
}
|
|
7962
7152
|
this.viewCompStatus = '';
|
|
7963
|
-
this.viewStatus = '
|
|
7153
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7964
7154
|
}
|
|
7965
7155
|
}
|
|
7966
7156
|
else {
|
|
7967
7157
|
this.displayRefundReason = this.selectedRefundReason;
|
|
7968
|
-
if (this.isFromCheckAnsPage) {
|
|
7969
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7970
|
-
* @param {?} a
|
|
7971
|
-
* @param {?} c
|
|
7972
|
-
* @return {?}
|
|
7973
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7974
|
-
this.isFromCheckAnsPage = false;
|
|
7975
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7976
|
-
this.viewCompStatus = '';
|
|
7977
|
-
return;
|
|
7978
|
-
}
|
|
7979
7158
|
if (this.isFromRefundListPage) {
|
|
7980
7159
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7981
7160
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
7982
7161
|
}
|
|
7983
7162
|
else {
|
|
7984
7163
|
this.viewCompStatus = '';
|
|
7985
|
-
this.viewStatus = '
|
|
7164
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7986
7165
|
}
|
|
7987
7166
|
}
|
|
7988
7167
|
};
|
|
@@ -7998,290 +7177,86 @@
|
|
|
7998
7177
|
this.viewStatus = '';
|
|
7999
7178
|
this.isRefundRemission = true;
|
|
8000
7179
|
this.errorMessage = false;
|
|
8001
|
-
this.errorMsg = [];
|
|
8002
7180
|
this.refundHasError = false;
|
|
8003
7181
|
this.isReasonEmpty = false;
|
|
8004
7182
|
};
|
|
8005
7183
|
/**
|
|
8006
|
-
* @param {?} isFullyRefund
|
|
8007
7184
|
* @return {?}
|
|
8008
7185
|
*/
|
|
8009
|
-
AddRemissionComponent.prototype.
|
|
8010
|
-
* @param {?} isFullyRefund
|
|
7186
|
+
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8011
7187
|
* @return {?}
|
|
8012
7188
|
*/
|
|
8013
|
-
function (
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
* @return {?}
|
|
8022
|
-
*/function (el) {
|
|
8023
|
-
el.classList.remove('inline-error-class');
|
|
8024
|
-
}));
|
|
8025
|
-
/** @type {?} */
|
|
8026
|
-
var checkboxs = document.getElementsByTagName('input');
|
|
8027
|
-
this.errorMessage = '';
|
|
8028
|
-
this.totalRefundAmount = 0;
|
|
8029
|
-
this.errorMsg = [];
|
|
8030
|
-
for (var j = 0; j < checkboxs.length; j++) {
|
|
8031
|
-
if (checkboxs[j].checked) {
|
|
8032
|
-
this.fullRefund = false;
|
|
8033
|
-
/** @type {?} */
|
|
8034
|
-
var quantity = +(( /** @type {?} */(document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
8035
|
-
/** @type {?} */
|
|
8036
|
-
var amountToRefund = +(( /** @type {?} */(document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
8037
|
-
/** @type {?} */
|
|
8038
|
-
var apportionAmount = +(( /** @type {?} */(document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
8039
|
-
/** @type {?} */
|
|
8040
|
-
var calculatedAmount = +(( /** @type {?} */(document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8041
|
-
if (amountToRefund === apportionAmount) {
|
|
8042
|
-
this.fullRefund = true;
|
|
8043
|
-
}
|
|
8044
|
-
if (amountToRefund === 0) {
|
|
8045
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8046
|
-
this.errorMsg.push('You need to enter a refund amount');
|
|
8047
|
-
this.getErrorClass(this.elementId);
|
|
8048
|
-
}
|
|
8049
|
-
if (quantity === 1) {
|
|
8050
|
-
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8051
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8052
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8053
|
-
this.getErrorClass(this.elementId);
|
|
8054
|
-
}
|
|
8055
|
-
}
|
|
8056
|
-
if (quantity > 1) {
|
|
8057
|
-
this.quantityUpdated = +(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8058
|
-
if (this.quantityUpdated === 0) {
|
|
8059
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8060
|
-
this.errorMsg.push('You need to enter quantity');
|
|
8061
|
-
this.getErrorClass(this.elementId);
|
|
8062
|
-
}
|
|
8063
|
-
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8064
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8065
|
-
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8066
|
-
this.getErrorClass(this.elementId);
|
|
8067
|
-
}
|
|
8068
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8069
|
-
this.refundAmtForFeeVolumes = +(( /** @type {?} */(document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8070
|
-
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8071
|
-
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8072
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8073
|
-
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8074
|
-
this.getErrorClass(this.elementId);
|
|
8075
|
-
}
|
|
8076
|
-
}
|
|
8077
|
-
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8078
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8079
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8080
|
-
this.getErrorClass(this.elementId);
|
|
8081
|
-
}
|
|
8082
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8083
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8084
|
-
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8085
|
-
this.getErrorClass(this.elementId);
|
|
8086
|
-
}
|
|
8087
|
-
}
|
|
8088
|
-
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8089
|
-
}
|
|
8090
|
-
}
|
|
8091
|
-
if (this.errorMsg.length === 0) {
|
|
8092
|
-
if (this.isFromCheckAnsPage) {
|
|
8093
|
-
this.isFromCheckAnsPage = false;
|
|
8094
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8095
|
-
* @param {?} a
|
|
8096
|
-
* @param {?} c
|
|
8097
|
-
* @return {?}
|
|
8098
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8099
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8100
|
-
* @param {?} value
|
|
8101
|
-
* @return {?}
|
|
8102
|
-
*/function (value) { return value.selected === true; }));
|
|
8103
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8104
|
-
this.viewCompStatus = '';
|
|
8105
|
-
return;
|
|
8106
|
-
}
|
|
8107
|
-
else if (this.isFromRefundStatusPage) {
|
|
8108
|
-
/** @type {?} */
|
|
8109
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8110
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8111
|
-
* @param {?} a
|
|
8112
|
-
* @param {?} c
|
|
8113
|
-
* @return {?}
|
|
8114
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8115
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8116
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8117
|
-
* @param {?} value
|
|
8118
|
-
* @return {?}
|
|
8119
|
-
*/function (value) { return value.selected === true; }));
|
|
8120
|
-
this.refundFees.emit(this.fees);
|
|
8121
|
-
return;
|
|
8122
|
-
}
|
|
8123
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8124
|
-
this.getRefundReasons();
|
|
8125
|
-
}
|
|
8126
|
-
}
|
|
7189
|
+
function () {
|
|
7190
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
7191
|
+
this.errorMessage = '';
|
|
7192
|
+
this.refundHasError = false;
|
|
7193
|
+
this.isReasonEmpty = false;
|
|
7194
|
+
this.viewCompStatus = 'issuerefund';
|
|
7195
|
+
this.viewStatus = '';
|
|
7196
|
+
this.isRefundRemission = true;
|
|
8127
7197
|
};
|
|
8128
7198
|
/**
|
|
8129
|
-
* @param {?} value
|
|
8130
|
-
* @param {?} amount
|
|
8131
|
-
* @param {?} volume
|
|
8132
|
-
* @param {?} i
|
|
8133
7199
|
* @return {?}
|
|
8134
7200
|
*/
|
|
8135
|
-
AddRemissionComponent.prototype.
|
|
8136
|
-
* @param {?} value
|
|
8137
|
-
* @param {?} amount
|
|
8138
|
-
* @param {?} volume
|
|
8139
|
-
* @param {?} i
|
|
7201
|
+
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8140
7202
|
* @return {?}
|
|
8141
7203
|
*/
|
|
8142
|
-
function (
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
7204
|
+
function () {
|
|
7205
|
+
var _this = this;
|
|
7206
|
+
this.isConfirmationBtnDisabled = true;
|
|
7207
|
+
this.errorMessage = '';
|
|
7208
|
+
if (this.isRefundRemission) {
|
|
7209
|
+
this.retroRemission = true;
|
|
7210
|
+
}
|
|
8147
7211
|
/** @type {?} */
|
|
8148
|
-
var
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
7212
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
7213
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
7214
|
+
* @param {?} response
|
|
7215
|
+
* @return {?}
|
|
7216
|
+
*/function (response) {
|
|
7217
|
+
if (JSON.parse(response)) {
|
|
7218
|
+
_this.viewCompStatus = '';
|
|
7219
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7220
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7221
|
+
if (JSON.parse(response).refund_amount) {
|
|
7222
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7223
|
+
}
|
|
7224
|
+
}
|
|
7225
|
+
}), ( /**
|
|
7226
|
+
* @param {?} error
|
|
7227
|
+
* @return {?}
|
|
7228
|
+
*/function (error) {
|
|
7229
|
+
_this.errorMessage = error;
|
|
7230
|
+
_this.isConfirmationBtnDisabled = false;
|
|
7231
|
+
_this.cd.detectChanges();
|
|
7232
|
+
}));
|
|
8154
7233
|
};
|
|
7234
|
+
// Retro Refund
|
|
7235
|
+
// Retro Refund
|
|
8155
7236
|
/**
|
|
8156
|
-
* @param {?=} note
|
|
8157
|
-
* @return {?}
|
|
8158
|
-
*/
|
|
8159
|
-
AddRemissionComponent.prototype.gotoContactDetailsPage = /**
|
|
8160
|
-
* @param {?=} note
|
|
8161
7237
|
* @return {?}
|
|
8162
7238
|
*/
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
7239
|
+
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7240
|
+
// Retro Refund
|
|
7241
|
+
/**
|
|
7242
|
+
* @return {?}
|
|
7243
|
+
*/
|
|
7244
|
+
function () {
|
|
7245
|
+
var _this = this;
|
|
7246
|
+
this.isConfirmationBtnDisabled = true;
|
|
8167
7247
|
this.errorMessage = '';
|
|
8168
|
-
this.viewCompStatus = '';
|
|
8169
|
-
this.viewStatus = 'contactDetailsPage';
|
|
8170
|
-
this.isRefundRemission = true;
|
|
8171
|
-
this.errorMessage = false;
|
|
8172
|
-
};
|
|
8173
|
-
/**
|
|
8174
|
-
* @return {?}
|
|
8175
|
-
*/
|
|
8176
|
-
AddRemissionComponent.prototype.getRefundReasons = /**
|
|
8177
|
-
* @return {?}
|
|
8178
|
-
*/
|
|
8179
|
-
function () {
|
|
8180
|
-
var _this = this;
|
|
8181
|
-
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
8182
|
-
this.refundService.getRefundReasons().subscribe(( /**
|
|
8183
|
-
* @param {?} refundReasons
|
|
8184
|
-
* @return {?}
|
|
8185
|
-
*/function (refundReasons) {
|
|
8186
|
-
_this.refundReasons = refundReasons.filter(( /**
|
|
8187
|
-
* @param {?} data
|
|
8188
|
-
* @return {?}
|
|
8189
|
-
*/function (data) { return data.recently_used === false; }));
|
|
8190
|
-
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
8191
|
-
* @param {?} data
|
|
8192
|
-
* @return {?}
|
|
8193
|
-
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8194
|
-
_this.cd.detectChanges();
|
|
8195
|
-
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
8196
|
-
* @param {?} data
|
|
8197
|
-
* @return {?}
|
|
8198
|
-
*/function (data) { return data.recently_used === true; }));
|
|
8199
|
-
_this.commonRefundReasons.sort(( /**
|
|
8200
|
-
* @param {?} a
|
|
8201
|
-
* @param {?} b
|
|
8202
|
-
* @return {?}
|
|
8203
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8204
|
-
_this.cd.detectChanges();
|
|
8205
|
-
}));
|
|
8206
|
-
}
|
|
8207
|
-
};
|
|
8208
|
-
/**
|
|
8209
|
-
* @param {?} elementId
|
|
8210
|
-
* @return {?}
|
|
8211
|
-
*/
|
|
8212
|
-
AddRemissionComponent.prototype.getErrorClass = /**
|
|
8213
|
-
* @param {?} elementId
|
|
8214
|
-
* @return {?}
|
|
8215
|
-
*/
|
|
8216
|
-
function (elementId) {
|
|
8217
|
-
if (this.errorMsg.length > 0) {
|
|
8218
|
-
/** @type {?} */
|
|
8219
|
-
var ele = document.getElementById(elementId);
|
|
8220
|
-
ele.classList.add('inline-error-class');
|
|
8221
|
-
}
|
|
8222
|
-
};
|
|
8223
|
-
/**
|
|
8224
|
-
* @return {?}
|
|
8225
|
-
*/
|
|
8226
|
-
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8227
|
-
* @return {?}
|
|
8228
|
-
*/
|
|
8229
|
-
function () {
|
|
8230
|
-
this.isFromCheckAnsPage = true;
|
|
8231
|
-
this.errorMessage = '';
|
|
8232
|
-
this.errorMsg = [];
|
|
8233
|
-
this.refundHasError = false;
|
|
8234
|
-
this.isReasonEmpty = false;
|
|
8235
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8236
|
-
this.viewStatus = '';
|
|
8237
|
-
this.isRefundRemission = true;
|
|
8238
|
-
};
|
|
8239
|
-
/**
|
|
8240
|
-
* @param {?} isFullyRefund
|
|
8241
|
-
* @return {?}
|
|
8242
|
-
*/
|
|
8243
|
-
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8244
|
-
* @param {?} isFullyRefund
|
|
8245
|
-
* @return {?}
|
|
8246
|
-
*/
|
|
8247
|
-
function (isFullyRefund) {
|
|
8248
|
-
var _this = this;
|
|
8249
|
-
this.isConfirmationBtnDisabled = true;
|
|
8250
|
-
this.errorMessage = '';
|
|
8251
|
-
this.errorMsg = [];
|
|
8252
7248
|
if (this.isRefundRemission) {
|
|
8253
7249
|
this.retroRemission = true;
|
|
8254
7250
|
}
|
|
8255
|
-
if (isFullyRefund) {
|
|
8256
|
-
this.totalRefundAmount = this.payment.amount;
|
|
8257
|
-
}
|
|
8258
|
-
if (!isFullyRefund) {
|
|
8259
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8260
|
-
* @param {?} value
|
|
8261
|
-
* @return {?}
|
|
8262
|
-
*/function (value) { return value.selected === true; }));
|
|
8263
|
-
}
|
|
8264
|
-
this.fees = this.fees.map(( /**
|
|
8265
|
-
* @param {?} obj
|
|
8266
|
-
* @return {?}
|
|
8267
|
-
*/function (obj) {
|
|
8268
|
-
return ({ id: obj.id,
|
|
8269
|
-
code: obj.code,
|
|
8270
|
-
version: obj.version,
|
|
8271
|
-
apportion_amount: obj.apportion_amount,
|
|
8272
|
-
calculated_amount: obj.calculated_amount,
|
|
8273
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8274
|
-
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount });
|
|
8275
|
-
}));
|
|
8276
7251
|
/** @type {?} */
|
|
8277
|
-
var requestBody = new PostRefundRetroRemission(this.
|
|
7252
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
8278
7253
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
8279
7254
|
* @param {?} response
|
|
8280
7255
|
* @return {?}
|
|
8281
7256
|
*/function (response) {
|
|
8282
7257
|
if (JSON.parse(response)) {
|
|
8283
7258
|
_this.viewCompStatus = '';
|
|
8284
|
-
_this.viewStatus = '
|
|
7259
|
+
_this.viewStatus = 'retrorefundconfirmationpage';
|
|
8285
7260
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
8286
7261
|
if (JSON.parse(response).refund_amount) {
|
|
8287
7262
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -8293,105 +7268,18 @@
|
|
|
8293
7268
|
*/function (error) {
|
|
8294
7269
|
_this.errorMessage = error;
|
|
8295
7270
|
_this.isConfirmationBtnDisabled = false;
|
|
8296
|
-
_this.cd.detectChanges();
|
|
8297
7271
|
}));
|
|
8298
7272
|
};
|
|
8299
7273
|
/**
|
|
7274
|
+
* @param {?} key
|
|
7275
|
+
* @param {?} value
|
|
8300
7276
|
* @return {?}
|
|
8301
7277
|
*/
|
|
8302
|
-
AddRemissionComponent.prototype.
|
|
8303
|
-
* @return {?}
|
|
8304
|
-
*/
|
|
8305
|
-
function () {
|
|
8306
|
-
this.viewStatus = '';
|
|
8307
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8308
|
-
};
|
|
8309
|
-
// Retro Refund
|
|
8310
|
-
// confirmRetroRefund() {
|
|
8311
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8312
|
-
// this.errorMessage = '';
|
|
8313
|
-
// this.errorMsg = [];
|
|
8314
|
-
// if( this.isRefundRemission) {
|
|
8315
|
-
// this.retroRemission = true;
|
|
8316
|
-
// }
|
|
8317
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8318
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8319
|
-
// response => {
|
|
8320
|
-
// if (JSON.parse(response)) {
|
|
8321
|
-
// this.viewCompStatus = '';
|
|
8322
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8323
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8324
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8325
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8326
|
-
// }
|
|
8327
|
-
// }
|
|
8328
|
-
// },
|
|
8329
|
-
// (error: any) => {
|
|
8330
|
-
// this.errorMessage = error;
|
|
8331
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8332
|
-
// });
|
|
8333
|
-
// }
|
|
8334
|
-
// Retro Refund
|
|
8335
|
-
// confirmRetroRefund() {
|
|
8336
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8337
|
-
// this.errorMessage = '';
|
|
8338
|
-
// this.errorMsg = [];
|
|
8339
|
-
// if( this.isRefundRemission) {
|
|
8340
|
-
// this.retroRemission = true;
|
|
8341
|
-
// }
|
|
8342
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8343
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8344
|
-
// response => {
|
|
8345
|
-
// if (JSON.parse(response)) {
|
|
8346
|
-
// this.viewCompStatus = '';
|
|
8347
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8348
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8349
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8350
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8351
|
-
// }
|
|
8352
|
-
// }
|
|
8353
|
-
// },
|
|
8354
|
-
// (error: any) => {
|
|
8355
|
-
// this.errorMessage = error;
|
|
8356
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8357
|
-
// });
|
|
8358
|
-
// }
|
|
8359
|
-
/**
|
|
7278
|
+
AddRemissionComponent.prototype.selectRadioButton = /**
|
|
8360
7279
|
* @param {?} key
|
|
8361
7280
|
* @param {?} value
|
|
8362
7281
|
* @return {?}
|
|
8363
7282
|
*/
|
|
8364
|
-
AddRemissionComponent.prototype.selectRadioButton =
|
|
8365
|
-
// Retro Refund
|
|
8366
|
-
// confirmRetroRefund() {
|
|
8367
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8368
|
-
// this.errorMessage = '';
|
|
8369
|
-
// this.errorMsg = [];
|
|
8370
|
-
// if( this.isRefundRemission) {
|
|
8371
|
-
// this.retroRemission = true;
|
|
8372
|
-
// }
|
|
8373
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8374
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8375
|
-
// response => {
|
|
8376
|
-
// if (JSON.parse(response)) {
|
|
8377
|
-
// this.viewCompStatus = '';
|
|
8378
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8379
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8380
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8381
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8382
|
-
// }
|
|
8383
|
-
// }
|
|
8384
|
-
// },
|
|
8385
|
-
// (error: any) => {
|
|
8386
|
-
// this.errorMessage = error;
|
|
8387
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8388
|
-
// });
|
|
8389
|
-
// }
|
|
8390
|
-
/**
|
|
8391
|
-
* @param {?} key
|
|
8392
|
-
* @param {?} value
|
|
8393
|
-
* @return {?}
|
|
8394
|
-
*/
|
|
8395
7283
|
function (key, value) {
|
|
8396
7284
|
localStorage.setItem("myradio", key);
|
|
8397
7285
|
/** @type {?} */
|
|
@@ -8400,7 +7288,6 @@
|
|
|
8400
7288
|
remissionctrls['reason'].reset();
|
|
8401
7289
|
this.isRefundReasonsSelected = true;
|
|
8402
7290
|
this.errorMessage = false;
|
|
8403
|
-
this.errorMsg = [];
|
|
8404
7291
|
this.isReasonEmpty = false;
|
|
8405
7292
|
this.showReasonText = false;
|
|
8406
7293
|
this.refundHasError = false;
|
|
@@ -8435,38 +7322,6 @@
|
|
|
8435
7322
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
8436
7323
|
}
|
|
8437
7324
|
};
|
|
8438
|
-
/**
|
|
8439
|
-
* @param {?} obj
|
|
8440
|
-
* @param {?} type
|
|
8441
|
-
* @return {?}
|
|
8442
|
-
*/
|
|
8443
|
-
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8444
|
-
* @param {?} obj
|
|
8445
|
-
* @param {?} type
|
|
8446
|
-
* @return {?}
|
|
8447
|
-
*/
|
|
8448
|
-
function (obj, type) {
|
|
8449
|
-
this.contactDetailsObj = obj;
|
|
8450
|
-
this.viewCompStatus = '';
|
|
8451
|
-
this.viewStatus = type;
|
|
8452
|
-
};
|
|
8453
|
-
/**
|
|
8454
|
-
* @return {?}
|
|
8455
|
-
*/
|
|
8456
|
-
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8457
|
-
* @return {?}
|
|
8458
|
-
*/
|
|
8459
|
-
function () {
|
|
8460
|
-
if (this.isFromRefundStatusPage) {
|
|
8461
|
-
/** @type {?} */
|
|
8462
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8463
|
-
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8464
|
-
return;
|
|
8465
|
-
}
|
|
8466
|
-
this.refundHasError = false;
|
|
8467
|
-
this.viewCompStatus = 'issuerefund';
|
|
8468
|
-
this.viewStatus = '';
|
|
8469
|
-
};
|
|
8470
7325
|
/**
|
|
8471
7326
|
* @param {?} event
|
|
8472
7327
|
* @return {?}
|
|
@@ -8478,20 +7333,7 @@
|
|
|
8478
7333
|
function (event) {
|
|
8479
7334
|
var _this = this;
|
|
8480
7335
|
this.errorMessage = '';
|
|
8481
|
-
this.errorMsg = [];
|
|
8482
|
-
this.isFromCheckAnsPage = false;
|
|
8483
7336
|
event.preventDefault();
|
|
8484
|
-
if (this.isFromRefundStatusPage) {
|
|
8485
|
-
/** @type {?} */
|
|
8486
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8487
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8488
|
-
* @param {?} a
|
|
8489
|
-
* @param {?} c
|
|
8490
|
-
* @return {?}
|
|
8491
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8492
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8493
|
-
return;
|
|
8494
|
-
}
|
|
8495
7337
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
8496
7338
|
this.viewStatus = 'order-full-view';
|
|
8497
7339
|
this.viewCompStatus = '';
|
|
@@ -8525,40 +7367,64 @@
|
|
|
8525
7367
|
}
|
|
8526
7368
|
this.viewCompStatus = '';
|
|
8527
7369
|
}
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
this.
|
|
8542
|
-
this.
|
|
8543
|
-
this.
|
|
8544
|
-
|
|
8545
|
-
this.
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
this.
|
|
8558
|
-
this.
|
|
8559
|
-
this.
|
|
8560
|
-
this.
|
|
8561
|
-
this.
|
|
7370
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7371
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7372
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7373
|
+
// }
|
|
7374
|
+
// if (this.isFromServiceRequestPage) {
|
|
7375
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7376
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7377
|
+
// this.viewStatus = 'main'
|
|
7378
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7379
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7380
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7381
|
+
// }
|
|
7382
|
+
// if ( this.isFromRefundListPage ) {
|
|
7383
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7384
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7385
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7386
|
+
// }
|
|
7387
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7388
|
+
// if(this.payment) {
|
|
7389
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7390
|
+
// }
|
|
7391
|
+
// if (this.isFromServiceRequestPage) {
|
|
7392
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7393
|
+
// } else {
|
|
7394
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7395
|
+
// }
|
|
7396
|
+
// this.errorMessage = '';
|
|
7397
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7398
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7399
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7400
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7401
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7402
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7403
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7404
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7405
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7406
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7407
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7408
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7409
|
+
// }
|
|
7410
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7411
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7412
|
+
// }
|
|
7413
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7414
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7415
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7416
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7417
|
+
// this.router.navigateByUrl(url);
|
|
7418
|
+
// } else {
|
|
7419
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7420
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7421
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7422
|
+
// this.router.navigateByUrl(url);
|
|
7423
|
+
// }
|
|
7424
|
+
// } else {
|
|
7425
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7426
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7427
|
+
// }
|
|
8562
7428
|
};
|
|
8563
7429
|
/**
|
|
8564
7430
|
* @return {?}
|
|
@@ -8569,7 +7435,6 @@
|
|
|
8569
7435
|
function () {
|
|
8570
7436
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8571
7437
|
this.errorMessage = '';
|
|
8572
|
-
this.errorMsg = [];
|
|
8573
7438
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8574
7439
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8575
7440
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -8599,34 +7464,28 @@
|
|
|
8599
7464
|
*/
|
|
8600
7465
|
function (event) {
|
|
8601
7466
|
event.preventDefault();
|
|
8602
|
-
this.
|
|
8603
|
-
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8604
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8605
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8606
|
-
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8607
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8608
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
8609
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
7467
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8610
7468
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8611
7469
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8612
7470
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8613
7471
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8614
7472
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8615
7473
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8616
|
-
this.
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
partUrl
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
this.
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
this.router.
|
|
8629
|
-
this.router.
|
|
7474
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7475
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7476
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7477
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7478
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7479
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7480
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7481
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7482
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7483
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7484
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7485
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7486
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7487
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7488
|
+
// this.router.navigateByUrl(url);
|
|
8630
7489
|
}
|
|
8631
7490
|
else {
|
|
8632
7491
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -8689,17 +7548,6 @@
|
|
|
8689
7548
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8690
7549
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8691
7550
|
};
|
|
8692
|
-
/**
|
|
8693
|
-
* @return {?}
|
|
8694
|
-
*/
|
|
8695
|
-
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8696
|
-
* @return {?}
|
|
8697
|
-
*/
|
|
8698
|
-
function () {
|
|
8699
|
-
this.isFromCheckAnsPage = true;
|
|
8700
|
-
this.viewCompStatus = 'issuerefund';
|
|
8701
|
-
this.viewStatus = '';
|
|
8702
|
-
};
|
|
8703
7551
|
/**
|
|
8704
7552
|
* @param {?} currency
|
|
8705
7553
|
* @return {?}
|
|
@@ -8717,8 +7565,8 @@
|
|
|
8717
7565
|
AddRemissionComponent.decorators = [
|
|
8718
7566
|
{ type: i0.Component, args: [{
|
|
8719
7567
|
selector: 'ccpay-add-remission',
|
|
8720
|
-
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n <div *ngIf=\"errorMsg.length > 0\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div *ngFor=\"let err of errorMsg; let i = index\" class=\"govuk-error-summary__body\">\n \n <li>{{err}}</li>\n </div>\n </div>\n </div>\n\n<ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n</ng-container>\n\n<!-- Add retro remission changes-->\n\n<ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"gotoAmountRetroRemission()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAmountRetroRemission()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel-border--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"gotoProcessRetroRemission()\">Continue </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n\n<ng-container *ngIf=\"viewStatus === 'remissionAddressPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission(contactDetailsObj)\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\"> Submit refund </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n\n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n</ng-container>\n\n<!-- Issue Refund Section -->\n<ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <h1 class=\"heading-large\">Issue refund</h1>\n <h2 class=\"heading-medium\">Case reference:#{{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"form-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <h3 class=\"heading-small\">Select fees to be refunded</h3>\n <!--TABLE-->\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-1\" scope=\"col\">Select</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Fee description</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Total paid</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Quantity</td>\n <td class=\"govuk-table__header col-8\" scope=\"col\">Amount to refund</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"!isFullyRefund\">\n <tr class=\"govuk-table__row\" formArrayName=\"feesList\" *ngFor=\"let fee of feesList?.controls; let i = index\">\n <td class=\"govuk-table__cell\">\n <div [formGroupName]=\"i\" class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n\n <input\n class=\"govuk-checkboxes__input\" \n (click)=\"check_en(i,fee.controls['id'].value,fee.controls['apportion_amount'].value,fee.controls['volume'].value)\" \n id=\"{{fee.controls['id'].value}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.controls['id'].value}}\" \n formControlName=\"selected\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.controls['id'].value}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.controls['description'].value}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.controls['id'].value}}\">{{ fee.controls['calculated_amount'].value / fee.controls['volume'].value }}</div>\n {{ fee.controls['calculated_amount'].value / fee.controls['volume'].value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ fee.controls['apportion_amount'].value | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value >1\">\n <div [formGroupName]=\"i\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" (keyup)=\"calAmtToRefund($event.target.value,fee.controls['calculated_amount'].value,fee.controls['volume'].value,i)\" value=\"{{fee.controls['updated_volume'].value}}\" name=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" formControlName=\"updated_volume\" type=\"text\" >\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value ===1\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"VolumeUpdated_{{fee.controls['id'].value}}\" name=\"VolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\">\n </td>\n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div [formGroupName]=\"i\" class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.controls['id'].value}}\" name=\"feeAmount_{{fee.controls['id'].value}}\" type=\"text\" aria-describedby=\"amount-currency \" pattern=\"[0-9]*\" formControlName=\"refund_amount\">\n <input id=\"feeVolume_{{fee.controls['id'].value}}\" name=\"feeVolume_{{fee.controls['id'].value}}\" value= \"{{fee.controls['volume'].value}}\" type=\"hidden\" formControlName=\"volume\">\n <input id=\"feeApportionAmount_{{fee.controls['id'].value}}\" name=\"feeApportionAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['apportion_amount'].value}}\" type=\"hidden\" formControlName=\"apportion_amount\">\n <input id=\"calculatedAmount_{{fee.controls['id'].value}}\" name=\"calculatedAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['calculated_amount'].value}}\" type=\"hidden\" formControlName=\"calculated_amount\">\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"isFullyRefund\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of fees; let i = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input \n class=\"govuk-checkboxes__input\" \n \n id=\"{{fee.id}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.id}}\"\n disabled=\"disabled\"\n [checked]=\"true\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.id}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.description}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.id}}\">{{ fee.calculated_amount / fee.volume }}</div>\n {{ fee.calculated_amount / fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\">\n <div >\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.id}}\" value=\"{{fee.volume}}\" name=\"feeVolumeUpdated_{{fee.id}}\" type=\"text\" >\n </div>\n </td>\n \n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.id}}\" name=\"feeAmount_{{fee.id}}\" type=\"text\" aria-describedby=\"amount-currency \" value=\"{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}\" pattern=\"[0-9]*\" >\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"fees?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n\n \n <a (click)=\"gotoServiceRequestPage($event)\" *ngIf=\"!isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n <a (click)=\"goToPaymentViewComponent()\" *ngIf=\"isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n <button [disabled] = \"noneSelected()\" (click)=\"gotoIssuePage(isFullyRefund)\" class=\"govuk-button\">\n Continue\n </button>\n \n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </form>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'issuerefundpage1' && isRefundRemission\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"payment\" class=\"form-hint\">\n Payment reference: {{paymentReference}}\n </span>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"refundPaymentReference\" class=\"form-hint\">\n Payment reference: {{refundPaymentReference}}\n </span>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoPartialFeeRefundScreen()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'contactDetailsPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CAPTUREADDRESSDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkissuerefundpage')\"\n (redirectToIssueRefund)=\"gotoRefundReasonPage()\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n \n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{totalRefundAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}\n <a (click)=\"changeRefundAmount()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoContactDetailsPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoContactDetailsPage(contactDetailsObj)\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund(isFullyRefund)\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<!--Retro Refund-->\n<ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event, 'addrefundcheckandanswer')\"\n(redirectToIssueRefund)=\"gotoServiceRequestPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addrefundcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n</ccpay-payment-view>\n</ng-container>\n\n</div>",
|
|
8721
|
-
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 .
|
|
7568
|
+
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'>\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'>\n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n\n </div>\n\n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'>\n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1>\n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1>\n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1>\n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n\n\n </div>\n </fieldset>\n </form>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n\n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'>\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'>\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n\n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'>\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n\n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n\n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'>\n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n\n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n\n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n\n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option>\n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n\n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n\n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'>\n <div class=\"govuk-warning-text\">\n\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }}\n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'>\n <div class=\"govuk-warning-text\">\n\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n\n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n </ccpay-service-request>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\"\n [isTakePayment] = \"takePayment\"\n [caseType] = \"caseType\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n </ccpay-payment-view>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
7569
|
+
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}"]
|
|
8722
7570
|
}] }
|
|
8723
7571
|
];
|
|
8724
7572
|
/** @nocollapse */
|
|
@@ -8735,7 +7583,6 @@
|
|
|
8735
7583
|
};
|
|
8736
7584
|
AddRemissionComponent.propDecorators = {
|
|
8737
7585
|
fee: [{ type: i0.Input }],
|
|
8738
|
-
fees: [{ type: i0.Input }],
|
|
8739
7586
|
payment: [{ type: i0.Input }],
|
|
8740
7587
|
remission: [{ type: i0.Input }],
|
|
8741
7588
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
@@ -8749,12 +7596,7 @@
|
|
|
8749
7596
|
isFromRefundListPage: [{ type: i0.Input }],
|
|
8750
7597
|
isFromPaymentDetailPage: [{ type: i0.Input }],
|
|
8751
7598
|
isFromServiceRequestPage: [{ type: i0.Input }],
|
|
8752
|
-
isFullyRefund: [{ type: i0.Input, args: ['isFullyRefund',] }],
|
|
8753
7599
|
feeamount: [{ type: i0.Input }],
|
|
8754
|
-
refundPaymentReference: [{ type: i0.Input }],
|
|
8755
|
-
isFromRefundStatusPage: [{ type: i0.Input }],
|
|
8756
|
-
changeRefundReason: [{ type: i0.Input }],
|
|
8757
|
-
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
8758
7600
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8759
7601
|
orderDetail: [{ type: i0.Input, args: ['orderDetail',] }],
|
|
8760
7602
|
orderRef: [{ type: i0.Input, args: ['orderRef',] }],
|
|
@@ -8768,8 +7610,7 @@
|
|
|
8768
7610
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
8769
7611
|
cancelRemission: [{ type: i0.Output }],
|
|
8770
7612
|
refundListReason: [{ type: i0.Output }],
|
|
8771
|
-
refundListAmount: [{ type: i0.Output }]
|
|
8772
|
-
refundFees: [{ type: i0.Output }]
|
|
7613
|
+
refundListAmount: [{ type: i0.Output }]
|
|
8773
7614
|
};
|
|
8774
7615
|
return AddRemissionComponent;
|
|
8775
7616
|
}());
|
|
@@ -8931,6 +7772,7 @@
|
|
|
8931
7772
|
var worksheet;
|
|
8932
7773
|
/** @type {?} */
|
|
8933
7774
|
var workbook;
|
|
7775
|
+
console.log(excelFileName);
|
|
8934
7776
|
if (excelFileName.match('Data_Loss') !== null) {
|
|
8935
7777
|
worksheet = XLSX.utils.json_to_sheet(json, { header: ['loss_resp', 'payment_asset_dcn', 'env_ref', 'env_item', 'resp_service_id', 'resp_service_name', 'date_banked', 'bgc_batch', 'payment_method', 'amount'] });
|
|
8936
7778
|
worksheet = this.setDataLossReportHeaders(worksheet);
|
|
@@ -9342,6 +8184,21 @@
|
|
|
9342
8184
|
if (res['data'][i]["representment_status"] !== undefined) {
|
|
9343
8185
|
res['data'][i]['representment_status'] = res['data'][i]["representment_status"].toLowerCase() === 'yes' ? 'Success' : 'Failure';
|
|
9344
8186
|
}
|
|
8187
|
+
if (res['data'][i]['representment_status'] === undefined) {
|
|
8188
|
+
res['data'][i]['representment_status'] = 'No representment received';
|
|
8189
|
+
}
|
|
8190
|
+
if (res['data'][i]['representment_date'] === undefined) {
|
|
8191
|
+
res['data'][i]['representment_date'] = 'N/A';
|
|
8192
|
+
}
|
|
8193
|
+
if (res['data'][i]['refund_reference'] === undefined) {
|
|
8194
|
+
res['data'][i]['refund_reference'] = 'No refund available';
|
|
8195
|
+
}
|
|
8196
|
+
if (res['data'][i]['refund_amount'] === undefined) {
|
|
8197
|
+
res['data'][i]['refund_amount'] = 'N/A';
|
|
8198
|
+
}
|
|
8199
|
+
if (res['data'][i]['refund_date'] === undefined) {
|
|
8200
|
+
res['data'][i]['refund_date'] = 'N/A';
|
|
8201
|
+
}
|
|
9345
8202
|
}
|
|
9346
8203
|
}
|
|
9347
8204
|
_this.isDownLoadButtondisabled = false;
|
|
@@ -9626,26 +8483,12 @@
|
|
|
9626
8483
|
return (r[user_full_name] = '', r);
|
|
9627
8484
|
}), {});
|
|
9628
8485
|
this.userLst = Object.keys(this.userLst);
|
|
9629
|
-
this.userLst.sort(( /**
|
|
9630
|
-
* @param {?} a
|
|
9631
|
-
* @param {?} b
|
|
9632
|
-
* @return {?}
|
|
9633
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9634
|
-
this.serviceLst = this.refundList.reduce(( /**
|
|
9635
|
-
* @param {?} r
|
|
9636
|
-
* @param {?} __1
|
|
9637
|
-
* @return {?}
|
|
9638
|
-
*/function (r, _a) {
|
|
9639
|
-
var service_type = _a.service_type;
|
|
9640
|
-
return (r[service_type] = '', r);
|
|
9641
|
-
}), {});
|
|
9642
|
-
this.serviceLst = Object.keys(this.serviceLst);
|
|
9643
|
-
this.serviceLst.sort(( /**
|
|
9644
|
-
* @param {?} a
|
|
9645
|
-
* @param {?} b
|
|
9646
|
-
* @return {?}
|
|
9647
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9648
8486
|
}
|
|
8487
|
+
this.userLst.sort(( /**
|
|
8488
|
+
* @param {?} a
|
|
8489
|
+
* @param {?} b
|
|
8490
|
+
* @return {?}
|
|
8491
|
+
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9649
8492
|
};
|
|
9650
8493
|
/**
|
|
9651
8494
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -9745,8 +8588,8 @@
|
|
|
9745
8588
|
TableComponent.decorators = [
|
|
9746
8589
|
{ type: i0.Component, args: [{
|
|
9747
8590
|
selector: 'ccpay-table',
|
|
9748
|
-
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
|
|
9749
|
-
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}
|
|
8591
|
+
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",
|
|
8592
|
+
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}"]
|
|
9750
8593
|
}] }
|
|
9751
8594
|
];
|
|
9752
8595
|
/** @nocollapse */
|
|
@@ -9769,32 +8612,14 @@
|
|
|
9769
8612
|
return TableComponent;
|
|
9770
8613
|
}());
|
|
9771
8614
|
|
|
9772
|
-
/**
|
|
9773
|
-
* @fileoverview added by tsickle
|
|
9774
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9775
|
-
*/
|
|
9776
|
-
var IPutNotificationRequest = /** @class */ (function () {
|
|
9777
|
-
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9778
|
-
if (notificationType === 'EMAIL') {
|
|
9779
|
-
this.recipient_email_address = contactDetails;
|
|
9780
|
-
}
|
|
9781
|
-
else if (notificationType === 'LETTER') {
|
|
9782
|
-
this.recipient_postal_address = contactDetails;
|
|
9783
|
-
}
|
|
9784
|
-
}
|
|
9785
|
-
return IPutNotificationRequest;
|
|
9786
|
-
}());
|
|
9787
|
-
|
|
9788
8615
|
/**
|
|
9789
8616
|
* @fileoverview added by tsickle
|
|
9790
8617
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9791
8618
|
*/
|
|
9792
8619
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9793
|
-
function IResubmitRefundRequest(refund_reason, amount
|
|
8620
|
+
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9794
8621
|
this.refund_reason = refund_reason;
|
|
9795
8622
|
this.amount = amount;
|
|
9796
|
-
this.contact_details = contact_details;
|
|
9797
|
-
this.refund_fees = refund_fees;
|
|
9798
8623
|
}
|
|
9799
8624
|
return IResubmitRefundRequest;
|
|
9800
8625
|
}());
|
|
@@ -9804,18 +8629,20 @@
|
|
|
9804
8629
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9805
8630
|
*/
|
|
9806
8631
|
var RefundStatusComponent = /** @class */ (function () {
|
|
9807
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
8632
|
+
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router$$1, OrderslistService$$1) {
|
|
9808
8633
|
var _this = this;
|
|
9809
8634
|
this.formBuilder = formBuilder;
|
|
9810
8635
|
this.refundService = refundService;
|
|
9811
|
-
this.notificationService = notificationService;
|
|
9812
8636
|
this.paymentLibComponent = paymentLibComponent;
|
|
9813
|
-
this.OrderslistService = OrderslistService$$1;
|
|
9814
8637
|
this.paymentViewService = paymentViewService;
|
|
8638
|
+
this.router = router$$1;
|
|
8639
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9815
8640
|
this.LOGGEDINUSERROLES = [];
|
|
9816
8641
|
this.rejectedRefundList = [];
|
|
9817
8642
|
this.approvalStatus = 'Sent for approval';
|
|
9818
8643
|
this.rejectStatus = 'Update required';
|
|
8644
|
+
// approvalStatus = 'sent for approval';
|
|
8645
|
+
// rejectStatus = 'sent back';
|
|
9819
8646
|
this.errorMessage = null;
|
|
9820
8647
|
this.refundButtonState = '';
|
|
9821
8648
|
this.isAmountEmpty = false;
|
|
@@ -9824,13 +8651,9 @@
|
|
|
9824
8651
|
this.isRemissionLessThanFeeError = false;
|
|
9825
8652
|
this.refundHasError = false;
|
|
9826
8653
|
this.refundReasons = [];
|
|
9827
|
-
this.isResendOperationSuccess = false;
|
|
9828
|
-
this.isEditDetailsClicked = false;
|
|
9829
|
-
this.isEditAddressDeatilsClicked = false;
|
|
9830
8654
|
this.isRefundBtnDisabled = true;
|
|
9831
8655
|
this.isLastUpdatedByCurrentUser = true;
|
|
9832
8656
|
this.isProcessRefund = false;
|
|
9833
|
-
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
9834
8657
|
this.isFromPayBubble = ( /**
|
|
9835
8658
|
* @return {?}
|
|
9836
8659
|
*/function () {
|
|
@@ -9845,9 +8668,13 @@
|
|
|
9845
8668
|
*/
|
|
9846
8669
|
function () {
|
|
9847
8670
|
var _this = this;
|
|
8671
|
+
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
9848
8672
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
9849
8673
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
9850
8674
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8675
|
+
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8676
|
+
// this.viewName = 'reviewandsubmitview';
|
|
8677
|
+
// }
|
|
9851
8678
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
9852
8679
|
this.viewName = 'refundview';
|
|
9853
8680
|
this.OrderslistService.getRefundView().subscribe(( /**
|
|
@@ -9888,7 +8715,6 @@
|
|
|
9888
8715
|
reason: new forms.FormControl()
|
|
9889
8716
|
});
|
|
9890
8717
|
if (this.refundlist !== undefined) {
|
|
9891
|
-
this.getRefundsNotification();
|
|
9892
8718
|
this.getRefundsStatusHistoryList();
|
|
9893
8719
|
if (this.LOGGEDINUSERROLES.some(( /**
|
|
9894
8720
|
* @param {?} i
|
|
@@ -9906,6 +8732,7 @@
|
|
|
9906
8732
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
9907
8733
|
}
|
|
9908
8734
|
}
|
|
8735
|
+
//}
|
|
9909
8736
|
};
|
|
9910
8737
|
/**
|
|
9911
8738
|
* @return {?}
|
|
@@ -9931,27 +8758,6 @@
|
|
|
9931
8758
|
});
|
|
9932
8759
|
}
|
|
9933
8760
|
};
|
|
9934
|
-
/**
|
|
9935
|
-
* @return {?}
|
|
9936
|
-
*/
|
|
9937
|
-
RefundStatusComponent.prototype.getRefundsNotification = /**
|
|
9938
|
-
* @return {?}
|
|
9939
|
-
*/
|
|
9940
|
-
function () {
|
|
9941
|
-
var _this = this;
|
|
9942
|
-
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe(( /**
|
|
9943
|
-
* @param {?} refundsNotification
|
|
9944
|
-
* @return {?}
|
|
9945
|
-
*/function (refundsNotification) {
|
|
9946
|
-
_this.notificationList = refundsNotification['notifications'];
|
|
9947
|
-
})),
|
|
9948
|
-
( /**
|
|
9949
|
-
* @param {?} error
|
|
9950
|
-
* @return {?}
|
|
9951
|
-
*/function (error) {
|
|
9952
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
9953
|
-
});
|
|
9954
|
-
};
|
|
9955
8761
|
/**
|
|
9956
8762
|
* @param {?} refundlist
|
|
9957
8763
|
* @param {?} navigationpage
|
|
@@ -10039,21 +8845,18 @@
|
|
|
10039
8845
|
}));
|
|
10040
8846
|
};
|
|
10041
8847
|
/**
|
|
10042
|
-
* @param {?} refundReason
|
|
10043
8848
|
* @return {?}
|
|
10044
8849
|
*/
|
|
10045
8850
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
10046
|
-
* @param {?} refundReason
|
|
10047
8851
|
* @return {?}
|
|
10048
8852
|
*/
|
|
10049
|
-
function (
|
|
8853
|
+
function () {
|
|
10050
8854
|
this.isRefundBtnDisabled = false;
|
|
10051
8855
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
10052
8856
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10053
8857
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10054
8858
|
this.errorMessage = false;
|
|
10055
|
-
this.
|
|
10056
|
-
this.viewName = 'issuerefundpage1';
|
|
8859
|
+
this.viewName = 'issuerefund';
|
|
10057
8860
|
};
|
|
10058
8861
|
/**
|
|
10059
8862
|
* @return {?}
|
|
@@ -10067,12 +8870,7 @@
|
|
|
10067
8870
|
this.isRefundBtnDisabled = false;
|
|
10068
8871
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
10069
8872
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
10070
|
-
|
|
10071
|
-
this.viewName = 'processretroremissonpage';
|
|
10072
|
-
}
|
|
10073
|
-
else {
|
|
10074
|
-
this.viewName = 'issuerefund';
|
|
10075
|
-
}
|
|
8873
|
+
this.viewName = 'processretroremissonpage';
|
|
10076
8874
|
};
|
|
10077
8875
|
/**
|
|
10078
8876
|
* @return {?}
|
|
@@ -10154,7 +8952,6 @@
|
|
|
10154
8952
|
function (refundListReason) {
|
|
10155
8953
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
10156
8954
|
this.refundlist.reason = refundListReason.reason;
|
|
10157
|
-
this.refundlist.code = refundListReason.code;
|
|
10158
8955
|
this.refundCode = refundListReason.code;
|
|
10159
8956
|
}
|
|
10160
8957
|
else {
|
|
@@ -10184,21 +8981,6 @@
|
|
|
10184
8981
|
this.viewName = 'reviewandsubmitview';
|
|
10185
8982
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
10186
8983
|
};
|
|
10187
|
-
/**
|
|
10188
|
-
* @param {?} fees
|
|
10189
|
-
* @return {?}
|
|
10190
|
-
*/
|
|
10191
|
-
RefundStatusComponent.prototype.getRefundFees = /**
|
|
10192
|
-
* @param {?} fees
|
|
10193
|
-
* @return {?}
|
|
10194
|
-
*/
|
|
10195
|
-
function (fees) {
|
|
10196
|
-
this.fees = fees;
|
|
10197
|
-
this.refundFees = this.fees.map(( /**
|
|
10198
|
-
* @param {?} obj
|
|
10199
|
-
* @return {?}
|
|
10200
|
-
*/function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10201
|
-
};
|
|
10202
8984
|
/**
|
|
10203
8985
|
* @return {?}
|
|
10204
8986
|
*/
|
|
@@ -10207,15 +8989,11 @@
|
|
|
10207
8989
|
*/
|
|
10208
8990
|
function () {
|
|
10209
8991
|
var _this = this;
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
// }
|
|
10213
|
-
if (this.refundFees === undefined) {
|
|
10214
|
-
this.refundFees = this.refundlist['refund_fees'];
|
|
8992
|
+
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8993
|
+
this.refundCode = '';
|
|
10215
8994
|
}
|
|
10216
|
-
this.refundCode = this.refundlist.code;
|
|
10217
8995
|
/** @type {?} */
|
|
10218
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount
|
|
8996
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10219
8997
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe(( /**
|
|
10220
8998
|
* @param {?} response
|
|
10221
8999
|
* @return {?}
|
|
@@ -10233,160 +9011,25 @@
|
|
|
10233
9011
|
}));
|
|
10234
9012
|
};
|
|
10235
9013
|
/**
|
|
10236
|
-
* @param {?}
|
|
10237
|
-
* @
|
|
10238
|
-
*/
|
|
10239
|
-
RefundStatusComponent.prototype.gotoEditAddressDetails = /**
|
|
10240
|
-
* @param {?} note
|
|
10241
|
-
* @return {?}
|
|
10242
|
-
*/
|
|
10243
|
-
function (note) {
|
|
10244
|
-
this.notification = note;
|
|
10245
|
-
this.isEditDetailsClicked = true;
|
|
10246
|
-
this.viewName = 'refundEditView';
|
|
10247
|
-
};
|
|
10248
|
-
/**
|
|
10249
|
-
* @param {?} obj
|
|
9014
|
+
* @param {?} refundReference
|
|
9015
|
+
* @param {?} refundList
|
|
10250
9016
|
* @return {?}
|
|
10251
9017
|
*/
|
|
10252
|
-
RefundStatusComponent.prototype.
|
|
10253
|
-
* @param {?}
|
|
9018
|
+
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
9019
|
+
* @param {?} refundReference
|
|
9020
|
+
* @param {?} refundList
|
|
10254
9021
|
* @return {?}
|
|
10255
9022
|
*/
|
|
10256
|
-
function (
|
|
10257
|
-
this.
|
|
10258
|
-
this.
|
|
10259
|
-
|
|
10260
|
-
/**
|
|
10261
|
-
* @param {?} obj
|
|
10262
|
-
* @return {?}
|
|
10263
|
-
*/
|
|
10264
|
-
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10265
|
-
* @param {?} obj
|
|
10266
|
-
* @return {?}
|
|
10267
|
-
*/
|
|
10268
|
-
function (obj) {
|
|
10269
|
-
this.refundlist.contact_details = obj;
|
|
10270
|
-
this.isEditDetailsClicked = false;
|
|
10271
|
-
this.isRefundBtnDisabled = false;
|
|
10272
|
-
this.viewName = 'reviewandsubmitview';
|
|
10273
|
-
};
|
|
10274
|
-
/**
|
|
10275
|
-
* @param {?=} note
|
|
10276
|
-
* @return {?}
|
|
10277
|
-
*/
|
|
10278
|
-
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10279
|
-
* @param {?=} note
|
|
10280
|
-
* @return {?}
|
|
10281
|
-
*/
|
|
10282
|
-
function (note) {
|
|
10283
|
-
if (note) {
|
|
10284
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10285
|
-
}
|
|
10286
|
-
this.isEditDetailsClicked = true;
|
|
10287
|
-
this.viewName = 'refundEditView';
|
|
10288
|
-
};
|
|
10289
|
-
/**
|
|
10290
|
-
* @return {?}
|
|
10291
|
-
*/
|
|
10292
|
-
RefundStatusComponent.prototype.submitEditDetail = /**
|
|
10293
|
-
* @return {?}
|
|
10294
|
-
*/
|
|
10295
|
-
function () {
|
|
10296
|
-
var _this = this;
|
|
10297
|
-
this.isResendOperationSuccess = false;
|
|
10298
|
-
/** @type {?} */
|
|
10299
|
-
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10300
|
-
{
|
|
10301
|
-
address_line: this.addressDetails.address_line,
|
|
10302
|
-
city: this.addressDetails.city,
|
|
10303
|
-
county: this.addressDetails.county,
|
|
10304
|
-
country: this.addressDetails.country,
|
|
10305
|
-
postal_code: this.addressDetails.postal_code,
|
|
10306
|
-
};
|
|
10307
|
-
/** @type {?} */
|
|
10308
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10309
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe(( /**
|
|
10310
|
-
* @param {?} response
|
|
10311
|
-
* @return {?}
|
|
10312
|
-
*/function (response) {
|
|
10313
|
-
_this.isResendOperationSuccess = response;
|
|
10314
|
-
}), ( /**
|
|
10315
|
-
* @param {?} error
|
|
10316
|
-
* @return {?}
|
|
10317
|
-
*/function (error) {
|
|
10318
|
-
_this.isResendOperationSuccess = false;
|
|
10319
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10320
|
-
}));
|
|
10321
|
-
};
|
|
10322
|
-
/**
|
|
10323
|
-
* @param {?} notification
|
|
10324
|
-
* @return {?}
|
|
10325
|
-
*/
|
|
10326
|
-
RefundStatusComponent.prototype.putResend = /**
|
|
10327
|
-
* @param {?} notification
|
|
10328
|
-
* @return {?}
|
|
10329
|
-
*/
|
|
10330
|
-
function (notification) {
|
|
10331
|
-
var _this = this;
|
|
10332
|
-
this.isResendOperationSuccess = false;
|
|
10333
|
-
/** @type {?} */
|
|
10334
|
-
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10335
|
-
{
|
|
10336
|
-
address_line: notification.contact_details.address_line,
|
|
10337
|
-
city: notification.contact_details.city,
|
|
10338
|
-
county: notification.contact_details.county,
|
|
10339
|
-
country: notification.contact_details.country,
|
|
10340
|
-
postal_code: notification.contact_details.postal_code,
|
|
10341
|
-
};
|
|
10342
|
-
/** @type {?} */
|
|
10343
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10344
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe(( /**
|
|
10345
|
-
* @param {?} response
|
|
10346
|
-
* @return {?}
|
|
10347
|
-
*/function (response) {
|
|
10348
|
-
_this.isResendOperationSuccess = response;
|
|
10349
|
-
}), ( /**
|
|
10350
|
-
* @param {?} error
|
|
10351
|
-
* @return {?}
|
|
10352
|
-
*/function (error) {
|
|
10353
|
-
_this.isResendOperationSuccess = false;
|
|
10354
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10355
|
-
}));
|
|
10356
|
-
};
|
|
10357
|
-
/**
|
|
10358
|
-
* @param {?} Event
|
|
10359
|
-
* @return {?}
|
|
10360
|
-
*/
|
|
10361
|
-
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10362
|
-
* @param {?} Event
|
|
10363
|
-
* @return {?}
|
|
10364
|
-
*/
|
|
10365
|
-
function (Event) {
|
|
10366
|
-
event.preventDefault();
|
|
10367
|
-
this.viewName = 'refundstatuslist';
|
|
10368
|
-
};
|
|
10369
|
-
/**
|
|
10370
|
-
* @param {?} refundReference
|
|
10371
|
-
* @param {?} refundList
|
|
10372
|
-
* @return {?}
|
|
10373
|
-
*/
|
|
10374
|
-
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
10375
|
-
* @param {?} refundReference
|
|
10376
|
-
* @param {?} refundList
|
|
10377
|
-
* @return {?}
|
|
10378
|
-
*/
|
|
10379
|
-
function (refundReference, refundList) {
|
|
10380
|
-
this.paymentLibComponent.refundlistsource = refundList;
|
|
10381
|
-
this.paymentLibComponent.refundReference = refundReference;
|
|
10382
|
-
this.paymentLibComponent.isFromPayBubble = true;
|
|
10383
|
-
this.paymentLibComponent.viewName = 'process-refund';
|
|
9023
|
+
function (refundReference, refundList) {
|
|
9024
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
9025
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
9026
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
10384
9027
|
};
|
|
10385
9028
|
RefundStatusComponent.decorators = [
|
|
10386
9029
|
{ type: i0.Component, args: [{
|
|
10387
9030
|
selector: 'ccpay-refund-status',
|
|
10388
|
-
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n\n <!-- Notification sent details -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Notifications sent</h2>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Sent to</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Sent via</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Actions</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"notificationList\">\n <tr class=\"govuk-table__row\" *ngFor=\"let notification of notificationList; let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{notification.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderParty}}</td>\n <td class=\"govuk-table__cell whitespace-inherit col-40\">\n <div *ngIf=\"notification?.notification_type === 'EMAIL'\">\n <strong>Email</strong><br>\n {{notification?.contact_details?.email}}\n </div>\n <div *ngIf=\"notification?.notification_type === 'LETTER'\">\n <strong>Post</strong><br>\n {{notification?.contact_details?.address_line}} {{notification?.contact_details?.city}} {{notification?.contact_details?.county}} {{notification?.contact_details?.country}} {{notification?.contact_details?.postal_code}}\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i === 0\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a> | <a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i > 0\"> </td>\n\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"!notificationList\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\" colspan=\"4\">No record found ... </td>\n </tr>\n </tbody>\n </table> \n </div>\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview' && !isFromPayBubble && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div *ngIf=\"refundButtonState==='Update required'\" >\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Change refund details</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for return</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage(refundlist?.reason)\" *ngIf=\"refundlist?.reason !== 'Retrospective remission' && refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount ? changedAmount : refundlist?.amount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n <a class=\"govuk-link\" href=\"Javascript:void(0)\" *ngIf=\"refundlist?.contact_details !=null\" class=\"govuk-link right\" (click)=\"gotoEditDetailsPage(refundlist?.contact_details)\">\n Change\n </a>\n </td>\n </tr> \n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefundpage1' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromRefundStatusPage] = \"true\"\n [changeRefundReason]= \"changeRefundReason\" [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\" [refundPaymentReference]= \"refundlist?.payment_reference\" ></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromServiceRequestPage] = \"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" [isFromRefundStatusPage]=\"true\" (refundListAmount)=\"getRefundAmount($event)\" (refundFees)=\"getRefundFees($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isResendOperationSuccess\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Notification sent\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{ refundlist?.refund_reference}} </strong></p>\n </div>\n\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewName === 'refundEditView' && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Edit contact details</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span class=\"govuk-hint font-size-19px\">\n Refund reference: {{ refundlist?.refund_reference}}\n </span>\n <ccpay-contact-details\n [isEditOperationInRefundList] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetailsInFefundsList)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoCasetransationPageCancelBtnClicked($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewName === 'revieweditdetailsconfirmationpage' && !isResendOperationSuccess && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSCHECKANDANSWERPAGE'> \n <h1 class=\"govuk-heading-l\">Check your answers</h1>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Refund reference\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ refundlist?.refund_reference}}\n </dd>\n <span class=\"govuk-summary-list__actions\"></span> \n </div>\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Send via\n <br/>\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage(addressDetails)\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage(addressDetails)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"submitEditDetail()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Send notification\n </button>\n </div>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n",
|
|
10389
|
-
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-
|
|
9031
|
+
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName === 'refundview' && !isFromPayBubble\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview'\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage'\">\n <div class=\"govuk-grid-row pagesize\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n",
|
|
9032
|
+
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}"]
|
|
10390
9033
|
}] }
|
|
10391
9034
|
];
|
|
10392
9035
|
/** @nocollapse */
|
|
@@ -10394,10 +9037,10 @@
|
|
|
10394
9037
|
return [
|
|
10395
9038
|
{ type: forms.FormBuilder },
|
|
10396
9039
|
{ type: RefundsService },
|
|
10397
|
-
{ type: NotificationService },
|
|
10398
9040
|
{ type: PaymentLibComponent },
|
|
10399
|
-
{ type:
|
|
10400
|
-
{ type:
|
|
9041
|
+
{ type: PaymentViewService },
|
|
9042
|
+
{ type: router.Router },
|
|
9043
|
+
{ type: OrderslistService }
|
|
10401
9044
|
];
|
|
10402
9045
|
};
|
|
10403
9046
|
RefundStatusComponent.propDecorators = {
|
|
@@ -10405,7 +9048,6 @@
|
|
|
10405
9048
|
API_ROOT: [{ type: i0.Input, args: ['API_ROOT',] }],
|
|
10406
9049
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
10407
9050
|
isTurnOff: [{ type: i0.Input }],
|
|
10408
|
-
orderParty: [{ type: i0.Input }],
|
|
10409
9051
|
isEliginbleToAccess: [{ type: i0.Input }]
|
|
10410
9052
|
};
|
|
10411
9053
|
return RefundStatusComponent;
|
|
@@ -10416,11 +9058,11 @@
|
|
|
10416
9058
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10417
9059
|
*/
|
|
10418
9060
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
10419
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1,
|
|
9061
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router$$1) {
|
|
9062
|
+
var _this = this;
|
|
10420
9063
|
this.paymentLibComponent = paymentLibComponent;
|
|
10421
9064
|
this.paymentViewService = paymentViewService;
|
|
10422
9065
|
this.OrderslistService = OrderslistService$$1;
|
|
10423
|
-
this.cd = cd;
|
|
10424
9066
|
this.router = router$$1;
|
|
10425
9067
|
this.goToServiceRquestComponent = new i0.EventEmitter();
|
|
10426
9068
|
this.paymentGroups = [];
|
|
@@ -10428,6 +9070,7 @@
|
|
|
10428
9070
|
this.nonPayments = [];
|
|
10429
9071
|
this.allPayments = [];
|
|
10430
9072
|
this.remissions = [];
|
|
9073
|
+
this.fees = [];
|
|
10431
9074
|
this.isRefundRemission = true;
|
|
10432
9075
|
this.isAddFeeBtnEnabled = true;
|
|
10433
9076
|
this.isExceptionRecord = false;
|
|
@@ -10447,7 +9090,27 @@
|
|
|
10447
9090
|
this.isAddRemissionBtnEnabled = false;
|
|
10448
9091
|
this.isRefundRemissionBtnEnable = false;
|
|
10449
9092
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
10450
|
-
this.
|
|
9093
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
9094
|
+
* @return {?}
|
|
9095
|
+
*/function () {
|
|
9096
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
9097
|
+
* @param {?} role
|
|
9098
|
+
* @return {?}
|
|
9099
|
+
*/function (role) {
|
|
9100
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9101
|
+
}));
|
|
9102
|
+
});
|
|
9103
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
9104
|
+
* @param {?} payment
|
|
9105
|
+
* @return {?}
|
|
9106
|
+
*/function (payment) {
|
|
9107
|
+
if (payment !== null && payment !== undefined) {
|
|
9108
|
+
/** @type {?} */
|
|
9109
|
+
var tmp4DayAgo = new Date();
|
|
9110
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
9111
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
9112
|
+
}
|
|
9113
|
+
});
|
|
10451
9114
|
}
|
|
10452
9115
|
/**
|
|
10453
9116
|
* @return {?}
|
|
@@ -10457,8 +9120,6 @@
|
|
|
10457
9120
|
*/
|
|
10458
9121
|
function () {
|
|
10459
9122
|
var _this = this;
|
|
10460
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10461
|
-
this.isServiceRequest = 'false';
|
|
10462
9123
|
if (this.viewStatus === undefined) {
|
|
10463
9124
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
10464
9125
|
}
|
|
@@ -10498,9 +9159,9 @@
|
|
|
10498
9159
|
*/function (data) { return _this.orderTotalPayments = data; }));
|
|
10499
9160
|
}
|
|
10500
9161
|
}
|
|
10501
|
-
if (this.
|
|
10502
|
-
|
|
10503
|
-
}
|
|
9162
|
+
// if (this.takePayment) {
|
|
9163
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
9164
|
+
// }
|
|
10504
9165
|
};
|
|
10505
9166
|
/**
|
|
10506
9167
|
* @return {?}
|
|
@@ -10529,7 +9190,7 @@
|
|
|
10529
9190
|
if (this.takePayment) {
|
|
10530
9191
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
10531
9192
|
}
|
|
10532
|
-
|
|
9193
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10533
9194
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
10534
9195
|
if (this.isServiceRequest !== 'false') {
|
|
10535
9196
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -10554,6 +9215,79 @@
|
|
|
10554
9215
|
this.router.onSameUrlNavigation = 'reload';
|
|
10555
9216
|
this.router.navigateByUrl(url);
|
|
10556
9217
|
};
|
|
9218
|
+
/**
|
|
9219
|
+
* @param {?} feeCode
|
|
9220
|
+
* @return {?}
|
|
9221
|
+
*/
|
|
9222
|
+
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9223
|
+
* @param {?} feeCode
|
|
9224
|
+
* @return {?}
|
|
9225
|
+
*/
|
|
9226
|
+
function (feeCode) {
|
|
9227
|
+
var e_1, _a;
|
|
9228
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9229
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9230
|
+
try {
|
|
9231
|
+
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9232
|
+
var remission = _c.value;
|
|
9233
|
+
if (remission.fee_code === feeCode) {
|
|
9234
|
+
return false;
|
|
9235
|
+
}
|
|
9236
|
+
}
|
|
9237
|
+
}
|
|
9238
|
+
catch (e_1_1) {
|
|
9239
|
+
e_1 = { error: e_1_1 };
|
|
9240
|
+
}
|
|
9241
|
+
finally {
|
|
9242
|
+
try {
|
|
9243
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
9244
|
+
_a.call(_b);
|
|
9245
|
+
}
|
|
9246
|
+
finally {
|
|
9247
|
+
if (e_1)
|
|
9248
|
+
throw e_1.error;
|
|
9249
|
+
}
|
|
9250
|
+
}
|
|
9251
|
+
}
|
|
9252
|
+
return true;
|
|
9253
|
+
}
|
|
9254
|
+
else {
|
|
9255
|
+
return false;
|
|
9256
|
+
}
|
|
9257
|
+
};
|
|
9258
|
+
/**
|
|
9259
|
+
* @return {?}
|
|
9260
|
+
*/
|
|
9261
|
+
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9262
|
+
* @return {?}
|
|
9263
|
+
*/
|
|
9264
|
+
function () {
|
|
9265
|
+
var _this = this;
|
|
9266
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9267
|
+
this.orderDetail.forEach(( /**
|
|
9268
|
+
* @param {?} orderDetail
|
|
9269
|
+
* @return {?}
|
|
9270
|
+
*/function (orderDetail) {
|
|
9271
|
+
if (orderDetail.payments) {
|
|
9272
|
+
orderDetail.payments.forEach(( /**
|
|
9273
|
+
* @param {?} payment
|
|
9274
|
+
* @return {?}
|
|
9275
|
+
*/function (payment) {
|
|
9276
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9277
|
+
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9278
|
+
_this.isPBA = true;
|
|
9279
|
+
}
|
|
9280
|
+
}));
|
|
9281
|
+
}
|
|
9282
|
+
}));
|
|
9283
|
+
if (this.isPBA) {
|
|
9284
|
+
return true;
|
|
9285
|
+
}
|
|
9286
|
+
else {
|
|
9287
|
+
return false;
|
|
9288
|
+
}
|
|
9289
|
+
}
|
|
9290
|
+
};
|
|
10557
9291
|
/**
|
|
10558
9292
|
* @param {?} fee
|
|
10559
9293
|
* @return {?}
|
|
@@ -10564,7 +9298,7 @@
|
|
|
10564
9298
|
*/
|
|
10565
9299
|
function (fee) {
|
|
10566
9300
|
var _this = this;
|
|
10567
|
-
if (this.
|
|
9301
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
10568
9302
|
this.feeId = fee;
|
|
10569
9303
|
this.viewStatus = 'addremission';
|
|
10570
9304
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -10578,8 +9312,8 @@
|
|
|
10578
9312
|
* @return {?}
|
|
10579
9313
|
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10580
9314
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10581
|
-
//
|
|
10582
|
-
//
|
|
9315
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9316
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10583
9317
|
}), ( /**
|
|
10584
9318
|
* @param {?} error
|
|
10585
9319
|
* @return {?}
|
|
@@ -10600,8 +9334,9 @@
|
|
|
10600
9334
|
*/
|
|
10601
9335
|
function (payment, remission, fees) {
|
|
10602
9336
|
var _this = this;
|
|
10603
|
-
this.
|
|
10604
|
-
this.
|
|
9337
|
+
this.viewStatus = 'addrefundforremission';
|
|
9338
|
+
this.payment = payment;
|
|
9339
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
10605
9340
|
* @param {?} paymentGroup
|
|
10606
9341
|
* @return {?}
|
|
10607
9342
|
*/function (paymentGroup) {
|
|
@@ -10609,14 +9344,13 @@
|
|
|
10609
9344
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
10610
9345
|
* @param {?} paymentGroupObj
|
|
10611
9346
|
* @return {?}
|
|
10612
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
9347
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
10613
9348
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10614
9349
|
_this.remissions = remission;
|
|
10615
9350
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
10616
9351
|
* @param {?} data
|
|
10617
9352
|
* @return {?}
|
|
10618
9353
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10619
|
-
_this.viewStatus = 'addrefundforremission';
|
|
10620
9354
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10621
9355
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10622
9356
|
}), ( /**
|
|
@@ -10661,40 +9395,70 @@
|
|
|
10661
9395
|
* @param {?} payment
|
|
10662
9396
|
* @return {?}
|
|
10663
9397
|
*/
|
|
10664
|
-
ServiceRequestComponent.prototype.
|
|
9398
|
+
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
10665
9399
|
* @param {?} payment
|
|
10666
9400
|
* @return {?}
|
|
10667
9401
|
*/
|
|
10668
9402
|
function (payment) {
|
|
9403
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9404
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9405
|
+
this.isIssueRefunfBtnEnable = true;
|
|
9406
|
+
}
|
|
9407
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
9408
|
+
return true;
|
|
9409
|
+
}
|
|
9410
|
+
else {
|
|
9411
|
+
return false;
|
|
9412
|
+
}
|
|
9413
|
+
};
|
|
9414
|
+
/**
|
|
9415
|
+
* @return {?}
|
|
9416
|
+
*/
|
|
9417
|
+
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9418
|
+
* @return {?}
|
|
9419
|
+
*/
|
|
9420
|
+
function () {
|
|
10669
9421
|
var _this = this;
|
|
10670
|
-
if (
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
9422
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9423
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9424
|
+
this.orderDetail.forEach(( /**
|
|
9425
|
+
* @param {?} orderDetail
|
|
9426
|
+
* @return {?}
|
|
9427
|
+
*/function (orderDetail) {
|
|
9428
|
+
if (orderDetail.payments) {
|
|
9429
|
+
orderDetail.payments.forEach(( /**
|
|
9430
|
+
* @param {?} payment
|
|
10678
9431
|
* @return {?}
|
|
10679
|
-
*/function (
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
9432
|
+
*/function (payment) {
|
|
9433
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9434
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
9435
|
+
}
|
|
9436
|
+
}));
|
|
9437
|
+
}
|
|
9438
|
+
}));
|
|
9439
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
9440
|
+
return true;
|
|
9441
|
+
}
|
|
9442
|
+
else {
|
|
9443
|
+
return false;
|
|
9444
|
+
}
|
|
9445
|
+
}
|
|
9446
|
+
};
|
|
9447
|
+
/**
|
|
9448
|
+
* @param {?} payment
|
|
9449
|
+
* @return {?}
|
|
9450
|
+
*/
|
|
9451
|
+
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9452
|
+
* @param {?} payment
|
|
9453
|
+
* @return {?}
|
|
9454
|
+
*/
|
|
9455
|
+
function (payment) {
|
|
9456
|
+
if (payment !== null && payment !== undefined) {
|
|
9457
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
9458
|
+
this.viewStatus = 'issuerefund';
|
|
9459
|
+
this.payment = payment;
|
|
9460
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9461
|
+
this.isRefundRemission = true;
|
|
10698
9462
|
}
|
|
10699
9463
|
}
|
|
10700
9464
|
};
|
|
@@ -10736,54 +9500,6 @@
|
|
|
10736
9500
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
10737
9501
|
this.viewStatus = 'payment-view';
|
|
10738
9502
|
};
|
|
10739
|
-
/**
|
|
10740
|
-
* @param {?} payment
|
|
10741
|
-
* @return {?}
|
|
10742
|
-
*/
|
|
10743
|
-
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10744
|
-
* @param {?} payment
|
|
10745
|
-
* @return {?}
|
|
10746
|
-
*/
|
|
10747
|
-
function (payment) {
|
|
10748
|
-
if (payment !== null && payment !== undefined) {
|
|
10749
|
-
return payment.issue_refund && payment.refund_enable;
|
|
10750
|
-
}
|
|
10751
|
-
else {
|
|
10752
|
-
return false;
|
|
10753
|
-
}
|
|
10754
|
-
};
|
|
10755
|
-
/**
|
|
10756
|
-
* @param {?} remission
|
|
10757
|
-
* @return {?}
|
|
10758
|
-
*/
|
|
10759
|
-
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10760
|
-
* @param {?} remission
|
|
10761
|
-
* @return {?}
|
|
10762
|
-
*/
|
|
10763
|
-
function (remission) {
|
|
10764
|
-
if (remission !== null && remission !== undefined) {
|
|
10765
|
-
return remission.add_refund;
|
|
10766
|
-
}
|
|
10767
|
-
else {
|
|
10768
|
-
return false;
|
|
10769
|
-
}
|
|
10770
|
-
};
|
|
10771
|
-
/**
|
|
10772
|
-
* @param {?} fee
|
|
10773
|
-
* @return {?}
|
|
10774
|
-
*/
|
|
10775
|
-
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10776
|
-
* @param {?} fee
|
|
10777
|
-
* @return {?}
|
|
10778
|
-
*/
|
|
10779
|
-
function (fee) {
|
|
10780
|
-
if (fee !== null && fee !== undefined) {
|
|
10781
|
-
return fee.add_remission && fee.remission_enable;
|
|
10782
|
-
}
|
|
10783
|
-
else {
|
|
10784
|
-
return false;
|
|
10785
|
-
}
|
|
10786
|
-
};
|
|
10787
9503
|
/**
|
|
10788
9504
|
* @return {?}
|
|
10789
9505
|
*/
|
|
@@ -10800,158 +9516,11 @@
|
|
|
10800
9516
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
10801
9517
|
this.OrderslistService.setorderFeesTotal(null);
|
|
10802
9518
|
};
|
|
10803
|
-
/**
|
|
10804
|
-
* @param {?} paymentType
|
|
10805
|
-
* @return {?}
|
|
10806
|
-
*/
|
|
10807
|
-
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
10808
|
-
* @param {?} paymentType
|
|
10809
|
-
* @return {?}
|
|
10810
|
-
*/
|
|
10811
|
-
function (paymentType) {
|
|
10812
|
-
this.paymentType = paymentType;
|
|
10813
|
-
this.isContinueBtnDisabled = false;
|
|
10814
|
-
};
|
|
10815
|
-
/**
|
|
10816
|
-
* @return {?}
|
|
10817
|
-
*/
|
|
10818
|
-
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
10819
|
-
* @return {?}
|
|
10820
|
-
*/
|
|
10821
|
-
function () {
|
|
10822
|
-
this.viewCompStatus = '';
|
|
10823
|
-
this.viewStatus = 'paymentview';
|
|
10824
|
-
};
|
|
10825
|
-
/**
|
|
10826
|
-
* @param {?} paymentgrp
|
|
10827
|
-
* @return {?}
|
|
10828
|
-
*/
|
|
10829
|
-
ServiceRequestComponent.prototype.continuePayment = /**
|
|
10830
|
-
* @param {?} paymentgrp
|
|
10831
|
-
* @return {?}
|
|
10832
|
-
*/
|
|
10833
|
-
function (paymentgrp) {
|
|
10834
|
-
if (this.paymentType === 'op') {
|
|
10835
|
-
this.isFullyRefund = false;
|
|
10836
|
-
this.viewStatus = '';
|
|
10837
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10838
|
-
}
|
|
10839
|
-
else if (this.paymentType === 'fp') {
|
|
10840
|
-
this.isFullyRefund = true;
|
|
10841
|
-
this.paymentGroupList = paymentgrp;
|
|
10842
|
-
this.viewStatus = 'issuerefund';
|
|
10843
|
-
this.viewCompStatus = "";
|
|
10844
|
-
this.isRefundRemission = true;
|
|
10845
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
10846
|
-
this.isFromPaymentDetailPage = true;
|
|
10847
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
10848
|
-
}
|
|
10849
|
-
};
|
|
10850
|
-
/**
|
|
10851
|
-
* @param {?} obj
|
|
10852
|
-
* @return {?}
|
|
10853
|
-
*/
|
|
10854
|
-
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
10855
|
-
* @param {?} obj
|
|
10856
|
-
* @return {?}
|
|
10857
|
-
*/
|
|
10858
|
-
function (obj) {
|
|
10859
|
-
this.contactDetailsObj = obj;
|
|
10860
|
-
this.viewStatus = '';
|
|
10861
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10862
|
-
};
|
|
10863
|
-
/**
|
|
10864
|
-
* @param {?} event
|
|
10865
|
-
* @return {?}
|
|
10866
|
-
*/
|
|
10867
|
-
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
10868
|
-
* @param {?} event
|
|
10869
|
-
* @return {?}
|
|
10870
|
-
*/
|
|
10871
|
-
function (event) {
|
|
10872
|
-
event.preventDefault();
|
|
10873
|
-
this.viewStatus = '';
|
|
10874
|
-
this.viewCompStatus = 'overpayment';
|
|
10875
|
-
};
|
|
10876
|
-
/**
|
|
10877
|
-
* @param {?=} note
|
|
10878
|
-
* @return {?}
|
|
10879
|
-
*/
|
|
10880
|
-
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
10881
|
-
* @param {?=} note
|
|
10882
|
-
* @return {?}
|
|
10883
|
-
*/
|
|
10884
|
-
function (note) {
|
|
10885
|
-
if (note) {
|
|
10886
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10887
|
-
}
|
|
10888
|
-
this.errorMessage = '';
|
|
10889
|
-
this.viewStatus = '';
|
|
10890
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10891
|
-
};
|
|
10892
|
-
/**
|
|
10893
|
-
* @return {?}
|
|
10894
|
-
*/
|
|
10895
|
-
ServiceRequestComponent.prototype.processRefund = /**
|
|
10896
|
-
* @return {?}
|
|
10897
|
-
*/
|
|
10898
|
-
function () {
|
|
10899
|
-
var _this = this;
|
|
10900
|
-
this.isConfirmationBtnDisabled = true;
|
|
10901
|
-
this.errorMessage = '';
|
|
10902
|
-
/** @type {?} */
|
|
10903
|
-
var obj = this.paymentGroupList.fees[0];
|
|
10904
|
-
this.fees = [{ id: obj.id,
|
|
10905
|
-
code: obj.code,
|
|
10906
|
-
version: obj.version,
|
|
10907
|
-
apportion_amount: obj.apportion_amount,
|
|
10908
|
-
calculated_amount: obj.calculated_amount,
|
|
10909
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
10910
|
-
volume: obj.volume,
|
|
10911
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
10912
|
-
/** @type {?} */
|
|
10913
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
10914
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
10915
|
-
* @param {?} response
|
|
10916
|
-
* @return {?}
|
|
10917
|
-
*/function (response) {
|
|
10918
|
-
if (JSON.parse(response)) {
|
|
10919
|
-
_this.viewCompStatus = '';
|
|
10920
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
10921
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
10922
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
10923
|
-
}
|
|
10924
|
-
}), ( /**
|
|
10925
|
-
* @param {?} error
|
|
10926
|
-
* @return {?}
|
|
10927
|
-
*/function (error) {
|
|
10928
|
-
_this.errorMessage = error;
|
|
10929
|
-
_this.isConfirmationBtnDisabled = false;
|
|
10930
|
-
_this.cd.detectChanges();
|
|
10931
|
-
}));
|
|
10932
|
-
};
|
|
10933
|
-
/**
|
|
10934
|
-
* @return {?}
|
|
10935
|
-
*/
|
|
10936
|
-
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
10937
|
-
* @return {?}
|
|
10938
|
-
*/
|
|
10939
|
-
function () {
|
|
10940
|
-
/** @type {?} */
|
|
10941
|
-
var feesOverPayment = 0;
|
|
10942
|
-
this.paymentGroupList.fees.forEach(( /**
|
|
10943
|
-
* @param {?} fee
|
|
10944
|
-
* @return {?}
|
|
10945
|
-
*/function (fee) {
|
|
10946
|
-
feesOverPayment += fee.over_payment;
|
|
10947
|
-
}));
|
|
10948
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
10949
|
-
};
|
|
10950
9519
|
ServiceRequestComponent.decorators = [
|
|
10951
9520
|
{ type: i0.Component, args: [{
|
|
10952
9521
|
selector: 'ccpay-service-request',
|
|
10953
|
-
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\">\n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n\n </td> -->\n </tr>\n </tbody>\n\n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n\n\n</ng-container>\n\n\n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\">\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n\n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[fee]=\"feeId\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[isServiceRequest] = \"isServiceRequest\"\n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n[isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"orderRef\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isFullyRefund] = \"isFullyRefund\"\n[fees] = \"paymentFees\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isFromRefundListPage] = \"false\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"isServiceRequest\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\"\n[isTakePayment] = \"takePayment\"\n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>\n\n<div class=\"over-payment\">\n <ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroupList?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComp()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroupList)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n </div>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <ccpay-contact-details \n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table govuk-table-mb\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroupList.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n </div>\n",
|
|
10954
|
-
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%}
|
|
9522
|
+
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\">\n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n\n </td> -->\n </tr>\n </tbody>\n\n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n\n\n</ng-container>\n\n\n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\">\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n\n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[fee]=\"feeId\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"orderRef\"\n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"orderRef\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\"\n[isTakePayment] = \"takePayment\"\n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>\n",
|
|
9523
|
+
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%}"]
|
|
10955
9524
|
}] }
|
|
10956
9525
|
];
|
|
10957
9526
|
/** @nocollapse */
|
|
@@ -10960,7 +9529,6 @@
|
|
|
10960
9529
|
{ type: PaymentLibComponent },
|
|
10961
9530
|
{ type: PaymentViewService },
|
|
10962
9531
|
{ type: OrderslistService },
|
|
10963
|
-
{ type: i0.ChangeDetectorRef },
|
|
10964
9532
|
{ type: router.Router }
|
|
10965
9533
|
];
|
|
10966
9534
|
};
|
|
@@ -10976,7 +9544,6 @@
|
|
|
10976
9544
|
orderFeesTotal: [{ type: i0.Input, args: ['orderFeesTotal',] }],
|
|
10977
9545
|
orderTotalPayments: [{ type: i0.Input, args: ['orderTotalPayments',] }],
|
|
10978
9546
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
10979
|
-
paymentGroupList: [{ type: i0.Input, args: ['paymentGroupList',] }],
|
|
10980
9547
|
takePayment: [{ type: i0.Input, args: ['takePayment',] }],
|
|
10981
9548
|
ccdCaseNumber: [{ type: i0.Input, args: ['ccdCaseNumber',] }],
|
|
10982
9549
|
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
@@ -11245,7 +9812,6 @@
|
|
|
11245
9812
|
PaymentListComponent,
|
|
11246
9813
|
PaymentViewComponent,
|
|
11247
9814
|
PbaPaymentComponent,
|
|
11248
|
-
ContactDetailsComponent,
|
|
11249
9815
|
ProcessRefundComponent,
|
|
11250
9816
|
RefundListComponent,
|
|
11251
9817
|
CardDetailsComponent,
|
|
@@ -11294,47 +9860,45 @@
|
|
|
11294
9860
|
exports.PaymentLibService = PaymentLibService;
|
|
11295
9861
|
exports.PaymentLibComponent = PaymentLibComponent;
|
|
11296
9862
|
exports.PaymentLibModule = PaymentLibModule;
|
|
11297
|
-
exports.ɵ
|
|
11298
|
-
exports.ɵ
|
|
11299
|
-
exports.ɵ
|
|
11300
|
-
exports.ɵ
|
|
11301
|
-
exports.ɵ
|
|
11302
|
-
exports.ɵ
|
|
11303
|
-
exports.ɵ
|
|
11304
|
-
exports.ɵt =
|
|
11305
|
-
exports.ɵ
|
|
11306
|
-
exports.ɵq = PageNotFoundComponent;
|
|
9863
|
+
exports.ɵbb = AddRemissionComponent;
|
|
9864
|
+
exports.ɵw = AllocatePaymentsComponent;
|
|
9865
|
+
exports.ɵm = CardDetailsComponent;
|
|
9866
|
+
exports.ɵz = CaseTransactionsComponent;
|
|
9867
|
+
exports.ɵbi = ErrorBannerComponent;
|
|
9868
|
+
exports.ɵba = FeeSummaryComponent;
|
|
9869
|
+
exports.ɵr = MarkUnidentifiedPaymentComponent;
|
|
9870
|
+
exports.ɵt = MarkUnsolicitedPaymentComponent;
|
|
9871
|
+
exports.ɵo = PageNotFoundComponent;
|
|
11307
9872
|
exports.ɵb = PaymentListComponent;
|
|
11308
9873
|
exports.ɵf = PaymentViewComponent;
|
|
11309
|
-
exports.ɵ
|
|
9874
|
+
exports.ɵy = PbaDetailsComponent;
|
|
11310
9875
|
exports.ɵi = PbaPaymentComponent;
|
|
11311
|
-
exports.ɵ
|
|
11312
|
-
exports.ɵ
|
|
11313
|
-
exports.ɵ
|
|
11314
|
-
exports.ɵ
|
|
11315
|
-
exports.ɵ
|
|
11316
|
-
exports.ɵ
|
|
11317
|
-
exports.ɵ
|
|
11318
|
-
exports.ɵ
|
|
11319
|
-
exports.ɵ
|
|
11320
|
-
exports.ɵ
|
|
11321
|
-
exports.ɵ
|
|
11322
|
-
exports.ɵ
|
|
11323
|
-
exports.ɵ
|
|
11324
|
-
exports.ɵ
|
|
11325
|
-
exports.ɵ
|
|
11326
|
-
exports.ɵ
|
|
11327
|
-
exports.ɵk = NotificationService;
|
|
9876
|
+
exports.ɵj = ProcessRefundComponent;
|
|
9877
|
+
exports.ɵv = ProcessedPaymentsComponent;
|
|
9878
|
+
exports.ɵl = RefundListComponent;
|
|
9879
|
+
exports.ɵbk = RefundStatusComponent;
|
|
9880
|
+
exports.ɵbg = ReportsComponent;
|
|
9881
|
+
exports.ɵbl = ServiceRequestComponent;
|
|
9882
|
+
exports.ɵp = StatusHistoryComponent;
|
|
9883
|
+
exports.ɵbj = TableComponent;
|
|
9884
|
+
exports.ɵu = UnprocessedPaymentsComponent;
|
|
9885
|
+
exports.ɵbd = CapitalizePipe;
|
|
9886
|
+
exports.ɵbc = CcdHyphensPipe;
|
|
9887
|
+
exports.ɵbe = keyValuePipe;
|
|
9888
|
+
exports.ɵbf = SanitizeHtmlPipe;
|
|
9889
|
+
exports.ɵs = BulkScaningPaymentService;
|
|
9890
|
+
exports.ɵn = CardDetailsService;
|
|
9891
|
+
exports.ɵx = CaseTransactionsService;
|
|
11328
9892
|
exports.ɵa = OrderslistService;
|
|
11329
9893
|
exports.ɵc = PaymentListService;
|
|
11330
9894
|
exports.ɵg = PaymentViewService;
|
|
11331
|
-
exports.ɵ
|
|
9895
|
+
exports.ɵk = RefundsService;
|
|
11332
9896
|
exports.ɵe = ErrorHandlerService;
|
|
11333
9897
|
exports.ɵh = WebComponentHttpClient;
|
|
11334
|
-
exports.ɵ
|
|
9898
|
+
exports.ɵbm = ConsoleLoggerService;
|
|
11335
9899
|
exports.ɵd = LoggerService;
|
|
11336
|
-
exports.ɵ
|
|
11337
|
-
exports.ɵ
|
|
9900
|
+
exports.ɵq = StatusHistoryService;
|
|
9901
|
+
exports.ɵbh = XlFileService;
|
|
11338
9902
|
|
|
11339
9903
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11340
9904
|
|