@hmcts/ccpay-web-component 5.0.4-beta03 → 5.0.4-beta06
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccpay-web-component.umd.js +632 -2094
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/hmcts-ccpay-web-component.js +31 -33
- package/esm2015/lib/components/add-remission/add-remission.component.js +126 -697
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +19 -43
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +12 -17
- package/esm2015/lib/components/payment-view/payment-view.component.js +106 -188
- package/esm2015/lib/components/process-refund/process-refund.component.js +28 -49
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +49 -235
- package/esm2015/lib/components/service-request/service-request.component.js +146 -237
- package/esm2015/lib/components/table/table.component.js +9 -24
- package/esm2015/lib/interfaces/IFee.js +1 -13
- package/esm2015/lib/interfaces/IPayment.js +1 -7
- package/esm2015/lib/interfaces/IRefundList.js +1 -7
- package/esm2015/lib/interfaces/IRemission.js +1 -7
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -20
- package/esm2015/lib/payment-lib.component.js +2 -9
- package/esm2015/lib/payment-lib.module.js +1 -3
- package/esm2015/lib/payment-lib.service.js +1 -16
- package/esm2015/lib/services/refunds/refunds.service.js +1 -10
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +131 -819
- package/esm5/lib/components/case-transactions/case-transactions.component.js +19 -43
- package/esm5/lib/components/fee-summary/fee-summary.component.js +12 -17
- package/esm5/lib/components/payment-view/payment-view.component.js +124 -219
- package/esm5/lib/components/process-refund/process-refund.component.js +78 -52
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +47 -274
- package/esm5/lib/components/service-request/service-request.component.js +176 -278
- package/esm5/lib/components/table/table.component.js +9 -27
- package/esm5/lib/interfaces/IFee.js +1 -13
- package/esm5/lib/interfaces/IPayment.js +1 -7
- package/esm5/lib/interfaces/IRefundList.js +1 -7
- package/esm5/lib/interfaces/IRemission.js +1 -7
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -16
- package/esm5/lib/payment-lib.component.js +2 -9
- package/esm5/lib/payment-lib.module.js +1 -3
- package/esm5/lib/payment-lib.service.js +1 -23
- package/esm5/lib/services/refunds/refunds.service.js +1 -16
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +515 -1851
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +597 -2102
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +30 -32
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +3 -45
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -3
- package/lib/components/payment-view/payment-view.component.d.ts +6 -23
- package/lib/components/process-refund/process-refund.component.d.ts +1 -6
- package/lib/components/refund-status/refund-status.component.d.ts +7 -35
- package/lib/components/service-request/service-request.component.d.ts +9 -28
- package/lib/components/table/table.component.d.ts +0 -1
- package/lib/interfaces/IFee.d.ts +0 -6
- package/lib/interfaces/IPayment.d.ts +0 -3
- package/lib/interfaces/IRefundList.d.ts +0 -4
- package/lib/interfaces/IRemission.d.ts +0 -3
- package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
- package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -7
- package/lib/payment-lib.component.d.ts +0 -2
- package/lib/payment-lib.service.d.ts +0 -3
- package/lib/services/refunds/refunds.service.d.ts +0 -2
- package/package.json +1 -5
- package/esm2015/lib/components/contact-details/contact-details.component.js +0 -447
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
- package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm2015/lib/interfaces/IRefundFee.js +0 -21
- package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm2015/lib/services/notification/notification.service.js +0 -85
- package/esm5/lib/components/contact-details/contact-details.component.js +0 -472
- package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
- package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm5/lib/interfaces/IRefundFee.js +0 -21
- package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm5/lib/services/notification/notification.service.js +0 -89
- package/lib/components/contact-details/contact-details.component.d.ts +0 -49
- package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
- package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
- package/lib/interfaces/IRefundFee.d.ts +0 -7
- package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
- package/lib/services/notification/notification.service.d.ts +0 -15
|
@@ -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 [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [
|
|
579
|
+
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'case-transactions'\"></ccpay-case-transactions>\n <app-mark-unidentified-payment *ngIf=\"viewName === 'unidentifiedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unidentified-payment>\n <app-mark-unsolicited-payment *ngIf=\"viewName === 'unsolicitedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unsolicited-payment>\n <app-allocate-payments *ngIf=\"viewName === 'allocate-payments'\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n ></app-allocate-payments>\n <ccpay-fee-summary *ngIf=\"viewName === 'fee-summary'\"\n [ccdCaseNumber]=\"CCD_CASE_NUMBER\" \n [paymentGroupRef]=\"paymentGroupReference\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"\n ></ccpay-fee-summary>\n <ccpay-reports *ngIf=\"viewName === 'reports'\"></ccpay-reports>\n "
|
|
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',] }],
|
|
@@ -1406,28 +1383,13 @@
|
|
|
1406
1383
|
return PaymentViewService;
|
|
1407
1384
|
}());
|
|
1408
1385
|
|
|
1409
|
-
/**
|
|
1410
|
-
* @fileoverview added by tsickle
|
|
1411
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1412
|
-
*/
|
|
1413
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
1414
|
-
function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
|
|
1415
|
-
this.contact_details = contact_details;
|
|
1416
|
-
this.fees = fees;
|
|
1417
|
-
this.payment_reference = payment_reference;
|
|
1418
|
-
this.refund_reason = refund_reason;
|
|
1419
|
-
this.total_refund_amount = total_refund_amount;
|
|
1420
|
-
this.is_over_payment = is_over_payment === 'op';
|
|
1421
|
-
}
|
|
1422
|
-
return PostRefundRetroRemission;
|
|
1423
|
-
}());
|
|
1424
|
-
|
|
1425
1386
|
/**
|
|
1426
1387
|
* @fileoverview added by tsickle
|
|
1427
1388
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1428
1389
|
*/
|
|
1429
1390
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1430
1391
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1392
|
+
var _this = this;
|
|
1431
1393
|
this.paymentViewService = paymentViewService;
|
|
1432
1394
|
this.paymentLibComponent = paymentLibComponent;
|
|
1433
1395
|
this.cd = cd;
|
|
@@ -1437,7 +1399,27 @@
|
|
|
1437
1399
|
this.isIssueRefunfBtnEnable = false;
|
|
1438
1400
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1439
1401
|
this.remissions = [];
|
|
1440
|
-
this.
|
|
1402
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
1403
|
+
* @return {?}
|
|
1404
|
+
*/function () {
|
|
1405
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
1406
|
+
* @param {?} role
|
|
1407
|
+
* @return {?}
|
|
1408
|
+
*/function (role) {
|
|
1409
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1410
|
+
}));
|
|
1411
|
+
});
|
|
1412
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
1413
|
+
* @param {?} payment
|
|
1414
|
+
* @return {?}
|
|
1415
|
+
*/function (payment) {
|
|
1416
|
+
if (payment !== null && payment !== undefined) {
|
|
1417
|
+
/** @type {?} */
|
|
1418
|
+
var tmp4DayAgo = new Date();
|
|
1419
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1420
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1421
|
+
}
|
|
1422
|
+
});
|
|
1441
1423
|
}
|
|
1442
1424
|
/**
|
|
1443
1425
|
* @return {?}
|
|
@@ -1488,7 +1470,6 @@
|
|
|
1488
1470
|
}
|
|
1489
1471
|
}));
|
|
1490
1472
|
paymentGroup.fees = fees;
|
|
1491
|
-
_this.paymentFees = fees;
|
|
1492
1473
|
_this.paymentGroup = paymentGroup;
|
|
1493
1474
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1494
1475
|
* @param {?} paymentGroupObj
|
|
@@ -1532,23 +1513,6 @@
|
|
|
1532
1513
|
/**
|
|
1533
1514
|
* @return {?}
|
|
1534
1515
|
*/
|
|
1535
|
-
PaymentViewComponent.prototype.getOverPaymentValue = /**
|
|
1536
|
-
* @return {?}
|
|
1537
|
-
*/
|
|
1538
|
-
function () {
|
|
1539
|
-
/** @type {?} */
|
|
1540
|
-
var feesOverPayment = 0;
|
|
1541
|
-
this.paymentGroup.fees.forEach(( /**
|
|
1542
|
-
* @param {?} fee
|
|
1543
|
-
* @return {?}
|
|
1544
|
-
*/function (fee) {
|
|
1545
|
-
feesOverPayment += fee.over_payment;
|
|
1546
|
-
}));
|
|
1547
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroup.payments[0].over_payment;
|
|
1548
|
-
};
|
|
1549
|
-
/**
|
|
1550
|
-
* @return {?}
|
|
1551
|
-
*/
|
|
1552
1516
|
PaymentViewComponent.prototype.goToServiceRequestPage = /**
|
|
1553
1517
|
* @return {?}
|
|
1554
1518
|
*/
|
|
@@ -1623,7 +1587,7 @@
|
|
|
1623
1587
|
*/
|
|
1624
1588
|
function (fee) {
|
|
1625
1589
|
var _this = this;
|
|
1626
|
-
if (this.
|
|
1590
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
1627
1591
|
this.feeId = fee;
|
|
1628
1592
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe(( /**
|
|
1629
1593
|
* @param {?} paymentGroup
|
|
@@ -1661,62 +1625,6 @@
|
|
|
1661
1625
|
}
|
|
1662
1626
|
return false;
|
|
1663
1627
|
};
|
|
1664
|
-
/**
|
|
1665
|
-
* @return {?}
|
|
1666
|
-
*/
|
|
1667
|
-
PaymentViewComponent.prototype.processRefund = /**
|
|
1668
|
-
* @return {?}
|
|
1669
|
-
*/
|
|
1670
|
-
function () {
|
|
1671
|
-
var _this = this;
|
|
1672
|
-
this.isConfirmationBtnDisabled = true;
|
|
1673
|
-
this.errorMessage = '';
|
|
1674
|
-
/** @type {?} */
|
|
1675
|
-
var obj = this.paymentGroup.fees[0];
|
|
1676
|
-
this.fees = [{ id: obj.id,
|
|
1677
|
-
code: obj.code,
|
|
1678
|
-
version: obj.version,
|
|
1679
|
-
apportion_amount: obj.apportion_amount,
|
|
1680
|
-
calculated_amount: obj.calculated_amount,
|
|
1681
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1682
|
-
volume: obj.volume,
|
|
1683
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
1684
|
-
/** @type {?} */
|
|
1685
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
1686
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
1687
|
-
* @param {?} response
|
|
1688
|
-
* @return {?}
|
|
1689
|
-
*/function (response) {
|
|
1690
|
-
if (JSON.parse(response)) {
|
|
1691
|
-
_this.viewCompStatus = '';
|
|
1692
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
1693
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
1694
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
1695
|
-
}
|
|
1696
|
-
}), ( /**
|
|
1697
|
-
* @param {?} error
|
|
1698
|
-
* @return {?}
|
|
1699
|
-
*/function (error) {
|
|
1700
|
-
_this.errorMessage = error;
|
|
1701
|
-
_this.isConfirmationBtnDisabled = false;
|
|
1702
|
-
_this.cd.detectChanges();
|
|
1703
|
-
}));
|
|
1704
|
-
};
|
|
1705
|
-
/**
|
|
1706
|
-
* @param {?=} note
|
|
1707
|
-
* @return {?}
|
|
1708
|
-
*/
|
|
1709
|
-
PaymentViewComponent.prototype.gotoAddressPage = /**
|
|
1710
|
-
* @param {?=} note
|
|
1711
|
-
* @return {?}
|
|
1712
|
-
*/
|
|
1713
|
-
function (note) {
|
|
1714
|
-
if (note) {
|
|
1715
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
1716
|
-
}
|
|
1717
|
-
this.errorMessage = '';
|
|
1718
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1719
|
-
};
|
|
1720
1628
|
/**
|
|
1721
1629
|
* @param {?} payment
|
|
1722
1630
|
* @param {?} remission
|
|
@@ -1731,40 +1639,56 @@
|
|
|
1731
1639
|
*/
|
|
1732
1640
|
function (payment, remission, fees) {
|
|
1733
1641
|
var _this = this;
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
*/function (paymentGroup) {
|
|
1739
|
-
_this.paymentGroup = paymentGroup;
|
|
1740
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1741
|
-
* @param {?} paymentGroupObj
|
|
1642
|
+
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1643
|
+
this.payment = payment;
|
|
1644
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
1645
|
+
* @param {?} paymentGroup
|
|
1742
1646
|
* @return {?}
|
|
1743
|
-
*/function (
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1647
|
+
*/function (paymentGroup) {
|
|
1648
|
+
_this.paymentGroup = paymentGroup;
|
|
1649
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1650
|
+
* @param {?} paymentGroupObj
|
|
1651
|
+
* @return {?}
|
|
1652
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1653
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1654
|
+
_this.remissions = remission;
|
|
1655
|
+
_this.remissionFeeAmt = fees.filter(( /**
|
|
1656
|
+
* @param {?} data
|
|
1657
|
+
* @return {?}
|
|
1658
|
+
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1659
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1660
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1661
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1662
|
+
}), ( /**
|
|
1663
|
+
* @param {?} error
|
|
1748
1664
|
* @return {?}
|
|
1749
|
-
*/function (
|
|
1750
|
-
|
|
1751
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1752
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1753
|
-
}), ( /**
|
|
1754
|
-
* @param {?} error
|
|
1755
|
-
* @return {?}
|
|
1756
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
1757
|
-
//}
|
|
1665
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
1666
|
+
}
|
|
1758
1667
|
};
|
|
1759
1668
|
/**
|
|
1760
1669
|
* @return {?}
|
|
1761
1670
|
*/
|
|
1762
|
-
PaymentViewComponent.prototype.
|
|
1671
|
+
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
1763
1672
|
* @return {?}
|
|
1764
1673
|
*/
|
|
1765
1674
|
function () {
|
|
1766
|
-
|
|
1767
|
-
this.
|
|
1675
|
+
var _this = this;
|
|
1676
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1677
|
+
this.paymentGroup.payments.forEach(( /**
|
|
1678
|
+
* @param {?} payment
|
|
1679
|
+
* @return {?}
|
|
1680
|
+
*/function (payment) {
|
|
1681
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1682
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1683
|
+
}
|
|
1684
|
+
}));
|
|
1685
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1686
|
+
return true;
|
|
1687
|
+
}
|
|
1688
|
+
else {
|
|
1689
|
+
return false;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1768
1692
|
};
|
|
1769
1693
|
/**
|
|
1770
1694
|
* @param {?} paymentgrp
|
|
@@ -1776,18 +1700,13 @@
|
|
|
1776
1700
|
*/
|
|
1777
1701
|
function (paymentgrp) {
|
|
1778
1702
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1779
|
-
if (this.
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
this.isRefundRemission = true;
|
|
1787
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1788
|
-
this.isFromPaymentDetailPage = true;
|
|
1789
|
-
this.isFromServiceRequestPage = false;
|
|
1790
|
-
}
|
|
1703
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1704
|
+
this.paymentGroup = paymentgrp;
|
|
1705
|
+
this.viewStatus = 'issuerefund';
|
|
1706
|
+
this.isRefundRemission = true;
|
|
1707
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1708
|
+
this.isFromPaymentDetailPage = true;
|
|
1709
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1791
1710
|
}
|
|
1792
1711
|
}
|
|
1793
1712
|
};
|
|
@@ -1832,110 +1751,79 @@
|
|
|
1832
1751
|
* @param {?} payment
|
|
1833
1752
|
* @return {?}
|
|
1834
1753
|
*/
|
|
1835
|
-
PaymentViewComponent.prototype.
|
|
1754
|
+
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
1836
1755
|
* @param {?} payment
|
|
1837
1756
|
* @return {?}
|
|
1838
1757
|
*/
|
|
1839
1758
|
function (payment) {
|
|
1840
|
-
if (
|
|
1841
|
-
|
|
1759
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
1760
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
1761
|
+
this.isIssueRefunfBtnEnable = true;
|
|
1762
|
+
}
|
|
1763
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
1764
|
+
return true;
|
|
1842
1765
|
}
|
|
1843
1766
|
else {
|
|
1844
1767
|
return false;
|
|
1845
1768
|
}
|
|
1846
1769
|
};
|
|
1847
1770
|
/**
|
|
1848
|
-
* @param {?} remission
|
|
1849
1771
|
* @return {?}
|
|
1850
1772
|
*/
|
|
1851
|
-
PaymentViewComponent.prototype.
|
|
1852
|
-
* @param {?} remission
|
|
1773
|
+
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
1853
1774
|
* @return {?}
|
|
1854
1775
|
*/
|
|
1855
|
-
function (
|
|
1856
|
-
if (
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1776
|
+
function () {
|
|
1777
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1778
|
+
/** @type {?} */
|
|
1779
|
+
var payment = this.paymentGroup.payments[0];
|
|
1780
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1781
|
+
return true;
|
|
1782
|
+
}
|
|
1860
1783
|
return false;
|
|
1861
1784
|
}
|
|
1862
1785
|
};
|
|
1863
1786
|
/**
|
|
1864
|
-
* @param {?}
|
|
1787
|
+
* @param {?} feeCode
|
|
1865
1788
|
* @return {?}
|
|
1866
1789
|
*/
|
|
1867
|
-
PaymentViewComponent.prototype.
|
|
1868
|
-
* @param {?}
|
|
1790
|
+
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
1791
|
+
* @param {?} feeCode
|
|
1869
1792
|
* @return {?}
|
|
1870
1793
|
*/
|
|
1871
|
-
function (
|
|
1872
|
-
|
|
1873
|
-
|
|
1794
|
+
function (feeCode) {
|
|
1795
|
+
var e_2, _a;
|
|
1796
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
1797
|
+
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1798
|
+
try {
|
|
1799
|
+
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1800
|
+
var remission = _c.value;
|
|
1801
|
+
if (remission.fee_code === feeCode) {
|
|
1802
|
+
return false;
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
catch (e_2_1) {
|
|
1807
|
+
e_2 = { error: e_2_1 };
|
|
1808
|
+
}
|
|
1809
|
+
finally {
|
|
1810
|
+
try {
|
|
1811
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
1812
|
+
_a.call(_b);
|
|
1813
|
+
}
|
|
1814
|
+
finally {
|
|
1815
|
+
if (e_2)
|
|
1816
|
+
throw e_2.error;
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
return true;
|
|
1820
|
+
}
|
|
1821
|
+
return true;
|
|
1874
1822
|
}
|
|
1875
1823
|
else {
|
|
1876
1824
|
return false;
|
|
1877
1825
|
}
|
|
1878
1826
|
};
|
|
1879
|
-
/**
|
|
1880
|
-
* @param {?} paymentType
|
|
1881
|
-
* @return {?}
|
|
1882
|
-
*/
|
|
1883
|
-
PaymentViewComponent.prototype.selectPymentOption = /**
|
|
1884
|
-
* @param {?} paymentType
|
|
1885
|
-
* @return {?}
|
|
1886
|
-
*/
|
|
1887
|
-
function (paymentType) {
|
|
1888
|
-
this.paymentType = paymentType;
|
|
1889
|
-
this.isContinueBtnDisabled = false;
|
|
1890
|
-
};
|
|
1891
|
-
/**
|
|
1892
|
-
* @param {?} paymentgrp
|
|
1893
|
-
* @return {?}
|
|
1894
|
-
*/
|
|
1895
|
-
PaymentViewComponent.prototype.continuePayment = /**
|
|
1896
|
-
* @param {?} paymentgrp
|
|
1897
|
-
* @return {?}
|
|
1898
|
-
*/
|
|
1899
|
-
function (paymentgrp) {
|
|
1900
|
-
if (this.paymentType === 'op') {
|
|
1901
|
-
this.isFullyRefund = false;
|
|
1902
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
1903
|
-
}
|
|
1904
|
-
else if (this.paymentType === 'fp') {
|
|
1905
|
-
this.isFullyRefund = true;
|
|
1906
|
-
this.paymentGroup = paymentgrp;
|
|
1907
|
-
this.viewStatus = 'issuerefund';
|
|
1908
|
-
this.viewCompStatus = "";
|
|
1909
|
-
this.isRefundRemission = true;
|
|
1910
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1911
|
-
this.isFromPaymentDetailPage = true;
|
|
1912
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
1913
|
-
}
|
|
1914
|
-
};
|
|
1915
|
-
/**
|
|
1916
|
-
* @param {?} event
|
|
1917
|
-
* @return {?}
|
|
1918
|
-
*/
|
|
1919
|
-
PaymentViewComponent.prototype.gotoPaymentSelectPage = /**
|
|
1920
|
-
* @param {?} event
|
|
1921
|
-
* @return {?}
|
|
1922
|
-
*/
|
|
1923
|
-
function (event) {
|
|
1924
|
-
event.preventDefault();
|
|
1925
|
-
this.viewCompStatus = 'overpayment';
|
|
1926
|
-
};
|
|
1927
|
-
/**
|
|
1928
|
-
* @param {?} obj
|
|
1929
|
-
* @return {?}
|
|
1930
|
-
*/
|
|
1931
|
-
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1932
|
-
* @param {?} obj
|
|
1933
|
-
* @return {?}
|
|
1934
|
-
*/
|
|
1935
|
-
function (obj) {
|
|
1936
|
-
this.contactDetailsObj = obj;
|
|
1937
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1938
|
-
};
|
|
1939
1827
|
/**
|
|
1940
1828
|
* @return {?}
|
|
1941
1829
|
*/
|
|
@@ -1955,8 +1843,8 @@
|
|
|
1955
1843
|
PaymentViewComponent.decorators = [
|
|
1956
1844
|
{ type: i0.Component, args: [{
|
|
1957
1845
|
selector: 'ccpay-payment-view',
|
|
1958
|
-
template: "<div class=\"payment-view-section\">\n<ng-container *ngIf=\"viewStatus === 'paymentview' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.over_payment > 0\">\n <td class=\"bold tb-col-w\">Over payment</td>\n <td class=\"tb-col-w\">\u00A3{{ getOverPaymentValue() | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [fees] =\"paymentFees\"\n [isFullyRefund] = \"isFullyRefund\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n \n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n\n\n\n</ng-container>\n</div>\n<div class=\"over-payment\">\n<ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroup?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComponent()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroup)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n</div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroup?.payments[0]?.reference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event)\"\n(redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroup.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroup?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n\n</ng-container>\n</div>",
|
|
1959
|
-
styles: [".
|
|
1846
|
+
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n\n\n\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n \n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n \n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n \n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n \n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n \n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n \n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n \n </div>\n \n </main>\n </div> -->\n<!-- </ng-container> --> \n",
|
|
1847
|
+
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}.text-transform::first-letter{text-transform:capitalize}.govuk-link{cursor:pointer}.mar-17{font-size:19px!important}"]
|
|
1960
1848
|
}] }
|
|
1961
1849
|
];
|
|
1962
1850
|
/** @nocollapse */
|
|
@@ -2124,21 +2012,6 @@
|
|
|
2124
2012
|
function (body) {
|
|
2125
2013
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2126
2014
|
};
|
|
2127
|
-
/**
|
|
2128
|
-
* @param {?} body
|
|
2129
|
-
* @param {?} refundRef
|
|
2130
|
-
* @param {?} notificationType
|
|
2131
|
-
* @return {?}
|
|
2132
|
-
*/
|
|
2133
|
-
RefundsService.prototype.putResendOrEdit = /**
|
|
2134
|
-
* @param {?} body
|
|
2135
|
-
* @param {?} refundRef
|
|
2136
|
-
* @param {?} notificationType
|
|
2137
|
-
* @return {?}
|
|
2138
|
-
*/
|
|
2139
|
-
function (body, refundRef, notificationType) {
|
|
2140
|
-
return this.https.put(this.paymentLibService.REFUNDS_API_ROOT + "/resend/notification/" + refundRef + "?notificationType=" + notificationType, body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2141
|
-
};
|
|
2142
2015
|
/**
|
|
2143
2016
|
* @param {?} body
|
|
2144
2017
|
* @param {?} refund_reference
|
|
@@ -2223,9 +2096,8 @@
|
|
|
2223
2096
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2224
2097
|
*/
|
|
2225
2098
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2226
|
-
function ProcessRefundComponent(RefundsService$$1,
|
|
2099
|
+
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2227
2100
|
this.RefundsService = RefundsService$$1;
|
|
2228
|
-
this.paymentViewService = paymentViewService;
|
|
2229
2101
|
this.formBuilder = formBuilder;
|
|
2230
2102
|
this.OrderslistService = OrderslistService$$1;
|
|
2231
2103
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2248,7 +2120,6 @@
|
|
|
2248
2120
|
this.isReasonEmpty = false;
|
|
2249
2121
|
this.isReasonInvalid = false;
|
|
2250
2122
|
this.successMsg = null;
|
|
2251
|
-
this.cpoDetails = null;
|
|
2252
2123
|
this.isConfirmButtondisabled = true;
|
|
2253
2124
|
}
|
|
2254
2125
|
/**
|
|
@@ -2294,18 +2165,6 @@
|
|
|
2294
2165
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2295
2166
|
this.isFromRefundListPage = true;
|
|
2296
2167
|
}
|
|
2297
|
-
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe(( /**
|
|
2298
|
-
* @param {?} response
|
|
2299
|
-
* @return {?}
|
|
2300
|
-
*/function (response) {
|
|
2301
|
-
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2302
|
-
}), ( /**
|
|
2303
|
-
* @param {?} error
|
|
2304
|
-
* @return {?}
|
|
2305
|
-
*/function (error) {
|
|
2306
|
-
_this.errorMessage = ( /** @type {?} */(error.replace(/"/g, "")));
|
|
2307
|
-
_this.isCPODown = true;
|
|
2308
|
-
}));
|
|
2309
2168
|
};
|
|
2310
2169
|
/**
|
|
2311
2170
|
* @param {?} code
|
|
@@ -2539,29 +2398,89 @@
|
|
|
2539
2398
|
this.loadRefundListPage();
|
|
2540
2399
|
}
|
|
2541
2400
|
};
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2401
|
+
// loadCaseTransactionPage() {
|
|
2402
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2403
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2404
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2405
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2406
|
+
// features => {
|
|
2407
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2408
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2409
|
+
// },
|
|
2410
|
+
// err => {
|
|
2411
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2412
|
+
// }
|
|
2413
|
+
// );
|
|
2414
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2415
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2416
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2417
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2418
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2419
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2420
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2421
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2422
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2423
|
+
// this.router.navigateByUrl(url);
|
|
2424
|
+
// }
|
|
2425
|
+
// loadCaseTransactionPage() {
|
|
2426
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2427
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2428
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2429
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2430
|
+
// features => {
|
|
2431
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2432
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2433
|
+
// },
|
|
2434
|
+
// err => {
|
|
2435
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2436
|
+
// }
|
|
2437
|
+
// );
|
|
2438
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2439
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2440
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2441
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2442
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2443
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2444
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2445
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2446
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2447
|
+
// this.router.navigateByUrl(url);
|
|
2448
|
+
// }
|
|
2555
2449
|
/**
|
|
2556
2450
|
* @param {?} vals
|
|
2557
2451
|
* @param {?} field
|
|
2558
2452
|
* @return {?}
|
|
2559
2453
|
*/
|
|
2560
|
-
ProcessRefundComponent.prototype.resetForm =
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2454
|
+
ProcessRefundComponent.prototype.resetForm =
|
|
2455
|
+
// loadCaseTransactionPage() {
|
|
2456
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2457
|
+
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2458
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2459
|
+
// this.paymentViewService.getBSfeature().subscribe(
|
|
2460
|
+
// features => {
|
|
2461
|
+
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2462
|
+
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2463
|
+
// },
|
|
2464
|
+
// err => {
|
|
2465
|
+
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2466
|
+
// }
|
|
2467
|
+
// );
|
|
2468
|
+
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2469
|
+
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2470
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2471
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2472
|
+
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2473
|
+
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2474
|
+
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2475
|
+
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2476
|
+
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2477
|
+
// this.router.navigateByUrl(url);
|
|
2478
|
+
// }
|
|
2479
|
+
/**
|
|
2480
|
+
* @param {?} vals
|
|
2481
|
+
* @param {?} field
|
|
2482
|
+
* @return {?}
|
|
2483
|
+
*/
|
|
2565
2484
|
function (vals, field) {
|
|
2566
2485
|
if (field === 'action' || field === 'all') {
|
|
2567
2486
|
this.refundActionsHasError = vals[0];
|
|
@@ -2587,19 +2506,12 @@
|
|
|
2587
2506
|
* @return {?}
|
|
2588
2507
|
*/
|
|
2589
2508
|
function () {
|
|
2590
|
-
|
|
2591
|
-
var isPayBubble = this.paymentLibComponent.isFromPayBubble;
|
|
2592
|
-
if (isPayBubble) {
|
|
2593
|
-
this.loadCaseTransactionPage();
|
|
2594
|
-
}
|
|
2595
|
-
else {
|
|
2596
|
-
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2597
|
-
}
|
|
2509
|
+
this.router.navigate(["/cases/case-details/" + this.ccdCaseNumber], { relativeTo: this.activeRoute });
|
|
2598
2510
|
};
|
|
2599
2511
|
ProcessRefundComponent.decorators = [
|
|
2600
2512
|
{ type: i0.Component, args: [{
|
|
2601
2513
|
selector: 'ccpay-process-refund',
|
|
2602
|
-
template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n
|
|
2514
|
+
template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third reason-font\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n <input class=\"govuk-input govuk-!-width-one-third reason-font\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div *ngIf=\"!isFromRefundListPage\" class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundsHomePage()\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n</div>\n</form>\n </div>\n \n\n </main>\n \n <main class=\"govuk-main-wrapper govuk-main-wrapper--l success-page-padding--top25\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSuccesspageEnable}\" id=\"main-content\" role=\"main\" >\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel-refund--confirmation\">\n <h1 class=\"heading-xlarge\">\n {{successMsg}}\n </h1>\n </div>\n <p class=\"govuk-body process-refund-font\">\n <a (click) = \"goToCaseReview()\" class=\"govuk-link pointer\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
|
|
2603
2515
|
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{float:left!important;font-size:19px;margin-top:2em!important}.remission{margin-bottom:7em}.process-refund-font{font-size:19px!important}.govuk-radios__conditional--hidden{display:none}.inline-error-message{color:#c11717;font-weight:700;margin-top:10px;border-color:#c11717}.inline-error-class{outline:#c11717 solid 3px;outline-offset:0;border-color:#c11717}.form-group-error{border-left:5px solid #c11717;padding-left:15px}.govuk-panel-refund--confirmation{color:#fff;background:#00703c}.process-refund__panel{display:flex;flex-direction:column;margin-left:25px;margin-top:30px}.button-margin--left25{margin-left:25px}.success-page-padding--top25{padding-top:25px}.margin{margin-top:5em}.marginright{margin-right:1.5em}.govuk-textarea{line-height:2.25}.reason-font{font-size:19px!important}.pointer{cursor:pointer}"]
|
|
2604
2516
|
}] }
|
|
2605
2517
|
];
|
|
@@ -2607,7 +2519,6 @@
|
|
|
2607
2519
|
ProcessRefundComponent.ctorParameters = function () {
|
|
2608
2520
|
return [
|
|
2609
2521
|
{ type: RefundsService },
|
|
2610
|
-
{ type: PaymentViewService },
|
|
2611
2522
|
{ type: forms.FormBuilder },
|
|
2612
2523
|
{ type: OrderslistService },
|
|
2613
2524
|
{ type: PaymentLibComponent },
|
|
@@ -2631,10 +2542,10 @@
|
|
|
2631
2542
|
this.refundService = refundService;
|
|
2632
2543
|
this.submittedRefundList = [];
|
|
2633
2544
|
this.rejectedRefundList = [];
|
|
2634
|
-
// approvalStatus = 'Sent for approval';
|
|
2635
|
-
// rejectStatus = 'Update required';
|
|
2636
2545
|
this.approvalStatus = 'Sent for approval';
|
|
2637
2546
|
this.rejectStatus = 'Update required';
|
|
2547
|
+
// approvalStatus = 'sent for approval';
|
|
2548
|
+
// rejectStatus = 'sent back';
|
|
2638
2549
|
this.errorMessage = null;
|
|
2639
2550
|
this.isAuthorized = true;
|
|
2640
2551
|
}
|
|
@@ -2914,449 +2825,6 @@
|
|
|
2914
2825
|
return StatusHistoryComponent;
|
|
2915
2826
|
}());
|
|
2916
2827
|
|
|
2917
|
-
/**
|
|
2918
|
-
* @fileoverview added by tsickle
|
|
2919
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2920
|
-
*/
|
|
2921
|
-
var NotificationService = /** @class */ (function () {
|
|
2922
|
-
function NotificationService(http, https, errorHandlerService, paymentLibService) {
|
|
2923
|
-
this.http = http;
|
|
2924
|
-
this.https = https;
|
|
2925
|
-
this.errorHandlerService = errorHandlerService;
|
|
2926
|
-
this.paymentLibService = paymentLibService;
|
|
2927
|
-
}
|
|
2928
|
-
/**
|
|
2929
|
-
* @param {?} reference
|
|
2930
|
-
* @return {?}
|
|
2931
|
-
*/
|
|
2932
|
-
NotificationService.prototype.getRefundNotification = /**
|
|
2933
|
-
* @param {?} reference
|
|
2934
|
-
* @return {?}
|
|
2935
|
-
*/
|
|
2936
|
-
function (reference) {
|
|
2937
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/notifications/" + reference, {
|
|
2938
|
-
withCredentials: true
|
|
2939
|
-
})
|
|
2940
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2941
|
-
};
|
|
2942
|
-
/**
|
|
2943
|
-
* @param {?} postcode
|
|
2944
|
-
* @return {?}
|
|
2945
|
-
*/
|
|
2946
|
-
NotificationService.prototype.getAddressByPostcode = /**
|
|
2947
|
-
* @param {?} postcode
|
|
2948
|
-
* @return {?}
|
|
2949
|
-
*/
|
|
2950
|
-
function (postcode) {
|
|
2951
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/search/places/v1/postcode?postcode=" + postcode, {
|
|
2952
|
-
withCredentials: true
|
|
2953
|
-
})
|
|
2954
|
-
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2955
|
-
};
|
|
2956
|
-
NotificationService.decorators = [
|
|
2957
|
-
{ type: i0.Injectable, args: [{
|
|
2958
|
-
providedIn: 'root'
|
|
2959
|
-
},] }
|
|
2960
|
-
];
|
|
2961
|
-
/** @nocollapse */
|
|
2962
|
-
NotificationService.ctorParameters = function () {
|
|
2963
|
-
return [
|
|
2964
|
-
{ type: i1.HttpClient },
|
|
2965
|
-
{ type: WebComponentHttpClient },
|
|
2966
|
-
{ type: ErrorHandlerService },
|
|
2967
|
-
{ type: PaymentLibService }
|
|
2968
|
-
];
|
|
2969
|
-
};
|
|
2970
|
-
/** @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" });
|
|
2971
|
-
return NotificationService;
|
|
2972
|
-
}());
|
|
2973
|
-
|
|
2974
|
-
/**
|
|
2975
|
-
* @fileoverview added by tsickle
|
|
2976
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2977
|
-
*/
|
|
2978
|
-
var ContactDetailsComponent = /** @class */ (function () {
|
|
2979
|
-
function ContactDetailsComponent(formBuilder, notificationService, paymentLibComponent) {
|
|
2980
|
-
this.formBuilder = formBuilder;
|
|
2981
|
-
this.notificationService = notificationService;
|
|
2982
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
2983
|
-
this.assignContactDetails = new i0.EventEmitter();
|
|
2984
|
-
this.assignContactDetailsInFefundsList = new i0.EventEmitter();
|
|
2985
|
-
this.redirectToIssueRefund = new i0.EventEmitter();
|
|
2986
|
-
this.pageTitle = 'Payment status history';
|
|
2987
|
-
this.isEmailSAddressClicked = true;
|
|
2988
|
-
this.isShowPickAddress = false;
|
|
2989
|
-
this.isPostcodeClicked = false;
|
|
2990
|
-
this.isManualAddressClicked = false;
|
|
2991
|
-
this.addressPostcodeList = [];
|
|
2992
|
-
this.isAddressBoxEmpty = false;
|
|
2993
|
-
this.isEmailEmpty = false;
|
|
2994
|
-
this.emailHasError = false;
|
|
2995
|
-
this.isPostcodeEmpty = false;
|
|
2996
|
-
this.postcodeHasError = false;
|
|
2997
|
-
this.isaddressLine1Empty = false;
|
|
2998
|
-
this.addressLine1HasError = false;
|
|
2999
|
-
this.addressLine2HasError = false;
|
|
3000
|
-
this.isTownOrCityEmpty = false;
|
|
3001
|
-
this.townOrCityHasError = false;
|
|
3002
|
-
this.isCountyEmpty = false;
|
|
3003
|
-
this.countyHasError = false;
|
|
3004
|
-
this.isMPostcodeEmpty = false;
|
|
3005
|
-
this.mpostcodeHasError = false;
|
|
3006
|
-
this.isCountryEmpty = false;
|
|
3007
|
-
}
|
|
3008
|
-
/**
|
|
3009
|
-
* @return {?}
|
|
3010
|
-
*/
|
|
3011
|
-
ContactDetailsComponent.prototype.ngOnInit = /**
|
|
3012
|
-
* @return {?}
|
|
3013
|
-
*/
|
|
3014
|
-
function () {
|
|
3015
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3016
|
-
this.emailAddressForm = this.formBuilder.group({
|
|
3017
|
-
email: new forms.FormControl('', forms.Validators.compose([
|
|
3018
|
-
forms.Validators.required,
|
|
3019
|
-
forms.Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
|
|
3020
|
-
]))
|
|
3021
|
-
});
|
|
3022
|
-
this.postCodeForm = this.formBuilder.group({
|
|
3023
|
-
postcode: new forms.FormControl('', forms.Validators.compose([
|
|
3024
|
-
forms.Validators.required,
|
|
3025
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3026
|
-
]))
|
|
3027
|
-
});
|
|
3028
|
-
this.manualAddressForm = this.formBuilder.group({
|
|
3029
|
-
addressl1: new forms.FormControl('', forms.Validators.compose([
|
|
3030
|
-
forms.Validators.required,
|
|
3031
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3032
|
-
])),
|
|
3033
|
-
addressl2: new forms.FormControl('', forms.Validators.compose([
|
|
3034
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3035
|
-
])),
|
|
3036
|
-
townorcity: new forms.FormControl('', forms.Validators.compose([
|
|
3037
|
-
forms.Validators.required,
|
|
3038
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3039
|
-
])),
|
|
3040
|
-
county: new forms.FormControl('', forms.Validators.compose([
|
|
3041
|
-
forms.Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
|
|
3042
|
-
])),
|
|
3043
|
-
mpostcode: new forms.FormControl('', forms.Validators.compose([
|
|
3044
|
-
forms.Validators.required,
|
|
3045
|
-
forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3046
|
-
])),
|
|
3047
|
-
country: new forms.FormControl('', forms.Validators.compose([
|
|
3048
|
-
forms.Validators.required
|
|
3049
|
-
]))
|
|
3050
|
-
});
|
|
3051
|
-
if (this.addressObj !== undefined && this.addressObj !== '') {
|
|
3052
|
-
this.setEditDetails();
|
|
3053
|
-
}
|
|
3054
|
-
if (this.isEditOperationInRefundList === undefined) {
|
|
3055
|
-
this.isEditOperationInRefundList = false;
|
|
3056
|
-
}
|
|
3057
|
-
};
|
|
3058
|
-
/**
|
|
3059
|
-
* @return {?}
|
|
3060
|
-
*/
|
|
3061
|
-
ContactDetailsComponent.prototype.setEditDetails = /**
|
|
3062
|
-
* @return {?}
|
|
3063
|
-
*/
|
|
3064
|
-
function () {
|
|
3065
|
-
if (this.addressObj.notification_type === 'EMAIL') {
|
|
3066
|
-
this.isEmailSAddressClicked = true;
|
|
3067
|
-
this.isPostcodeClicked = false;
|
|
3068
|
-
this.isManualAddressClicked = false;
|
|
3069
|
-
this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
|
|
3070
|
-
}
|
|
3071
|
-
else if (this.addressObj.notification_type === 'LETTER') {
|
|
3072
|
-
this.isEmailSAddressClicked = false;
|
|
3073
|
-
this.isPostcodeClicked = true;
|
|
3074
|
-
this.isManualAddressClicked = true;
|
|
3075
|
-
this.manualAddressForm.patchValue({
|
|
3076
|
-
addressl1: this.addressObj.contact_details.address_line,
|
|
3077
|
-
townorcity: this.addressObj.contact_details.city,
|
|
3078
|
-
county: this.addressObj.contact_details.county,
|
|
3079
|
-
country: this.addressObj.contact_details.country,
|
|
3080
|
-
mpostcode: this.addressObj.contact_details.postal_code
|
|
3081
|
-
});
|
|
3082
|
-
}
|
|
3083
|
-
};
|
|
3084
|
-
/**
|
|
3085
|
-
* @param {?} type
|
|
3086
|
-
* @param {?} isLinkedClied
|
|
3087
|
-
* @return {?}
|
|
3088
|
-
*/
|
|
3089
|
-
ContactDetailsComponent.prototype.selectContactOption = /**
|
|
3090
|
-
* @param {?} type
|
|
3091
|
-
* @param {?} isLinkedClied
|
|
3092
|
-
* @return {?}
|
|
3093
|
-
*/
|
|
3094
|
-
function (type, isLinkedClied) {
|
|
3095
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3096
|
-
if (type === 'Email' && isLinkedClied === 'false') {
|
|
3097
|
-
this.isEmailSAddressClicked = true;
|
|
3098
|
-
this.isPostcodeClicked = false;
|
|
3099
|
-
this.isManualAddressClicked = false;
|
|
3100
|
-
}
|
|
3101
|
-
else if (type === 'Postcode' && isLinkedClied === 'false') {
|
|
3102
|
-
this.isEmailSAddressClicked = false;
|
|
3103
|
-
this.isPostcodeClicked = true;
|
|
3104
|
-
this.isManualAddressClicked = false;
|
|
3105
|
-
}
|
|
3106
|
-
else if (type === 'Postcode' && isLinkedClied === 'true') {
|
|
3107
|
-
this.isEmailSAddressClicked = false;
|
|
3108
|
-
this.isPostcodeClicked = true;
|
|
3109
|
-
this.isManualAddressClicked = true;
|
|
3110
|
-
}
|
|
3111
|
-
};
|
|
3112
|
-
/**
|
|
3113
|
-
* @return {?}
|
|
3114
|
-
*/
|
|
3115
|
-
ContactDetailsComponent.prototype.finalFormSubmit = /**
|
|
3116
|
-
* @return {?}
|
|
3117
|
-
*/
|
|
3118
|
-
function () {
|
|
3119
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3120
|
-
if (this.isEmailSAddressClicked) {
|
|
3121
|
-
/** @type {?} */
|
|
3122
|
-
var emailField = this.emailAddressForm.controls.email;
|
|
3123
|
-
if (this.emailAddressForm.valid) {
|
|
3124
|
-
if (!this.isEditOperationInRefundList) {
|
|
3125
|
-
this.assignContactDetails.emit({
|
|
3126
|
-
email: emailField.value,
|
|
3127
|
-
notification_type: 'EMAIL'
|
|
3128
|
-
});
|
|
3129
|
-
}
|
|
3130
|
-
else {
|
|
3131
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3132
|
-
email: emailField.value,
|
|
3133
|
-
notification_type: 'EMAIL'
|
|
3134
|
-
});
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3137
|
-
else {
|
|
3138
|
-
if (emailField.value == '') {
|
|
3139
|
-
this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3140
|
-
}
|
|
3141
|
-
if (emailField.value != '' && emailField.invalid) {
|
|
3142
|
-
this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
|
|
3143
|
-
}
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
|
|
3147
|
-
this.postcodeValidation('FS');
|
|
3148
|
-
}
|
|
3149
|
-
else if (this.isPostcodeClicked && this.isManualAddressClicked) {
|
|
3150
|
-
/** @type {?} */
|
|
3151
|
-
var fieldCtrls = this.manualAddressForm.controls;
|
|
3152
|
-
if (this.manualAddressForm.valid) {
|
|
3153
|
-
if (!this.isEditOperationInRefundList) {
|
|
3154
|
-
this.assignContactDetails.emit({
|
|
3155
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3156
|
-
city: fieldCtrls.townorcity.value,
|
|
3157
|
-
county: fieldCtrls.county.value,
|
|
3158
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3159
|
-
country: fieldCtrls.country.value,
|
|
3160
|
-
notification_type: 'LETTER'
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
else {
|
|
3164
|
-
this.assignContactDetailsInFefundsList.emit({
|
|
3165
|
-
address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
|
|
3166
|
-
city: fieldCtrls.townorcity.value,
|
|
3167
|
-
county: fieldCtrls.county.value,
|
|
3168
|
-
postal_code: fieldCtrls.mpostcode.value,
|
|
3169
|
-
country: fieldCtrls.country.value,
|
|
3170
|
-
notification_type: 'LETTER'
|
|
3171
|
-
});
|
|
3172
|
-
}
|
|
3173
|
-
}
|
|
3174
|
-
else {
|
|
3175
|
-
if (fieldCtrls.addressl1.value == '') {
|
|
3176
|
-
this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
|
|
3177
|
-
}
|
|
3178
|
-
if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
|
|
3179
|
-
this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
|
|
3180
|
-
}
|
|
3181
|
-
if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
|
|
3182
|
-
this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
|
|
3183
|
-
}
|
|
3184
|
-
if (fieldCtrls.townorcity.value == '') {
|
|
3185
|
-
this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
|
|
3186
|
-
}
|
|
3187
|
-
if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
|
|
3188
|
-
this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
|
|
3189
|
-
}
|
|
3190
|
-
if (fieldCtrls.county.value == '') {
|
|
3191
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
|
|
3192
|
-
}
|
|
3193
|
-
if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
|
|
3194
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
|
|
3195
|
-
}
|
|
3196
|
-
if (fieldCtrls.mpostcode.value == '') {
|
|
3197
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
|
|
3198
|
-
}
|
|
3199
|
-
if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
|
|
3200
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
|
|
3201
|
-
}
|
|
3202
|
-
if (fieldCtrls.country.value == '') {
|
|
3203
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
}
|
|
3207
|
-
};
|
|
3208
|
-
/**
|
|
3209
|
-
* @param {?} str
|
|
3210
|
-
* @return {?}
|
|
3211
|
-
*/
|
|
3212
|
-
ContactDetailsComponent.prototype.postcodeValidation = /**
|
|
3213
|
-
* @param {?} str
|
|
3214
|
-
* @return {?}
|
|
3215
|
-
*/
|
|
3216
|
-
function (str) {
|
|
3217
|
-
var _this = this;
|
|
3218
|
-
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3219
|
-
/** @type {?} */
|
|
3220
|
-
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3221
|
-
if (this.postCodeForm.valid) {
|
|
3222
|
-
if (str === 'FA') {
|
|
3223
|
-
this.notificationService.getAddressByPostcode(postcodeField.value).subscribe(( /**
|
|
3224
|
-
* @param {?} refundsNotification
|
|
3225
|
-
* @return {?}
|
|
3226
|
-
*/function (refundsNotification) {
|
|
3227
|
-
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3228
|
-
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3229
|
-
if (!_this.isShowPickAddress) {
|
|
3230
|
-
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3231
|
-
}
|
|
3232
|
-
})),
|
|
3233
|
-
( /**
|
|
3234
|
-
* @param {?} error
|
|
3235
|
-
* @return {?}
|
|
3236
|
-
*/function (error) {
|
|
3237
|
-
_this.isShowPickAddress = false;
|
|
3238
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
3239
|
-
});
|
|
3240
|
-
}
|
|
3241
|
-
else if (str === 'FS') {
|
|
3242
|
-
if (this.postcodeAddress !== undefined && this.postcodeAddress) {
|
|
3243
|
-
this.isAddressBoxEmpty = false;
|
|
3244
|
-
/** @type {?} */
|
|
3245
|
-
var addressLine = "";
|
|
3246
|
-
/** @type {?} */
|
|
3247
|
-
var addressArray = this.postcodeAddress.ADDRESS.split(",");
|
|
3248
|
-
for (var i = 0; i < addressArray.length - 2; i++) {
|
|
3249
|
-
addressLine += addressArray[i];
|
|
3250
|
-
}
|
|
3251
|
-
/** @type {?} */
|
|
3252
|
-
var addressObject = {
|
|
3253
|
-
address_line: addressLine,
|
|
3254
|
-
city: this.postcodeAddress.POST_TOWN,
|
|
3255
|
-
county: this.postcodeAddress.LOCAL_CUSTODIAN_CODE_DESCRIPTION,
|
|
3256
|
-
postal_code: this.postcodeAddress.POSTCODE,
|
|
3257
|
-
country: 'United Kingdom',
|
|
3258
|
-
notification_type: 'LETTER'
|
|
3259
|
-
};
|
|
3260
|
-
if (!this.isEditOperationInRefundList) {
|
|
3261
|
-
this.assignContactDetails.emit(addressObject);
|
|
3262
|
-
}
|
|
3263
|
-
else {
|
|
3264
|
-
this.assignContactDetailsInFefundsList.emit(addressObject);
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3267
|
-
else {
|
|
3268
|
-
this.isAddressBoxEmpty = true;
|
|
3269
|
-
}
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
else {
|
|
3273
|
-
if (postcodeField.value == '') {
|
|
3274
|
-
this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3275
|
-
}
|
|
3276
|
-
if (postcodeField.value != '' && postcodeField.invalid) {
|
|
3277
|
-
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3278
|
-
}
|
|
3279
|
-
}
|
|
3280
|
-
};
|
|
3281
|
-
/**
|
|
3282
|
-
* @param {?} event
|
|
3283
|
-
* @return {?}
|
|
3284
|
-
*/
|
|
3285
|
-
ContactDetailsComponent.prototype.redirection = /**
|
|
3286
|
-
* @param {?} event
|
|
3287
|
-
* @return {?}
|
|
3288
|
-
*/
|
|
3289
|
-
function (event) {
|
|
3290
|
-
this.redirectToIssueRefund.emit(event);
|
|
3291
|
-
};
|
|
3292
|
-
/**
|
|
3293
|
-
* @param {?} val
|
|
3294
|
-
* @param {?} field
|
|
3295
|
-
* @return {?}
|
|
3296
|
-
*/
|
|
3297
|
-
ContactDetailsComponent.prototype.resetForm = /**
|
|
3298
|
-
* @param {?} val
|
|
3299
|
-
* @param {?} field
|
|
3300
|
-
* @return {?}
|
|
3301
|
-
*/
|
|
3302
|
-
function (val, field) {
|
|
3303
|
-
if (field === 'email' || field === 'all') {
|
|
3304
|
-
this.isEmailEmpty = val[0];
|
|
3305
|
-
this.emailHasError = val[1];
|
|
3306
|
-
}
|
|
3307
|
-
if (field === 'postcode' || field === 'all') {
|
|
3308
|
-
this.isPostcodeEmpty = val[2];
|
|
3309
|
-
this.postcodeHasError = val[3];
|
|
3310
|
-
}
|
|
3311
|
-
if (field === 'address1' || field === 'all') {
|
|
3312
|
-
this.isaddressLine1Empty = val[4];
|
|
3313
|
-
this.addressLine1HasError = val[5];
|
|
3314
|
-
}
|
|
3315
|
-
if (field === 'address2' || field === 'all') {
|
|
3316
|
-
this.addressLine2HasError = val[6];
|
|
3317
|
-
}
|
|
3318
|
-
if (field === 'town' || field === 'all') {
|
|
3319
|
-
this.isTownOrCityEmpty = val[7];
|
|
3320
|
-
this.townOrCityHasError = val[8];
|
|
3321
|
-
}
|
|
3322
|
-
if (field === 'county' || field === 'all') {
|
|
3323
|
-
this.isCountyEmpty = val[9];
|
|
3324
|
-
this.countyHasError = val[10];
|
|
3325
|
-
}
|
|
3326
|
-
if (field === 'mpostcode' || field === 'all') {
|
|
3327
|
-
this.isMPostcodeEmpty = val[11];
|
|
3328
|
-
this.mpostcodeHasError = val[12];
|
|
3329
|
-
}
|
|
3330
|
-
if (field === 'country' || field === 'all') {
|
|
3331
|
-
this.isCountryEmpty = val[13];
|
|
3332
|
-
}
|
|
3333
|
-
};
|
|
3334
|
-
ContactDetailsComponent.decorators = [
|
|
3335
|
-
{ type: i0.Component, args: [{
|
|
3336
|
-
selector: 'ccpay-contact-details',
|
|
3337
|
-
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>",
|
|
3338
|
-
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}"]
|
|
3339
|
-
}] }
|
|
3340
|
-
];
|
|
3341
|
-
/** @nocollapse */
|
|
3342
|
-
ContactDetailsComponent.ctorParameters = function () {
|
|
3343
|
-
return [
|
|
3344
|
-
{ type: forms.FormBuilder },
|
|
3345
|
-
{ type: NotificationService },
|
|
3346
|
-
{ type: PaymentLibComponent }
|
|
3347
|
-
];
|
|
3348
|
-
};
|
|
3349
|
-
ContactDetailsComponent.propDecorators = {
|
|
3350
|
-
isEditOperation: [{ type: i0.Input, args: ['isEditOperation',] }],
|
|
3351
|
-
isEditOperationInRefundList: [{ type: i0.Input, args: ['isEditOperationInRefundList',] }],
|
|
3352
|
-
addressObj: [{ type: i0.Input, args: ['addressObj',] }],
|
|
3353
|
-
assignContactDetails: [{ type: i0.Output }],
|
|
3354
|
-
assignContactDetailsInFefundsList: [{ type: i0.Output }],
|
|
3355
|
-
redirectToIssueRefund: [{ type: i0.Output }]
|
|
3356
|
-
};
|
|
3357
|
-
return ContactDetailsComponent;
|
|
3358
|
-
}());
|
|
3359
|
-
|
|
3360
2828
|
/**
|
|
3361
2829
|
* @fileoverview added by tsickle
|
|
3362
2830
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3710,7 +3178,6 @@
|
|
|
3710
3178
|
this.viewStatus = 'main';
|
|
3711
3179
|
this.isRemoveBtnDisabled = false;
|
|
3712
3180
|
this.clAmountDue = 0;
|
|
3713
|
-
this.overPaymentAmount = 0;
|
|
3714
3181
|
this.isFeeRecordsExist = false;
|
|
3715
3182
|
this.isGrpOutstandingAmtPositive = false;
|
|
3716
3183
|
//Order changes
|
|
@@ -3801,20 +3268,11 @@
|
|
|
3801
3268
|
}
|
|
3802
3269
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3803
3270
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3804
|
-
if (this.paymentLibComponent.SERVICEREQUEST
|
|
3805
|
-
this.
|
|
3806
|
-
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3807
|
-
this.serviceRequestValue = 'true';
|
|
3808
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
3809
|
-
}
|
|
3810
|
-
else {
|
|
3811
|
-
this.serviceRequestValue = 'false';
|
|
3812
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3813
|
-
}
|
|
3271
|
+
if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
|
|
3272
|
+
this.serviceRequestValue = 'true';
|
|
3814
3273
|
}
|
|
3815
3274
|
else {
|
|
3816
3275
|
this.serviceRequestValue = 'false';
|
|
3817
|
-
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3818
3276
|
}
|
|
3819
3277
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3820
3278
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -4018,7 +3476,6 @@
|
|
|
4018
3476
|
* @return {?}
|
|
4019
3477
|
*/function (fee) {
|
|
4020
3478
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4021
|
-
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
4022
3479
|
}));
|
|
4023
3480
|
}
|
|
4024
3481
|
if (paymentGroup.remissions) {
|
|
@@ -4030,15 +3487,10 @@
|
|
|
4030
3487
|
}));
|
|
4031
3488
|
}
|
|
4032
3489
|
if (paymentGroup.payments) {
|
|
4033
|
-
/** @type {?} */
|
|
4034
|
-
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4035
3490
|
paymentGroup.payments.forEach(( /**
|
|
4036
3491
|
* @param {?} payment
|
|
4037
3492
|
* @return {?}
|
|
4038
3493
|
*/function (payment) {
|
|
4039
|
-
if (isFeeOverPaymentExist_1) {
|
|
4040
|
-
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4041
|
-
}
|
|
4042
3494
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4043
3495
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4044
3496
|
}
|
|
@@ -4506,22 +3958,23 @@
|
|
|
4506
3958
|
*/
|
|
4507
3959
|
function (payment, remission, fees) {
|
|
4508
3960
|
var _this = this;
|
|
4509
|
-
this.
|
|
3961
|
+
this.viewStatus = 'addrefundforremission';
|
|
3962
|
+
this.payment = payment;
|
|
3963
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
4510
3964
|
* @param {?} paymentGroup
|
|
4511
3965
|
* @return {?}
|
|
4512
3966
|
*/function (paymentGroup) {
|
|
4513
3967
|
_this.paymentGroup = paymentGroup;
|
|
4514
|
-
_this.paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
3968
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
4515
3969
|
* @param {?} paymentGroupObj
|
|
4516
3970
|
* @return {?}
|
|
4517
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
3971
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
4518
3972
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4519
3973
|
_this.remissions = remission;
|
|
4520
3974
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
4521
3975
|
* @param {?} data
|
|
4522
3976
|
* @return {?}
|
|
4523
3977
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4524
|
-
_this.viewStatus = 'addrefundforremission';
|
|
4525
3978
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4526
3979
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4527
3980
|
}), ( /**
|
|
@@ -4814,21 +4267,16 @@
|
|
|
4814
4267
|
* @return {?}
|
|
4815
4268
|
*/
|
|
4816
4269
|
function (payment) {
|
|
4817
|
-
if (
|
|
4818
|
-
|
|
4270
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4271
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4272
|
+
this.isIssueRefunfBtnEnable = true;
|
|
4273
|
+
}
|
|
4274
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
4275
|
+
return true;
|
|
4819
4276
|
}
|
|
4820
4277
|
else {
|
|
4821
4278
|
return false;
|
|
4822
4279
|
}
|
|
4823
|
-
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4824
|
-
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4825
|
-
// this.isIssueRefunfBtnEnable = true;
|
|
4826
|
-
// }
|
|
4827
|
-
// if (this.isIssueRefunfBtnEnable) {
|
|
4828
|
-
// return true;
|
|
4829
|
-
// } else {
|
|
4830
|
-
// return false;
|
|
4831
|
-
// };
|
|
4832
4280
|
};
|
|
4833
4281
|
/**
|
|
4834
4282
|
* @return {?}
|
|
@@ -4878,7 +4326,7 @@
|
|
|
4878
4326
|
CaseTransactionsComponent.decorators = [
|
|
4879
4327
|
{ type: i0.Component, args: [{
|
|
4880
4328
|
selector: 'ccpay-case-transactions',
|
|
4881
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Over payment</td>\n\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ overPaymentAmount | currency :'GBP':'symbol':'1.2-2'}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [paymentGroupList] = \"paymentGroups\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n</main>\n</div>\n\n\n",
|
|
4329
|
+
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n\n</main>\n</div>\n\n\n",
|
|
4882
4330
|
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}"]
|
|
4883
4331
|
}] }
|
|
4884
4332
|
];
|
|
@@ -4895,8 +4343,7 @@
|
|
|
4895
4343
|
};
|
|
4896
4344
|
CaseTransactionsComponent.propDecorators = {
|
|
4897
4345
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4898
|
-
isTakePayment: [{ type: i0.Input }]
|
|
4899
|
-
isFromServiceRequestPage: [{ type: i0.Input }]
|
|
4346
|
+
isTakePayment: [{ type: i0.Input }]
|
|
4900
4347
|
};
|
|
4901
4348
|
return CaseTransactionsComponent;
|
|
4902
4349
|
}());
|
|
@@ -5116,23 +4563,18 @@
|
|
|
5116
4563
|
if (fee.calculated_amount === 0) {
|
|
5117
4564
|
_this.isFeeAmountZero = true;
|
|
5118
4565
|
}
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
fee['remissions'] = rem;
|
|
5128
|
-
fees.push(fee);
|
|
5129
|
-
}
|
|
5130
|
-
}));
|
|
5131
|
-
if (!_this.isRemissionsMatch) {
|
|
4566
|
+
_this.isRemissionsMatch = false;
|
|
4567
|
+
paymentGroup.remissions.forEach(( /**
|
|
4568
|
+
* @param {?} rem
|
|
4569
|
+
* @return {?}
|
|
4570
|
+
*/function (rem) {
|
|
4571
|
+
if (rem.fee_code === fee.code) {
|
|
4572
|
+
_this.isRemissionsMatch = true;
|
|
4573
|
+
fee['remissions'] = rem;
|
|
5132
4574
|
fees.push(fee);
|
|
5133
4575
|
}
|
|
5134
|
-
}
|
|
5135
|
-
|
|
4576
|
+
}));
|
|
4577
|
+
if (!_this.isRemissionsMatch) {
|
|
5136
4578
|
fees.push(fee);
|
|
5137
4579
|
}
|
|
5138
4580
|
}));
|
|
@@ -7176,10 +6618,21 @@
|
|
|
7176
6618
|
* @fileoverview added by tsickle
|
|
7177
6619
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7178
6620
|
*/
|
|
7179
|
-
var
|
|
7180
|
-
function
|
|
7181
|
-
this.
|
|
7182
|
-
this.
|
|
6621
|
+
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6622
|
+
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6623
|
+
this.payment_reference = payment_reference;
|
|
6624
|
+
this.refund_reason = refund_reason;
|
|
6625
|
+
}
|
|
6626
|
+
return PostRefundRetroRemission;
|
|
6627
|
+
}());
|
|
6628
|
+
|
|
6629
|
+
/**
|
|
6630
|
+
* @fileoverview added by tsickle
|
|
6631
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6632
|
+
*/
|
|
6633
|
+
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
6634
|
+
function PostIssueRefundRetroRemission(remissionReference) {
|
|
6635
|
+
this.remissionReference = remissionReference;
|
|
7183
6636
|
}
|
|
7184
6637
|
return PostIssueRefundRetroRemission;
|
|
7185
6638
|
}());
|
|
@@ -7201,7 +6654,6 @@
|
|
|
7201
6654
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
7202
6655
|
this.refundListReason = new i0.EventEmitter();
|
|
7203
6656
|
this.refundListAmount = new i0.EventEmitter();
|
|
7204
|
-
this.refundFees = new i0.EventEmitter();
|
|
7205
6657
|
this.refund = {
|
|
7206
6658
|
reason: {
|
|
7207
6659
|
duplicate: 'Duplicate payment',
|
|
@@ -7230,8 +6682,6 @@
|
|
|
7230
6682
|
this.isRemissionApplied = false;
|
|
7231
6683
|
// refundReasons: any[] = [];
|
|
7232
6684
|
this.commonRefundReasons = [];
|
|
7233
|
-
this.class = '';
|
|
7234
|
-
this.errorMsg = new Array();
|
|
7235
6685
|
}
|
|
7236
6686
|
/**
|
|
7237
6687
|
* @return {?}
|
|
@@ -7241,8 +6691,6 @@
|
|
|
7241
6691
|
*/
|
|
7242
6692
|
function () {
|
|
7243
6693
|
var _this = this;
|
|
7244
|
-
this.errorMessage = '';
|
|
7245
|
-
this.errorMsg = [];
|
|
7246
6694
|
this.default = 'Select a different reason';
|
|
7247
6695
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
7248
6696
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -7254,7 +6702,6 @@
|
|
|
7254
6702
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
7255
6703
|
}
|
|
7256
6704
|
if (this.payment) {
|
|
7257
|
-
this.paymentReference = this.payment.reference;
|
|
7258
6705
|
this.remessionPayment = this.payment;
|
|
7259
6706
|
if (this.payment.status === 'Success') {
|
|
7260
6707
|
this.isPaymentSuccess = true;
|
|
@@ -7273,68 +6720,15 @@
|
|
|
7273
6720
|
])),
|
|
7274
6721
|
refundReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7275
6722
|
refundDDReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
7276
|
-
reason: new forms.FormControl()
|
|
7277
|
-
feeAmount: new forms.FormControl(),
|
|
7278
|
-
feesList: this.formBuilder.array([])
|
|
6723
|
+
reason: new forms.FormControl()
|
|
7279
6724
|
});
|
|
7280
6725
|
/** @type {?} */
|
|
7281
6726
|
var remissionctrls = this.remissionForm.controls;
|
|
7282
6727
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7283
|
-
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
7284
|
-
this.paymentReference = this.refundPaymentReference;
|
|
7285
|
-
}
|
|
7286
|
-
else {
|
|
7287
|
-
this.paymentReference = this.payment.reference;
|
|
7288
|
-
}
|
|
7289
|
-
if (this.isFromServiceRequestPage) {
|
|
7290
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe(( /**
|
|
7291
|
-
* @param {?} paymentGroup
|
|
7292
|
-
* @return {?}
|
|
7293
|
-
*/function (paymentGroup) {
|
|
7294
|
-
/** @type {?} */
|
|
7295
|
-
var fees = [];
|
|
7296
|
-
paymentGroup.fees.forEach(( /**
|
|
7297
|
-
* @param {?} fee
|
|
7298
|
-
* @return {?}
|
|
7299
|
-
*/function (fee) {
|
|
7300
|
-
_this.isRemissionsMatch = false;
|
|
7301
|
-
paymentGroup.remissions.forEach(( /**
|
|
7302
|
-
* @param {?} rem
|
|
7303
|
-
* @return {?}
|
|
7304
|
-
*/function (rem) {
|
|
7305
|
-
if (rem.fee_code === fee.code) {
|
|
7306
|
-
_this.isRemissionsMatch = true;
|
|
7307
|
-
fee['remissions'] = rem;
|
|
7308
|
-
fees.push(fee);
|
|
7309
|
-
}
|
|
7310
|
-
}));
|
|
7311
|
-
if (!_this.isRemissionsMatch) {
|
|
7312
|
-
fees.push(fee);
|
|
7313
|
-
}
|
|
7314
|
-
}));
|
|
7315
|
-
paymentGroup.fees = fees;
|
|
7316
|
-
_this.paymentFees = fees;
|
|
7317
|
-
_this.fees = fees;
|
|
7318
|
-
_this.paymentGroup = paymentGroup;
|
|
7319
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
7320
|
-
* @param {?} paymentGroupObj
|
|
7321
|
-
* @return {?}
|
|
7322
|
-
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7323
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7324
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7325
|
-
_this.refundFeesList();
|
|
7326
|
-
}), ( /**
|
|
7327
|
-
* @param {?} error
|
|
7328
|
-
* @return {?}
|
|
7329
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7330
|
-
}
|
|
7331
|
-
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7332
|
-
this.refundFeesList();
|
|
7333
|
-
}
|
|
7334
6728
|
if (this.viewCompStatus === '') {
|
|
7335
6729
|
this.viewStatus = 'main';
|
|
7336
6730
|
}
|
|
7337
|
-
if (this.viewCompStatus === '
|
|
6731
|
+
if (this.viewCompStatus === 'issuerefund') {
|
|
7338
6732
|
this.refundService.getRefundReasons().subscribe(( /**
|
|
7339
6733
|
* @param {?} refundReasons
|
|
7340
6734
|
* @return {?}
|
|
@@ -7346,7 +6740,7 @@
|
|
|
7346
6740
|
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
7347
6741
|
* @param {?} data
|
|
7348
6742
|
* @return {?}
|
|
7349
|
-
*/function (data) { return data.name !== 'Retrospective remission'
|
|
6743
|
+
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7350
6744
|
_this.cd.detectChanges();
|
|
7351
6745
|
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
7352
6746
|
* @param {?} data
|
|
@@ -7359,160 +6753,10 @@
|
|
|
7359
6753
|
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
7360
6754
|
_this.cd.detectChanges();
|
|
7361
6755
|
}));
|
|
7362
|
-
this.refundReason = this.changeRefundReason;
|
|
7363
6756
|
}
|
|
7364
6757
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
7365
6758
|
this.viewStatus = 'processretroremissonpage';
|
|
7366
6759
|
}
|
|
7367
|
-
if (this.orderDetail !== undefined) {
|
|
7368
|
-
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe(( /**
|
|
7369
|
-
* @param {?} paymentGroup
|
|
7370
|
-
* @return {?}
|
|
7371
|
-
*/function (paymentGroup) {
|
|
7372
|
-
_this.fees = paymentGroup.fees;
|
|
7373
|
-
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7374
|
-
}), ( /**
|
|
7375
|
-
* @param {?} error
|
|
7376
|
-
* @return {?}
|
|
7377
|
-
*/function (error) { return _this.errorMessage = error; }));
|
|
7378
|
-
}
|
|
7379
|
-
};
|
|
7380
|
-
/**
|
|
7381
|
-
* @return {?}
|
|
7382
|
-
*/
|
|
7383
|
-
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7384
|
-
* @return {?}
|
|
7385
|
-
*/
|
|
7386
|
-
function () {
|
|
7387
|
-
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7388
|
-
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7389
|
-
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7390
|
-
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7391
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
7392
|
-
};
|
|
7393
|
-
/**
|
|
7394
|
-
* @return {?}
|
|
7395
|
-
*/
|
|
7396
|
-
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7397
|
-
* @return {?}
|
|
7398
|
-
*/
|
|
7399
|
-
function () {
|
|
7400
|
-
/** @type {?} */
|
|
7401
|
-
var creds = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7402
|
-
// if(creds.controls.length > 0) {
|
|
7403
|
-
for (var i = 0; i < this.fees.length; i++) {
|
|
7404
|
-
creds.push(this.formBuilder.group({
|
|
7405
|
-
id: this.fees[i].id,
|
|
7406
|
-
code: this.fees[i].code,
|
|
7407
|
-
volume: this.fees[i].volume,
|
|
7408
|
-
calculated_amount: this.fees[i].calculated_amount,
|
|
7409
|
-
apportion_amount: this.fees[i].apportion_amount,
|
|
7410
|
-
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7411
|
-
description: this.fees[i].description,
|
|
7412
|
-
net_amount: this.fees[i].net_amount,
|
|
7413
|
-
version: this.fees[i].version,
|
|
7414
|
-
refund_amount: [''],
|
|
7415
|
-
selected: [''],
|
|
7416
|
-
updated_volume: this.fees[i].volume
|
|
7417
|
-
}));
|
|
7418
|
-
}
|
|
7419
|
-
this.cd.detectChanges();
|
|
7420
|
-
//}
|
|
7421
|
-
};
|
|
7422
|
-
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7423
|
-
get: /**
|
|
7424
|
-
* @return {?}
|
|
7425
|
-
*/ function () {
|
|
7426
|
-
/** @type {?} */
|
|
7427
|
-
var dd = ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7428
|
-
return ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7429
|
-
},
|
|
7430
|
-
enumerable: true,
|
|
7431
|
-
configurable: true
|
|
7432
|
-
});
|
|
7433
|
-
/**
|
|
7434
|
-
* @return {?}
|
|
7435
|
-
*/
|
|
7436
|
-
AddRemissionComponent.prototype.noneSelected = /**
|
|
7437
|
-
* @return {?}
|
|
7438
|
-
*/
|
|
7439
|
-
function () {
|
|
7440
|
-
if (this.isFullyRefund) {
|
|
7441
|
-
return false;
|
|
7442
|
-
}
|
|
7443
|
-
else {
|
|
7444
|
-
if (!this.feesList.controls.some(( /**
|
|
7445
|
-
* @param {?} item
|
|
7446
|
-
* @return {?}
|
|
7447
|
-
*/function (item) { return item.get('selected').value === true; }))) {
|
|
7448
|
-
this.errorMsg = [];
|
|
7449
|
-
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7450
|
-
* @param {?} el
|
|
7451
|
-
* @return {?}
|
|
7452
|
-
*/function (el) {
|
|
7453
|
-
el.classList.remove('inline-error-class');
|
|
7454
|
-
}));
|
|
7455
|
-
}
|
|
7456
|
-
return !this.feesList.controls.some(( /**
|
|
7457
|
-
* @param {?} item
|
|
7458
|
-
* @return {?}
|
|
7459
|
-
*/function (item) { return item.get('selected').value === true; }));
|
|
7460
|
-
}
|
|
7461
|
-
};
|
|
7462
|
-
/**
|
|
7463
|
-
* @param {?} i
|
|
7464
|
-
* @param {?} v1
|
|
7465
|
-
* @param {?} AppAmt
|
|
7466
|
-
* @param {?} Volume
|
|
7467
|
-
* @return {?}
|
|
7468
|
-
*/
|
|
7469
|
-
AddRemissionComponent.prototype.check_en = /**
|
|
7470
|
-
* @param {?} i
|
|
7471
|
-
* @param {?} v1
|
|
7472
|
-
* @param {?} AppAmt
|
|
7473
|
-
* @param {?} Volume
|
|
7474
|
-
* @return {?}
|
|
7475
|
-
*/
|
|
7476
|
-
function (i, v1, AppAmt, Volume) {
|
|
7477
|
-
/** @type {?} */
|
|
7478
|
-
var ele = ( /** @type {?} */(document.getElementById(v1)));
|
|
7479
|
-
/** @type {?} */
|
|
7480
|
-
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7481
|
-
if (ele.checked) {
|
|
7482
|
-
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7483
|
-
formArray.at(i).get('volume').setValue(Volume);
|
|
7484
|
-
formArray.at(i).get('selected').setValue(true);
|
|
7485
|
-
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7486
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7487
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7488
|
-
if (Volume === 1) {
|
|
7489
|
-
(( /** @type {?} */(document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7490
|
-
}
|
|
7491
|
-
else {
|
|
7492
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7493
|
-
}
|
|
7494
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7495
|
-
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7496
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7497
|
-
}
|
|
7498
|
-
this.cd.detectChanges();
|
|
7499
|
-
}
|
|
7500
|
-
else {
|
|
7501
|
-
this.errorMsg = [];
|
|
7502
|
-
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7503
|
-
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7504
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7505
|
-
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7506
|
-
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7507
|
-
if (Volume > 1) {
|
|
7508
|
-
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7509
|
-
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7510
|
-
}
|
|
7511
|
-
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7512
|
-
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7513
|
-
}
|
|
7514
|
-
this.cd.detectChanges();
|
|
7515
|
-
}
|
|
7516
6760
|
};
|
|
7517
6761
|
/**
|
|
7518
6762
|
* @return {?}
|
|
@@ -7637,8 +6881,6 @@
|
|
|
7637
6881
|
*/
|
|
7638
6882
|
function () {
|
|
7639
6883
|
this.errorMessage = false;
|
|
7640
|
-
// this.isFromCheckAnsPage = true;
|
|
7641
|
-
this.errorMsg = [];
|
|
7642
6884
|
this.viewStatus = '';
|
|
7643
6885
|
this.isRefundRemission = false;
|
|
7644
6886
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -7649,14 +6891,8 @@
|
|
|
7649
6891
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
7650
6892
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
7651
6893
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
this.viewStatus = "processretroremissonpage";
|
|
7655
|
-
}
|
|
7656
|
-
else {
|
|
7657
|
-
this.viewCompStatus = '';
|
|
7658
|
-
this.viewStatus = 'checkretroremissionpage';
|
|
7659
|
-
}
|
|
6894
|
+
this.viewCompStatus = '';
|
|
6895
|
+
this.viewStatus = "processretroremissonpage";
|
|
7660
6896
|
}
|
|
7661
6897
|
else {
|
|
7662
6898
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -7687,8 +6923,6 @@
|
|
|
7687
6923
|
*/
|
|
7688
6924
|
function () {
|
|
7689
6925
|
this.errorMessage = false;
|
|
7690
|
-
this.isFromCheckAnsPage = false;
|
|
7691
|
-
this.errorMsg = [];
|
|
7692
6926
|
if (this.isRefundRemission) {
|
|
7693
6927
|
this.paymentLibComponent.iscancelClicked = true;
|
|
7694
6928
|
this.refundListAmount.emit();
|
|
@@ -7706,7 +6940,6 @@
|
|
|
7706
6940
|
this.viewCompStatus = "addremission";
|
|
7707
6941
|
this.isRefundRemission = true;
|
|
7708
6942
|
this.errorMessage = '';
|
|
7709
|
-
this.errorMsg = [];
|
|
7710
6943
|
if (this.isFromPaymentDetailPage) {
|
|
7711
6944
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7712
6945
|
}
|
|
@@ -7762,47 +6995,14 @@
|
|
|
7762
6995
|
/**
|
|
7763
6996
|
* @return {?}
|
|
7764
6997
|
*/
|
|
7765
|
-
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7766
|
-
* @return {?}
|
|
7767
|
-
*/
|
|
7768
|
-
function () {
|
|
7769
|
-
this.isFromCheckAnsPage = false;
|
|
7770
|
-
this.viewStatus = 'processretroremissonpage';
|
|
7771
|
-
this.viewCompStatus = '';
|
|
7772
|
-
// this.isRefundRemission = true;
|
|
7773
|
-
this.errorMessage = '';
|
|
7774
|
-
};
|
|
7775
|
-
/**
|
|
7776
|
-
* @return {?}
|
|
7777
|
-
*/
|
|
7778
6998
|
AddRemissionComponent.prototype.gotoProcessRetroRemissionPage = /**
|
|
7779
6999
|
* @return {?}
|
|
7780
7000
|
*/
|
|
7781
7001
|
function () {
|
|
7782
|
-
this.isFromCheckAnsPage = true;
|
|
7783
7002
|
this.viewStatus = '';
|
|
7784
7003
|
this.viewCompStatus = 'addremission';
|
|
7785
7004
|
this.isRefundRemission = true;
|
|
7786
7005
|
this.errorMessage = '';
|
|
7787
|
-
this.errorMsg = [];
|
|
7788
|
-
};
|
|
7789
|
-
/**
|
|
7790
|
-
* @param {?=} note
|
|
7791
|
-
* @return {?}
|
|
7792
|
-
*/
|
|
7793
|
-
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7794
|
-
* @param {?=} note
|
|
7795
|
-
* @return {?}
|
|
7796
|
-
*/
|
|
7797
|
-
function (note) {
|
|
7798
|
-
if (note) {
|
|
7799
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7800
|
-
}
|
|
7801
|
-
this.isFromCheckAnsPage = true;
|
|
7802
|
-
this.viewStatus = 'remissionAddressPage';
|
|
7803
|
-
this.viewCompStatus = '';
|
|
7804
|
-
this.isRefundRemission = true;
|
|
7805
|
-
this.errorMessage = '';
|
|
7806
7006
|
};
|
|
7807
7007
|
/**
|
|
7808
7008
|
* @return {?}
|
|
@@ -7846,7 +7046,6 @@
|
|
|
7846
7046
|
function () {
|
|
7847
7047
|
var _this = this;
|
|
7848
7048
|
this.errorMessage = '';
|
|
7849
|
-
this.errorMsg = [];
|
|
7850
7049
|
this.isConfirmationBtnDisabled = true;
|
|
7851
7050
|
if (this.isRefundRemission) {
|
|
7852
7051
|
this.retroRemission = true;
|
|
@@ -7855,7 +7054,7 @@
|
|
|
7855
7054
|
this.remissionReference = this.remission.remission_reference;
|
|
7856
7055
|
}
|
|
7857
7056
|
/** @type {?} */
|
|
7858
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference
|
|
7057
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7859
7058
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe(( /**
|
|
7860
7059
|
* @param {?} response
|
|
7861
7060
|
* @return {?}
|
|
@@ -7891,13 +7090,7 @@
|
|
|
7891
7090
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
7892
7091
|
this.isFromRefundListPage = true;
|
|
7893
7092
|
}
|
|
7894
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7895
|
-
* @param {?} a
|
|
7896
|
-
* @param {?} c
|
|
7897
|
-
* @return {?}
|
|
7898
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7899
7093
|
this.errorMessage = '';
|
|
7900
|
-
this.errorMsg = [];
|
|
7901
7094
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
7902
7095
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
7903
7096
|
this.refundHasError = true;
|
|
@@ -7913,41 +7106,19 @@
|
|
|
7913
7106
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
7914
7107
|
}
|
|
7915
7108
|
else {
|
|
7916
|
-
if (this.isFromCheckAnsPage) {
|
|
7917
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7918
|
-
* @param {?} a
|
|
7919
|
-
* @param {?} c
|
|
7920
|
-
* @return {?}
|
|
7921
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7922
|
-
this.isFromCheckAnsPage = false;
|
|
7923
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7924
|
-
this.viewCompStatus = '';
|
|
7925
|
-
return;
|
|
7926
|
-
}
|
|
7927
7109
|
this.viewCompStatus = '';
|
|
7928
|
-
this.viewStatus = '
|
|
7110
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7929
7111
|
}
|
|
7930
7112
|
}
|
|
7931
7113
|
else {
|
|
7932
7114
|
this.displayRefundReason = this.selectedRefundReason;
|
|
7933
|
-
if (this.isFromCheckAnsPage) {
|
|
7934
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7935
|
-
* @param {?} a
|
|
7936
|
-
* @param {?} c
|
|
7937
|
-
* @return {?}
|
|
7938
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7939
|
-
this.isFromCheckAnsPage = false;
|
|
7940
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
7941
|
-
this.viewCompStatus = '';
|
|
7942
|
-
return;
|
|
7943
|
-
}
|
|
7944
7115
|
if (this.isFromRefundListPage) {
|
|
7945
7116
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7946
7117
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
7947
7118
|
}
|
|
7948
7119
|
else {
|
|
7949
7120
|
this.viewCompStatus = '';
|
|
7950
|
-
this.viewStatus = '
|
|
7121
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7951
7122
|
}
|
|
7952
7123
|
}
|
|
7953
7124
|
};
|
|
@@ -7963,290 +7134,86 @@
|
|
|
7963
7134
|
this.viewStatus = '';
|
|
7964
7135
|
this.isRefundRemission = true;
|
|
7965
7136
|
this.errorMessage = false;
|
|
7966
|
-
this.errorMsg = [];
|
|
7967
7137
|
this.refundHasError = false;
|
|
7968
7138
|
this.isReasonEmpty = false;
|
|
7969
7139
|
};
|
|
7970
7140
|
/**
|
|
7971
|
-
* @param {?} isFullyRefund
|
|
7972
7141
|
* @return {?}
|
|
7973
7142
|
*/
|
|
7974
|
-
AddRemissionComponent.prototype.
|
|
7975
|
-
* @param {?} isFullyRefund
|
|
7143
|
+
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
7976
7144
|
* @return {?}
|
|
7977
7145
|
*/
|
|
7978
|
-
function (
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
* @return {?}
|
|
7987
|
-
*/function (el) {
|
|
7988
|
-
el.classList.remove('inline-error-class');
|
|
7989
|
-
}));
|
|
7990
|
-
/** @type {?} */
|
|
7991
|
-
var checkboxs = document.getElementsByTagName('input');
|
|
7992
|
-
this.errorMessage = '';
|
|
7993
|
-
this.totalRefundAmount = 0;
|
|
7994
|
-
this.errorMsg = [];
|
|
7995
|
-
for (var j = 0; j < checkboxs.length; j++) {
|
|
7996
|
-
if (checkboxs[j].checked) {
|
|
7997
|
-
this.fullRefund = false;
|
|
7998
|
-
/** @type {?} */
|
|
7999
|
-
var quantity = +(( /** @type {?} */(document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
8000
|
-
/** @type {?} */
|
|
8001
|
-
var amountToRefund = +(( /** @type {?} */(document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
8002
|
-
/** @type {?} */
|
|
8003
|
-
var apportionAmount = +(( /** @type {?} */(document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
8004
|
-
/** @type {?} */
|
|
8005
|
-
var calculatedAmount = +(( /** @type {?} */(document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8006
|
-
if (amountToRefund === apportionAmount) {
|
|
8007
|
-
this.fullRefund = true;
|
|
8008
|
-
}
|
|
8009
|
-
if (amountToRefund === 0) {
|
|
8010
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8011
|
-
this.errorMsg.push('You need to enter a refund amount');
|
|
8012
|
-
this.getErrorClass(this.elementId);
|
|
8013
|
-
}
|
|
8014
|
-
if (quantity === 1) {
|
|
8015
|
-
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8016
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8017
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8018
|
-
this.getErrorClass(this.elementId);
|
|
8019
|
-
}
|
|
8020
|
-
}
|
|
8021
|
-
if (quantity > 1) {
|
|
8022
|
-
this.quantityUpdated = +(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8023
|
-
if (this.quantityUpdated === 0) {
|
|
8024
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8025
|
-
this.errorMsg.push('You need to enter quantity');
|
|
8026
|
-
this.getErrorClass(this.elementId);
|
|
8027
|
-
}
|
|
8028
|
-
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8029
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8030
|
-
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8031
|
-
this.getErrorClass(this.elementId);
|
|
8032
|
-
}
|
|
8033
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8034
|
-
this.refundAmtForFeeVolumes = +(( /** @type {?} */(document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8035
|
-
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8036
|
-
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8037
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8038
|
-
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8039
|
-
this.getErrorClass(this.elementId);
|
|
8040
|
-
}
|
|
8041
|
-
}
|
|
8042
|
-
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8043
|
-
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8044
|
-
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8045
|
-
this.getErrorClass(this.elementId);
|
|
8046
|
-
}
|
|
8047
|
-
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8048
|
-
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8049
|
-
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8050
|
-
this.getErrorClass(this.elementId);
|
|
8051
|
-
}
|
|
8052
|
-
}
|
|
8053
|
-
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8054
|
-
}
|
|
8055
|
-
}
|
|
8056
|
-
if (this.errorMsg.length === 0) {
|
|
8057
|
-
if (this.isFromCheckAnsPage) {
|
|
8058
|
-
this.isFromCheckAnsPage = false;
|
|
8059
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8060
|
-
* @param {?} a
|
|
8061
|
-
* @param {?} c
|
|
8062
|
-
* @return {?}
|
|
8063
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8064
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8065
|
-
* @param {?} value
|
|
8066
|
-
* @return {?}
|
|
8067
|
-
*/function (value) { return value.selected === true; }));
|
|
8068
|
-
this.viewStatus = 'checkissuerefundpage';
|
|
8069
|
-
this.viewCompStatus = '';
|
|
8070
|
-
return;
|
|
8071
|
-
}
|
|
8072
|
-
else if (this.isFromRefundStatusPage) {
|
|
8073
|
-
/** @type {?} */
|
|
8074
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8075
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8076
|
-
* @param {?} a
|
|
8077
|
-
* @param {?} c
|
|
8078
|
-
* @return {?}
|
|
8079
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8080
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8081
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8082
|
-
* @param {?} value
|
|
8083
|
-
* @return {?}
|
|
8084
|
-
*/function (value) { return value.selected === true; }));
|
|
8085
|
-
this.refundFees.emit(this.fees);
|
|
8086
|
-
return;
|
|
8087
|
-
}
|
|
8088
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8089
|
-
this.getRefundReasons();
|
|
8090
|
-
}
|
|
8091
|
-
}
|
|
7146
|
+
function () {
|
|
7147
|
+
// this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
|
|
7148
|
+
this.errorMessage = '';
|
|
7149
|
+
this.refundHasError = false;
|
|
7150
|
+
this.isReasonEmpty = false;
|
|
7151
|
+
this.viewCompStatus = 'issuerefund';
|
|
7152
|
+
this.viewStatus = '';
|
|
7153
|
+
this.isRefundRemission = true;
|
|
8092
7154
|
};
|
|
8093
7155
|
/**
|
|
8094
|
-
* @param {?} value
|
|
8095
|
-
* @param {?} amount
|
|
8096
|
-
* @param {?} volume
|
|
8097
|
-
* @param {?} i
|
|
8098
7156
|
* @return {?}
|
|
8099
7157
|
*/
|
|
8100
|
-
AddRemissionComponent.prototype.
|
|
8101
|
-
* @param {?} value
|
|
8102
|
-
* @param {?} amount
|
|
8103
|
-
* @param {?} volume
|
|
8104
|
-
* @param {?} i
|
|
7158
|
+
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8105
7159
|
* @return {?}
|
|
8106
7160
|
*/
|
|
8107
|
-
function (
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
7161
|
+
function () {
|
|
7162
|
+
var _this = this;
|
|
7163
|
+
this.isConfirmationBtnDisabled = true;
|
|
7164
|
+
this.errorMessage = '';
|
|
7165
|
+
if (this.isRefundRemission) {
|
|
7166
|
+
this.retroRemission = true;
|
|
7167
|
+
}
|
|
8112
7168
|
/** @type {?} */
|
|
8113
|
-
var
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
7169
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
|
|
7170
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
7171
|
+
* @param {?} response
|
|
7172
|
+
* @return {?}
|
|
7173
|
+
*/function (response) {
|
|
7174
|
+
if (JSON.parse(response)) {
|
|
7175
|
+
_this.viewCompStatus = '';
|
|
7176
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7177
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7178
|
+
if (JSON.parse(response).refund_amount) {
|
|
7179
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7180
|
+
}
|
|
7181
|
+
}
|
|
7182
|
+
}), ( /**
|
|
7183
|
+
* @param {?} error
|
|
7184
|
+
* @return {?}
|
|
7185
|
+
*/function (error) {
|
|
7186
|
+
_this.errorMessage = error;
|
|
7187
|
+
_this.isConfirmationBtnDisabled = false;
|
|
7188
|
+
_this.cd.detectChanges();
|
|
7189
|
+
}));
|
|
8119
7190
|
};
|
|
7191
|
+
// Retro Refund
|
|
7192
|
+
// Retro Refund
|
|
8120
7193
|
/**
|
|
8121
|
-
* @param {?=} note
|
|
8122
|
-
* @return {?}
|
|
8123
|
-
*/
|
|
8124
|
-
AddRemissionComponent.prototype.gotoContactDetailsPage = /**
|
|
8125
|
-
* @param {?=} note
|
|
8126
7194
|
* @return {?}
|
|
8127
7195
|
*/
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
7196
|
+
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7197
|
+
// Retro Refund
|
|
7198
|
+
/**
|
|
7199
|
+
* @return {?}
|
|
7200
|
+
*/
|
|
7201
|
+
function () {
|
|
7202
|
+
var _this = this;
|
|
7203
|
+
this.isConfirmationBtnDisabled = true;
|
|
8132
7204
|
this.errorMessage = '';
|
|
8133
|
-
this.viewCompStatus = '';
|
|
8134
|
-
this.viewStatus = 'contactDetailsPage';
|
|
8135
|
-
this.isRefundRemission = true;
|
|
8136
|
-
this.errorMessage = false;
|
|
8137
|
-
};
|
|
8138
|
-
/**
|
|
8139
|
-
* @return {?}
|
|
8140
|
-
*/
|
|
8141
|
-
AddRemissionComponent.prototype.getRefundReasons = /**
|
|
8142
|
-
* @return {?}
|
|
8143
|
-
*/
|
|
8144
|
-
function () {
|
|
8145
|
-
var _this = this;
|
|
8146
|
-
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
8147
|
-
this.refundService.getRefundReasons().subscribe(( /**
|
|
8148
|
-
* @param {?} refundReasons
|
|
8149
|
-
* @return {?}
|
|
8150
|
-
*/function (refundReasons) {
|
|
8151
|
-
_this.refundReasons = refundReasons.filter(( /**
|
|
8152
|
-
* @param {?} data
|
|
8153
|
-
* @return {?}
|
|
8154
|
-
*/function (data) { return data.recently_used === false; }));
|
|
8155
|
-
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
8156
|
-
* @param {?} data
|
|
8157
|
-
* @return {?}
|
|
8158
|
-
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8159
|
-
_this.cd.detectChanges();
|
|
8160
|
-
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
8161
|
-
* @param {?} data
|
|
8162
|
-
* @return {?}
|
|
8163
|
-
*/function (data) { return data.recently_used === true; }));
|
|
8164
|
-
_this.commonRefundReasons.sort(( /**
|
|
8165
|
-
* @param {?} a
|
|
8166
|
-
* @param {?} b
|
|
8167
|
-
* @return {?}
|
|
8168
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8169
|
-
_this.cd.detectChanges();
|
|
8170
|
-
}));
|
|
8171
|
-
}
|
|
8172
|
-
};
|
|
8173
|
-
/**
|
|
8174
|
-
* @param {?} elementId
|
|
8175
|
-
* @return {?}
|
|
8176
|
-
*/
|
|
8177
|
-
AddRemissionComponent.prototype.getErrorClass = /**
|
|
8178
|
-
* @param {?} elementId
|
|
8179
|
-
* @return {?}
|
|
8180
|
-
*/
|
|
8181
|
-
function (elementId) {
|
|
8182
|
-
if (this.errorMsg.length > 0) {
|
|
8183
|
-
/** @type {?} */
|
|
8184
|
-
var ele = document.getElementById(elementId);
|
|
8185
|
-
ele.classList.add('inline-error-class');
|
|
8186
|
-
}
|
|
8187
|
-
};
|
|
8188
|
-
/**
|
|
8189
|
-
* @return {?}
|
|
8190
|
-
*/
|
|
8191
|
-
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
8192
|
-
* @return {?}
|
|
8193
|
-
*/
|
|
8194
|
-
function () {
|
|
8195
|
-
this.isFromCheckAnsPage = true;
|
|
8196
|
-
this.errorMessage = '';
|
|
8197
|
-
this.errorMsg = [];
|
|
8198
|
-
this.refundHasError = false;
|
|
8199
|
-
this.isReasonEmpty = false;
|
|
8200
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8201
|
-
this.viewStatus = '';
|
|
8202
|
-
this.isRefundRemission = true;
|
|
8203
|
-
};
|
|
8204
|
-
/**
|
|
8205
|
-
* @param {?} isFullyRefund
|
|
8206
|
-
* @return {?}
|
|
8207
|
-
*/
|
|
8208
|
-
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8209
|
-
* @param {?} isFullyRefund
|
|
8210
|
-
* @return {?}
|
|
8211
|
-
*/
|
|
8212
|
-
function (isFullyRefund) {
|
|
8213
|
-
var _this = this;
|
|
8214
|
-
this.isConfirmationBtnDisabled = true;
|
|
8215
|
-
this.errorMessage = '';
|
|
8216
|
-
this.errorMsg = [];
|
|
8217
7205
|
if (this.isRefundRemission) {
|
|
8218
7206
|
this.retroRemission = true;
|
|
8219
7207
|
}
|
|
8220
|
-
if (isFullyRefund) {
|
|
8221
|
-
this.totalRefundAmount = this.payment.amount;
|
|
8222
|
-
}
|
|
8223
|
-
if (!isFullyRefund) {
|
|
8224
|
-
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8225
|
-
* @param {?} value
|
|
8226
|
-
* @return {?}
|
|
8227
|
-
*/function (value) { return value.selected === true; }));
|
|
8228
|
-
}
|
|
8229
|
-
this.fees = this.fees.map(( /**
|
|
8230
|
-
* @param {?} obj
|
|
8231
|
-
* @return {?}
|
|
8232
|
-
*/function (obj) {
|
|
8233
|
-
return ({ id: obj.id,
|
|
8234
|
-
code: obj.code,
|
|
8235
|
-
version: obj.version,
|
|
8236
|
-
apportion_amount: obj.apportion_amount,
|
|
8237
|
-
calculated_amount: obj.calculated_amount,
|
|
8238
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8239
|
-
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount });
|
|
8240
|
-
}));
|
|
8241
7208
|
/** @type {?} */
|
|
8242
|
-
var requestBody = new PostRefundRetroRemission(this.
|
|
7209
|
+
var requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
|
|
8243
7210
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
8244
7211
|
* @param {?} response
|
|
8245
7212
|
* @return {?}
|
|
8246
7213
|
*/function (response) {
|
|
8247
7214
|
if (JSON.parse(response)) {
|
|
8248
7215
|
_this.viewCompStatus = '';
|
|
8249
|
-
_this.viewStatus = '
|
|
7216
|
+
_this.viewStatus = 'retrorefundconfirmationpage';
|
|
8250
7217
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
8251
7218
|
if (JSON.parse(response).refund_amount) {
|
|
8252
7219
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -8258,105 +7225,18 @@
|
|
|
8258
7225
|
*/function (error) {
|
|
8259
7226
|
_this.errorMessage = error;
|
|
8260
7227
|
_this.isConfirmationBtnDisabled = false;
|
|
8261
|
-
_this.cd.detectChanges();
|
|
8262
7228
|
}));
|
|
8263
7229
|
};
|
|
8264
7230
|
/**
|
|
7231
|
+
* @param {?} key
|
|
7232
|
+
* @param {?} value
|
|
8265
7233
|
* @return {?}
|
|
8266
7234
|
*/
|
|
8267
|
-
AddRemissionComponent.prototype.
|
|
8268
|
-
* @return {?}
|
|
8269
|
-
*/
|
|
8270
|
-
function () {
|
|
8271
|
-
this.viewStatus = '';
|
|
8272
|
-
this.viewCompStatus = 'issuerefundpage1';
|
|
8273
|
-
};
|
|
8274
|
-
// Retro Refund
|
|
8275
|
-
// confirmRetroRefund() {
|
|
8276
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8277
|
-
// this.errorMessage = '';
|
|
8278
|
-
// this.errorMsg = [];
|
|
8279
|
-
// if( this.isRefundRemission) {
|
|
8280
|
-
// this.retroRemission = true;
|
|
8281
|
-
// }
|
|
8282
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8283
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8284
|
-
// response => {
|
|
8285
|
-
// if (JSON.parse(response)) {
|
|
8286
|
-
// this.viewCompStatus = '';
|
|
8287
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8288
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8289
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8290
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8291
|
-
// }
|
|
8292
|
-
// }
|
|
8293
|
-
// },
|
|
8294
|
-
// (error: any) => {
|
|
8295
|
-
// this.errorMessage = error;
|
|
8296
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8297
|
-
// });
|
|
8298
|
-
// }
|
|
8299
|
-
// Retro Refund
|
|
8300
|
-
// confirmRetroRefund() {
|
|
8301
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8302
|
-
// this.errorMessage = '';
|
|
8303
|
-
// this.errorMsg = [];
|
|
8304
|
-
// if( this.isRefundRemission) {
|
|
8305
|
-
// this.retroRemission = true;
|
|
8306
|
-
// }
|
|
8307
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8308
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8309
|
-
// response => {
|
|
8310
|
-
// if (JSON.parse(response)) {
|
|
8311
|
-
// this.viewCompStatus = '';
|
|
8312
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8313
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8314
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8315
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8316
|
-
// }
|
|
8317
|
-
// }
|
|
8318
|
-
// },
|
|
8319
|
-
// (error: any) => {
|
|
8320
|
-
// this.errorMessage = error;
|
|
8321
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8322
|
-
// });
|
|
8323
|
-
// }
|
|
8324
|
-
/**
|
|
7235
|
+
AddRemissionComponent.prototype.selectRadioButton = /**
|
|
8325
7236
|
* @param {?} key
|
|
8326
7237
|
* @param {?} value
|
|
8327
7238
|
* @return {?}
|
|
8328
7239
|
*/
|
|
8329
|
-
AddRemissionComponent.prototype.selectRadioButton =
|
|
8330
|
-
// Retro Refund
|
|
8331
|
-
// confirmRetroRefund() {
|
|
8332
|
-
// this.isConfirmationBtnDisabled = true;
|
|
8333
|
-
// this.errorMessage = '';
|
|
8334
|
-
// this.errorMsg = [];
|
|
8335
|
-
// if( this.isRefundRemission) {
|
|
8336
|
-
// this.retroRemission = true;
|
|
8337
|
-
// }
|
|
8338
|
-
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8339
|
-
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8340
|
-
// response => {
|
|
8341
|
-
// if (JSON.parse(response)) {
|
|
8342
|
-
// this.viewCompStatus = '';
|
|
8343
|
-
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8344
|
-
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8345
|
-
// if(JSON.parse(response).refund_amount) {
|
|
8346
|
-
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8347
|
-
// }
|
|
8348
|
-
// }
|
|
8349
|
-
// },
|
|
8350
|
-
// (error: any) => {
|
|
8351
|
-
// this.errorMessage = error;
|
|
8352
|
-
// this.isConfirmationBtnDisabled = false;
|
|
8353
|
-
// });
|
|
8354
|
-
// }
|
|
8355
|
-
/**
|
|
8356
|
-
* @param {?} key
|
|
8357
|
-
* @param {?} value
|
|
8358
|
-
* @return {?}
|
|
8359
|
-
*/
|
|
8360
7240
|
function (key, value) {
|
|
8361
7241
|
localStorage.setItem("myradio", key);
|
|
8362
7242
|
/** @type {?} */
|
|
@@ -8365,7 +7245,6 @@
|
|
|
8365
7245
|
remissionctrls['reason'].reset();
|
|
8366
7246
|
this.isRefundReasonsSelected = true;
|
|
8367
7247
|
this.errorMessage = false;
|
|
8368
|
-
this.errorMsg = [];
|
|
8369
7248
|
this.isReasonEmpty = false;
|
|
8370
7249
|
this.showReasonText = false;
|
|
8371
7250
|
this.refundHasError = false;
|
|
@@ -8400,38 +7279,6 @@
|
|
|
8400
7279
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
8401
7280
|
}
|
|
8402
7281
|
};
|
|
8403
|
-
/**
|
|
8404
|
-
* @param {?} obj
|
|
8405
|
-
* @param {?} type
|
|
8406
|
-
* @return {?}
|
|
8407
|
-
*/
|
|
8408
|
-
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8409
|
-
* @param {?} obj
|
|
8410
|
-
* @param {?} type
|
|
8411
|
-
* @return {?}
|
|
8412
|
-
*/
|
|
8413
|
-
function (obj, type) {
|
|
8414
|
-
this.contactDetailsObj = obj;
|
|
8415
|
-
this.viewCompStatus = '';
|
|
8416
|
-
this.viewStatus = type;
|
|
8417
|
-
};
|
|
8418
|
-
/**
|
|
8419
|
-
* @return {?}
|
|
8420
|
-
*/
|
|
8421
|
-
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8422
|
-
* @return {?}
|
|
8423
|
-
*/
|
|
8424
|
-
function () {
|
|
8425
|
-
if (this.isFromRefundStatusPage) {
|
|
8426
|
-
/** @type {?} */
|
|
8427
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8428
|
-
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8429
|
-
return;
|
|
8430
|
-
}
|
|
8431
|
-
this.refundHasError = false;
|
|
8432
|
-
this.viewCompStatus = 'issuerefund';
|
|
8433
|
-
this.viewStatus = '';
|
|
8434
|
-
};
|
|
8435
7282
|
/**
|
|
8436
7283
|
* @param {?} event
|
|
8437
7284
|
* @return {?}
|
|
@@ -8443,20 +7290,7 @@
|
|
|
8443
7290
|
function (event) {
|
|
8444
7291
|
var _this = this;
|
|
8445
7292
|
this.errorMessage = '';
|
|
8446
|
-
this.errorMsg = [];
|
|
8447
|
-
this.isFromCheckAnsPage = false;
|
|
8448
7293
|
event.preventDefault();
|
|
8449
|
-
if (this.isFromRefundStatusPage) {
|
|
8450
|
-
/** @type {?} */
|
|
8451
|
-
var remissionctrls = this.remissionForm.controls;
|
|
8452
|
-
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8453
|
-
* @param {?} a
|
|
8454
|
-
* @param {?} c
|
|
8455
|
-
* @return {?}
|
|
8456
|
-
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8457
|
-
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8458
|
-
return;
|
|
8459
|
-
}
|
|
8460
7294
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
8461
7295
|
this.viewStatus = 'order-full-view';
|
|
8462
7296
|
this.viewCompStatus = '';
|
|
@@ -8490,40 +7324,68 @@
|
|
|
8490
7324
|
}
|
|
8491
7325
|
this.viewCompStatus = '';
|
|
8492
7326
|
}
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
this.
|
|
8507
|
-
this.
|
|
8508
|
-
this.
|
|
8509
|
-
|
|
8510
|
-
this.
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
this.
|
|
8523
|
-
this.
|
|
8524
|
-
this.
|
|
8525
|
-
this.
|
|
8526
|
-
this.
|
|
7327
|
+
// if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
7328
|
+
// this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
7329
|
+
// this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7330
|
+
// }
|
|
7331
|
+
// if (this.isFromServiceRequestPage) {
|
|
7332
|
+
// //this.paymentLibComponent.TAKEPAYMENT = false;
|
|
7333
|
+
// this.paymentLibComponent.isFromRefundStatusPage = false;
|
|
7334
|
+
// this.viewStatus = 'main'
|
|
7335
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7336
|
+
// this.OrderslistService.setisFromServiceRequestPage(true);
|
|
7337
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7338
|
+
// }
|
|
7339
|
+
// if ( this.isFromRefundListPage ) {
|
|
7340
|
+
// this.paymentLibComponent.iscancelClicked = true;
|
|
7341
|
+
// this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
|
|
7342
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7343
|
+
// }
|
|
7344
|
+
// if(!this.paymentLibComponent.isFromRefundStatusPage) {
|
|
7345
|
+
// if(this.payment) {
|
|
7346
|
+
// this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
|
|
7347
|
+
// }
|
|
7348
|
+
// if (this.isFromServiceRequestPage) {
|
|
7349
|
+
// this.OrderslistService.setnavigationPage('servicerequestpage');
|
|
7350
|
+
// } else {
|
|
7351
|
+
// this.OrderslistService.setnavigationPage('paymentdetailspage');
|
|
7352
|
+
// }
|
|
7353
|
+
// this.errorMessage = '';
|
|
7354
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7355
|
+
// // this.paymentLibComponent.TAKEPAYMENT = true;
|
|
7356
|
+
// this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
7357
|
+
// this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
|
|
7358
|
+
// this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
|
|
7359
|
+
// this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
7360
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7361
|
+
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7362
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7363
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7364
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7365
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7366
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7367
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7368
|
+
// if(this.isFromPaymentDetailPage) {
|
|
7369
|
+
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7370
|
+
// }
|
|
7371
|
+
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7372
|
+
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7373
|
+
// }
|
|
7374
|
+
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7375
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7376
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7377
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7378
|
+
// this.router.navigateByUrl(url);
|
|
7379
|
+
// } else {
|
|
7380
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7381
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7382
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7383
|
+
// this.router.navigateByUrl(url);
|
|
7384
|
+
// }
|
|
7385
|
+
// } else {
|
|
7386
|
+
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7387
|
+
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7388
|
+
// }
|
|
8527
7389
|
};
|
|
8528
7390
|
/**
|
|
8529
7391
|
* @return {?}
|
|
@@ -8534,7 +7396,6 @@
|
|
|
8534
7396
|
function () {
|
|
8535
7397
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8536
7398
|
this.errorMessage = '';
|
|
8537
|
-
this.errorMsg = [];
|
|
8538
7399
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8539
7400
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8540
7401
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -8568,36 +7429,30 @@
|
|
|
8568
7429
|
*/
|
|
8569
7430
|
function (event) {
|
|
8570
7431
|
event.preventDefault();
|
|
8571
|
-
this.
|
|
8572
|
-
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8573
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8574
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8575
|
-
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8576
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8577
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
8578
|
-
this.paymentLibComponent.isRefundStatusView = false;
|
|
7432
|
+
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8579
7433
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8580
7434
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8581
7435
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8582
7436
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8583
7437
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
8584
7438
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
8585
|
-
this.
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
partUrl
|
|
8592
|
-
partUrl += this.paymentLibComponent.
|
|
8593
|
-
partUrl += this.paymentLibComponent.
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
this.
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
this.router.
|
|
8600
|
-
this.router.
|
|
7439
|
+
// this.OrderslistService.setnavigationPage('casetransactions');
|
|
7440
|
+
// this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7441
|
+
// this.paymentLibComponent.VIEW ='case-transactions';
|
|
7442
|
+
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
7443
|
+
// this.paymentLibComponent.ISBSENABLE = true;
|
|
7444
|
+
// this.paymentLibComponent.isRefundStatusView = false;
|
|
7445
|
+
// this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7446
|
+
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7447
|
+
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7448
|
+
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7449
|
+
// partUrl += `&caseType=${this.caseType}`;
|
|
7450
|
+
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7451
|
+
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7452
|
+
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7453
|
+
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7454
|
+
// this.router.onSameUrlNavigation = 'reload';
|
|
7455
|
+
// this.router.navigateByUrl(url);
|
|
8601
7456
|
}
|
|
8602
7457
|
else {
|
|
8603
7458
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -8664,17 +7519,6 @@
|
|
|
8664
7519
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
8665
7520
|
this.OrderslistService.setorderFeesTotal(null);
|
|
8666
7521
|
};
|
|
8667
|
-
/**
|
|
8668
|
-
* @return {?}
|
|
8669
|
-
*/
|
|
8670
|
-
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8671
|
-
* @return {?}
|
|
8672
|
-
*/
|
|
8673
|
-
function () {
|
|
8674
|
-
this.isFromCheckAnsPage = true;
|
|
8675
|
-
this.viewCompStatus = 'issuerefund';
|
|
8676
|
-
this.viewStatus = '';
|
|
8677
|
-
};
|
|
8678
7522
|
/**
|
|
8679
7523
|
* @param {?} currency
|
|
8680
7524
|
* @return {?}
|
|
@@ -8692,8 +7536,8 @@
|
|
|
8692
7536
|
AddRemissionComponent.decorators = [
|
|
8693
7537
|
{ type: i0.Component, args: [{
|
|
8694
7538
|
selector: 'ccpay-add-remission',
|
|
8695
|
-
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n <div *ngIf=\"errorMsg.length > 0\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div *ngFor=\"let err of errorMsg; let i = index\" class=\"govuk-error-summary__body\">\n \n <li>{{err}}</li>\n </div>\n </div>\n </div>\n\n<ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n</ng-container>\n\n<!-- Add retro remission changes-->\n\n<ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"gotoAmountRetroRemission()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAmountRetroRemission()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel-border--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"gotoProcessRetroRemission()\">Continue </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n\n<ng-container *ngIf=\"viewStatus === 'remissionAddressPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission(contactDetailsObj)\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\"> Submit refund </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n</ng-container>\n\n<!-- Issue Refund Section -->\n<ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <h1 class=\"heading-large\">Issue refund</h1>\n <h2 class=\"heading-medium\">Case reference:#{{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"form-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <h3 class=\"heading-small\">Select fees to be refunded</h3>\n <!--TABLE-->\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-1\" scope=\"col\">Select</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Fee description</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Total paid</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Quantity</td>\n <td class=\"govuk-table__header col-8\" scope=\"col\">Amount to refund</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"!isFullyRefund\">\n <tr class=\"govuk-table__row\" formArrayName=\"feesList\" *ngFor=\"let fee of feesList?.controls; let i = index\">\n <td class=\"govuk-table__cell\">\n <div [formGroupName]=\"i\" class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n\n <input\n class=\"govuk-checkboxes__input\" \n (click)=\"check_en(i,fee.controls['id'].value,fee.controls['apportion_amount'].value,fee.controls['volume'].value)\" \n id=\"{{fee.controls['id'].value}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.controls['id'].value}}\" \n formControlName=\"selected\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.controls['id'].value}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.controls['description'].value}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.controls['id'].value}}\">{{ fee.controls['calculated_amount'].value / fee.controls['volume'].value }}</div>\n {{ fee.controls['calculated_amount'].value / fee.controls['volume'].value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ fee.controls['apportion_amount'].value | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value >1\">\n <div [formGroupName]=\"i\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" (keyup)=\"calAmtToRefund($event.target.value,fee.controls['calculated_amount'].value,fee.controls['volume'].value,i)\" value=\"{{fee.controls['updated_volume'].value}}\" name=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" formControlName=\"updated_volume\" type=\"text\" >\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value ===1\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"VolumeUpdated_{{fee.controls['id'].value}}\" name=\"VolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\">\n </td>\n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div [formGroupName]=\"i\" class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.controls['id'].value}}\" name=\"feeAmount_{{fee.controls['id'].value}}\" type=\"text\" aria-describedby=\"amount-currency \" pattern=\"[0-9]*\" formControlName=\"refund_amount\">\n <input id=\"feeVolume_{{fee.controls['id'].value}}\" name=\"feeVolume_{{fee.controls['id'].value}}\" value= \"{{fee.controls['volume'].value}}\" type=\"hidden\" formControlName=\"volume\">\n <input id=\"feeApportionAmount_{{fee.controls['id'].value}}\" name=\"feeApportionAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['apportion_amount'].value}}\" type=\"hidden\" formControlName=\"apportion_amount\">\n <input id=\"calculatedAmount_{{fee.controls['id'].value}}\" name=\"calculatedAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['calculated_amount'].value}}\" type=\"hidden\" formControlName=\"calculated_amount\">\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"isFullyRefund\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of fees; let i = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input \n class=\"govuk-checkboxes__input\" \n \n id=\"{{fee.id}}\" \n name=\"organisation\" \n type=\"checkbox\" \n value=\"{{fee.id}}\"\n disabled=\"disabled\"\n [checked]=\"true\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.id}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.description}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >\n <div type=\"hidden\" style=\"display:none;background-color:white;\" id=\"feeVOl_{{fee.id}}\">{{ fee.calculated_amount / fee.volume }}</div>\n {{ fee.calculated_amount / fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\">\n <div >\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.id}}\" value=\"{{fee.volume}}\" name=\"feeVolumeUpdated_{{fee.id}}\" type=\"text\" >\n </div>\n </td>\n \n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.id}}\" name=\"feeAmount_{{fee.id}}\" type=\"text\" aria-describedby=\"amount-currency \" value=\"{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}\" pattern=\"[0-9]*\" >\n </div> \n \n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"fees?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n\n \n <a (click)=\"gotoServiceRequestPage($event)\" *ngIf=\"!isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n <a (click)=\"goToPaymentViewComponent()\" *ngIf=\"isFullyRefund\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n <button [disabled] = \"noneSelected()\" (click)=\"gotoIssuePage(isFullyRefund)\" class=\"govuk-button\">\n Continue\n </button>\n \n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </form>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewCompStatus === 'issuerefundpage1' && isRefundRemission\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"payment\" class=\"form-hint\">\n Payment reference: {{paymentReference}}\n </span>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" *ngIf=\"refundPaymentReference\" class=\"form-hint\">\n Payment reference: {{refundPaymentReference}}\n </span>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoPartialFeeRefundScreen()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'contactDetailsPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CAPTUREADDRESSDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n <ccpay-contact-details\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event, 'checkissuerefundpage')\"\n (redirectToIssueRefund)=\"gotoRefundReasonPage()\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n \n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{totalRefundAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}\n <a (click)=\"changeRefundAmount()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"isFullyRefund\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoContactDetailsPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoContactDetailsPage(contactDetailsObj)\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund(isFullyRefund)\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<!--Retro Refund-->\n<ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentReference}}\n </span>\n<ccpay-contact-details \n[addressObj] = notification\n(assignContactDetails)=\"getContactDetails($event, 'addrefundcheckandanswer')\"\n(redirectToIssueRefund)=\"gotoServiceRequestPage($event)\" ></ccpay-contact-details>\n<p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n</p>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addrefundcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{paymentReference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [isServiceRequest]=\"isServiceRequest\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n</ccpay-payment-view>\n</ng-container>\n\n</div>",
|
|
8696
|
-
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 .
|
|
7539
|
+
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n </ccpay-service-request>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n </ccpay-payment-view>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
7540
|
+
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}"]
|
|
8697
7541
|
}] }
|
|
8698
7542
|
];
|
|
8699
7543
|
/** @nocollapse */
|
|
@@ -8710,7 +7554,6 @@
|
|
|
8710
7554
|
};
|
|
8711
7555
|
AddRemissionComponent.propDecorators = {
|
|
8712
7556
|
fee: [{ type: i0.Input }],
|
|
8713
|
-
fees: [{ type: i0.Input }],
|
|
8714
7557
|
payment: [{ type: i0.Input }],
|
|
8715
7558
|
remission: [{ type: i0.Input }],
|
|
8716
7559
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
@@ -8726,12 +7569,7 @@
|
|
|
8726
7569
|
isFromRefundListPage: [{ type: i0.Input }],
|
|
8727
7570
|
isFromPaymentDetailPage: [{ type: i0.Input }],
|
|
8728
7571
|
isFromServiceRequestPage: [{ type: i0.Input }],
|
|
8729
|
-
isFullyRefund: [{ type: i0.Input, args: ['isFullyRefund',] }],
|
|
8730
7572
|
feeamount: [{ type: i0.Input }],
|
|
8731
|
-
refundPaymentReference: [{ type: i0.Input }],
|
|
8732
|
-
isFromRefundStatusPage: [{ type: i0.Input }],
|
|
8733
|
-
changeRefundReason: [{ type: i0.Input }],
|
|
8734
|
-
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
8735
7573
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
8736
7574
|
orderDetail: [{ type: i0.Input, args: ['orderDetail',] }],
|
|
8737
7575
|
orderRef: [{ type: i0.Input, args: ['orderRef',] }],
|
|
@@ -8745,8 +7583,7 @@
|
|
|
8745
7583
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
8746
7584
|
cancelRemission: [{ type: i0.Output }],
|
|
8747
7585
|
refundListReason: [{ type: i0.Output }],
|
|
8748
|
-
refundListAmount: [{ type: i0.Output }]
|
|
8749
|
-
refundFees: [{ type: i0.Output }]
|
|
7586
|
+
refundListAmount: [{ type: i0.Output }]
|
|
8750
7587
|
};
|
|
8751
7588
|
return AddRemissionComponent;
|
|
8752
7589
|
}());
|
|
@@ -9482,26 +8319,12 @@
|
|
|
9482
8319
|
return (r[user_full_name] = '', r);
|
|
9483
8320
|
}), {});
|
|
9484
8321
|
this.userLst = Object.keys(this.userLst);
|
|
9485
|
-
this.userLst.sort(( /**
|
|
9486
|
-
* @param {?} a
|
|
9487
|
-
* @param {?} b
|
|
9488
|
-
* @return {?}
|
|
9489
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9490
|
-
this.serviceLst = this.refundList.reduce(( /**
|
|
9491
|
-
* @param {?} r
|
|
9492
|
-
* @param {?} __1
|
|
9493
|
-
* @return {?}
|
|
9494
|
-
*/function (r, _a) {
|
|
9495
|
-
var service_type = _a.service_type;
|
|
9496
|
-
return (r[service_type] = '', r);
|
|
9497
|
-
}), {});
|
|
9498
|
-
this.serviceLst = Object.keys(this.serviceLst);
|
|
9499
|
-
this.serviceLst.sort(( /**
|
|
9500
|
-
* @param {?} a
|
|
9501
|
-
* @param {?} b
|
|
9502
|
-
* @return {?}
|
|
9503
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9504
8322
|
}
|
|
8323
|
+
this.userLst.sort(( /**
|
|
8324
|
+
* @param {?} a
|
|
8325
|
+
* @param {?} b
|
|
8326
|
+
* @return {?}
|
|
8327
|
+
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9505
8328
|
};
|
|
9506
8329
|
/**
|
|
9507
8330
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -9601,8 +8424,8 @@
|
|
|
9601
8424
|
TableComponent.decorators = [
|
|
9602
8425
|
{ type: i0.Component, args: [{
|
|
9603
8426
|
selector: 'ccpay-table',
|
|
9604
|
-
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
|
|
9605
|
-
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}
|
|
8427
|
+
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",
|
|
8428
|
+
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}"]
|
|
9606
8429
|
}] }
|
|
9607
8430
|
];
|
|
9608
8431
|
/** @nocollapse */
|
|
@@ -9625,32 +8448,14 @@
|
|
|
9625
8448
|
return TableComponent;
|
|
9626
8449
|
}());
|
|
9627
8450
|
|
|
9628
|
-
/**
|
|
9629
|
-
* @fileoverview added by tsickle
|
|
9630
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9631
|
-
*/
|
|
9632
|
-
var IPutNotificationRequest = /** @class */ (function () {
|
|
9633
|
-
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9634
|
-
if (notificationType === 'EMAIL') {
|
|
9635
|
-
this.recipient_email_address = contactDetails;
|
|
9636
|
-
}
|
|
9637
|
-
else if (notificationType === 'LETTER') {
|
|
9638
|
-
this.recipient_postal_address = contactDetails;
|
|
9639
|
-
}
|
|
9640
|
-
}
|
|
9641
|
-
return IPutNotificationRequest;
|
|
9642
|
-
}());
|
|
9643
|
-
|
|
9644
8451
|
/**
|
|
9645
8452
|
* @fileoverview added by tsickle
|
|
9646
8453
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9647
8454
|
*/
|
|
9648
8455
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
9649
|
-
function IResubmitRefundRequest(refund_reason, amount
|
|
8456
|
+
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9650
8457
|
this.refund_reason = refund_reason;
|
|
9651
8458
|
this.amount = amount;
|
|
9652
|
-
this.contact_details = contact_details;
|
|
9653
|
-
this.refund_fees = refund_fees;
|
|
9654
8459
|
}
|
|
9655
8460
|
return IResubmitRefundRequest;
|
|
9656
8461
|
}());
|
|
@@ -9660,18 +8465,19 @@
|
|
|
9660
8465
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9661
8466
|
*/
|
|
9662
8467
|
var RefundStatusComponent = /** @class */ (function () {
|
|
9663
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
9664
|
-
var _this = this;
|
|
8468
|
+
function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router$$1, OrderslistService$$1) {
|
|
9665
8469
|
this.formBuilder = formBuilder;
|
|
9666
8470
|
this.refundService = refundService;
|
|
9667
|
-
this.notificationService = notificationService;
|
|
9668
8471
|
this.paymentLibComponent = paymentLibComponent;
|
|
9669
|
-
this.OrderslistService = OrderslistService$$1;
|
|
9670
8472
|
this.paymentViewService = paymentViewService;
|
|
8473
|
+
this.router = router$$1;
|
|
8474
|
+
this.OrderslistService = OrderslistService$$1;
|
|
9671
8475
|
this.LOGGEDINUSERROLES = [];
|
|
9672
8476
|
this.rejectedRefundList = [];
|
|
9673
8477
|
this.approvalStatus = 'Sent for approval';
|
|
9674
8478
|
this.rejectStatus = 'Update required';
|
|
8479
|
+
// approvalStatus = 'sent for approval';
|
|
8480
|
+
// rejectStatus = 'sent back';
|
|
9675
8481
|
this.errorMessage = null;
|
|
9676
8482
|
this.refundButtonState = '';
|
|
9677
8483
|
this.isAmountEmpty = false;
|
|
@@ -9680,23 +8486,9 @@
|
|
|
9680
8486
|
this.isRemissionLessThanFeeError = false;
|
|
9681
8487
|
this.refundHasError = false;
|
|
9682
8488
|
this.refundReasons = [];
|
|
9683
|
-
this.isResendOperationSuccess = false;
|
|
9684
|
-
this.isEditDetailsClicked = false;
|
|
9685
|
-
this.isEditAddressDeatilsClicked = false;
|
|
9686
8489
|
this.isRefundBtnDisabled = true;
|
|
9687
8490
|
this.isLastUpdatedByCurrentUser = true;
|
|
9688
8491
|
this.isProcessRefund = false;
|
|
9689
|
-
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
9690
|
-
this.check4AllowedRoles2AccessRefund = ( /**
|
|
9691
|
-
* @return {?}
|
|
9692
|
-
*/function () {
|
|
9693
|
-
return _this.allowedRolesToAccessRefund.some(( /**
|
|
9694
|
-
* @param {?} role
|
|
9695
|
-
* @return {?}
|
|
9696
|
-
*/function (role) {
|
|
9697
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9698
|
-
}));
|
|
9699
|
-
});
|
|
9700
8492
|
}
|
|
9701
8493
|
/**
|
|
9702
8494
|
* @return {?}
|
|
@@ -9706,9 +8498,13 @@
|
|
|
9706
8498
|
*/
|
|
9707
8499
|
function () {
|
|
9708
8500
|
var _this = this;
|
|
8501
|
+
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
9709
8502
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
9710
8503
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
9711
8504
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8505
|
+
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8506
|
+
// this.viewName = 'reviewandsubmitview';
|
|
8507
|
+
// }
|
|
9712
8508
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
9713
8509
|
this.viewName = 'refundview';
|
|
9714
8510
|
this.OrderslistService.getRefundView().subscribe(( /**
|
|
@@ -9722,19 +8518,23 @@
|
|
|
9722
8518
|
}
|
|
9723
8519
|
else {
|
|
9724
8520
|
this.viewName = 'refundstatuslist';
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
*/function (refundList) {
|
|
9729
|
-
_this.rejectedRefundList = refundList['refund_list'];
|
|
9730
|
-
//this.refundFees = this.rejectedRefundList['refund_fees'];
|
|
9731
|
-
})),
|
|
9732
|
-
( /**
|
|
9733
|
-
* @param {?} error
|
|
8521
|
+
if (this.isEliginbleToAccess) {
|
|
8522
|
+
this.refundService.getRefundStatusList(this.ccdCaseNumber).subscribe(( /**
|
|
8523
|
+
* @param {?} refundList
|
|
9734
8524
|
* @return {?}
|
|
9735
|
-
*/function (
|
|
9736
|
-
_this.
|
|
9737
|
-
})
|
|
8525
|
+
*/function (refundList) {
|
|
8526
|
+
_this.rejectedRefundList = refundList['refund_list'];
|
|
8527
|
+
})),
|
|
8528
|
+
( /**
|
|
8529
|
+
* @param {?} error
|
|
8530
|
+
* @return {?}
|
|
8531
|
+
*/function (error) {
|
|
8532
|
+
_this.errorMessage = error.replace(/"/g, "");
|
|
8533
|
+
});
|
|
8534
|
+
}
|
|
8535
|
+
else {
|
|
8536
|
+
this.rejectedRefundList = [];
|
|
8537
|
+
}
|
|
9738
8538
|
}
|
|
9739
8539
|
this.refundStatusForm = this.formBuilder.group({
|
|
9740
8540
|
amount: new forms.FormControl('', forms.Validators.compose([
|
|
@@ -9745,7 +8545,6 @@
|
|
|
9745
8545
|
reason: new forms.FormControl()
|
|
9746
8546
|
});
|
|
9747
8547
|
if (this.refundlist !== undefined) {
|
|
9748
|
-
this.getRefundsNotification();
|
|
9749
8548
|
this.getRefundsStatusHistoryList();
|
|
9750
8549
|
if (this.LOGGEDINUSERROLES.some(( /**
|
|
9751
8550
|
* @param {?} i
|
|
@@ -9763,6 +8562,7 @@
|
|
|
9763
8562
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
9764
8563
|
}
|
|
9765
8564
|
}
|
|
8565
|
+
//}
|
|
9766
8566
|
};
|
|
9767
8567
|
/**
|
|
9768
8568
|
* @return {?}
|
|
@@ -9788,27 +8588,6 @@
|
|
|
9788
8588
|
});
|
|
9789
8589
|
}
|
|
9790
8590
|
};
|
|
9791
|
-
/**
|
|
9792
|
-
* @return {?}
|
|
9793
|
-
*/
|
|
9794
|
-
RefundStatusComponent.prototype.getRefundsNotification = /**
|
|
9795
|
-
* @return {?}
|
|
9796
|
-
*/
|
|
9797
|
-
function () {
|
|
9798
|
-
var _this = this;
|
|
9799
|
-
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe(( /**
|
|
9800
|
-
* @param {?} refundsNotification
|
|
9801
|
-
* @return {?}
|
|
9802
|
-
*/function (refundsNotification) {
|
|
9803
|
-
_this.notificationList = refundsNotification['notifications'];
|
|
9804
|
-
})),
|
|
9805
|
-
( /**
|
|
9806
|
-
* @param {?} error
|
|
9807
|
-
* @return {?}
|
|
9808
|
-
*/function (error) {
|
|
9809
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
9810
|
-
});
|
|
9811
|
-
};
|
|
9812
8591
|
/**
|
|
9813
8592
|
* @param {?} refundlist
|
|
9814
8593
|
* @param {?} navigationpage
|
|
@@ -9896,21 +8675,18 @@
|
|
|
9896
8675
|
}));
|
|
9897
8676
|
};
|
|
9898
8677
|
/**
|
|
9899
|
-
* @param {?} refundReason
|
|
9900
8678
|
* @return {?}
|
|
9901
8679
|
*/
|
|
9902
8680
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
9903
|
-
* @param {?} refundReason
|
|
9904
8681
|
* @return {?}
|
|
9905
8682
|
*/
|
|
9906
|
-
function (
|
|
8683
|
+
function () {
|
|
9907
8684
|
this.isRefundBtnDisabled = false;
|
|
9908
8685
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
9909
8686
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
9910
8687
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
9911
8688
|
this.errorMessage = false;
|
|
9912
|
-
this.
|
|
9913
|
-
this.viewName = 'issuerefundpage1';
|
|
8689
|
+
this.viewName = 'issuerefund';
|
|
9914
8690
|
};
|
|
9915
8691
|
/**
|
|
9916
8692
|
* @return {?}
|
|
@@ -9924,12 +8700,7 @@
|
|
|
9924
8700
|
this.isRefundBtnDisabled = false;
|
|
9925
8701
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
9926
8702
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
9927
|
-
|
|
9928
|
-
this.viewName = 'processretroremissonpage';
|
|
9929
|
-
}
|
|
9930
|
-
else {
|
|
9931
|
-
this.viewName = 'issuerefund';
|
|
9932
|
-
}
|
|
8703
|
+
this.viewName = 'processretroremissonpage';
|
|
9933
8704
|
};
|
|
9934
8705
|
/**
|
|
9935
8706
|
* @return {?}
|
|
@@ -10011,7 +8782,6 @@
|
|
|
10011
8782
|
function (refundListReason) {
|
|
10012
8783
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
10013
8784
|
this.refundlist.reason = refundListReason.reason;
|
|
10014
|
-
this.refundlist.code = refundListReason.code;
|
|
10015
8785
|
this.refundCode = refundListReason.code;
|
|
10016
8786
|
}
|
|
10017
8787
|
else {
|
|
@@ -10042,37 +8812,18 @@
|
|
|
10042
8812
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
10043
8813
|
};
|
|
10044
8814
|
/**
|
|
10045
|
-
* @param {?} fees
|
|
10046
8815
|
* @return {?}
|
|
10047
8816
|
*/
|
|
10048
|
-
RefundStatusComponent.prototype.
|
|
10049
|
-
* @param {?} fees
|
|
10050
|
-
* @return {?}
|
|
10051
|
-
*/
|
|
10052
|
-
function (fees) {
|
|
10053
|
-
this.fees = fees;
|
|
10054
|
-
this.refundFees = this.fees.map(( /**
|
|
10055
|
-
* @param {?} obj
|
|
10056
|
-
* @return {?}
|
|
10057
|
-
*/function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10058
|
-
};
|
|
10059
|
-
/**
|
|
10060
|
-
* @return {?}
|
|
10061
|
-
*/
|
|
10062
|
-
RefundStatusComponent.prototype.gotoReviewRefundConfirmationPage = /**
|
|
8817
|
+
RefundStatusComponent.prototype.gotoReviewRefundConfirmationPage = /**
|
|
10063
8818
|
* @return {?}
|
|
10064
8819
|
*/
|
|
10065
8820
|
function () {
|
|
10066
8821
|
var _this = this;
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
// }
|
|
10070
|
-
if (this.refundFees === undefined) {
|
|
10071
|
-
this.refundFees = this.refundlist['refund_fees'];
|
|
8822
|
+
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8823
|
+
this.refundCode = '';
|
|
10072
8824
|
}
|
|
10073
|
-
this.refundCode = this.refundlist.code;
|
|
10074
8825
|
/** @type {?} */
|
|
10075
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount
|
|
8826
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10076
8827
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe(( /**
|
|
10077
8828
|
* @param {?} response
|
|
10078
8829
|
* @return {?}
|
|
@@ -10089,140 +8840,6 @@
|
|
|
10089
8840
|
_this.errorMessage = error.replace(/"/g, "");
|
|
10090
8841
|
}));
|
|
10091
8842
|
};
|
|
10092
|
-
/**
|
|
10093
|
-
* @param {?} note
|
|
10094
|
-
* @return {?}
|
|
10095
|
-
*/
|
|
10096
|
-
RefundStatusComponent.prototype.gotoEditAddressDetails = /**
|
|
10097
|
-
* @param {?} note
|
|
10098
|
-
* @return {?}
|
|
10099
|
-
*/
|
|
10100
|
-
function (note) {
|
|
10101
|
-
this.notification = note;
|
|
10102
|
-
this.isEditDetailsClicked = true;
|
|
10103
|
-
this.viewName = 'refundEditView';
|
|
10104
|
-
};
|
|
10105
|
-
/**
|
|
10106
|
-
* @param {?} obj
|
|
10107
|
-
* @return {?}
|
|
10108
|
-
*/
|
|
10109
|
-
RefundStatusComponent.prototype.getContactDetails = /**
|
|
10110
|
-
* @param {?} obj
|
|
10111
|
-
* @return {?}
|
|
10112
|
-
*/
|
|
10113
|
-
function (obj) {
|
|
10114
|
-
this.addressDetails = obj;
|
|
10115
|
-
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
10116
|
-
};
|
|
10117
|
-
/**
|
|
10118
|
-
* @param {?} obj
|
|
10119
|
-
* @return {?}
|
|
10120
|
-
*/
|
|
10121
|
-
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10122
|
-
* @param {?} obj
|
|
10123
|
-
* @return {?}
|
|
10124
|
-
*/
|
|
10125
|
-
function (obj) {
|
|
10126
|
-
this.refundlist.contact_details = obj;
|
|
10127
|
-
this.isEditDetailsClicked = false;
|
|
10128
|
-
this.isRefundBtnDisabled = false;
|
|
10129
|
-
this.viewName = 'reviewandsubmitview';
|
|
10130
|
-
};
|
|
10131
|
-
/**
|
|
10132
|
-
* @param {?=} note
|
|
10133
|
-
* @return {?}
|
|
10134
|
-
*/
|
|
10135
|
-
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10136
|
-
* @param {?=} note
|
|
10137
|
-
* @return {?}
|
|
10138
|
-
*/
|
|
10139
|
-
function (note) {
|
|
10140
|
-
if (note) {
|
|
10141
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10142
|
-
}
|
|
10143
|
-
this.isEditDetailsClicked = true;
|
|
10144
|
-
this.viewName = 'refundEditView';
|
|
10145
|
-
};
|
|
10146
|
-
/**
|
|
10147
|
-
* @return {?}
|
|
10148
|
-
*/
|
|
10149
|
-
RefundStatusComponent.prototype.submitEditDetail = /**
|
|
10150
|
-
* @return {?}
|
|
10151
|
-
*/
|
|
10152
|
-
function () {
|
|
10153
|
-
var _this = this;
|
|
10154
|
-
this.isResendOperationSuccess = false;
|
|
10155
|
-
/** @type {?} */
|
|
10156
|
-
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10157
|
-
{
|
|
10158
|
-
address_line: this.addressDetails.address_line,
|
|
10159
|
-
city: this.addressDetails.city,
|
|
10160
|
-
county: this.addressDetails.county,
|
|
10161
|
-
country: this.addressDetails.country,
|
|
10162
|
-
postal_code: this.addressDetails.postal_code,
|
|
10163
|
-
};
|
|
10164
|
-
/** @type {?} */
|
|
10165
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10166
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe(( /**
|
|
10167
|
-
* @param {?} response
|
|
10168
|
-
* @return {?}
|
|
10169
|
-
*/function (response) {
|
|
10170
|
-
_this.isResendOperationSuccess = response;
|
|
10171
|
-
}), ( /**
|
|
10172
|
-
* @param {?} error
|
|
10173
|
-
* @return {?}
|
|
10174
|
-
*/function (error) {
|
|
10175
|
-
_this.isResendOperationSuccess = false;
|
|
10176
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10177
|
-
}));
|
|
10178
|
-
};
|
|
10179
|
-
/**
|
|
10180
|
-
* @param {?} notification
|
|
10181
|
-
* @return {?}
|
|
10182
|
-
*/
|
|
10183
|
-
RefundStatusComponent.prototype.putResend = /**
|
|
10184
|
-
* @param {?} notification
|
|
10185
|
-
* @return {?}
|
|
10186
|
-
*/
|
|
10187
|
-
function (notification) {
|
|
10188
|
-
var _this = this;
|
|
10189
|
-
this.isResendOperationSuccess = false;
|
|
10190
|
-
/** @type {?} */
|
|
10191
|
-
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10192
|
-
{
|
|
10193
|
-
address_line: notification.contact_details.address_line,
|
|
10194
|
-
city: notification.contact_details.city,
|
|
10195
|
-
county: notification.contact_details.county,
|
|
10196
|
-
country: notification.contact_details.country,
|
|
10197
|
-
postal_code: notification.contact_details.postal_code,
|
|
10198
|
-
};
|
|
10199
|
-
/** @type {?} */
|
|
10200
|
-
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10201
|
-
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe(( /**
|
|
10202
|
-
* @param {?} response
|
|
10203
|
-
* @return {?}
|
|
10204
|
-
*/function (response) {
|
|
10205
|
-
_this.isResendOperationSuccess = response;
|
|
10206
|
-
}), ( /**
|
|
10207
|
-
* @param {?} error
|
|
10208
|
-
* @return {?}
|
|
10209
|
-
*/function (error) {
|
|
10210
|
-
_this.isResendOperationSuccess = false;
|
|
10211
|
-
_this.errorMessage = error.replace(/"/g, "");
|
|
10212
|
-
}));
|
|
10213
|
-
};
|
|
10214
|
-
/**
|
|
10215
|
-
* @param {?} Event
|
|
10216
|
-
* @return {?}
|
|
10217
|
-
*/
|
|
10218
|
-
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10219
|
-
* @param {?} Event
|
|
10220
|
-
* @return {?}
|
|
10221
|
-
*/
|
|
10222
|
-
function (Event) {
|
|
10223
|
-
event.preventDefault();
|
|
10224
|
-
this.viewName = 'refundstatuslist';
|
|
10225
|
-
};
|
|
10226
8843
|
/**
|
|
10227
8844
|
* @param {?} refundReference
|
|
10228
8845
|
* @param {?} refundList
|
|
@@ -10236,14 +8853,13 @@
|
|
|
10236
8853
|
function (refundReference, refundList) {
|
|
10237
8854
|
this.paymentLibComponent.refundlistsource = refundList;
|
|
10238
8855
|
this.paymentLibComponent.refundReference = refundReference;
|
|
10239
|
-
this.paymentLibComponent.isFromPayBubble = true;
|
|
10240
8856
|
this.paymentLibComponent.viewName = 'process-refund';
|
|
10241
8857
|
};
|
|
10242
8858
|
RefundStatusComponent.decorators = [
|
|
10243
8859
|
{ type: i0.Component, args: [{
|
|
10244
8860
|
selector: 'ccpay-refund-status',
|
|
10245
|
-
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n\n <!-- Notification sent details -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Notifications sent</h2>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Sent to</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Sent via</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Actions</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"notificationList\">\n <tr class=\"govuk-table__row\" *ngFor=\"let notification of notificationList; let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{notification.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderParty}}</td>\n <td class=\"govuk-table__cell whitespace-inherit col-40\">\n <div *ngIf=\"notification?.notification_type === 'EMAIL'\">\n <strong>Email</strong><br>\n {{notification?.contact_details?.email}}\n </div>\n <div *ngIf=\"notification?.notification_type === 'LETTER'\">\n <strong>Post</strong><br>\n {{notification?.contact_details?.address_line}} {{notification?.contact_details?.city}} {{notification?.contact_details?.county}} {{notification?.contact_details?.country}} {{notification?.contact_details?.postal_code}}\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i === 0\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a> | <a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i > 0\"> </td>\n\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"!notificationList\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\" colspan=\"4\">No record found ... </td>\n </tr>\n </tbody>\n </table> \n </div>\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div *ngIf=\"refundButtonState==='Update required'\" >\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Change refund details</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for return</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage(refundlist?.reason)\" *ngIf=\"refundlist?.reason !== 'Retrospective remission' && refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount ? changedAmount : refundlist?.amount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n <a class=\"govuk-link\" href=\"Javascript:void(0)\" *ngIf=\"refundlist?.contact_details !=null\" class=\"govuk-link right\" (click)=\"gotoEditDetailsPage(refundlist?.contact_details)\">\n Change\n </a>\n </td>\n </tr> \n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefundpage1' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromRefundStatusPage] = \"true\"\n [changeRefundReason]= \"changeRefundReason\" [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\" [refundPaymentReference]= \"refundlist?.payment_reference\" ></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromServiceRequestPage] = \"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" [isFromRefundStatusPage]=\"true\" (refundListAmount)=\"getRefundAmount($event)\" (refundFees)=\"getRefundFees($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isResendOperationSuccess\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Notification sent\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{ refundlist?.refund_reference}} </strong></p>\n </div>\n\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewName === 'refundEditView' && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Edit contact details</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span class=\"govuk-hint font-size-19px\">\n Refund reference: {{ refundlist?.refund_reference}}\n </span>\n <ccpay-contact-details\n [isEditOperationInRefundList] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetailsInFefundsList)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoCasetransationPageCancelBtnClicked($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewName === 'revieweditdetailsconfirmationpage' && !isResendOperationSuccess && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSCHECKANDANSWERPAGE'> \n <h1 class=\"govuk-heading-l\">Check your answers</h1>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Refund reference\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ refundlist?.refund_reference}}\n </dd>\n <span class=\"govuk-summary-list__actions\"></span> \n </div>\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Send via\n <br/>\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage(addressDetails)\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage(addressDetails)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"submitEditDetail()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Send notification\n </button>\n </div>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n",
|
|
10246
|
-
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-
|
|
8861
|
+
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview'\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview'\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage'\">\n <div class=\"govuk-grid-row pagesize\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n",
|
|
8862
|
+
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}"]
|
|
10247
8863
|
}] }
|
|
10248
8864
|
];
|
|
10249
8865
|
/** @nocollapse */
|
|
@@ -10251,10 +8867,10 @@
|
|
|
10251
8867
|
return [
|
|
10252
8868
|
{ type: forms.FormBuilder },
|
|
10253
8869
|
{ type: RefundsService },
|
|
10254
|
-
{ type: NotificationService },
|
|
10255
8870
|
{ type: PaymentLibComponent },
|
|
10256
|
-
{ type:
|
|
10257
|
-
{ type:
|
|
8871
|
+
{ type: PaymentViewService },
|
|
8872
|
+
{ type: router.Router },
|
|
8873
|
+
{ type: OrderslistService }
|
|
10258
8874
|
];
|
|
10259
8875
|
};
|
|
10260
8876
|
RefundStatusComponent.propDecorators = {
|
|
@@ -10263,7 +8879,7 @@
|
|
|
10263
8879
|
isNewPcipalOff: [{ type: i0.Input }],
|
|
10264
8880
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
10265
8881
|
isTurnOff: [{ type: i0.Input }],
|
|
10266
|
-
|
|
8882
|
+
isEliginbleToAccess: [{ type: i0.Input }]
|
|
10267
8883
|
};
|
|
10268
8884
|
return RefundStatusComponent;
|
|
10269
8885
|
}());
|
|
@@ -10273,11 +8889,11 @@
|
|
|
10273
8889
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10274
8890
|
*/
|
|
10275
8891
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
10276
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1,
|
|
8892
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router$$1) {
|
|
8893
|
+
var _this = this;
|
|
10277
8894
|
this.paymentLibComponent = paymentLibComponent;
|
|
10278
8895
|
this.paymentViewService = paymentViewService;
|
|
10279
8896
|
this.OrderslistService = OrderslistService$$1;
|
|
10280
|
-
this.cd = cd;
|
|
10281
8897
|
this.router = router$$1;
|
|
10282
8898
|
this.goToServiceRquestComponent = new i0.EventEmitter();
|
|
10283
8899
|
this.paymentGroups = [];
|
|
@@ -10285,6 +8901,7 @@
|
|
|
10285
8901
|
this.nonPayments = [];
|
|
10286
8902
|
this.allPayments = [];
|
|
10287
8903
|
this.remissions = [];
|
|
8904
|
+
this.fees = [];
|
|
10288
8905
|
this.isRefundRemission = true;
|
|
10289
8906
|
this.isAddFeeBtnEnabled = true;
|
|
10290
8907
|
this.isExceptionRecord = false;
|
|
@@ -10304,7 +8921,27 @@
|
|
|
10304
8921
|
this.isAddRemissionBtnEnabled = false;
|
|
10305
8922
|
this.isRefundRemissionBtnEnable = false;
|
|
10306
8923
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
10307
|
-
this.
|
|
8924
|
+
this.check4AllowedRoles2AccessRefund = ( /**
|
|
8925
|
+
* @return {?}
|
|
8926
|
+
*/function () {
|
|
8927
|
+
return _this.allowedRolesToAccessRefund.some(( /**
|
|
8928
|
+
* @param {?} role
|
|
8929
|
+
* @return {?}
|
|
8930
|
+
*/function (role) {
|
|
8931
|
+
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
8932
|
+
}));
|
|
8933
|
+
});
|
|
8934
|
+
this.allowFurtherAccessAfter4Days = ( /**
|
|
8935
|
+
* @param {?} payment
|
|
8936
|
+
* @return {?}
|
|
8937
|
+
*/function (payment) {
|
|
8938
|
+
if (payment !== null && payment !== undefined) {
|
|
8939
|
+
/** @type {?} */
|
|
8940
|
+
var tmp4DayAgo = new Date();
|
|
8941
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
8942
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
8943
|
+
}
|
|
8944
|
+
});
|
|
10308
8945
|
}
|
|
10309
8946
|
/**
|
|
10310
8947
|
* @return {?}
|
|
@@ -10314,8 +8951,6 @@
|
|
|
10314
8951
|
*/
|
|
10315
8952
|
function () {
|
|
10316
8953
|
var _this = this;
|
|
10317
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10318
|
-
this.isServiceRequest = 'false';
|
|
10319
8954
|
if (this.viewStatus === undefined) {
|
|
10320
8955
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
10321
8956
|
}
|
|
@@ -10355,9 +8990,9 @@
|
|
|
10355
8990
|
*/function (data) { return _this.orderTotalPayments = data; }));
|
|
10356
8991
|
}
|
|
10357
8992
|
}
|
|
10358
|
-
if (this.
|
|
10359
|
-
|
|
10360
|
-
}
|
|
8993
|
+
// if (this.takePayment) {
|
|
8994
|
+
// this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
|
|
8995
|
+
// }
|
|
10361
8996
|
};
|
|
10362
8997
|
/**
|
|
10363
8998
|
* @return {?}
|
|
@@ -10386,7 +9021,7 @@
|
|
|
10386
9021
|
if (this.takePayment) {
|
|
10387
9022
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
10388
9023
|
}
|
|
10389
|
-
|
|
9024
|
+
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10390
9025
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
10391
9026
|
if (this.isServiceRequest !== 'false') {
|
|
10392
9027
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -10413,6 +9048,79 @@
|
|
|
10413
9048
|
this.router.onSameUrlNavigation = 'reload';
|
|
10414
9049
|
this.router.navigateByUrl(url);
|
|
10415
9050
|
};
|
|
9051
|
+
/**
|
|
9052
|
+
* @param {?} feeCode
|
|
9053
|
+
* @return {?}
|
|
9054
|
+
*/
|
|
9055
|
+
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9056
|
+
* @param {?} feeCode
|
|
9057
|
+
* @return {?}
|
|
9058
|
+
*/
|
|
9059
|
+
function (feeCode) {
|
|
9060
|
+
var e_1, _a;
|
|
9061
|
+
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9062
|
+
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9063
|
+
try {
|
|
9064
|
+
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9065
|
+
var remission = _c.value;
|
|
9066
|
+
if (remission.fee_code === feeCode) {
|
|
9067
|
+
return false;
|
|
9068
|
+
}
|
|
9069
|
+
}
|
|
9070
|
+
}
|
|
9071
|
+
catch (e_1_1) {
|
|
9072
|
+
e_1 = { error: e_1_1 };
|
|
9073
|
+
}
|
|
9074
|
+
finally {
|
|
9075
|
+
try {
|
|
9076
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
9077
|
+
_a.call(_b);
|
|
9078
|
+
}
|
|
9079
|
+
finally {
|
|
9080
|
+
if (e_1)
|
|
9081
|
+
throw e_1.error;
|
|
9082
|
+
}
|
|
9083
|
+
}
|
|
9084
|
+
}
|
|
9085
|
+
return true;
|
|
9086
|
+
}
|
|
9087
|
+
else {
|
|
9088
|
+
return false;
|
|
9089
|
+
}
|
|
9090
|
+
};
|
|
9091
|
+
/**
|
|
9092
|
+
* @return {?}
|
|
9093
|
+
*/
|
|
9094
|
+
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9095
|
+
* @return {?}
|
|
9096
|
+
*/
|
|
9097
|
+
function () {
|
|
9098
|
+
var _this = this;
|
|
9099
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9100
|
+
this.orderDetail.forEach(( /**
|
|
9101
|
+
* @param {?} orderDetail
|
|
9102
|
+
* @return {?}
|
|
9103
|
+
*/function (orderDetail) {
|
|
9104
|
+
if (orderDetail.payments) {
|
|
9105
|
+
orderDetail.payments.forEach(( /**
|
|
9106
|
+
* @param {?} payment
|
|
9107
|
+
* @return {?}
|
|
9108
|
+
*/function (payment) {
|
|
9109
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9110
|
+
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9111
|
+
_this.isPBA = true;
|
|
9112
|
+
}
|
|
9113
|
+
}));
|
|
9114
|
+
}
|
|
9115
|
+
}));
|
|
9116
|
+
if (this.isPBA) {
|
|
9117
|
+
return true;
|
|
9118
|
+
}
|
|
9119
|
+
else {
|
|
9120
|
+
return false;
|
|
9121
|
+
}
|
|
9122
|
+
}
|
|
9123
|
+
};
|
|
10416
9124
|
/**
|
|
10417
9125
|
* @param {?} fee
|
|
10418
9126
|
* @return {?}
|
|
@@ -10423,7 +9131,7 @@
|
|
|
10423
9131
|
*/
|
|
10424
9132
|
function (fee) {
|
|
10425
9133
|
var _this = this;
|
|
10426
|
-
if (this.
|
|
9134
|
+
if (this.chkForAddRemission(fee.code)) {
|
|
10427
9135
|
this.feeId = fee;
|
|
10428
9136
|
this.viewStatus = 'addremission';
|
|
10429
9137
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -10437,8 +9145,8 @@
|
|
|
10437
9145
|
* @return {?}
|
|
10438
9146
|
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10439
9147
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10440
|
-
//
|
|
10441
|
-
//
|
|
9148
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9149
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10442
9150
|
}), ( /**
|
|
10443
9151
|
* @param {?} error
|
|
10444
9152
|
* @return {?}
|
|
@@ -10459,8 +9167,9 @@
|
|
|
10459
9167
|
*/
|
|
10460
9168
|
function (payment, remission, fees) {
|
|
10461
9169
|
var _this = this;
|
|
10462
|
-
this.
|
|
10463
|
-
this.
|
|
9170
|
+
this.viewStatus = 'addrefundforremission';
|
|
9171
|
+
this.payment = payment;
|
|
9172
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
10464
9173
|
* @param {?} paymentGroup
|
|
10465
9174
|
* @return {?}
|
|
10466
9175
|
*/function (paymentGroup) {
|
|
@@ -10468,14 +9177,13 @@
|
|
|
10468
9177
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
10469
9178
|
* @param {?} paymentGroupObj
|
|
10470
9179
|
* @return {?}
|
|
10471
|
-
*/function (paymentGroupObj) { return paymentGroupObj.
|
|
9180
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
10472
9181
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10473
9182
|
_this.remissions = remission;
|
|
10474
9183
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
10475
9184
|
* @param {?} data
|
|
10476
9185
|
* @return {?}
|
|
10477
9186
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10478
|
-
_this.viewStatus = 'addrefundforremission';
|
|
10479
9187
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10480
9188
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
10481
9189
|
}), ( /**
|
|
@@ -10520,40 +9228,70 @@
|
|
|
10520
9228
|
* @param {?} payment
|
|
10521
9229
|
* @return {?}
|
|
10522
9230
|
*/
|
|
10523
|
-
ServiceRequestComponent.prototype.
|
|
9231
|
+
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
10524
9232
|
* @param {?} payment
|
|
10525
9233
|
* @return {?}
|
|
10526
9234
|
*/
|
|
10527
9235
|
function (payment) {
|
|
9236
|
+
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9237
|
+
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9238
|
+
this.isIssueRefunfBtnEnable = true;
|
|
9239
|
+
}
|
|
9240
|
+
if (this.isIssueRefunfBtnEnable) {
|
|
9241
|
+
return true;
|
|
9242
|
+
}
|
|
9243
|
+
else {
|
|
9244
|
+
return false;
|
|
9245
|
+
}
|
|
9246
|
+
};
|
|
9247
|
+
/**
|
|
9248
|
+
* @return {?}
|
|
9249
|
+
*/
|
|
9250
|
+
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9251
|
+
* @return {?}
|
|
9252
|
+
*/
|
|
9253
|
+
function () {
|
|
10528
9254
|
var _this = this;
|
|
10529
|
-
if (
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
9255
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9256
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9257
|
+
this.orderDetail.forEach(( /**
|
|
9258
|
+
* @param {?} orderDetail
|
|
9259
|
+
* @return {?}
|
|
9260
|
+
*/function (orderDetail) {
|
|
9261
|
+
if (orderDetail.payments) {
|
|
9262
|
+
orderDetail.payments.forEach(( /**
|
|
9263
|
+
* @param {?} payment
|
|
10537
9264
|
* @return {?}
|
|
10538
|
-
*/function (
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
9265
|
+
*/function (payment) {
|
|
9266
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9267
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
9268
|
+
}
|
|
9269
|
+
}));
|
|
9270
|
+
}
|
|
9271
|
+
}));
|
|
9272
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
9273
|
+
return true;
|
|
9274
|
+
}
|
|
9275
|
+
else {
|
|
9276
|
+
return false;
|
|
9277
|
+
}
|
|
9278
|
+
}
|
|
9279
|
+
};
|
|
9280
|
+
/**
|
|
9281
|
+
* @param {?} payment
|
|
9282
|
+
* @return {?}
|
|
9283
|
+
*/
|
|
9284
|
+
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9285
|
+
* @param {?} payment
|
|
9286
|
+
* @return {?}
|
|
9287
|
+
*/
|
|
9288
|
+
function (payment) {
|
|
9289
|
+
if (payment !== null && payment !== undefined) {
|
|
9290
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
9291
|
+
this.viewStatus = 'issuerefund';
|
|
9292
|
+
this.payment = payment;
|
|
9293
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9294
|
+
this.isRefundRemission = true;
|
|
10557
9295
|
}
|
|
10558
9296
|
}
|
|
10559
9297
|
};
|
|
@@ -10595,54 +9333,6 @@
|
|
|
10595
9333
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
10596
9334
|
this.viewStatus = 'payment-view';
|
|
10597
9335
|
};
|
|
10598
|
-
/**
|
|
10599
|
-
* @param {?} payment
|
|
10600
|
-
* @return {?}
|
|
10601
|
-
*/
|
|
10602
|
-
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10603
|
-
* @param {?} payment
|
|
10604
|
-
* @return {?}
|
|
10605
|
-
*/
|
|
10606
|
-
function (payment) {
|
|
10607
|
-
if (payment !== null && payment !== undefined) {
|
|
10608
|
-
return payment.issue_refund && payment.refund_enable;
|
|
10609
|
-
}
|
|
10610
|
-
else {
|
|
10611
|
-
return false;
|
|
10612
|
-
}
|
|
10613
|
-
};
|
|
10614
|
-
/**
|
|
10615
|
-
* @param {?} remission
|
|
10616
|
-
* @return {?}
|
|
10617
|
-
*/
|
|
10618
|
-
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10619
|
-
* @param {?} remission
|
|
10620
|
-
* @return {?}
|
|
10621
|
-
*/
|
|
10622
|
-
function (remission) {
|
|
10623
|
-
if (remission !== null && remission !== undefined) {
|
|
10624
|
-
return remission.add_refund;
|
|
10625
|
-
}
|
|
10626
|
-
else {
|
|
10627
|
-
return false;
|
|
10628
|
-
}
|
|
10629
|
-
};
|
|
10630
|
-
/**
|
|
10631
|
-
* @param {?} fee
|
|
10632
|
-
* @return {?}
|
|
10633
|
-
*/
|
|
10634
|
-
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10635
|
-
* @param {?} fee
|
|
10636
|
-
* @return {?}
|
|
10637
|
-
*/
|
|
10638
|
-
function (fee) {
|
|
10639
|
-
if (fee !== null && fee !== undefined) {
|
|
10640
|
-
return fee.add_remission && fee.remission_enable;
|
|
10641
|
-
}
|
|
10642
|
-
else {
|
|
10643
|
-
return false;
|
|
10644
|
-
}
|
|
10645
|
-
};
|
|
10646
9336
|
/**
|
|
10647
9337
|
* @return {?}
|
|
10648
9338
|
*/
|
|
@@ -10659,158 +9349,11 @@
|
|
|
10659
9349
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
10660
9350
|
this.OrderslistService.setorderFeesTotal(null);
|
|
10661
9351
|
};
|
|
10662
|
-
/**
|
|
10663
|
-
* @param {?} paymentType
|
|
10664
|
-
* @return {?}
|
|
10665
|
-
*/
|
|
10666
|
-
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
10667
|
-
* @param {?} paymentType
|
|
10668
|
-
* @return {?}
|
|
10669
|
-
*/
|
|
10670
|
-
function (paymentType) {
|
|
10671
|
-
this.paymentType = paymentType;
|
|
10672
|
-
this.isContinueBtnDisabled = false;
|
|
10673
|
-
};
|
|
10674
|
-
/**
|
|
10675
|
-
* @return {?}
|
|
10676
|
-
*/
|
|
10677
|
-
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
10678
|
-
* @return {?}
|
|
10679
|
-
*/
|
|
10680
|
-
function () {
|
|
10681
|
-
this.viewCompStatus = '';
|
|
10682
|
-
this.viewStatus = 'paymentview';
|
|
10683
|
-
};
|
|
10684
|
-
/**
|
|
10685
|
-
* @param {?} paymentgrp
|
|
10686
|
-
* @return {?}
|
|
10687
|
-
*/
|
|
10688
|
-
ServiceRequestComponent.prototype.continuePayment = /**
|
|
10689
|
-
* @param {?} paymentgrp
|
|
10690
|
-
* @return {?}
|
|
10691
|
-
*/
|
|
10692
|
-
function (paymentgrp) {
|
|
10693
|
-
if (this.paymentType === 'op') {
|
|
10694
|
-
this.isFullyRefund = false;
|
|
10695
|
-
this.viewStatus = '';
|
|
10696
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10697
|
-
}
|
|
10698
|
-
else if (this.paymentType === 'fp') {
|
|
10699
|
-
this.isFullyRefund = true;
|
|
10700
|
-
this.paymentGroupList = paymentgrp;
|
|
10701
|
-
this.viewStatus = 'issuerefund';
|
|
10702
|
-
this.viewCompStatus = "";
|
|
10703
|
-
this.isRefundRemission = true;
|
|
10704
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
10705
|
-
this.isFromPaymentDetailPage = true;
|
|
10706
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
10707
|
-
}
|
|
10708
|
-
};
|
|
10709
|
-
/**
|
|
10710
|
-
* @param {?} obj
|
|
10711
|
-
* @return {?}
|
|
10712
|
-
*/
|
|
10713
|
-
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
10714
|
-
* @param {?} obj
|
|
10715
|
-
* @return {?}
|
|
10716
|
-
*/
|
|
10717
|
-
function (obj) {
|
|
10718
|
-
this.contactDetailsObj = obj;
|
|
10719
|
-
this.viewStatus = '';
|
|
10720
|
-
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10721
|
-
};
|
|
10722
|
-
/**
|
|
10723
|
-
* @param {?} event
|
|
10724
|
-
* @return {?}
|
|
10725
|
-
*/
|
|
10726
|
-
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
10727
|
-
* @param {?} event
|
|
10728
|
-
* @return {?}
|
|
10729
|
-
*/
|
|
10730
|
-
function (event) {
|
|
10731
|
-
event.preventDefault();
|
|
10732
|
-
this.viewStatus = '';
|
|
10733
|
-
this.viewCompStatus = 'overpayment';
|
|
10734
|
-
};
|
|
10735
|
-
/**
|
|
10736
|
-
* @param {?=} note
|
|
10737
|
-
* @return {?}
|
|
10738
|
-
*/
|
|
10739
|
-
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
10740
|
-
* @param {?=} note
|
|
10741
|
-
* @return {?}
|
|
10742
|
-
*/
|
|
10743
|
-
function (note) {
|
|
10744
|
-
if (note) {
|
|
10745
|
-
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10746
|
-
}
|
|
10747
|
-
this.errorMessage = '';
|
|
10748
|
-
this.viewStatus = '';
|
|
10749
|
-
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10750
|
-
};
|
|
10751
|
-
/**
|
|
10752
|
-
* @return {?}
|
|
10753
|
-
*/
|
|
10754
|
-
ServiceRequestComponent.prototype.processRefund = /**
|
|
10755
|
-
* @return {?}
|
|
10756
|
-
*/
|
|
10757
|
-
function () {
|
|
10758
|
-
var _this = this;
|
|
10759
|
-
this.isConfirmationBtnDisabled = true;
|
|
10760
|
-
this.errorMessage = '';
|
|
10761
|
-
/** @type {?} */
|
|
10762
|
-
var obj = this.paymentGroupList.fees[0];
|
|
10763
|
-
this.fees = [{ id: obj.id,
|
|
10764
|
-
code: obj.code,
|
|
10765
|
-
version: obj.version,
|
|
10766
|
-
apportion_amount: obj.apportion_amount,
|
|
10767
|
-
calculated_amount: obj.calculated_amount,
|
|
10768
|
-
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
10769
|
-
volume: obj.volume,
|
|
10770
|
-
refund_amount: this.getOverPaymentValue() }];
|
|
10771
|
-
/** @type {?} */
|
|
10772
|
-
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
10773
|
-
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
10774
|
-
* @param {?} response
|
|
10775
|
-
* @return {?}
|
|
10776
|
-
*/function (response) {
|
|
10777
|
-
if (JSON.parse(response)) {
|
|
10778
|
-
_this.viewCompStatus = '';
|
|
10779
|
-
_this.viewStatus = 'refundconfirmationpage';
|
|
10780
|
-
_this.refundReference = JSON.parse(response).refund_reference;
|
|
10781
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
10782
|
-
}
|
|
10783
|
-
}), ( /**
|
|
10784
|
-
* @param {?} error
|
|
10785
|
-
* @return {?}
|
|
10786
|
-
*/function (error) {
|
|
10787
|
-
_this.errorMessage = error;
|
|
10788
|
-
_this.isConfirmationBtnDisabled = false;
|
|
10789
|
-
_this.cd.detectChanges();
|
|
10790
|
-
}));
|
|
10791
|
-
};
|
|
10792
|
-
/**
|
|
10793
|
-
* @return {?}
|
|
10794
|
-
*/
|
|
10795
|
-
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
10796
|
-
* @return {?}
|
|
10797
|
-
*/
|
|
10798
|
-
function () {
|
|
10799
|
-
/** @type {?} */
|
|
10800
|
-
var feesOverPayment = 0;
|
|
10801
|
-
this.paymentGroupList.fees.forEach(( /**
|
|
10802
|
-
* @param {?} fee
|
|
10803
|
-
* @return {?}
|
|
10804
|
-
*/function (fee) {
|
|
10805
|
-
feesOverPayment += fee.over_payment;
|
|
10806
|
-
}));
|
|
10807
|
-
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
10808
|
-
};
|
|
10809
9352
|
ServiceRequestComponent.decorators = [
|
|
10810
9353
|
{ type: i0.Component, args: [{
|
|
10811
9354
|
selector: 'ccpay-service-request',
|
|
10812
|
-
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkIsAddRemissionBtnEnable(fee)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsAddRefundBtnEnable(remission)\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkIsIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[isServiceRequest] = \"isServiceRequest\"\n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n[isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isFullyRefund] = \"isFullyRefund\"\n[fees] = \"paymentFees\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isFromRefundListPage] = \"false\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"isServiceRequest\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>\n\n<div class=\"over-payment\">\n <ng-container *ngIf=\"viewCompStatus === 'overpayment'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTPAGE'> \n <h1 class=\"heading-large\">Issue refund</h1>\n <h1 class=\"heading-medium\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h1>\n <span id=\"how-contacted-conditional-hint govuk-font19px\" class=\"form-hint\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <b>\n Select payment to refund\n </b>\n </legend>\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"over-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('op')\" value=\"op\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live\">\n Over payment \u00A3{{getOverPaymentValue() | number:'.2'}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"full-payment\" name=\"over-payment\" type=\"radio\" (click)=\"selectPymentOption('fp')\" value=\"fp\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"where-do-you-live-2\">\n Full payment \u00A3{{paymentGroupList?.payments[0]?.amount | number:'.2'}}\n </label>\n </div>\n </div>\n <button class=\"govuk-button govuk-button--secondary over-payment-alignment govuk-font19px\"\n (click)=\"goToPaymentViewComp()\"> Previous</button>\n <button \n (click)=\"continuePayment(paymentGroupList)\"\n [disabled]=\"isContinueBtnDisabled\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n class=\"govuk-button\"> Continue</button>\n </fieldset>\n </div>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overPaymentAddressCapture'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='OVERPAYMENTADDRESSCAPTUREPAGE'> \n <h1 class=\"govuk-heading-l\">Issue refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"govuk-hint govuk-font19px\">\n Payment reference: {{paymentGroupList?.payments[0]?.reference}}\n </span>\n <ccpay-contact-details \n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoPaymentSelectPage($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n </ng-container>\n \n <ng-container *ngIf=\"viewCompStatus === 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table govuk-table-mb\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\"> {{paymentGroupList.payments[0].reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList.payments[0].amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{paymentGroupList?.fees[0]?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{getOverPaymentValue() | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reason</td>\n <td class=\"govuk-table__cell\">Over payment</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}} {{contactDetailsObj?.city}} {{contactDetailsObj?.county}} {{contactDetailsObj?.country}} {{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoAddressPage(contactDetailsObj)\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <button type=\"submit\" class=\"button govuk-button--secondary over-payment-alignment govuk-font19px\" (click)=\"gotoAddressPage(contactDetailsObj)\">Previous</button>\n <button type=\"submit\"\n [ngClass]='isContinueBtnDisabled ? \"button button--disabled govuk-!-margin-right-1 govuk-font19px\" : \"button govuk-!-margin-right-1 govuk-font19px\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link govuk-font19px\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage' && viewCompStatus !== 'overpayment' && viewCompStatus !== 'overPaymentAddressCapture' && viewCompStatus !== 'overpaymentcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n </div>",
|
|
10813
|
-
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%}
|
|
9355
|
+
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>",
|
|
9356
|
+
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%}"]
|
|
10814
9357
|
}] }
|
|
10815
9358
|
];
|
|
10816
9359
|
/** @nocollapse */
|
|
@@ -10819,7 +9362,6 @@
|
|
|
10819
9362
|
{ type: PaymentLibComponent },
|
|
10820
9363
|
{ type: PaymentViewService },
|
|
10821
9364
|
{ type: OrderslistService },
|
|
10822
|
-
{ type: i0.ChangeDetectorRef },
|
|
10823
9365
|
{ type: router.Router }
|
|
10824
9366
|
];
|
|
10825
9367
|
};
|
|
@@ -10835,7 +9377,6 @@
|
|
|
10835
9377
|
orderFeesTotal: [{ type: i0.Input, args: ['orderFeesTotal',] }],
|
|
10836
9378
|
orderTotalPayments: [{ type: i0.Input, args: ['orderTotalPayments',] }],
|
|
10837
9379
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
10838
|
-
paymentGroupList: [{ type: i0.Input, args: ['paymentGroupList',] }],
|
|
10839
9380
|
takePayment: [{ type: i0.Input, args: ['takePayment',] }],
|
|
10840
9381
|
ccdCaseNumber: [{ type: i0.Input, args: ['ccdCaseNumber',] }],
|
|
10841
9382
|
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
@@ -11104,7 +9645,6 @@
|
|
|
11104
9645
|
PaymentListComponent,
|
|
11105
9646
|
PaymentViewComponent,
|
|
11106
9647
|
PbaPaymentComponent,
|
|
11107
|
-
ContactDetailsComponent,
|
|
11108
9648
|
ProcessRefundComponent,
|
|
11109
9649
|
RefundListComponent,
|
|
11110
9650
|
CardDetailsComponent,
|
|
@@ -11153,47 +9693,45 @@
|
|
|
11153
9693
|
exports.PaymentLibService = PaymentLibService;
|
|
11154
9694
|
exports.PaymentLibComponent = PaymentLibComponent;
|
|
11155
9695
|
exports.PaymentLibModule = PaymentLibModule;
|
|
11156
|
-
exports.ɵ
|
|
11157
|
-
exports.ɵ
|
|
11158
|
-
exports.ɵ
|
|
11159
|
-
exports.ɵ
|
|
11160
|
-
exports.ɵ
|
|
11161
|
-
exports.ɵ
|
|
11162
|
-
exports.ɵ
|
|
11163
|
-
exports.ɵt =
|
|
11164
|
-
exports.ɵ
|
|
11165
|
-
exports.ɵq = PageNotFoundComponent;
|
|
9696
|
+
exports.ɵbb = AddRemissionComponent;
|
|
9697
|
+
exports.ɵw = AllocatePaymentsComponent;
|
|
9698
|
+
exports.ɵm = CardDetailsComponent;
|
|
9699
|
+
exports.ɵz = CaseTransactionsComponent;
|
|
9700
|
+
exports.ɵbi = ErrorBannerComponent;
|
|
9701
|
+
exports.ɵba = FeeSummaryComponent;
|
|
9702
|
+
exports.ɵr = MarkUnidentifiedPaymentComponent;
|
|
9703
|
+
exports.ɵt = MarkUnsolicitedPaymentComponent;
|
|
9704
|
+
exports.ɵo = PageNotFoundComponent;
|
|
11166
9705
|
exports.ɵb = PaymentListComponent;
|
|
11167
9706
|
exports.ɵf = PaymentViewComponent;
|
|
11168
|
-
exports.ɵ
|
|
9707
|
+
exports.ɵy = PbaDetailsComponent;
|
|
11169
9708
|
exports.ɵi = PbaPaymentComponent;
|
|
11170
|
-
exports.ɵ
|
|
11171
|
-
exports.ɵ
|
|
11172
|
-
exports.ɵ
|
|
11173
|
-
exports.ɵ
|
|
11174
|
-
exports.ɵ
|
|
11175
|
-
exports.ɵ
|
|
11176
|
-
exports.ɵ
|
|
11177
|
-
exports.ɵ
|
|
11178
|
-
exports.ɵ
|
|
11179
|
-
exports.ɵ
|
|
11180
|
-
exports.ɵ
|
|
11181
|
-
exports.ɵ
|
|
11182
|
-
exports.ɵ
|
|
11183
|
-
exports.ɵ
|
|
11184
|
-
exports.ɵ
|
|
11185
|
-
exports.ɵ
|
|
11186
|
-
exports.ɵk = NotificationService;
|
|
9709
|
+
exports.ɵj = ProcessRefundComponent;
|
|
9710
|
+
exports.ɵv = ProcessedPaymentsComponent;
|
|
9711
|
+
exports.ɵl = RefundListComponent;
|
|
9712
|
+
exports.ɵbk = RefundStatusComponent;
|
|
9713
|
+
exports.ɵbg = ReportsComponent;
|
|
9714
|
+
exports.ɵbl = ServiceRequestComponent;
|
|
9715
|
+
exports.ɵp = StatusHistoryComponent;
|
|
9716
|
+
exports.ɵbj = TableComponent;
|
|
9717
|
+
exports.ɵu = UnprocessedPaymentsComponent;
|
|
9718
|
+
exports.ɵbd = CapitalizePipe;
|
|
9719
|
+
exports.ɵbc = CcdHyphensPipe;
|
|
9720
|
+
exports.ɵbe = keyValuePipe;
|
|
9721
|
+
exports.ɵbf = SanitizeHtmlPipe;
|
|
9722
|
+
exports.ɵs = BulkScaningPaymentService;
|
|
9723
|
+
exports.ɵn = CardDetailsService;
|
|
9724
|
+
exports.ɵx = CaseTransactionsService;
|
|
11187
9725
|
exports.ɵa = OrderslistService;
|
|
11188
9726
|
exports.ɵc = PaymentListService;
|
|
11189
9727
|
exports.ɵg = PaymentViewService;
|
|
11190
|
-
exports.ɵ
|
|
9728
|
+
exports.ɵk = RefundsService;
|
|
11191
9729
|
exports.ɵe = ErrorHandlerService;
|
|
11192
9730
|
exports.ɵh = WebComponentHttpClient;
|
|
11193
|
-
exports.ɵ
|
|
9731
|
+
exports.ɵbm = ConsoleLoggerService;
|
|
11194
9732
|
exports.ɵd = LoggerService;
|
|
11195
|
-
exports.ɵ
|
|
11196
|
-
exports.ɵ
|
|
9733
|
+
exports.ɵq = StatusHistoryService;
|
|
9734
|
+
exports.ɵbh = XlFileService;
|
|
11197
9735
|
|
|
11198
9736
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11199
9737
|
|