@hmcts/ccpay-web-component 5.0.4-beta02 → 5.0.4-beta03
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 +2103 -648
- 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 +33 -31
- package/esm2015/lib/components/add-remission/add-remission.component.js +697 -126
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +41 -20
- package/esm2015/lib/components/contact-details/contact-details.component.js +447 -0
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +17 -12
- package/esm2015/lib/components/payment-view/payment-view.component.js +188 -106
- package/esm2015/lib/components/process-refund/process-refund.component.js +49 -28
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +210 -31
- package/esm2015/lib/components/service-request/service-request.component.js +237 -146
- package/esm2015/lib/components/table/table.component.js +24 -9
- package/esm2015/lib/interfaces/IFee.js +13 -1
- package/esm2015/lib/interfaces/IPayment.js +7 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundFee.js +21 -0
- package/esm2015/lib/interfaces/IRefundList.js +7 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IRemission.js +7 -1
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +20 -2
- package/esm2015/lib/payment-lib.component.js +9 -2
- package/esm2015/lib/payment-lib.module.js +3 -1
- package/esm2015/lib/payment-lib.service.js +16 -1
- package/esm2015/lib/services/notification/notification.service.js +85 -0
- package/esm2015/lib/services/refunds/refunds.service.js +10 -1
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/hmcts-ccpay-web-component.js +33 -31
- package/esm5/lib/components/add-remission/add-remission.component.js +819 -131
- package/esm5/lib/components/case-transactions/case-transactions.component.js +41 -20
- package/esm5/lib/components/contact-details/contact-details.component.js +472 -0
- package/esm5/lib/components/fee-summary/fee-summary.component.js +17 -12
- package/esm5/lib/components/payment-view/payment-view.component.js +219 -124
- package/esm5/lib/components/process-refund/process-refund.component.js +52 -78
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +246 -29
- package/esm5/lib/components/service-request/service-request.component.js +278 -176
- package/esm5/lib/components/table/table.component.js +27 -9
- package/esm5/lib/interfaces/IFee.js +13 -1
- package/esm5/lib/interfaces/IPayment.js +7 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundFee.js +21 -0
- package/esm5/lib/interfaces/IRefundList.js +7 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IRemission.js +7 -1
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +16 -2
- package/esm5/lib/payment-lib.component.js +9 -2
- package/esm5/lib/payment-lib.module.js +3 -1
- package/esm5/lib/payment-lib.service.js +23 -1
- package/esm5/lib/services/notification/notification.service.js +89 -0
- package/esm5/lib/services/refunds/refunds.service.js +16 -1
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +1894 -564
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +2089 -593
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +32 -30
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +45 -3
- package/lib/components/case-transactions/case-transactions.component.d.ts +2 -1
- package/lib/components/contact-details/contact-details.component.d.ts +49 -0
- package/lib/components/payment-view/payment-view.component.d.ts +23 -6
- package/lib/components/process-refund/process-refund.component.d.ts +6 -1
- package/lib/components/refund-status/refund-status.component.d.ts +33 -6
- package/lib/components/service-request/service-request.component.d.ts +28 -9
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts +6 -0
- package/lib/interfaces/IPayment.d.ts +3 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundFee.d.ts +7 -0
- package/lib/interfaces/IRefundList.d.ts +4 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IRemission.d.ts +3 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +7 -1
- package/lib/payment-lib.component.d.ts +2 -0
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/notification/notification.service.d.ts +15 -0
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +5 -1
|
@@ -71,6 +71,26 @@
|
|
|
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
|
+
};
|
|
74
94
|
/**
|
|
75
95
|
* @param {?} cardPaymentReturnUrl
|
|
76
96
|
* @return {?}
|
|
@@ -521,6 +541,7 @@
|
|
|
521
541
|
this.cd = cd;
|
|
522
542
|
this.OrderslistService = OrderslistService$$1;
|
|
523
543
|
this.unProcessedPaymentServiceId = null;
|
|
544
|
+
this.isFromPayBubble = false;
|
|
524
545
|
this.unProcessedPayment = null;
|
|
525
546
|
this.orderFeesTotal = 0.00;
|
|
526
547
|
this.orderRemissionTotal = 0.00;
|
|
@@ -546,6 +567,7 @@
|
|
|
546
567
|
this.paymentLibService.setApiRootUrl(this.API_ROOT);
|
|
547
568
|
this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
|
|
548
569
|
this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
|
|
570
|
+
this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
|
|
549
571
|
this.paymentLibService.setCardPaymentReturnUrl(this.CARDPAYMENTRETURNURL);
|
|
550
572
|
if (this.LOGGEDINUSERROLES.length > 0) {
|
|
551
573
|
this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
|
|
@@ -576,7 +598,7 @@
|
|
|
576
598
|
PaymentLibComponent.decorators = [
|
|
577
599
|
{ type: i0.Component, args: [{
|
|
578
600
|
selector: 'ccpay-payment-lib',
|
|
579
|
-
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"></ccpay-payment-view>\n\n <ccpay-process-refund *ngIf=\"viewName === 'process-refund'\"\n [refundReference]=\"refundReference\"\n [refundlistsource]=\"refundlistsource\"\n ></ccpay-process-refund>\n <ccpay-pba-payment *ngIf=\"viewName === 'pba-payment'\"\n [pbaPayOrderRef]=\"pbaPayOrderRef\"\n ></ccpay-pba-payment>\n <ccpay-case-transactions [isTakePayment]=\"isTakePayment\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'case-transactions'\"></ccpay-case-transactions>\n <app-mark-unidentified-payment *ngIf=\"viewName === 'unidentifiedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unidentified-payment>\n <app-mark-unsolicited-payment *ngIf=\"viewName === 'unsolicitedPage'\"\n [caseType]=\"CASETYPE\"></app-mark-unsolicited-payment>\n <app-allocate-payments *ngIf=\"viewName === 'allocate-payments'\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n ></app-allocate-payments>\n <ccpay-fee-summary *ngIf=\"viewName === 'fee-summary'\"\n [ccdCaseNumber]=\"CCD_CASE_NUMBER\" \n [paymentGroupRef]=\"paymentGroupReference\"\n [isTurnOff]=\"ISTURNOFF\"\n [caseType]=\"CASETYPE\"\n [isOldPcipalOff]=\"ISOLDPCIPALOFF\"\n [isNewPcipalOff]=\"ISNEWPCIPALOFF\"\n ></ccpay-fee-summary>\n <ccpay-reports *ngIf=\"viewName === 'reports'\"></ccpay-reports>\n "
|
|
601
|
+
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\" [isFromServiceRequestPage]=\"isFromServiceRequestPage\" [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 "
|
|
580
602
|
}] }
|
|
581
603
|
];
|
|
582
604
|
/** @nocollapse */
|
|
@@ -591,6 +613,7 @@
|
|
|
591
613
|
API_ROOT: [{ type: i0.Input, args: ['API_ROOT',] }],
|
|
592
614
|
BULKSCAN_API_ROOT: [{ type: i0.Input, args: ['BULKSCAN_API_ROOT',] }],
|
|
593
615
|
REFUNDS_API_ROOT: [{ type: i0.Input, args: ['REFUNDS_API_ROOT',] }],
|
|
616
|
+
NOTIFICATION_API_ROOT: [{ type: i0.Input, args: ['NOTIFICATION_API_ROOT',] }],
|
|
594
617
|
CARDPAYMENTRETURNURL: [{ type: i0.Input, args: ['CARDPAYMENTRETURNURL',] }],
|
|
595
618
|
CCD_CASE_NUMBER: [{ type: i0.Input, args: ['CCD_CASE_NUMBER',] }],
|
|
596
619
|
EXC_REFERENCE: [{ type: i0.Input, args: ['EXC_REFERENCE',] }],
|
|
@@ -1383,13 +1406,28 @@
|
|
|
1383
1406
|
return PaymentViewService;
|
|
1384
1407
|
}());
|
|
1385
1408
|
|
|
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
|
+
|
|
1386
1425
|
/**
|
|
1387
1426
|
* @fileoverview added by tsickle
|
|
1388
1427
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1389
1428
|
*/
|
|
1390
1429
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1391
1430
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1392
|
-
var _this = this;
|
|
1393
1431
|
this.paymentViewService = paymentViewService;
|
|
1394
1432
|
this.paymentLibComponent = paymentLibComponent;
|
|
1395
1433
|
this.cd = cd;
|
|
@@ -1399,27 +1437,7 @@
|
|
|
1399
1437
|
this.isIssueRefunfBtnEnable = false;
|
|
1400
1438
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1401
1439
|
this.remissions = [];
|
|
1402
|
-
this.
|
|
1403
|
-
* @return {?}
|
|
1404
|
-
*/function () {
|
|
1405
|
-
return _this.allowedRolesToAccessRefund.some(( /**
|
|
1406
|
-
* @param {?} role
|
|
1407
|
-
* @return {?}
|
|
1408
|
-
*/function (role) {
|
|
1409
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1410
|
-
}));
|
|
1411
|
-
});
|
|
1412
|
-
this.allowFurtherAccessAfter4Days = ( /**
|
|
1413
|
-
* @param {?} payment
|
|
1414
|
-
* @return {?}
|
|
1415
|
-
*/function (payment) {
|
|
1416
|
-
if (payment !== null && payment !== undefined) {
|
|
1417
|
-
/** @type {?} */
|
|
1418
|
-
var tmp4DayAgo = new Date();
|
|
1419
|
-
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1420
|
-
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1421
|
-
}
|
|
1422
|
-
});
|
|
1440
|
+
this.isContinueBtnDisabled = true;
|
|
1423
1441
|
}
|
|
1424
1442
|
/**
|
|
1425
1443
|
* @return {?}
|
|
@@ -1470,6 +1488,7 @@
|
|
|
1470
1488
|
}
|
|
1471
1489
|
}));
|
|
1472
1490
|
paymentGroup.fees = fees;
|
|
1491
|
+
_this.paymentFees = fees;
|
|
1473
1492
|
_this.paymentGroup = paymentGroup;
|
|
1474
1493
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1475
1494
|
* @param {?} paymentGroupObj
|
|
@@ -1513,6 +1532,23 @@
|
|
|
1513
1532
|
/**
|
|
1514
1533
|
* @return {?}
|
|
1515
1534
|
*/
|
|
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
|
+
*/
|
|
1516
1552
|
PaymentViewComponent.prototype.goToServiceRequestPage = /**
|
|
1517
1553
|
* @return {?}
|
|
1518
1554
|
*/
|
|
@@ -1587,7 +1623,7 @@
|
|
|
1587
1623
|
*/
|
|
1588
1624
|
function (fee) {
|
|
1589
1625
|
var _this = this;
|
|
1590
|
-
if (this.
|
|
1626
|
+
if (this.chkIsAddRemissionBtnEnable(fee)) {
|
|
1591
1627
|
this.feeId = fee;
|
|
1592
1628
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe(( /**
|
|
1593
1629
|
* @param {?} paymentGroup
|
|
@@ -1625,6 +1661,62 @@
|
|
|
1625
1661
|
}
|
|
1626
1662
|
return false;
|
|
1627
1663
|
};
|
|
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
|
+
};
|
|
1628
1720
|
/**
|
|
1629
1721
|
* @param {?} payment
|
|
1630
1722
|
* @param {?} remission
|
|
@@ -1639,56 +1731,40 @@
|
|
|
1639
1731
|
*/
|
|
1640
1732
|
function (payment, remission, fees) {
|
|
1641
1733
|
var _this = this;
|
|
1642
|
-
if
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1734
|
+
//if(!this.chkIsIssueRefundBtnEnable(payment)) {
|
|
1735
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
|
|
1736
|
+
* @param {?} paymentGroup
|
|
1737
|
+
* @return {?}
|
|
1738
|
+
*/function (paymentGroup) {
|
|
1739
|
+
_this.paymentGroup = paymentGroup;
|
|
1740
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1741
|
+
* @param {?} paymentGroupObj
|
|
1646
1742
|
* @return {?}
|
|
1647
|
-
*/function (
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1653
|
-
_this.payment = _this.paymentGroup.payments[0];
|
|
1654
|
-
_this.remissions = remission;
|
|
1655
|
-
_this.remissionFeeAmt = fees.filter(( /**
|
|
1656
|
-
* @param {?} data
|
|
1657
|
-
* @return {?}
|
|
1658
|
-
*/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
|
|
1743
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
|
|
1744
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1745
|
+
_this.remissions = remission;
|
|
1746
|
+
_this.remissionFeeAmt = fees.filter(( /**
|
|
1747
|
+
* @param {?} data
|
|
1664
1748
|
* @return {?}
|
|
1665
|
-
*/function (
|
|
1666
|
-
|
|
1749
|
+
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1750
|
+
_this.viewStatus = 'addrefundforremission';
|
|
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
|
+
//}
|
|
1667
1758
|
};
|
|
1668
1759
|
/**
|
|
1669
1760
|
* @return {?}
|
|
1670
1761
|
*/
|
|
1671
|
-
PaymentViewComponent.prototype.
|
|
1762
|
+
PaymentViewComponent.prototype.goToPaymentViewComponent = /**
|
|
1672
1763
|
* @return {?}
|
|
1673
1764
|
*/
|
|
1674
1765
|
function () {
|
|
1675
|
-
|
|
1676
|
-
|
|
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
|
-
}
|
|
1766
|
+
this.viewCompStatus = '';
|
|
1767
|
+
this.viewStatus = 'paymentview';
|
|
1692
1768
|
};
|
|
1693
1769
|
/**
|
|
1694
1770
|
* @param {?} paymentgrp
|
|
@@ -1700,13 +1776,18 @@
|
|
|
1700
1776
|
*/
|
|
1701
1777
|
function (paymentgrp) {
|
|
1702
1778
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1703
|
-
if (this.
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1779
|
+
if (this.chkIsIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1780
|
+
if (paymentgrp.payments[0].over_payment > 0) {
|
|
1781
|
+
this.viewCompStatus = 'overpayment';
|
|
1782
|
+
}
|
|
1783
|
+
else {
|
|
1784
|
+
this.paymentGroup = paymentgrp;
|
|
1785
|
+
this.viewStatus = 'issuerefund';
|
|
1786
|
+
this.isRefundRemission = true;
|
|
1787
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
1788
|
+
this.isFromPaymentDetailPage = true;
|
|
1789
|
+
this.isFromServiceRequestPage = false;
|
|
1790
|
+
}
|
|
1710
1791
|
}
|
|
1711
1792
|
}
|
|
1712
1793
|
};
|
|
@@ -1751,79 +1832,110 @@
|
|
|
1751
1832
|
* @param {?} payment
|
|
1752
1833
|
* @return {?}
|
|
1753
1834
|
*/
|
|
1754
|
-
PaymentViewComponent.prototype.
|
|
1835
|
+
PaymentViewComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
1755
1836
|
* @param {?} payment
|
|
1756
1837
|
* @return {?}
|
|
1757
1838
|
*/
|
|
1758
1839
|
function (payment) {
|
|
1759
|
-
if (
|
|
1760
|
-
payment.
|
|
1761
|
-
this.isIssueRefunfBtnEnable = true;
|
|
1762
|
-
}
|
|
1763
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
1764
|
-
return true;
|
|
1840
|
+
if (payment !== null && payment !== undefined) {
|
|
1841
|
+
return payment.issue_refund && payment.refund_enable;
|
|
1765
1842
|
}
|
|
1766
1843
|
else {
|
|
1767
1844
|
return false;
|
|
1768
1845
|
}
|
|
1769
1846
|
};
|
|
1770
1847
|
/**
|
|
1848
|
+
* @param {?} remission
|
|
1771
1849
|
* @return {?}
|
|
1772
1850
|
*/
|
|
1773
|
-
PaymentViewComponent.prototype.
|
|
1851
|
+
PaymentViewComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
1852
|
+
* @param {?} remission
|
|
1774
1853
|
* @return {?}
|
|
1775
1854
|
*/
|
|
1776
|
-
function () {
|
|
1777
|
-
if (
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
return true;
|
|
1782
|
-
}
|
|
1855
|
+
function (remission) {
|
|
1856
|
+
if (remission !== null && remission !== undefined) {
|
|
1857
|
+
return remission.add_refund;
|
|
1858
|
+
}
|
|
1859
|
+
else {
|
|
1783
1860
|
return false;
|
|
1784
1861
|
}
|
|
1785
1862
|
};
|
|
1786
1863
|
/**
|
|
1787
|
-
* @param {?}
|
|
1864
|
+
* @param {?} fee
|
|
1788
1865
|
* @return {?}
|
|
1789
1866
|
*/
|
|
1790
|
-
PaymentViewComponent.prototype.
|
|
1791
|
-
* @param {?}
|
|
1867
|
+
PaymentViewComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
1868
|
+
* @param {?} fee
|
|
1792
1869
|
* @return {?}
|
|
1793
1870
|
*/
|
|
1794
|
-
function (
|
|
1795
|
-
|
|
1796
|
-
|
|
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;
|
|
1871
|
+
function (fee) {
|
|
1872
|
+
if (fee !== null && fee !== undefined) {
|
|
1873
|
+
return fee.add_remission && fee.remission_enable;
|
|
1822
1874
|
}
|
|
1823
1875
|
else {
|
|
1824
1876
|
return false;
|
|
1825
1877
|
}
|
|
1826
1878
|
};
|
|
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
|
+
};
|
|
1827
1939
|
/**
|
|
1828
1940
|
* @return {?}
|
|
1829
1941
|
*/
|
|
@@ -1843,8 +1955,8 @@
|
|
|
1843
1955
|
PaymentViewComponent.decorators = [
|
|
1844
1956
|
{ type: i0.Component, args: [{
|
|
1845
1957
|
selector: 'ccpay-payment-view',
|
|
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}"]
|
|
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: [".payment-view-section .tb-col-w{width:330px}.payment-view-section .tr-border{border-bottom:2px solid}.payment-view-section .payment-view-alignment{margin-left:30px}.payment-view-section .govuk-button{font-size:19px;float:left;margin-top:2em}.payment-view-section .remission{margin-bottom:7em}.payment-view-section .govuk-error-summary__title{font-size:24px!important}.payment-view-section .govuk-table__cell,.payment-view-section .govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.payment-view-section .govuk-table__row{line-height:1.3}.payment-view-section .govuk-table__cell:last-child{text-align:right}.payment-view-section .text-transform::first-letter{text-transform:capitalize}.payment-view-section .govuk-link{cursor:pointer}.payment-view-section .mar-17{font-size:19px!important}.over-payment .contactDetails-width{width:70%}.over-payment .margin-top10px{margin-top:20px}.over-payment .govuk-font19px{font-size:19px!important}.over-payment .margin-top--size{margin-top:-30px}.over-payment .over-payment-alignment{margin-right:10px}.over-payment .govuk-button{font-size:19px;float:left;margin-top:2em}.over-payment td.govuk-table__cell{width:50%}.over-payment .govuk-label--s,.over-payment .govuk-warning-text__text,.over-payment .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.over-payment .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.over-payment .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.over-payment .govuk-button-group{padding-top:2em}.over-payment .heading-medium{margin-top:.875em}.over-payment .heading-large{margin-top:.25em}.over-payment .govuk-panel--confirmation{color:#fff;background:#00703c}.over-payment .govuk-panel__title{font-size:5rem}.over-payment .govuk-body,.over-payment .govuk-body-m{font-size:2.1875rem}.over-payment .govuk-link{cursor:pointer}.over-payment .govuk-radios__conditional{padding-top:12px!important}.over-payment .right{float:right;cursor:pointer}.over-payment .radio{float:right}.over-payment .white{color:#fff}"]
|
|
1848
1960
|
}] }
|
|
1849
1961
|
];
|
|
1850
1962
|
/** @nocollapse */
|
|
@@ -2012,6 +2124,21 @@
|
|
|
2012
2124
|
function (body) {
|
|
2013
2125
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2014
2126
|
};
|
|
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
|
+
};
|
|
2015
2142
|
/**
|
|
2016
2143
|
* @param {?} body
|
|
2017
2144
|
* @param {?} refund_reference
|
|
@@ -2096,8 +2223,9 @@
|
|
|
2096
2223
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2097
2224
|
*/
|
|
2098
2225
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2099
|
-
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2226
|
+
function ProcessRefundComponent(RefundsService$$1, paymentViewService, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2100
2227
|
this.RefundsService = RefundsService$$1;
|
|
2228
|
+
this.paymentViewService = paymentViewService;
|
|
2101
2229
|
this.formBuilder = formBuilder;
|
|
2102
2230
|
this.OrderslistService = OrderslistService$$1;
|
|
2103
2231
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2120,6 +2248,7 @@
|
|
|
2120
2248
|
this.isReasonEmpty = false;
|
|
2121
2249
|
this.isReasonInvalid = false;
|
|
2122
2250
|
this.successMsg = null;
|
|
2251
|
+
this.cpoDetails = null;
|
|
2123
2252
|
this.isConfirmButtondisabled = true;
|
|
2124
2253
|
}
|
|
2125
2254
|
/**
|
|
@@ -2165,6 +2294,18 @@
|
|
|
2165
2294
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2166
2295
|
this.isFromRefundListPage = true;
|
|
2167
2296
|
}
|
|
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
|
+
}));
|
|
2168
2309
|
};
|
|
2169
2310
|
/**
|
|
2170
2311
|
* @param {?} code
|
|
@@ -2398,89 +2539,29 @@
|
|
|
2398
2539
|
this.loadRefundListPage();
|
|
2399
2540
|
}
|
|
2400
2541
|
};
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
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
|
-
// }
|
|
2542
|
+
/**
|
|
2543
|
+
* @return {?}
|
|
2544
|
+
*/
|
|
2545
|
+
ProcessRefundComponent.prototype.loadCaseTransactionPage = /**
|
|
2546
|
+
* @return {?}
|
|
2547
|
+
*/
|
|
2548
|
+
function () {
|
|
2549
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
2550
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
2551
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
2552
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
2553
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
2554
|
+
};
|
|
2449
2555
|
/**
|
|
2450
2556
|
* @param {?} vals
|
|
2451
2557
|
* @param {?} field
|
|
2452
2558
|
* @return {?}
|
|
2453
2559
|
*/
|
|
2454
|
-
ProcessRefundComponent.prototype.resetForm =
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
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
|
-
*/
|
|
2560
|
+
ProcessRefundComponent.prototype.resetForm = /**
|
|
2561
|
+
* @param {?} vals
|
|
2562
|
+
* @param {?} field
|
|
2563
|
+
* @return {?}
|
|
2564
|
+
*/
|
|
2484
2565
|
function (vals, field) {
|
|
2485
2566
|
if (field === 'action' || field === 'all') {
|
|
2486
2567
|
this.refundActionsHasError = vals[0];
|
|
@@ -2506,12 +2587,19 @@
|
|
|
2506
2587
|
* @return {?}
|
|
2507
2588
|
*/
|
|
2508
2589
|
function () {
|
|
2509
|
-
|
|
2590
|
+
/** @type {?} */
|
|
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
|
+
}
|
|
2510
2598
|
};
|
|
2511
2599
|
ProcessRefundComponent.decorators = [
|
|
2512
2600
|
{ type: i0.Component, args: [{
|
|
2513
2601
|
selector: 'ccpay-process-refund',
|
|
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 (
|
|
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 <td class=\"bold tb-col-w\">Sent to</td>\n <td>{{cpoDetails?.responsibleParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent via</td>\n <td>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlistsource?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlistsource?.contact_details?.address_line}} {{refundlistsource?.contact_details?.city}} {{refundlistsource?.contact_details?.county}} {{refundlistsource?.contact_details?.country}} {{refundlistsource?.contact_details?.postal_code}}\n </div> \n </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 href=\"Javascript:void(0)\" (click)=\"goToCaseReview()\" class=\"govuk-link pointer\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
|
|
2515
2603
|
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}"]
|
|
2516
2604
|
}] }
|
|
2517
2605
|
];
|
|
@@ -2519,6 +2607,7 @@
|
|
|
2519
2607
|
ProcessRefundComponent.ctorParameters = function () {
|
|
2520
2608
|
return [
|
|
2521
2609
|
{ type: RefundsService },
|
|
2610
|
+
{ type: PaymentViewService },
|
|
2522
2611
|
{ type: forms.FormBuilder },
|
|
2523
2612
|
{ type: OrderslistService },
|
|
2524
2613
|
{ type: PaymentLibComponent },
|
|
@@ -2542,10 +2631,10 @@
|
|
|
2542
2631
|
this.refundService = refundService;
|
|
2543
2632
|
this.submittedRefundList = [];
|
|
2544
2633
|
this.rejectedRefundList = [];
|
|
2634
|
+
// approvalStatus = 'Sent for approval';
|
|
2635
|
+
// rejectStatus = 'Update required';
|
|
2545
2636
|
this.approvalStatus = 'Sent for approval';
|
|
2546
2637
|
this.rejectStatus = 'Update required';
|
|
2547
|
-
// approvalStatus = 'sent for approval';
|
|
2548
|
-
// rejectStatus = 'sent back';
|
|
2549
2638
|
this.errorMessage = null;
|
|
2550
2639
|
this.isAuthorized = true;
|
|
2551
2640
|
}
|
|
@@ -2825,6 +2914,449 @@
|
|
|
2825
2914
|
return StatusHistoryComponent;
|
|
2826
2915
|
}());
|
|
2827
2916
|
|
|
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
|
+
|
|
2828
3360
|
/**
|
|
2829
3361
|
* @fileoverview added by tsickle
|
|
2830
3362
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3178,6 +3710,7 @@
|
|
|
3178
3710
|
this.viewStatus = 'main';
|
|
3179
3711
|
this.isRemoveBtnDisabled = false;
|
|
3180
3712
|
this.clAmountDue = 0;
|
|
3713
|
+
this.overPaymentAmount = 0;
|
|
3181
3714
|
this.isFeeRecordsExist = false;
|
|
3182
3715
|
this.isGrpOutstandingAmtPositive = false;
|
|
3183
3716
|
//Order changes
|
|
@@ -3268,12 +3801,20 @@
|
|
|
3268
3801
|
}
|
|
3269
3802
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3270
3803
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
this.
|
|
3804
|
+
if (this.paymentLibComponent.SERVICEREQUEST !== undefined) {
|
|
3805
|
+
this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
|
|
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
|
+
}
|
|
3274
3814
|
}
|
|
3275
3815
|
else {
|
|
3276
3816
|
this.serviceRequestValue = 'false';
|
|
3817
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3277
3818
|
}
|
|
3278
3819
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3279
3820
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -3477,6 +4018,7 @@
|
|
|
3477
4018
|
* @return {?}
|
|
3478
4019
|
*/function (fee) {
|
|
3479
4020
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4021
|
+
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
3480
4022
|
}));
|
|
3481
4023
|
}
|
|
3482
4024
|
if (paymentGroup.remissions) {
|
|
@@ -3488,10 +4030,15 @@
|
|
|
3488
4030
|
}));
|
|
3489
4031
|
}
|
|
3490
4032
|
if (paymentGroup.payments) {
|
|
4033
|
+
/** @type {?} */
|
|
4034
|
+
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
3491
4035
|
paymentGroup.payments.forEach(( /**
|
|
3492
4036
|
* @param {?} payment
|
|
3493
4037
|
* @return {?}
|
|
3494
4038
|
*/function (payment) {
|
|
4039
|
+
if (isFeeOverPaymentExist_1) {
|
|
4040
|
+
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4041
|
+
}
|
|
3495
4042
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
3496
4043
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
3497
4044
|
}
|
|
@@ -3959,23 +4506,22 @@
|
|
|
3959
4506
|
*/
|
|
3960
4507
|
function (payment, remission, fees) {
|
|
3961
4508
|
var _this = this;
|
|
3962
|
-
this.
|
|
3963
|
-
this.payment = payment;
|
|
3964
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
4509
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
|
|
3965
4510
|
* @param {?} paymentGroup
|
|
3966
4511
|
* @return {?}
|
|
3967
4512
|
*/function (paymentGroup) {
|
|
3968
4513
|
_this.paymentGroup = paymentGroup;
|
|
3969
|
-
_this.paymentGroup.payments =
|
|
4514
|
+
_this.paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
3970
4515
|
* @param {?} paymentGroupObj
|
|
3971
4516
|
* @return {?}
|
|
3972
|
-
*/function (paymentGroupObj) { return paymentGroupObj
|
|
4517
|
+
*/function (paymentGroupObj) { return paymentGroupObj.reference === payment.reference; }));
|
|
3973
4518
|
_this.payment = _this.paymentGroup.payments[0];
|
|
3974
4519
|
_this.remissions = remission;
|
|
3975
4520
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
3976
4521
|
* @param {?} data
|
|
3977
4522
|
* @return {?}
|
|
3978
4523
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4524
|
+
_this.viewStatus = 'addrefundforremission';
|
|
3979
4525
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
3980
4526
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
3981
4527
|
}), ( /**
|
|
@@ -4268,16 +4814,21 @@
|
|
|
4268
4814
|
* @return {?}
|
|
4269
4815
|
*/
|
|
4270
4816
|
function (payment) {
|
|
4271
|
-
if (
|
|
4272
|
-
payment.
|
|
4273
|
-
this.isIssueRefunfBtnEnable = true;
|
|
4274
|
-
}
|
|
4275
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
4276
|
-
return true;
|
|
4817
|
+
if (payment !== null && payment !== undefined) {
|
|
4818
|
+
return payment.issue_refund && payment.refund_enable;
|
|
4277
4819
|
}
|
|
4278
4820
|
else {
|
|
4279
4821
|
return false;
|
|
4280
4822
|
}
|
|
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
|
+
// };
|
|
4281
4832
|
};
|
|
4282
4833
|
/**
|
|
4283
4834
|
* @return {?}
|
|
@@ -4327,7 +4878,7 @@
|
|
|
4327
4878
|
CaseTransactionsComponent.decorators = [
|
|
4328
4879
|
{ type: i0.Component, args: [{
|
|
4329
4880
|
selector: 'ccpay-case-transactions',
|
|
4330
|
-
template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n <div>\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status [ccdCaseNumber]=\"ccdCaseNumber\" ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n\n</main>\n</div>\n\n\n",
|
|
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",
|
|
4331
4882
|
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}"]
|
|
4332
4883
|
}] }
|
|
4333
4884
|
];
|
|
@@ -4344,7 +4895,8 @@
|
|
|
4344
4895
|
};
|
|
4345
4896
|
CaseTransactionsComponent.propDecorators = {
|
|
4346
4897
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4347
|
-
isTakePayment: [{ type: i0.Input }]
|
|
4898
|
+
isTakePayment: [{ type: i0.Input }],
|
|
4899
|
+
isFromServiceRequestPage: [{ type: i0.Input }]
|
|
4348
4900
|
};
|
|
4349
4901
|
return CaseTransactionsComponent;
|
|
4350
4902
|
}());
|
|
@@ -4564,18 +5116,23 @@
|
|
|
4564
5116
|
if (fee.calculated_amount === 0) {
|
|
4565
5117
|
_this.isFeeAmountZero = true;
|
|
4566
5118
|
}
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
5119
|
+
if (paymentGroup.remissions) {
|
|
5120
|
+
_this.isRemissionsMatch = false;
|
|
5121
|
+
paymentGroup.remissions.forEach(( /**
|
|
5122
|
+
* @param {?} rem
|
|
5123
|
+
* @return {?}
|
|
5124
|
+
*/function (rem) {
|
|
5125
|
+
if (rem.fee_code === fee.code) {
|
|
5126
|
+
_this.isRemissionsMatch = true;
|
|
5127
|
+
fee['remissions'] = rem;
|
|
5128
|
+
fees.push(fee);
|
|
5129
|
+
}
|
|
5130
|
+
}));
|
|
5131
|
+
if (!_this.isRemissionsMatch) {
|
|
4575
5132
|
fees.push(fee);
|
|
4576
5133
|
}
|
|
4577
|
-
}
|
|
4578
|
-
|
|
5134
|
+
}
|
|
5135
|
+
else {
|
|
4579
5136
|
fees.push(fee);
|
|
4580
5137
|
}
|
|
4581
5138
|
}));
|
|
@@ -6619,23 +7176,12 @@
|
|
|
6619
7176
|
* @fileoverview added by tsickle
|
|
6620
7177
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6621
7178
|
*/
|
|
6622
|
-
var
|
|
6623
|
-
function
|
|
6624
|
-
this.
|
|
6625
|
-
this.
|
|
7179
|
+
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
7180
|
+
function PostIssueRefundRetroRemission(remissionReference, contactDeatils) {
|
|
7181
|
+
this.remissionReference = remissionReference;
|
|
7182
|
+
this.contact_details = contactDeatils;
|
|
6626
7183
|
}
|
|
6627
|
-
return
|
|
6628
|
-
}());
|
|
6629
|
-
|
|
6630
|
-
/**
|
|
6631
|
-
* @fileoverview added by tsickle
|
|
6632
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6633
|
-
*/
|
|
6634
|
-
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
6635
|
-
function PostIssueRefundRetroRemission(remissionReference) {
|
|
6636
|
-
this.remissionReference = remissionReference;
|
|
6637
|
-
}
|
|
6638
|
-
return PostIssueRefundRetroRemission;
|
|
7184
|
+
return PostIssueRefundRetroRemission;
|
|
6639
7185
|
}());
|
|
6640
7186
|
|
|
6641
7187
|
/**
|
|
@@ -6655,6 +7201,7 @@
|
|
|
6655
7201
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
6656
7202
|
this.refundListReason = new i0.EventEmitter();
|
|
6657
7203
|
this.refundListAmount = new i0.EventEmitter();
|
|
7204
|
+
this.refundFees = new i0.EventEmitter();
|
|
6658
7205
|
this.refund = {
|
|
6659
7206
|
reason: {
|
|
6660
7207
|
duplicate: 'Duplicate payment',
|
|
@@ -6683,6 +7230,8 @@
|
|
|
6683
7230
|
this.isRemissionApplied = false;
|
|
6684
7231
|
// refundReasons: any[] = [];
|
|
6685
7232
|
this.commonRefundReasons = [];
|
|
7233
|
+
this.class = '';
|
|
7234
|
+
this.errorMsg = new Array();
|
|
6686
7235
|
}
|
|
6687
7236
|
/**
|
|
6688
7237
|
* @return {?}
|
|
@@ -6692,6 +7241,8 @@
|
|
|
6692
7241
|
*/
|
|
6693
7242
|
function () {
|
|
6694
7243
|
var _this = this;
|
|
7244
|
+
this.errorMessage = '';
|
|
7245
|
+
this.errorMsg = [];
|
|
6695
7246
|
this.default = 'Select a different reason';
|
|
6696
7247
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
6697
7248
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -6703,6 +7254,7 @@
|
|
|
6703
7254
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
6704
7255
|
}
|
|
6705
7256
|
if (this.payment) {
|
|
7257
|
+
this.paymentReference = this.payment.reference;
|
|
6706
7258
|
this.remessionPayment = this.payment;
|
|
6707
7259
|
if (this.payment.status === 'Success') {
|
|
6708
7260
|
this.isPaymentSuccess = true;
|
|
@@ -6721,15 +7273,68 @@
|
|
|
6721
7273
|
])),
|
|
6722
7274
|
refundReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
6723
7275
|
refundDDReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
6724
|
-
reason: new forms.FormControl()
|
|
7276
|
+
reason: new forms.FormControl(),
|
|
7277
|
+
feeAmount: new forms.FormControl(),
|
|
7278
|
+
feesList: this.formBuilder.array([])
|
|
6725
7279
|
});
|
|
6726
7280
|
/** @type {?} */
|
|
6727
7281
|
var remissionctrls = this.remissionForm.controls;
|
|
6728
7282
|
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
|
+
}
|
|
6729
7334
|
if (this.viewCompStatus === '') {
|
|
6730
7335
|
this.viewStatus = 'main';
|
|
6731
7336
|
}
|
|
6732
|
-
if (this.viewCompStatus === '
|
|
7337
|
+
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
6733
7338
|
this.refundService.getRefundReasons().subscribe(( /**
|
|
6734
7339
|
* @param {?} refundReasons
|
|
6735
7340
|
* @return {?}
|
|
@@ -6741,7 +7346,7 @@
|
|
|
6741
7346
|
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
6742
7347
|
* @param {?} data
|
|
6743
7348
|
* @return {?}
|
|
6744
|
-
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7349
|
+
*/function (data) { return data.name !== 'Retrospective remission' && data.name !== 'Overpayment'; }));
|
|
6745
7350
|
_this.cd.detectChanges();
|
|
6746
7351
|
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
6747
7352
|
* @param {?} data
|
|
@@ -6754,10 +7359,160 @@
|
|
|
6754
7359
|
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
6755
7360
|
_this.cd.detectChanges();
|
|
6756
7361
|
}));
|
|
7362
|
+
this.refundReason = this.changeRefundReason;
|
|
6757
7363
|
}
|
|
6758
7364
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
6759
7365
|
this.viewStatus = 'processretroremissonpage';
|
|
6760
7366
|
}
|
|
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
|
+
}
|
|
6761
7516
|
};
|
|
6762
7517
|
/**
|
|
6763
7518
|
* @return {?}
|
|
@@ -6882,6 +7637,8 @@
|
|
|
6882
7637
|
*/
|
|
6883
7638
|
function () {
|
|
6884
7639
|
this.errorMessage = false;
|
|
7640
|
+
// this.isFromCheckAnsPage = true;
|
|
7641
|
+
this.errorMsg = [];
|
|
6885
7642
|
this.viewStatus = '';
|
|
6886
7643
|
this.isRefundRemission = false;
|
|
6887
7644
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -6892,8 +7649,14 @@
|
|
|
6892
7649
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
6893
7650
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
6894
7651
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
6895
|
-
this.
|
|
6896
|
-
|
|
7652
|
+
if (!this.isFromCheckAnsPage) {
|
|
7653
|
+
this.viewCompStatus = '';
|
|
7654
|
+
this.viewStatus = "processretroremissonpage";
|
|
7655
|
+
}
|
|
7656
|
+
else {
|
|
7657
|
+
this.viewCompStatus = '';
|
|
7658
|
+
this.viewStatus = 'checkretroremissionpage';
|
|
7659
|
+
}
|
|
6897
7660
|
}
|
|
6898
7661
|
else {
|
|
6899
7662
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -6924,6 +7687,8 @@
|
|
|
6924
7687
|
*/
|
|
6925
7688
|
function () {
|
|
6926
7689
|
this.errorMessage = false;
|
|
7690
|
+
this.isFromCheckAnsPage = false;
|
|
7691
|
+
this.errorMsg = [];
|
|
6927
7692
|
if (this.isRefundRemission) {
|
|
6928
7693
|
this.paymentLibComponent.iscancelClicked = true;
|
|
6929
7694
|
this.refundListAmount.emit();
|
|
@@ -6941,6 +7706,7 @@
|
|
|
6941
7706
|
this.viewCompStatus = "addremission";
|
|
6942
7707
|
this.isRefundRemission = true;
|
|
6943
7708
|
this.errorMessage = '';
|
|
7709
|
+
this.errorMsg = [];
|
|
6944
7710
|
if (this.isFromPaymentDetailPage) {
|
|
6945
7711
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
6946
7712
|
}
|
|
@@ -6996,14 +7762,47 @@
|
|
|
6996
7762
|
/**
|
|
6997
7763
|
* @return {?}
|
|
6998
7764
|
*/
|
|
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
|
+
*/
|
|
6999
7778
|
AddRemissionComponent.prototype.gotoProcessRetroRemissionPage = /**
|
|
7000
7779
|
* @return {?}
|
|
7001
7780
|
*/
|
|
7002
7781
|
function () {
|
|
7782
|
+
this.isFromCheckAnsPage = true;
|
|
7003
7783
|
this.viewStatus = '';
|
|
7004
7784
|
this.viewCompStatus = 'addremission';
|
|
7005
7785
|
this.isRefundRemission = true;
|
|
7006
7786
|
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 = '';
|
|
7007
7806
|
};
|
|
7008
7807
|
/**
|
|
7009
7808
|
* @return {?}
|
|
@@ -7047,6 +7846,7 @@
|
|
|
7047
7846
|
function () {
|
|
7048
7847
|
var _this = this;
|
|
7049
7848
|
this.errorMessage = '';
|
|
7849
|
+
this.errorMsg = [];
|
|
7050
7850
|
this.isConfirmationBtnDisabled = true;
|
|
7051
7851
|
if (this.isRefundRemission) {
|
|
7052
7852
|
this.retroRemission = true;
|
|
@@ -7055,7 +7855,7 @@
|
|
|
7055
7855
|
this.remissionReference = this.remission.remission_reference;
|
|
7056
7856
|
}
|
|
7057
7857
|
/** @type {?} */
|
|
7058
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7858
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference, this.contactDetailsObj);
|
|
7059
7859
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe(( /**
|
|
7060
7860
|
* @param {?} response
|
|
7061
7861
|
* @return {?}
|
|
@@ -7091,7 +7891,13 @@
|
|
|
7091
7891
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
7092
7892
|
this.isFromRefundListPage = true;
|
|
7093
7893
|
}
|
|
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);
|
|
7094
7899
|
this.errorMessage = '';
|
|
7900
|
+
this.errorMsg = [];
|
|
7095
7901
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
7096
7902
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
7097
7903
|
this.refundHasError = true;
|
|
@@ -7107,19 +7913,41 @@
|
|
|
7107
7913
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
7108
7914
|
}
|
|
7109
7915
|
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
|
+
}
|
|
7110
7927
|
this.viewCompStatus = '';
|
|
7111
|
-
this.viewStatus = '
|
|
7928
|
+
this.viewStatus = 'contactDetailsPage';
|
|
7112
7929
|
}
|
|
7113
7930
|
}
|
|
7114
7931
|
else {
|
|
7115
7932
|
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
|
+
}
|
|
7116
7944
|
if (this.isFromRefundListPage) {
|
|
7117
7945
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7118
7946
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
7119
7947
|
}
|
|
7120
7948
|
else {
|
|
7121
7949
|
this.viewCompStatus = '';
|
|
7122
|
-
this.viewStatus = '
|
|
7950
|
+
this.viewStatus = 'contactDetailsPage';
|
|
7123
7951
|
}
|
|
7124
7952
|
}
|
|
7125
7953
|
};
|
|
@@ -7135,86 +7963,290 @@
|
|
|
7135
7963
|
this.viewStatus = '';
|
|
7136
7964
|
this.isRefundRemission = true;
|
|
7137
7965
|
this.errorMessage = false;
|
|
7966
|
+
this.errorMsg = [];
|
|
7138
7967
|
this.refundHasError = false;
|
|
7139
7968
|
this.isReasonEmpty = false;
|
|
7140
7969
|
};
|
|
7141
7970
|
/**
|
|
7971
|
+
* @param {?} isFullyRefund
|
|
7142
7972
|
* @return {?}
|
|
7143
7973
|
*/
|
|
7144
|
-
AddRemissionComponent.prototype.
|
|
7974
|
+
AddRemissionComponent.prototype.gotoIssuePage = /**
|
|
7975
|
+
* @param {?} isFullyRefund
|
|
7145
7976
|
* @return {?}
|
|
7146
7977
|
*/
|
|
7147
|
-
function () {
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7978
|
+
function (isFullyRefund) {
|
|
7979
|
+
if (isFullyRefund) {
|
|
7980
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
7981
|
+
this.getRefundReasons();
|
|
7982
|
+
}
|
|
7983
|
+
else {
|
|
7984
|
+
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7985
|
+
* @param {?} el
|
|
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
|
+
}
|
|
7155
8092
|
};
|
|
7156
8093
|
/**
|
|
8094
|
+
* @param {?} value
|
|
8095
|
+
* @param {?} amount
|
|
8096
|
+
* @param {?} volume
|
|
8097
|
+
* @param {?} i
|
|
7157
8098
|
* @return {?}
|
|
7158
8099
|
*/
|
|
7159
|
-
AddRemissionComponent.prototype.
|
|
8100
|
+
AddRemissionComponent.prototype.calAmtToRefund = /**
|
|
8101
|
+
* @param {?} value
|
|
8102
|
+
* @param {?} amount
|
|
8103
|
+
* @param {?} volume
|
|
8104
|
+
* @param {?} i
|
|
7160
8105
|
* @return {?}
|
|
7161
8106
|
*/
|
|
7162
|
-
function () {
|
|
7163
|
-
var _this = this;
|
|
7164
|
-
this.isConfirmationBtnDisabled = true;
|
|
7165
|
-
this.errorMessage = '';
|
|
7166
|
-
if (this.isRefundRemission) {
|
|
7167
|
-
this.retroRemission = true;
|
|
7168
|
-
}
|
|
8107
|
+
function (value, amount, volume, i) {
|
|
7169
8108
|
/** @type {?} */
|
|
7170
|
-
var
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
7181
|
-
}
|
|
7182
|
-
}
|
|
7183
|
-
}), ( /**
|
|
7184
|
-
* @param {?} error
|
|
7185
|
-
* @return {?}
|
|
7186
|
-
*/function (error) {
|
|
7187
|
-
_this.errorMessage = error;
|
|
7188
|
-
_this.isConfirmationBtnDisabled = false;
|
|
7189
|
-
_this.cd.detectChanges();
|
|
7190
|
-
}));
|
|
8109
|
+
var volumeFee = amount / volume;
|
|
8110
|
+
/** @type {?} */
|
|
8111
|
+
var amtToRefund = value * volumeFee;
|
|
8112
|
+
/** @type {?} */
|
|
8113
|
+
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
8114
|
+
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
8115
|
+
// formArray.at(i).get('volume').setValue(value);
|
|
8116
|
+
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
8117
|
+
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
8118
|
+
// formControl.setValue(value);
|
|
7191
8119
|
};
|
|
7192
|
-
// Retro Refund
|
|
7193
|
-
// Retro Refund
|
|
7194
8120
|
/**
|
|
8121
|
+
* @param {?=} note
|
|
8122
|
+
* @return {?}
|
|
8123
|
+
*/
|
|
8124
|
+
AddRemissionComponent.prototype.gotoContactDetailsPage = /**
|
|
8125
|
+
* @param {?=} note
|
|
8126
|
+
* @return {?}
|
|
8127
|
+
*/
|
|
8128
|
+
function (note) {
|
|
8129
|
+
if (note) {
|
|
8130
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8131
|
+
}
|
|
8132
|
+
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 = /**
|
|
7195
8142
|
* @return {?}
|
|
7196
8143
|
*/
|
|
7197
|
-
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7198
|
-
// Retro Refund
|
|
7199
|
-
/**
|
|
7200
|
-
* @return {?}
|
|
7201
|
-
*/
|
|
7202
8144
|
function () {
|
|
7203
8145
|
var _this = this;
|
|
7204
|
-
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;
|
|
7205
8215
|
this.errorMessage = '';
|
|
8216
|
+
this.errorMsg = [];
|
|
7206
8217
|
if (this.isRefundRemission) {
|
|
7207
8218
|
this.retroRemission = true;
|
|
7208
8219
|
}
|
|
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
|
+
}));
|
|
7209
8241
|
/** @type {?} */
|
|
7210
|
-
var requestBody = new PostRefundRetroRemission(this.payment.reference,
|
|
8242
|
+
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.payment.reference, this.refundReason, this.totalRefundAmount, 'op');
|
|
7211
8243
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
7212
8244
|
* @param {?} response
|
|
7213
8245
|
* @return {?}
|
|
7214
8246
|
*/function (response) {
|
|
7215
8247
|
if (JSON.parse(response)) {
|
|
7216
8248
|
_this.viewCompStatus = '';
|
|
7217
|
-
_this.viewStatus = '
|
|
8249
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7218
8250
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7219
8251
|
if (JSON.parse(response).refund_amount) {
|
|
7220
8252
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -7226,18 +8258,105 @@
|
|
|
7226
8258
|
*/function (error) {
|
|
7227
8259
|
_this.errorMessage = error;
|
|
7228
8260
|
_this.isConfirmationBtnDisabled = false;
|
|
8261
|
+
_this.cd.detectChanges();
|
|
7229
8262
|
}));
|
|
7230
8263
|
};
|
|
7231
8264
|
/**
|
|
7232
|
-
* @param {?} key
|
|
7233
|
-
* @param {?} value
|
|
7234
8265
|
* @return {?}
|
|
7235
8266
|
*/
|
|
7236
|
-
AddRemissionComponent.prototype.
|
|
8267
|
+
AddRemissionComponent.prototype.gotoRefundReasonPage = /**
|
|
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
|
+
/**
|
|
7237
8325
|
* @param {?} key
|
|
7238
8326
|
* @param {?} value
|
|
7239
8327
|
* @return {?}
|
|
7240
8328
|
*/
|
|
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
|
+
*/
|
|
7241
8360
|
function (key, value) {
|
|
7242
8361
|
localStorage.setItem("myradio", key);
|
|
7243
8362
|
/** @type {?} */
|
|
@@ -7246,6 +8365,7 @@
|
|
|
7246
8365
|
remissionctrls['reason'].reset();
|
|
7247
8366
|
this.isRefundReasonsSelected = true;
|
|
7248
8367
|
this.errorMessage = false;
|
|
8368
|
+
this.errorMsg = [];
|
|
7249
8369
|
this.isReasonEmpty = false;
|
|
7250
8370
|
this.showReasonText = false;
|
|
7251
8371
|
this.refundHasError = false;
|
|
@@ -7280,6 +8400,38 @@
|
|
|
7280
8400
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
7281
8401
|
}
|
|
7282
8402
|
};
|
|
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
|
+
};
|
|
7283
8435
|
/**
|
|
7284
8436
|
* @param {?} event
|
|
7285
8437
|
* @return {?}
|
|
@@ -7291,7 +8443,20 @@
|
|
|
7291
8443
|
function (event) {
|
|
7292
8444
|
var _this = this;
|
|
7293
8445
|
this.errorMessage = '';
|
|
8446
|
+
this.errorMsg = [];
|
|
8447
|
+
this.isFromCheckAnsPage = false;
|
|
7294
8448
|
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
|
+
}
|
|
7295
8460
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
7296
8461
|
this.viewStatus = 'order-full-view';
|
|
7297
8462
|
this.viewCompStatus = '';
|
|
@@ -7325,68 +8490,40 @@
|
|
|
7325
8490
|
}
|
|
7326
8491
|
this.viewCompStatus = '';
|
|
7327
8492
|
}
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7363
|
-
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7364
|
-
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7365
|
-
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7366
|
-
// partUrl += `&caseType=${this.caseType}`;
|
|
7367
|
-
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7368
|
-
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7369
|
-
// if(this.isFromPaymentDetailPage) {
|
|
7370
|
-
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7371
|
-
// }
|
|
7372
|
-
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7373
|
-
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7374
|
-
// }
|
|
7375
|
-
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7376
|
-
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7377
|
-
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7378
|
-
// this.router.onSameUrlNavigation = 'reload';
|
|
7379
|
-
// this.router.navigateByUrl(url);
|
|
7380
|
-
// } else {
|
|
7381
|
-
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7382
|
-
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7383
|
-
// this.router.onSameUrlNavigation = 'reload';
|
|
7384
|
-
// this.router.navigateByUrl(url);
|
|
7385
|
-
// }
|
|
7386
|
-
// } else {
|
|
7387
|
-
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7388
|
-
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7389
|
-
// }
|
|
8493
|
+
};
|
|
8494
|
+
/**
|
|
8495
|
+
* @param {?=} note
|
|
8496
|
+
* @return {?}
|
|
8497
|
+
*/
|
|
8498
|
+
AddRemissionComponent.prototype.gotoAddressPage = /**
|
|
8499
|
+
* @param {?=} note
|
|
8500
|
+
* @return {?}
|
|
8501
|
+
*/
|
|
8502
|
+
function (note) {
|
|
8503
|
+
if (note) {
|
|
8504
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8505
|
+
}
|
|
8506
|
+
this.errorMessage = '';
|
|
8507
|
+
this.viewCompStatus = 'addrefundforremission';
|
|
8508
|
+
this.viewStatus = '';
|
|
8509
|
+
this.isRefundRemission = true;
|
|
8510
|
+
this.errorMessage = false;
|
|
8511
|
+
};
|
|
8512
|
+
/**
|
|
8513
|
+
* @param {?} event
|
|
8514
|
+
* @return {?}
|
|
8515
|
+
*/
|
|
8516
|
+
AddRemissionComponent.prototype.gotoRemissionSuccess = /**
|
|
8517
|
+
* @param {?} event
|
|
8518
|
+
* @return {?}
|
|
8519
|
+
*/
|
|
8520
|
+
function (event) {
|
|
8521
|
+
event.preventDefault();
|
|
8522
|
+
this.errorMessage = '';
|
|
8523
|
+
this.viewCompStatus = '';
|
|
8524
|
+
this.viewStatus = 'retroremissionconfirmationpage';
|
|
8525
|
+
this.isRefundRemission = true;
|
|
8526
|
+
this.errorMessage = false;
|
|
7390
8527
|
};
|
|
7391
8528
|
/**
|
|
7392
8529
|
* @return {?}
|
|
@@ -7397,6 +8534,7 @@
|
|
|
7397
8534
|
function () {
|
|
7398
8535
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7399
8536
|
this.errorMessage = '';
|
|
8537
|
+
this.errorMsg = [];
|
|
7400
8538
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7401
8539
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
7402
8540
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -7430,30 +8568,36 @@
|
|
|
7430
8568
|
*/
|
|
7431
8569
|
function (event) {
|
|
7432
8570
|
event.preventDefault();
|
|
7433
|
-
|
|
8571
|
+
this.errorMsg = [];
|
|
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;
|
|
7434
8579
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7435
8580
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7436
8581
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
7437
8582
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7438
8583
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
7439
8584
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
// this.router.navigateByUrl(url);
|
|
8585
|
+
this.resetOrderData();
|
|
8586
|
+
/** @type {?} */
|
|
8587
|
+
var partUrl = this.bsPaymentDcnNumber ? "&dcn=" + this.bsPaymentDcnNumber : '';
|
|
8588
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
8589
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
8590
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
8591
|
+
partUrl += "&caseType=" + this.caseType;
|
|
8592
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
8593
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
8594
|
+
/** @type {?} */
|
|
8595
|
+
var url = "/payment-history/" + this.ccdCaseNumber + "?view=case-transactions&takePayment=" + this.paymentLibComponent.TAKEPAYMENT + "&selectedOption=" + this.option + partUrl;
|
|
8596
|
+
this.router.routeReuseStrategy.shouldReuseRoute = ( /**
|
|
8597
|
+
* @return {?}
|
|
8598
|
+
*/function () { return false; });
|
|
8599
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
8600
|
+
this.router.navigateByUrl(url);
|
|
7457
8601
|
}
|
|
7458
8602
|
else {
|
|
7459
8603
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -7520,6 +8664,17 @@
|
|
|
7520
8664
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
7521
8665
|
this.OrderslistService.setorderFeesTotal(null);
|
|
7522
8666
|
};
|
|
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
|
+
};
|
|
7523
8678
|
/**
|
|
7524
8679
|
* @param {?} currency
|
|
7525
8680
|
* @return {?}
|
|
@@ -7537,8 +8692,8 @@
|
|
|
7537
8692
|
AddRemissionComponent.decorators = [
|
|
7538
8693
|
{ type: i0.Component, args: [{
|
|
7539
8694
|
selector: 'ccpay-add-remission',
|
|
7540
|
-
template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link pointer\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n </ccpay-service-request>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n </ccpay-payment-view>\n </ng-container>\n\n</div>\n\n\n\n",
|
|
7541
|
-
styles: [".add-remission .button{padding:.5em;font-size:19px;font-weight:200;margin:20px 2px}.add-remission td.govuk-table__cell{width:50%}.add-remission .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.add-remission .
|
|
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 .right{float:right;cursor:pointer}.add-remission .radio{float:right}.govuk-font19px,.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%}.pointer{cursor:pointer}.col-18{min-width:18em}.col-6{min-width:6em}.col-8{min-width:8em}.col-1{min-width:1em}.col-25{width:25%!important}.col-24{width:24%!important}.left{text-align:left}.center{text-align:center}.col-60{width:60%;text-align:left}.margin-top--size{margin-top:-30px}.contactDetails-width{width:70%}.right{cursor:pointer}.form-hint{font-size:19px!important}.govuk-panel-border--confirmation{color:#0b0c0c;border:5px solid #00703c}"]
|
|
7542
8697
|
}] }
|
|
7543
8698
|
];
|
|
7544
8699
|
/** @nocollapse */
|
|
@@ -7555,6 +8710,7 @@
|
|
|
7555
8710
|
};
|
|
7556
8711
|
AddRemissionComponent.propDecorators = {
|
|
7557
8712
|
fee: [{ type: i0.Input }],
|
|
8713
|
+
fees: [{ type: i0.Input }],
|
|
7558
8714
|
payment: [{ type: i0.Input }],
|
|
7559
8715
|
remission: [{ type: i0.Input }],
|
|
7560
8716
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
@@ -7570,7 +8726,12 @@
|
|
|
7570
8726
|
isFromRefundListPage: [{ type: i0.Input }],
|
|
7571
8727
|
isFromPaymentDetailPage: [{ type: i0.Input }],
|
|
7572
8728
|
isFromServiceRequestPage: [{ type: i0.Input }],
|
|
8729
|
+
isFullyRefund: [{ type: i0.Input, args: ['isFullyRefund',] }],
|
|
7573
8730
|
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",] }],
|
|
7574
8735
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
7575
8736
|
orderDetail: [{ type: i0.Input, args: ['orderDetail',] }],
|
|
7576
8737
|
orderRef: [{ type: i0.Input, args: ['orderRef',] }],
|
|
@@ -7584,7 +8745,8 @@
|
|
|
7584
8745
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
7585
8746
|
cancelRemission: [{ type: i0.Output }],
|
|
7586
8747
|
refundListReason: [{ type: i0.Output }],
|
|
7587
|
-
refundListAmount: [{ type: i0.Output }]
|
|
8748
|
+
refundListAmount: [{ type: i0.Output }],
|
|
8749
|
+
refundFees: [{ type: i0.Output }]
|
|
7588
8750
|
};
|
|
7589
8751
|
return AddRemissionComponent;
|
|
7590
8752
|
}());
|
|
@@ -8320,12 +9482,26 @@
|
|
|
8320
9482
|
return (r[user_full_name] = '', r);
|
|
8321
9483
|
}), {});
|
|
8322
9484
|
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); }));
|
|
8323
9504
|
}
|
|
8324
|
-
this.userLst.sort(( /**
|
|
8325
|
-
* @param {?} a
|
|
8326
|
-
* @param {?} b
|
|
8327
|
-
* @return {?}
|
|
8328
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8329
9505
|
};
|
|
8330
9506
|
/**
|
|
8331
9507
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -8425,8 +9601,8 @@
|
|
|
8425
9601
|
TableComponent.decorators = [
|
|
8426
9602
|
{ type: i0.Component, args: [{
|
|
8427
9603
|
selector: 'ccpay-table',
|
|
8428
|
-
template: "<div class=\"add-remission\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group\"
|
|
8429
|
-
styles: [".mat-header-row{min-height:27px}.mat-cell{padding:0 10px 0 0;text-align:left;word-wrap:break-word;white-space:inherit!important;font-size:19px;line-height:25px;font-family:nta,Arial,sans-serif;font-weight:400}.mat-table{color:#0b0c0c;display:table;font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:1px;box-sizing:border-box;text-indent:initial;border-spacing:0;border-collapse:collapse;font-size:1.1875rem;line-height:1.31578947;table-layout:fixed;width:102%}.mat-header-cell{text-align:left;font-weight:700;padding:10px 10px 10px 0;word-wrap:break-word;font-size:19px;line-height:25px;color:#0b0c0c;cursor:pointer;font-family:inherit}.dropdpwn{display:inline-block;margin-right:10px;font-size:19px}.mat-column-ccdCaseNumber{flex:3em}.mat-column-refundReference{flex:6em}.mat-column-reason{flex:2em}.govuk-select{font-size:19px;font-weight:400}.govuk-error-summary__title{font-size:24px!important}"]
|
|
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 \n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group 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=\"govuk-form-group float-right-padding\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by service:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All services</option>\n <option *ngFor=\"let name of serviceLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n\n <div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group float-left-padding\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by service:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All services</option>\n <option *ngFor=\"let name of serviceLst;\" 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",
|
|
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}.float-right{float:right}.float-right-padding{float:right;padding-right:2em}.float-left-padding{padding-left:12em}"]
|
|
8430
9606
|
}] }
|
|
8431
9607
|
];
|
|
8432
9608
|
/** @nocollapse */
|
|
@@ -8449,14 +9625,32 @@
|
|
|
8449
9625
|
return TableComponent;
|
|
8450
9626
|
}());
|
|
8451
9627
|
|
|
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
|
+
|
|
8452
9644
|
/**
|
|
8453
9645
|
* @fileoverview added by tsickle
|
|
8454
9646
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8455
9647
|
*/
|
|
8456
9648
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
8457
|
-
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9649
|
+
function IResubmitRefundRequest(refund_reason, amount, contact_details, refund_fees) {
|
|
8458
9650
|
this.refund_reason = refund_reason;
|
|
8459
9651
|
this.amount = amount;
|
|
9652
|
+
this.contact_details = contact_details;
|
|
9653
|
+
this.refund_fees = refund_fees;
|
|
8460
9654
|
}
|
|
8461
9655
|
return IResubmitRefundRequest;
|
|
8462
9656
|
}());
|
|
@@ -8466,20 +9660,18 @@
|
|
|
8466
9660
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8467
9661
|
*/
|
|
8468
9662
|
var RefundStatusComponent = /** @class */ (function () {
|
|
8469
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
9663
|
+
function RefundStatusComponent(formBuilder, refundService, notificationService, paymentLibComponent, OrderslistService$$1, paymentViewService) {
|
|
8470
9664
|
var _this = this;
|
|
8471
9665
|
this.formBuilder = formBuilder;
|
|
8472
9666
|
this.refundService = refundService;
|
|
9667
|
+
this.notificationService = notificationService;
|
|
8473
9668
|
this.paymentLibComponent = paymentLibComponent;
|
|
8474
|
-
this.paymentViewService = paymentViewService;
|
|
8475
|
-
this.router = router$$1;
|
|
8476
9669
|
this.OrderslistService = OrderslistService$$1;
|
|
9670
|
+
this.paymentViewService = paymentViewService;
|
|
8477
9671
|
this.LOGGEDINUSERROLES = [];
|
|
8478
9672
|
this.rejectedRefundList = [];
|
|
8479
9673
|
this.approvalStatus = 'Sent for approval';
|
|
8480
9674
|
this.rejectStatus = 'Update required';
|
|
8481
|
-
// approvalStatus = 'sent for approval';
|
|
8482
|
-
// rejectStatus = 'sent back';
|
|
8483
9675
|
this.errorMessage = null;
|
|
8484
9676
|
this.refundButtonState = '';
|
|
8485
9677
|
this.isAmountEmpty = false;
|
|
@@ -8488,6 +9680,9 @@
|
|
|
8488
9680
|
this.isRemissionLessThanFeeError = false;
|
|
8489
9681
|
this.refundHasError = false;
|
|
8490
9682
|
this.refundReasons = [];
|
|
9683
|
+
this.isResendOperationSuccess = false;
|
|
9684
|
+
this.isEditDetailsClicked = false;
|
|
9685
|
+
this.isEditAddressDeatilsClicked = false;
|
|
8491
9686
|
this.isRefundBtnDisabled = true;
|
|
8492
9687
|
this.isLastUpdatedByCurrentUser = true;
|
|
8493
9688
|
this.isProcessRefund = false;
|
|
@@ -8511,13 +9706,9 @@
|
|
|
8511
9706
|
*/
|
|
8512
9707
|
function () {
|
|
8513
9708
|
var _this = this;
|
|
8514
|
-
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
8515
9709
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
8516
9710
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
8517
9711
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8518
|
-
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8519
|
-
// this.viewName = 'reviewandsubmitview';
|
|
8520
|
-
// }
|
|
8521
9712
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
8522
9713
|
this.viewName = 'refundview';
|
|
8523
9714
|
this.OrderslistService.getRefundView().subscribe(( /**
|
|
@@ -8536,6 +9727,7 @@
|
|
|
8536
9727
|
* @return {?}
|
|
8537
9728
|
*/function (refundList) {
|
|
8538
9729
|
_this.rejectedRefundList = refundList['refund_list'];
|
|
9730
|
+
//this.refundFees = this.rejectedRefundList['refund_fees'];
|
|
8539
9731
|
})),
|
|
8540
9732
|
( /**
|
|
8541
9733
|
* @param {?} error
|
|
@@ -8553,6 +9745,7 @@
|
|
|
8553
9745
|
reason: new forms.FormControl()
|
|
8554
9746
|
});
|
|
8555
9747
|
if (this.refundlist !== undefined) {
|
|
9748
|
+
this.getRefundsNotification();
|
|
8556
9749
|
this.getRefundsStatusHistoryList();
|
|
8557
9750
|
if (this.LOGGEDINUSERROLES.some(( /**
|
|
8558
9751
|
* @param {?} i
|
|
@@ -8570,7 +9763,6 @@
|
|
|
8570
9763
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
8571
9764
|
}
|
|
8572
9765
|
}
|
|
8573
|
-
//}
|
|
8574
9766
|
};
|
|
8575
9767
|
/**
|
|
8576
9768
|
* @return {?}
|
|
@@ -8596,6 +9788,27 @@
|
|
|
8596
9788
|
});
|
|
8597
9789
|
}
|
|
8598
9790
|
};
|
|
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
|
+
};
|
|
8599
9812
|
/**
|
|
8600
9813
|
* @param {?} refundlist
|
|
8601
9814
|
* @param {?} navigationpage
|
|
@@ -8683,18 +9896,21 @@
|
|
|
8683
9896
|
}));
|
|
8684
9897
|
};
|
|
8685
9898
|
/**
|
|
9899
|
+
* @param {?} refundReason
|
|
8686
9900
|
* @return {?}
|
|
8687
9901
|
*/
|
|
8688
9902
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
9903
|
+
* @param {?} refundReason
|
|
8689
9904
|
* @return {?}
|
|
8690
9905
|
*/
|
|
8691
|
-
function () {
|
|
9906
|
+
function (refundReason) {
|
|
8692
9907
|
this.isRefundBtnDisabled = false;
|
|
8693
9908
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
8694
9909
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
8695
9910
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
8696
9911
|
this.errorMessage = false;
|
|
8697
|
-
this.
|
|
9912
|
+
this.changeRefundReason = refundReason;
|
|
9913
|
+
this.viewName = 'issuerefundpage1';
|
|
8698
9914
|
};
|
|
8699
9915
|
/**
|
|
8700
9916
|
* @return {?}
|
|
@@ -8708,7 +9924,12 @@
|
|
|
8708
9924
|
this.isRefundBtnDisabled = false;
|
|
8709
9925
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
8710
9926
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
8711
|
-
this.
|
|
9927
|
+
if (this.refundlist.reason == 'Retrospective remission') {
|
|
9928
|
+
this.viewName = 'processretroremissonpage';
|
|
9929
|
+
}
|
|
9930
|
+
else {
|
|
9931
|
+
this.viewName = 'issuerefund';
|
|
9932
|
+
}
|
|
8712
9933
|
};
|
|
8713
9934
|
/**
|
|
8714
9935
|
* @return {?}
|
|
@@ -8790,6 +10011,7 @@
|
|
|
8790
10011
|
function (refundListReason) {
|
|
8791
10012
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
8792
10013
|
this.refundlist.reason = refundListReason.reason;
|
|
10014
|
+
this.refundlist.code = refundListReason.code;
|
|
8793
10015
|
this.refundCode = refundListReason.code;
|
|
8794
10016
|
}
|
|
8795
10017
|
else {
|
|
@@ -8819,6 +10041,21 @@
|
|
|
8819
10041
|
this.viewName = 'reviewandsubmitview';
|
|
8820
10042
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
8821
10043
|
};
|
|
10044
|
+
/**
|
|
10045
|
+
* @param {?} fees
|
|
10046
|
+
* @return {?}
|
|
10047
|
+
*/
|
|
10048
|
+
RefundStatusComponent.prototype.getRefundFees = /**
|
|
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
|
+
};
|
|
8822
10059
|
/**
|
|
8823
10060
|
* @return {?}
|
|
8824
10061
|
*/
|
|
@@ -8827,11 +10064,15 @@
|
|
|
8827
10064
|
*/
|
|
8828
10065
|
function () {
|
|
8829
10066
|
var _this = this;
|
|
8830
|
-
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8831
|
-
|
|
10067
|
+
// if (this.oldRefundReason === this.refundlist.reason) {
|
|
10068
|
+
// this.refundCode = '';
|
|
10069
|
+
// }
|
|
10070
|
+
if (this.refundFees === undefined) {
|
|
10071
|
+
this.refundFees = this.refundlist['refund_fees'];
|
|
8832
10072
|
}
|
|
10073
|
+
this.refundCode = this.refundlist.code;
|
|
8833
10074
|
/** @type {?} */
|
|
8834
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10075
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount, this.refundlist.contact_details, this.refundFees);
|
|
8835
10076
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe(( /**
|
|
8836
10077
|
* @param {?} response
|
|
8837
10078
|
* @return {?}
|
|
@@ -8849,58 +10090,194 @@
|
|
|
8849
10090
|
}));
|
|
8850
10091
|
};
|
|
8851
10092
|
/**
|
|
8852
|
-
* @param {?}
|
|
8853
|
-
* @param {?} refundList
|
|
10093
|
+
* @param {?} note
|
|
8854
10094
|
* @return {?}
|
|
8855
10095
|
*/
|
|
8856
|
-
RefundStatusComponent.prototype.
|
|
8857
|
-
* @param {?}
|
|
8858
|
-
* @param {?} refundList
|
|
10096
|
+
RefundStatusComponent.prototype.gotoEditAddressDetails = /**
|
|
10097
|
+
* @param {?} note
|
|
8859
10098
|
* @return {?}
|
|
8860
10099
|
*/
|
|
8861
|
-
function (
|
|
8862
|
-
this.
|
|
8863
|
-
this.
|
|
8864
|
-
this.
|
|
10100
|
+
function (note) {
|
|
10101
|
+
this.notification = note;
|
|
10102
|
+
this.isEditDetailsClicked = true;
|
|
10103
|
+
this.viewName = 'refundEditView';
|
|
8865
10104
|
};
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview'\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview'\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage'\">\n <div class=\"govuk-grid-row pagesize\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n",
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
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
|
+
/**
|
|
10227
|
+
* @param {?} refundReference
|
|
10228
|
+
* @param {?} refundList
|
|
10229
|
+
* @return {?}
|
|
10230
|
+
*/
|
|
10231
|
+
RefundStatusComponent.prototype.goToRefundProcessComponent = /**
|
|
10232
|
+
* @param {?} refundReference
|
|
10233
|
+
* @param {?} refundList
|
|
10234
|
+
* @return {?}
|
|
10235
|
+
*/
|
|
10236
|
+
function (refundReference, refundList) {
|
|
10237
|
+
this.paymentLibComponent.refundlistsource = refundList;
|
|
10238
|
+
this.paymentLibComponent.refundReference = refundReference;
|
|
10239
|
+
this.paymentLibComponent.isFromPayBubble = true;
|
|
10240
|
+
this.paymentLibComponent.viewName = 'process-refund';
|
|
10241
|
+
};
|
|
10242
|
+
RefundStatusComponent.decorators = [
|
|
10243
|
+
{ type: i0.Component, args: [{
|
|
10244
|
+
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-40{width:40%!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}.font-size-19px{font-size:19px}.white{color:#fff}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}.contactDetails-width{width:70%}"]
|
|
10247
|
+
}] }
|
|
10248
|
+
];
|
|
10249
|
+
/** @nocollapse */
|
|
10250
|
+
RefundStatusComponent.ctorParameters = function () {
|
|
10251
|
+
return [
|
|
10252
|
+
{ type: forms.FormBuilder },
|
|
10253
|
+
{ type: RefundsService },
|
|
10254
|
+
{ type: NotificationService },
|
|
10255
|
+
{ type: PaymentLibComponent },
|
|
10256
|
+
{ type: OrderslistService },
|
|
10257
|
+
{ type: PaymentViewService }
|
|
10258
|
+
];
|
|
10259
|
+
};
|
|
10260
|
+
RefundStatusComponent.propDecorators = {
|
|
10261
|
+
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
10262
|
+
isOldPcipalOff: [{ type: i0.Input }],
|
|
10263
|
+
isNewPcipalOff: [{ type: i0.Input }],
|
|
10264
|
+
ccdCaseNumber: [{ type: i0.Input }],
|
|
10265
|
+
isTurnOff: [{ type: i0.Input }],
|
|
10266
|
+
orderParty: [{ type: i0.Input }]
|
|
10267
|
+
};
|
|
10268
|
+
return RefundStatusComponent;
|
|
10269
|
+
}());
|
|
10270
|
+
|
|
10271
|
+
/**
|
|
10272
|
+
* @fileoverview added by tsickle
|
|
8896
10273
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8897
10274
|
*/
|
|
8898
10275
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
8899
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router$$1) {
|
|
8900
|
-
var _this = this;
|
|
10276
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, cd, router$$1) {
|
|
8901
10277
|
this.paymentLibComponent = paymentLibComponent;
|
|
8902
10278
|
this.paymentViewService = paymentViewService;
|
|
8903
10279
|
this.OrderslistService = OrderslistService$$1;
|
|
10280
|
+
this.cd = cd;
|
|
8904
10281
|
this.router = router$$1;
|
|
8905
10282
|
this.goToServiceRquestComponent = new i0.EventEmitter();
|
|
8906
10283
|
this.paymentGroups = [];
|
|
@@ -8908,7 +10285,6 @@
|
|
|
8908
10285
|
this.nonPayments = [];
|
|
8909
10286
|
this.allPayments = [];
|
|
8910
10287
|
this.remissions = [];
|
|
8911
|
-
this.fees = [];
|
|
8912
10288
|
this.isRefundRemission = true;
|
|
8913
10289
|
this.isAddFeeBtnEnabled = true;
|
|
8914
10290
|
this.isExceptionRecord = false;
|
|
@@ -8928,27 +10304,7 @@
|
|
|
8928
10304
|
this.isAddRemissionBtnEnabled = false;
|
|
8929
10305
|
this.isRefundRemissionBtnEnable = false;
|
|
8930
10306
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8931
|
-
this.
|
|
8932
|
-
* @return {?}
|
|
8933
|
-
*/function () {
|
|
8934
|
-
return _this.allowedRolesToAccessRefund.some(( /**
|
|
8935
|
-
* @param {?} role
|
|
8936
|
-
* @return {?}
|
|
8937
|
-
*/function (role) {
|
|
8938
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
8939
|
-
}));
|
|
8940
|
-
});
|
|
8941
|
-
this.allowFurtherAccessAfter4Days = ( /**
|
|
8942
|
-
* @param {?} payment
|
|
8943
|
-
* @return {?}
|
|
8944
|
-
*/function (payment) {
|
|
8945
|
-
if (payment !== null && payment !== undefined) {
|
|
8946
|
-
/** @type {?} */
|
|
8947
|
-
var tmp4DayAgo = new Date();
|
|
8948
|
-
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
8949
|
-
return tmp4DayAgo >= new Date(payment.date_created);
|
|
8950
|
-
}
|
|
8951
|
-
});
|
|
10307
|
+
this.isContinueBtnDisabled = true;
|
|
8952
10308
|
}
|
|
8953
10309
|
/**
|
|
8954
10310
|
* @return {?}
|
|
@@ -8958,6 +10314,8 @@
|
|
|
8958
10314
|
*/
|
|
8959
10315
|
function () {
|
|
8960
10316
|
var _this = this;
|
|
10317
|
+
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10318
|
+
this.isServiceRequest = 'false';
|
|
8961
10319
|
if (this.viewStatus === undefined) {
|
|
8962
10320
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
8963
10321
|
}
|
|
@@ -8997,9 +10355,9 @@
|
|
|
8997
10355
|
*/function (data) { return _this.orderTotalPayments = data; }));
|
|
8998
10356
|
}
|
|
8999
10357
|
}
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
10358
|
+
if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.TAKEPAYMENT) {
|
|
10359
|
+
this.isServiceRequest = 'false';
|
|
10360
|
+
}
|
|
9003
10361
|
};
|
|
9004
10362
|
/**
|
|
9005
10363
|
* @return {?}
|
|
@@ -9028,7 +10386,7 @@
|
|
|
9028
10386
|
if (this.takePayment) {
|
|
9029
10387
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
9030
10388
|
}
|
|
9031
|
-
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10389
|
+
//this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
9032
10390
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
9033
10391
|
if (this.isServiceRequest !== 'false') {
|
|
9034
10392
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -9055,79 +10413,6 @@
|
|
|
9055
10413
|
this.router.onSameUrlNavigation = 'reload';
|
|
9056
10414
|
this.router.navigateByUrl(url);
|
|
9057
10415
|
};
|
|
9058
|
-
/**
|
|
9059
|
-
* @param {?} feeCode
|
|
9060
|
-
* @return {?}
|
|
9061
|
-
*/
|
|
9062
|
-
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9063
|
-
* @param {?} feeCode
|
|
9064
|
-
* @return {?}
|
|
9065
|
-
*/
|
|
9066
|
-
function (feeCode) {
|
|
9067
|
-
var e_1, _a;
|
|
9068
|
-
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9069
|
-
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9070
|
-
try {
|
|
9071
|
-
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9072
|
-
var remission = _c.value;
|
|
9073
|
-
if (remission.fee_code === feeCode) {
|
|
9074
|
-
return false;
|
|
9075
|
-
}
|
|
9076
|
-
}
|
|
9077
|
-
}
|
|
9078
|
-
catch (e_1_1) {
|
|
9079
|
-
e_1 = { error: e_1_1 };
|
|
9080
|
-
}
|
|
9081
|
-
finally {
|
|
9082
|
-
try {
|
|
9083
|
-
if (_c && !_c.done && (_a = _b.return))
|
|
9084
|
-
_a.call(_b);
|
|
9085
|
-
}
|
|
9086
|
-
finally {
|
|
9087
|
-
if (e_1)
|
|
9088
|
-
throw e_1.error;
|
|
9089
|
-
}
|
|
9090
|
-
}
|
|
9091
|
-
}
|
|
9092
|
-
return true;
|
|
9093
|
-
}
|
|
9094
|
-
else {
|
|
9095
|
-
return false;
|
|
9096
|
-
}
|
|
9097
|
-
};
|
|
9098
|
-
/**
|
|
9099
|
-
* @return {?}
|
|
9100
|
-
*/
|
|
9101
|
-
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9102
|
-
* @return {?}
|
|
9103
|
-
*/
|
|
9104
|
-
function () {
|
|
9105
|
-
var _this = this;
|
|
9106
|
-
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9107
|
-
this.orderDetail.forEach(( /**
|
|
9108
|
-
* @param {?} orderDetail
|
|
9109
|
-
* @return {?}
|
|
9110
|
-
*/function (orderDetail) {
|
|
9111
|
-
if (orderDetail.payments) {
|
|
9112
|
-
orderDetail.payments.forEach(( /**
|
|
9113
|
-
* @param {?} payment
|
|
9114
|
-
* @return {?}
|
|
9115
|
-
*/function (payment) {
|
|
9116
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9117
|
-
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9118
|
-
_this.isPBA = true;
|
|
9119
|
-
}
|
|
9120
|
-
}));
|
|
9121
|
-
}
|
|
9122
|
-
}));
|
|
9123
|
-
if (this.isPBA) {
|
|
9124
|
-
return true;
|
|
9125
|
-
}
|
|
9126
|
-
else {
|
|
9127
|
-
return false;
|
|
9128
|
-
}
|
|
9129
|
-
}
|
|
9130
|
-
};
|
|
9131
10416
|
/**
|
|
9132
10417
|
* @param {?} fee
|
|
9133
10418
|
* @return {?}
|
|
@@ -9138,7 +10423,7 @@
|
|
|
9138
10423
|
*/
|
|
9139
10424
|
function (fee) {
|
|
9140
10425
|
var _this = this;
|
|
9141
|
-
if (this.
|
|
10426
|
+
if (this.chkIsAddRemissionBtnEnable(fee)) {
|
|
9142
10427
|
this.feeId = fee;
|
|
9143
10428
|
this.viewStatus = 'addremission';
|
|
9144
10429
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -9152,8 +10437,8 @@
|
|
|
9152
10437
|
* @return {?}
|
|
9153
10438
|
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
9154
10439
|
_this.payment = _this.paymentGroup.payments[0];
|
|
9155
|
-
//
|
|
9156
|
-
//
|
|
10440
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10441
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
9157
10442
|
}), ( /**
|
|
9158
10443
|
* @param {?} error
|
|
9159
10444
|
* @return {?}
|
|
@@ -9174,9 +10459,8 @@
|
|
|
9174
10459
|
*/
|
|
9175
10460
|
function (payment, remission, fees) {
|
|
9176
10461
|
var _this = this;
|
|
9177
|
-
this.
|
|
9178
|
-
this.payment
|
|
9179
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
10462
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
10463
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
|
|
9180
10464
|
* @param {?} paymentGroup
|
|
9181
10465
|
* @return {?}
|
|
9182
10466
|
*/function (paymentGroup) {
|
|
@@ -9184,13 +10468,14 @@
|
|
|
9184
10468
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
9185
10469
|
* @param {?} paymentGroupObj
|
|
9186
10470
|
* @return {?}
|
|
9187
|
-
*/function (paymentGroupObj) { return paymentGroupObj
|
|
10471
|
+
*/function (paymentGroupObj) { return paymentGroupObj.reference === payment.reference; }));
|
|
9188
10472
|
_this.payment = _this.paymentGroup.payments[0];
|
|
9189
10473
|
_this.remissions = remission;
|
|
9190
10474
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
9191
10475
|
* @param {?} data
|
|
9192
10476
|
* @return {?}
|
|
9193
10477
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10478
|
+
_this.viewStatus = 'addrefundforremission';
|
|
9194
10479
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9195
10480
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
9196
10481
|
}), ( /**
|
|
@@ -9235,70 +10520,40 @@
|
|
|
9235
10520
|
* @param {?} payment
|
|
9236
10521
|
* @return {?}
|
|
9237
10522
|
*/
|
|
9238
|
-
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
9239
|
-
* @param {?} payment
|
|
9240
|
-
* @return {?}
|
|
9241
|
-
*/
|
|
9242
|
-
function (payment) {
|
|
9243
|
-
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9244
|
-
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9245
|
-
this.isIssueRefunfBtnEnable = true;
|
|
9246
|
-
}
|
|
9247
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
9248
|
-
return true;
|
|
9249
|
-
}
|
|
9250
|
-
else {
|
|
9251
|
-
return false;
|
|
9252
|
-
}
|
|
9253
|
-
};
|
|
9254
|
-
/**
|
|
9255
|
-
* @return {?}
|
|
9256
|
-
*/
|
|
9257
|
-
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9258
|
-
* @return {?}
|
|
9259
|
-
*/
|
|
9260
|
-
function () {
|
|
9261
|
-
var _this = this;
|
|
9262
|
-
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9263
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9264
|
-
this.orderDetail.forEach(( /**
|
|
9265
|
-
* @param {?} orderDetail
|
|
9266
|
-
* @return {?}
|
|
9267
|
-
*/function (orderDetail) {
|
|
9268
|
-
if (orderDetail.payments) {
|
|
9269
|
-
orderDetail.payments.forEach(( /**
|
|
9270
|
-
* @param {?} payment
|
|
9271
|
-
* @return {?}
|
|
9272
|
-
*/function (payment) {
|
|
9273
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9274
|
-
_this.isRefundRemissionBtnEnable = true;
|
|
9275
|
-
}
|
|
9276
|
-
}));
|
|
9277
|
-
}
|
|
9278
|
-
}));
|
|
9279
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
9280
|
-
return true;
|
|
9281
|
-
}
|
|
9282
|
-
else {
|
|
9283
|
-
return false;
|
|
9284
|
-
}
|
|
9285
|
-
}
|
|
9286
|
-
};
|
|
9287
|
-
/**
|
|
9288
|
-
* @param {?} payment
|
|
9289
|
-
* @return {?}
|
|
9290
|
-
*/
|
|
9291
10523
|
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9292
10524
|
* @param {?} payment
|
|
9293
10525
|
* @return {?}
|
|
9294
10526
|
*/
|
|
9295
10527
|
function (payment) {
|
|
10528
|
+
var _this = this;
|
|
9296
10529
|
if (payment !== null && payment !== undefined) {
|
|
9297
|
-
if (this.
|
|
9298
|
-
this.
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
10530
|
+
if (this.chkIsIssueRefundBtnEnable(payment)) {
|
|
10531
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
|
|
10532
|
+
* @param {?} paymentGroup
|
|
10533
|
+
* @return {?}
|
|
10534
|
+
*/function (paymentGroup) {
|
|
10535
|
+
paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
10536
|
+
* @param {?} paymentGroupObj
|
|
10537
|
+
* @return {?}
|
|
10538
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
|
|
10539
|
+
if (payment.over_payment > 0) {
|
|
10540
|
+
_this.viewStatus = '';
|
|
10541
|
+
_this.payment = payment;
|
|
10542
|
+
_this.paymentGroupList = paymentGroup;
|
|
10543
|
+
_this.viewCompStatus = 'overpayment';
|
|
10544
|
+
}
|
|
10545
|
+
else {
|
|
10546
|
+
_this.viewStatus = 'issuerefund';
|
|
10547
|
+
_this.viewCompStatus = '';
|
|
10548
|
+
_this.paymentFees = paymentGroup.fees;
|
|
10549
|
+
_this.payment = payment;
|
|
10550
|
+
_this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
10551
|
+
_this.isRefundRemission = true;
|
|
10552
|
+
}
|
|
10553
|
+
}), ( /**
|
|
10554
|
+
* @param {?} error
|
|
10555
|
+
* @return {?}
|
|
10556
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
9302
10557
|
}
|
|
9303
10558
|
}
|
|
9304
10559
|
};
|
|
@@ -9340,6 +10595,54 @@
|
|
|
9340
10595
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
9341
10596
|
this.viewStatus = 'payment-view';
|
|
9342
10597
|
};
|
|
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
|
+
};
|
|
9343
10646
|
/**
|
|
9344
10647
|
* @return {?}
|
|
9345
10648
|
*/
|
|
@@ -9356,11 +10659,158 @@
|
|
|
9356
10659
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
9357
10660
|
this.OrderslistService.setorderFeesTotal(null);
|
|
9358
10661
|
};
|
|
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
|
+
};
|
|
9359
10809
|
ServiceRequestComponent.decorators = [
|
|
9360
10810
|
{ type: i0.Component, args: [{
|
|
9361
10811
|
selector: 'ccpay-service-request',
|
|
9362
|
-
template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest === 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n <li class=\"govuk-breadcrumbs__list-item\" *ngIf=\"isServiceRequest !== 'false'\">\n <a href=\"javascript:void(0)\" (click)=\"goToServiceRequestPage()\" id=\"bckLnksize\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[isServiceRequest] = \"isServiceRequest\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>",
|
|
9363
|
-
styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}#bckLnksize{font-size:16px!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}"]
|
|
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%}.over-payment .govuk-table-mb{margin-bottom:20px}.over-payment .contactDetails-width{width:70%}.over-payment .margin-top10px{margin-top:20px}.over-payment .govuk-font19px{font-size:19px!important}.over-payment .margin-top--size{margin-top:-30px}.over-payment .over-payment-alignment{margin-right:10px}.over-payment .govuk-button{font-size:19px;float:left;margin-top:2em}.over-payment td.govuk-table__cell{width:50%;text-align:left}.over-payment .govuk-label--s,.over-payment .govuk-warning-text__text,.over-payment .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.over-payment .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.over-payment .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.over-payment .govuk-button-group{padding-top:2em}.over-payment .heading-medium{margin-top:.875em}.over-payment .heading-large{margin-top:.25em}.over-payment .govuk-panel--confirmation{color:#fff;background:#00703c}.over-payment .govuk-panel__title{font-size:5rem}.over-payment .govuk-body,.over-payment .govuk-body-m{font-size:2.1875rem}.over-payment .govuk-link{cursor:pointer}.over-payment .govuk-radios__conditional{padding-top:12px!important}.over-payment .right{float:right;cursor:pointer}.over-payment .radio{float:right}.over-payment .white{color:#fff}"]
|
|
9364
10814
|
}] }
|
|
9365
10815
|
];
|
|
9366
10816
|
/** @nocollapse */
|
|
@@ -9369,6 +10819,7 @@
|
|
|
9369
10819
|
{ type: PaymentLibComponent },
|
|
9370
10820
|
{ type: PaymentViewService },
|
|
9371
10821
|
{ type: OrderslistService },
|
|
10822
|
+
{ type: i0.ChangeDetectorRef },
|
|
9372
10823
|
{ type: router.Router }
|
|
9373
10824
|
];
|
|
9374
10825
|
};
|
|
@@ -9384,6 +10835,7 @@
|
|
|
9384
10835
|
orderFeesTotal: [{ type: i0.Input, args: ['orderFeesTotal',] }],
|
|
9385
10836
|
orderTotalPayments: [{ type: i0.Input, args: ['orderTotalPayments',] }],
|
|
9386
10837
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
10838
|
+
paymentGroupList: [{ type: i0.Input, args: ['paymentGroupList',] }],
|
|
9387
10839
|
takePayment: [{ type: i0.Input, args: ['takePayment',] }],
|
|
9388
10840
|
ccdCaseNumber: [{ type: i0.Input, args: ['ccdCaseNumber',] }],
|
|
9389
10841
|
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
@@ -9652,6 +11104,7 @@
|
|
|
9652
11104
|
PaymentListComponent,
|
|
9653
11105
|
PaymentViewComponent,
|
|
9654
11106
|
PbaPaymentComponent,
|
|
11107
|
+
ContactDetailsComponent,
|
|
9655
11108
|
ProcessRefundComponent,
|
|
9656
11109
|
RefundListComponent,
|
|
9657
11110
|
CardDetailsComponent,
|
|
@@ -9700,45 +11153,47 @@
|
|
|
9700
11153
|
exports.PaymentLibService = PaymentLibService;
|
|
9701
11154
|
exports.PaymentLibComponent = PaymentLibComponent;
|
|
9702
11155
|
exports.PaymentLibModule = PaymentLibModule;
|
|
9703
|
-
exports.ɵ
|
|
9704
|
-
exports.ɵ
|
|
9705
|
-
exports.ɵ
|
|
9706
|
-
exports.ɵ
|
|
9707
|
-
exports.ɵ
|
|
9708
|
-
exports.ɵ
|
|
9709
|
-
exports.ɵ
|
|
9710
|
-
exports.ɵt =
|
|
9711
|
-
exports.ɵ
|
|
11156
|
+
exports.ɵbd = AddRemissionComponent;
|
|
11157
|
+
exports.ɵy = AllocatePaymentsComponent;
|
|
11158
|
+
exports.ɵo = CardDetailsComponent;
|
|
11159
|
+
exports.ɵbb = CaseTransactionsComponent;
|
|
11160
|
+
exports.ɵj = ContactDetailsComponent;
|
|
11161
|
+
exports.ɵbk = ErrorBannerComponent;
|
|
11162
|
+
exports.ɵbc = FeeSummaryComponent;
|
|
11163
|
+
exports.ɵt = MarkUnidentifiedPaymentComponent;
|
|
11164
|
+
exports.ɵv = MarkUnsolicitedPaymentComponent;
|
|
11165
|
+
exports.ɵq = PageNotFoundComponent;
|
|
9712
11166
|
exports.ɵb = PaymentListComponent;
|
|
9713
11167
|
exports.ɵf = PaymentViewComponent;
|
|
9714
|
-
exports.ɵ
|
|
11168
|
+
exports.ɵba = PbaDetailsComponent;
|
|
9715
11169
|
exports.ɵi = PbaPaymentComponent;
|
|
9716
|
-
exports.ɵ
|
|
9717
|
-
exports.ɵ
|
|
9718
|
-
exports.ɵ
|
|
9719
|
-
exports.ɵ
|
|
9720
|
-
exports.ɵ
|
|
9721
|
-
exports.ɵ
|
|
9722
|
-
exports.ɵ
|
|
9723
|
-
exports.ɵ
|
|
9724
|
-
exports.ɵ
|
|
9725
|
-
exports.ɵ
|
|
9726
|
-
exports.ɵ
|
|
9727
|
-
exports.ɵ
|
|
9728
|
-
exports.ɵ
|
|
9729
|
-
exports.ɵ
|
|
9730
|
-
exports.ɵ
|
|
9731
|
-
exports.ɵ
|
|
11170
|
+
exports.ɵl = ProcessRefundComponent;
|
|
11171
|
+
exports.ɵx = ProcessedPaymentsComponent;
|
|
11172
|
+
exports.ɵn = RefundListComponent;
|
|
11173
|
+
exports.ɵbm = RefundStatusComponent;
|
|
11174
|
+
exports.ɵbi = ReportsComponent;
|
|
11175
|
+
exports.ɵbn = ServiceRequestComponent;
|
|
11176
|
+
exports.ɵr = StatusHistoryComponent;
|
|
11177
|
+
exports.ɵbl = TableComponent;
|
|
11178
|
+
exports.ɵw = UnprocessedPaymentsComponent;
|
|
11179
|
+
exports.ɵbf = CapitalizePipe;
|
|
11180
|
+
exports.ɵbe = CcdHyphensPipe;
|
|
11181
|
+
exports.ɵbg = keyValuePipe;
|
|
11182
|
+
exports.ɵbh = SanitizeHtmlPipe;
|
|
11183
|
+
exports.ɵu = BulkScaningPaymentService;
|
|
11184
|
+
exports.ɵp = CardDetailsService;
|
|
11185
|
+
exports.ɵz = CaseTransactionsService;
|
|
11186
|
+
exports.ɵk = NotificationService;
|
|
9732
11187
|
exports.ɵa = OrderslistService;
|
|
9733
11188
|
exports.ɵc = PaymentListService;
|
|
9734
11189
|
exports.ɵg = PaymentViewService;
|
|
9735
|
-
exports.ɵ
|
|
11190
|
+
exports.ɵm = RefundsService;
|
|
9736
11191
|
exports.ɵe = ErrorHandlerService;
|
|
9737
11192
|
exports.ɵh = WebComponentHttpClient;
|
|
9738
|
-
exports.ɵ
|
|
11193
|
+
exports.ɵbo = ConsoleLoggerService;
|
|
9739
11194
|
exports.ɵd = LoggerService;
|
|
9740
|
-
exports.ɵ
|
|
9741
|
-
exports.ɵ
|
|
11195
|
+
exports.ɵs = StatusHistoryService;
|
|
11196
|
+
exports.ɵbj = XlFileService;
|
|
9742
11197
|
|
|
9743
11198
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9744
11199
|
|