@hmcts/ccpay-web-component 5.0.4-beta28 → 5.0.5-beta02
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 +2072 -690
- 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 +34 -21
- 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 +187 -158
- 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 +235 -50
- package/esm2015/lib/components/reports/reports.component.js +2 -6
- 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 +13 -7
- 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/payment-view/payment-view.service.js +1 -10
- 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 +34 -21
- 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 +213 -179
- 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 +271 -50
- package/esm5/lib/components/reports/reports.component.js +2 -6
- 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 -5
- 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/payment-view/payment-view.service.js +1 -14
- 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 +1835 -566
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +2284 -865
- 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 -2
- package/lib/components/contact-details/contact-details.component.d.ts +49 -0
- package/lib/components/payment-view/payment-view.component.d.ts +23 -13
- package/lib/components/process-refund/process-refund.component.d.ts +6 -1
- package/lib/components/refund-status/refund-status.component.d.ts +36 -7
- 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 -1
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/notification/notification.service.d.ts +15 -0
- package/lib/services/payment-view/payment-view.service.d.ts +0 -1
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +5 -1
- package/esm2015/lib/interfaces/IPaymentFailure.js +0 -33
- package/esm5/lib/interfaces/IPaymentFailure.js +0 -33
- package/lib/interfaces/IPaymentFailure.d.ts +0 -13
|
@@ -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
|
|
601
|
+
template: "\n <ccpay-refund-list [USERID]=\"USERID\" [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" [LOGGEDINUSEREMAIL]=\"LOGGEDINUSEREMAIL\" *ngIf=\"viewName === 'refund-list'\"></ccpay-refund-list>\n <ccpay-payment-list *ngIf=\"viewName === 'payment-list'\"></ccpay-payment-list>\n <ccpay-refund-status\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\"\n [API_ROOT]=\"API_ROOT\"\n *ngIf=\"viewName === 'refundstatuslist'\"> </ccpay-refund-status >\n <ccpay-payment-view [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" *ngIf=\"viewName === 'payment-view'\"\n [isTurnOff]=\"ISTURNOFF\" [isTakePayment]=\"TAKEPAYMENT\" [caseType]=\"CASETYPE\"\n [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',] }],
|
|
@@ -608,7 +631,6 @@
|
|
|
608
631
|
CASETYPE: [{ type: i0.Input, args: ['CASETYPE',] }],
|
|
609
632
|
ISOLDPCIPALOFF: [{ type: i0.Input, args: ['ISOLDPCIPALOFF',] }],
|
|
610
633
|
ISNEWPCIPALOFF: [{ type: i0.Input, args: ['ISNEWPCIPALOFF',] }],
|
|
611
|
-
ISPAYMENTSTATUSENABLED: [{ type: i0.Input, args: ['ISPAYMENTSTATUSENABLED',] }],
|
|
612
634
|
rootUrl: [{ type: i0.Input, args: ['rootUrl',] }],
|
|
613
635
|
REFUNDLIST: [{ type: i0.Input, args: ['REFUNDLIST',] }],
|
|
614
636
|
USERID: [{ type: i0.Input, args: ['USERID',] }],
|
|
@@ -1365,19 +1387,6 @@
|
|
|
1365
1387
|
function (body) {
|
|
1366
1388
|
return this.https.post(this.paymentLibService.API_ROOT + "/refund-retro-remission", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
1367
1389
|
};
|
|
1368
|
-
/**
|
|
1369
|
-
* @param {?} paymentReference
|
|
1370
|
-
* @return {?}
|
|
1371
|
-
*/
|
|
1372
|
-
PaymentViewService.prototype.getPaymentFailure = /**
|
|
1373
|
-
* @param {?} paymentReference
|
|
1374
|
-
* @return {?}
|
|
1375
|
-
*/
|
|
1376
|
-
function (paymentReference) {
|
|
1377
|
-
return this.https.get(this.paymentLibService.API_ROOT + "/payment-failures/" + paymentReference, {
|
|
1378
|
-
withCredentials: true
|
|
1379
|
-
}).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
1380
|
-
};
|
|
1381
1390
|
PaymentViewService.decorators = [
|
|
1382
1391
|
{ type: i0.Injectable, args: [{
|
|
1383
1392
|
providedIn: 'root'
|
|
@@ -1397,13 +1406,28 @@
|
|
|
1397
1406
|
return PaymentViewService;
|
|
1398
1407
|
}());
|
|
1399
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
|
+
|
|
1400
1425
|
/**
|
|
1401
1426
|
* @fileoverview added by tsickle
|
|
1402
1427
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1403
1428
|
*/
|
|
1404
1429
|
var PaymentViewComponent = /** @class */ (function () {
|
|
1405
1430
|
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService$$1) {
|
|
1406
|
-
var _this = this;
|
|
1407
1431
|
this.paymentViewService = paymentViewService;
|
|
1408
1432
|
this.paymentLibComponent = paymentLibComponent;
|
|
1409
1433
|
this.cd = cd;
|
|
@@ -1413,28 +1437,7 @@
|
|
|
1413
1437
|
this.isIssueRefunfBtnEnable = false;
|
|
1414
1438
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
1415
1439
|
this.remissions = [];
|
|
1416
|
-
this.
|
|
1417
|
-
this.check4AllowedRoles2AccessRefund = ( /**
|
|
1418
|
-
* @return {?}
|
|
1419
|
-
*/function () {
|
|
1420
|
-
return _this.allowedRolesToAccessRefund.some(( /**
|
|
1421
|
-
* @param {?} role
|
|
1422
|
-
* @return {?}
|
|
1423
|
-
*/function (role) {
|
|
1424
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
1425
|
-
}));
|
|
1426
|
-
});
|
|
1427
|
-
this.allowFurtherAccessAfter4Days = ( /**
|
|
1428
|
-
* @param {?} payment
|
|
1429
|
-
* @return {?}
|
|
1430
|
-
*/function (payment) {
|
|
1431
|
-
if (payment !== null && payment !== undefined) {
|
|
1432
|
-
/** @type {?} */
|
|
1433
|
-
var tmp4DayAgo = new Date();
|
|
1434
|
-
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1435
|
-
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1436
|
-
}
|
|
1437
|
-
});
|
|
1440
|
+
this.isContinueBtnDisabled = true;
|
|
1438
1441
|
}
|
|
1439
1442
|
/**
|
|
1440
1443
|
* @return {?}
|
|
@@ -1485,6 +1488,7 @@
|
|
|
1485
1488
|
}
|
|
1486
1489
|
}));
|
|
1487
1490
|
paymentGroup.fees = fees;
|
|
1491
|
+
_this.paymentFees = fees;
|
|
1488
1492
|
_this.paymentGroup = paymentGroup;
|
|
1489
1493
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
1490
1494
|
* @param {?} paymentGroupObj
|
|
@@ -1497,30 +1501,6 @@
|
|
|
1497
1501
|
* @param {?} error
|
|
1498
1502
|
* @return {?}
|
|
1499
1503
|
*/function (error) { return _this.errorMessage = error; }));
|
|
1500
|
-
this.paymentViewService.getPaymentFailure(this.paymentLibComponent.paymentReference).subscribe({
|
|
1501
|
-
next: ( /**
|
|
1502
|
-
* @param {?} res
|
|
1503
|
-
* @return {?}
|
|
1504
|
-
*/function (res) {
|
|
1505
|
-
JSON.parse(res).payment_failure_list.reverse().forEach(( /**
|
|
1506
|
-
* @param {?} payments
|
|
1507
|
-
* @return {?}
|
|
1508
|
-
*/function (payments) {
|
|
1509
|
-
_this.allPaymentsFailure.push(payments.payment_failure_initiated);
|
|
1510
|
-
if (payments.payment_failure_closed) {
|
|
1511
|
-
_this.allPaymentsFailure.push(payments.payment_failure_closed);
|
|
1512
|
-
}
|
|
1513
|
-
}));
|
|
1514
|
-
_this.allPaymentsFailure = _this.allPaymentsFailure.reverse();
|
|
1515
|
-
}),
|
|
1516
|
-
error: ( /**
|
|
1517
|
-
* @param {?} e
|
|
1518
|
-
* @return {?}
|
|
1519
|
-
*/function (e) {
|
|
1520
|
-
_this.allPaymentsFailure = [];
|
|
1521
|
-
_this.errorMsg = "Server error";
|
|
1522
|
-
})
|
|
1523
|
-
});
|
|
1524
1504
|
};
|
|
1525
1505
|
Object.defineProperty(PaymentViewComponent.prototype, "isCardPayment", {
|
|
1526
1506
|
get: /**
|
|
@@ -1552,6 +1532,23 @@
|
|
|
1552
1532
|
/**
|
|
1553
1533
|
* @return {?}
|
|
1554
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
|
+
*/
|
|
1555
1552
|
PaymentViewComponent.prototype.goToServiceRequestPage = /**
|
|
1556
1553
|
* @return {?}
|
|
1557
1554
|
*/
|
|
@@ -1626,7 +1623,7 @@
|
|
|
1626
1623
|
*/
|
|
1627
1624
|
function (fee) {
|
|
1628
1625
|
var _this = this;
|
|
1629
|
-
if (this.
|
|
1626
|
+
if (this.chkIsAddRemissionBtnEnable(fee)) {
|
|
1630
1627
|
this.feeId = fee;
|
|
1631
1628
|
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe(( /**
|
|
1632
1629
|
* @param {?} paymentGroup
|
|
@@ -1664,6 +1661,62 @@
|
|
|
1664
1661
|
}
|
|
1665
1662
|
return false;
|
|
1666
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
|
+
};
|
|
1667
1720
|
/**
|
|
1668
1721
|
* @param {?} payment
|
|
1669
1722
|
* @param {?} remission
|
|
@@ -1678,56 +1731,40 @@
|
|
|
1678
1731
|
*/
|
|
1679
1732
|
function (payment, remission, fees) {
|
|
1680
1733
|
var _this = this;
|
|
1681
|
-
if
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
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
|
|
1685
1742
|
* @return {?}
|
|
1686
|
-
*/function (
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1692
|
-
_this.payment = _this.paymentGroup.payments[0];
|
|
1693
|
-
_this.remissions = remission;
|
|
1694
|
-
_this.remissionFeeAmt = fees.filter(( /**
|
|
1695
|
-
* @param {?} data
|
|
1696
|
-
* @return {?}
|
|
1697
|
-
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1698
|
-
_this.viewStatus = 'addrefundforremission';
|
|
1699
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1700
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1701
|
-
}), ( /**
|
|
1702
|
-
* @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
|
|
1703
1748
|
* @return {?}
|
|
1704
|
-
*/function (
|
|
1705
|
-
|
|
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
|
+
//}
|
|
1706
1758
|
};
|
|
1707
1759
|
/**
|
|
1708
1760
|
* @return {?}
|
|
1709
1761
|
*/
|
|
1710
|
-
PaymentViewComponent.prototype.
|
|
1762
|
+
PaymentViewComponent.prototype.goToPaymentViewComponent = /**
|
|
1711
1763
|
* @return {?}
|
|
1712
1764
|
*/
|
|
1713
1765
|
function () {
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
this.paymentGroup.payments.forEach(( /**
|
|
1717
|
-
* @param {?} payment
|
|
1718
|
-
* @return {?}
|
|
1719
|
-
*/function (payment) {
|
|
1720
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1721
|
-
_this.isRefundRemissionBtnEnable = true;
|
|
1722
|
-
}
|
|
1723
|
-
}));
|
|
1724
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
1725
|
-
return true;
|
|
1726
|
-
}
|
|
1727
|
-
else {
|
|
1728
|
-
return false;
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1766
|
+
this.viewCompStatus = '';
|
|
1767
|
+
this.viewStatus = 'paymentview';
|
|
1731
1768
|
};
|
|
1732
1769
|
/**
|
|
1733
1770
|
* @param {?} paymentgrp
|
|
@@ -1739,13 +1776,18 @@
|
|
|
1739
1776
|
*/
|
|
1740
1777
|
function (paymentgrp) {
|
|
1741
1778
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1742
|
-
if (this.
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
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
|
+
}
|
|
1749
1791
|
}
|
|
1750
1792
|
}
|
|
1751
1793
|
};
|
|
@@ -1790,124 +1832,131 @@
|
|
|
1790
1832
|
* @param {?} payment
|
|
1791
1833
|
* @return {?}
|
|
1792
1834
|
*/
|
|
1793
|
-
PaymentViewComponent.prototype.
|
|
1835
|
+
PaymentViewComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
1794
1836
|
* @param {?} payment
|
|
1795
1837
|
* @return {?}
|
|
1796
1838
|
*/
|
|
1797
1839
|
function (payment) {
|
|
1798
|
-
if (
|
|
1799
|
-
payment.
|
|
1800
|
-
this.isIssueRefunfBtnEnable = true;
|
|
1801
|
-
}
|
|
1802
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
1803
|
-
return true;
|
|
1840
|
+
if (payment !== null && payment !== undefined) {
|
|
1841
|
+
return payment.issue_refund && payment.refund_enable;
|
|
1804
1842
|
}
|
|
1805
1843
|
else {
|
|
1806
1844
|
return false;
|
|
1807
1845
|
}
|
|
1808
1846
|
};
|
|
1809
1847
|
/**
|
|
1848
|
+
* @param {?} remission
|
|
1810
1849
|
* @return {?}
|
|
1811
1850
|
*/
|
|
1812
|
-
PaymentViewComponent.prototype.
|
|
1851
|
+
PaymentViewComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
1852
|
+
* @param {?} remission
|
|
1813
1853
|
* @return {?}
|
|
1814
1854
|
*/
|
|
1815
|
-
function () {
|
|
1816
|
-
if (
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
return true;
|
|
1821
|
-
}
|
|
1855
|
+
function (remission) {
|
|
1856
|
+
if (remission !== null && remission !== undefined) {
|
|
1857
|
+
return remission.add_refund;
|
|
1858
|
+
}
|
|
1859
|
+
else {
|
|
1822
1860
|
return false;
|
|
1823
1861
|
}
|
|
1824
1862
|
};
|
|
1825
1863
|
/**
|
|
1826
|
-
* @param {?}
|
|
1864
|
+
* @param {?} fee
|
|
1827
1865
|
* @return {?}
|
|
1828
1866
|
*/
|
|
1829
|
-
PaymentViewComponent.prototype.
|
|
1830
|
-
* @param {?}
|
|
1867
|
+
PaymentViewComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
1868
|
+
* @param {?} fee
|
|
1831
1869
|
* @return {?}
|
|
1832
1870
|
*/
|
|
1833
|
-
function (
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
1837
|
-
try {
|
|
1838
|
-
for (var _b = __values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1839
|
-
var remission = _c.value;
|
|
1840
|
-
if (remission.fee_code === feeCode) {
|
|
1841
|
-
return false;
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
catch (e_2_1) {
|
|
1846
|
-
e_2 = { error: e_2_1 };
|
|
1847
|
-
}
|
|
1848
|
-
finally {
|
|
1849
|
-
try {
|
|
1850
|
-
if (_c && !_c.done && (_a = _b.return))
|
|
1851
|
-
_a.call(_b);
|
|
1852
|
-
}
|
|
1853
|
-
finally {
|
|
1854
|
-
if (e_2)
|
|
1855
|
-
throw e_2.error;
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
return true;
|
|
1859
|
-
}
|
|
1860
|
-
return true;
|
|
1871
|
+
function (fee) {
|
|
1872
|
+
if (fee !== null && fee !== undefined) {
|
|
1873
|
+
return fee.add_remission && fee.remission_enable;
|
|
1861
1874
|
}
|
|
1862
1875
|
else {
|
|
1863
1876
|
return false;
|
|
1864
1877
|
}
|
|
1865
1878
|
};
|
|
1866
1879
|
/**
|
|
1880
|
+
* @param {?} paymentType
|
|
1867
1881
|
* @return {?}
|
|
1868
1882
|
*/
|
|
1869
|
-
PaymentViewComponent.prototype.
|
|
1883
|
+
PaymentViewComponent.prototype.selectPymentOption = /**
|
|
1884
|
+
* @param {?} paymentType
|
|
1870
1885
|
* @return {?}
|
|
1871
1886
|
*/
|
|
1872
|
-
function () {
|
|
1873
|
-
this.
|
|
1874
|
-
this.
|
|
1875
|
-
this.OrderslistService.setorderCreated(null);
|
|
1876
|
-
this.OrderslistService.setorderDetail(null);
|
|
1877
|
-
this.OrderslistService.setorderParty(null);
|
|
1878
|
-
this.OrderslistService.setorderTotalPayments(null);
|
|
1879
|
-
this.OrderslistService.setorderRemissionTotal(null);
|
|
1880
|
-
this.OrderslistService.setorderFeesTotal(null);
|
|
1887
|
+
function (paymentType) {
|
|
1888
|
+
this.paymentType = paymentType;
|
|
1889
|
+
this.isContinueBtnDisabled = false;
|
|
1881
1890
|
};
|
|
1882
1891
|
/**
|
|
1883
|
-
* @param {?}
|
|
1892
|
+
* @param {?} paymentgrp
|
|
1884
1893
|
* @return {?}
|
|
1885
1894
|
*/
|
|
1886
|
-
PaymentViewComponent.prototype.
|
|
1887
|
-
* @param {?}
|
|
1895
|
+
PaymentViewComponent.prototype.continuePayment = /**
|
|
1896
|
+
* @param {?} paymentgrp
|
|
1888
1897
|
* @return {?}
|
|
1889
1898
|
*/
|
|
1890
|
-
function (
|
|
1891
|
-
this.
|
|
1892
|
-
|
|
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
|
+
}
|
|
1893
1914
|
};
|
|
1894
1915
|
/**
|
|
1895
1916
|
* @param {?} event
|
|
1896
1917
|
* @return {?}
|
|
1897
1918
|
*/
|
|
1898
|
-
PaymentViewComponent.prototype.
|
|
1919
|
+
PaymentViewComponent.prototype.gotoPaymentSelectPage = /**
|
|
1899
1920
|
* @param {?} event
|
|
1900
1921
|
* @return {?}
|
|
1901
1922
|
*/
|
|
1902
1923
|
function (event) {
|
|
1903
1924
|
event.preventDefault();
|
|
1904
|
-
this.
|
|
1925
|
+
this.viewCompStatus = 'overpayment';
|
|
1926
|
+
};
|
|
1927
|
+
/**
|
|
1928
|
+
* @param {?} obj
|
|
1929
|
+
* @return {?}
|
|
1930
|
+
*/
|
|
1931
|
+
PaymentViewComponent.prototype.getContactDetails = /**
|
|
1932
|
+
* @param {?} obj
|
|
1933
|
+
* @return {?}
|
|
1934
|
+
*/
|
|
1935
|
+
function (obj) {
|
|
1936
|
+
this.contactDetailsObj = obj;
|
|
1937
|
+
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
1938
|
+
};
|
|
1939
|
+
/**
|
|
1940
|
+
* @return {?}
|
|
1941
|
+
*/
|
|
1942
|
+
PaymentViewComponent.prototype.resetOrderData = /**
|
|
1943
|
+
* @return {?}
|
|
1944
|
+
*/
|
|
1945
|
+
function () {
|
|
1946
|
+
this.OrderslistService.setOrderRef(null);
|
|
1947
|
+
this.OrderslistService.setorderCCDEvent(null);
|
|
1948
|
+
this.OrderslistService.setorderCreated(null);
|
|
1949
|
+
this.OrderslistService.setorderDetail(null);
|
|
1950
|
+
this.OrderslistService.setorderParty(null);
|
|
1951
|
+
this.OrderslistService.setorderTotalPayments(null);
|
|
1952
|
+
this.OrderslistService.setorderRemissionTotal(null);
|
|
1953
|
+
this.OrderslistService.setorderFeesTotal(null);
|
|
1905
1954
|
};
|
|
1906
1955
|
PaymentViewComponent.decorators = [
|
|
1907
1956
|
{ type: i0.Component, args: [{
|
|
1908
1957
|
selector: 'ccpay-payment-view',
|
|
1909
|
-
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n<div *ngIf=\"ISPAYMENTSTATUSENABLED === 'Disable'\">\n <div class=\"column\">\n <h2 class=\"heading-medium\">Disputed payment history</h2>\n </div>\n \n <!-- <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\" *ngIf=\"errorMsg\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment status history could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMsg }}\n </div>\n </div> -->\n <div>\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th>Amount</th>\n <th>Date</th>\n <th>Payment reference</th>\n <th>Event</th>\n <th></th>\n </tr>\n </thead> \n <tbody *ngIf=\"!errorMsg && allPaymentsFailure.length > 0\">\n <tr *ngFor=\"let payment of allPaymentsFailure\">\n <td>{{ payment.status }}</td>\n <td>\u00A3{{ payment.disputed_amount | number:'.2' }}</td>\n <td>{{(payment.representment_date ? payment.representment_date : payment.failure_event_date_time) | date:'dd MMM yyyy'}}</td>\n <td>{{ payment.payment_reference }}</td>\n <td >{{ payment.failure_type }}</td>\n <td>\n \n <a href=\"javascript:void(0)\" (click)=\"goToPaymentFailuePage(payment)\">Review</a>\n\n </td>\n </tr>\n </tbody>\n <tbody *ngIf=\"errorMsg || allPaymentsFailure.length === 0\">\n <tr>\n <td colspan=\"6\"> No disputed payment history available. </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n </div>\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[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</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-failure'\">\n <div class=\"payment-failure-alignment\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goBackToPaymentView($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Failure event details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold\">Failure reference</td>\n <td>\t{{selectedPaymentsStatus.failure_reference}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure reason</td>\n <td>\t{{selectedPaymentsStatus.failure_reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment reference</td>\n <td>{{ selectedPaymentsStatus.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment amount</td>\n <td> \u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Disputed amount</td>\n <td>\t{{selectedPaymentsStatus.disputed_amount | number:'.2'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Additional reference</td>\n <td>\t{{selectedPaymentsStatus.additional_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure type</td>\n <td>\t{{ selectedPaymentsStatus.failure_type }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure event date and time</td>\n <td> {{ selectedPaymentsStatus.failure_event_date_time | date:'dd MMM yyyy HH:mm:ss' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.has_amount_debited\">\n <td class=\"bold\">Has disputed amount debited</td>\n <td>\t{{selectedPaymentsStatus.has_amount_debited}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_status\">\n <td class=\"bold\">Representment status</td>\n <td>\t{{selectedPaymentsStatus.representment_status === 'yes'? 'Success' : 'Failure'}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_date\">\n <td class=\"bold\">Representment date</td>\n <td>\t{{selectedPaymentsStatus.representment_date | date:'dd MMM yyyy HH:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n</ng-container>",
|
|
1910
|
-
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}.text-transform::first-letter{text-transform:capitalize}.govuk-link{cursor:pointer}.mar-17{font-size:19px!important}.payment-
|
|
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}"]
|
|
1911
1960
|
}] }
|
|
1912
1961
|
];
|
|
1913
1962
|
/** @nocollapse */
|
|
@@ -1930,7 +1979,6 @@
|
|
|
1930
1979
|
orderTotalPayments: [{ type: i0.Input }],
|
|
1931
1980
|
payment: [{ type: i0.Input }],
|
|
1932
1981
|
LOGGEDINUSERROLES: [{ type: i0.Input }],
|
|
1933
|
-
ISPAYMENTSTATUSENABLED: [{ type: i0.Input }],
|
|
1934
1982
|
orderParty: [{ type: i0.Input }],
|
|
1935
1983
|
orderCreated: [{ type: i0.Input }],
|
|
1936
1984
|
orderCCDEvent: [{ type: i0.Input }],
|
|
@@ -2076,6 +2124,21 @@
|
|
|
2076
2124
|
function (body) {
|
|
2077
2125
|
return this.https.post(this.paymentLibService.REFUNDS_API_ROOT + "/refund", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
2078
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
|
+
};
|
|
2079
2142
|
/**
|
|
2080
2143
|
* @param {?} body
|
|
2081
2144
|
* @param {?} refund_reference
|
|
@@ -2160,8 +2223,9 @@
|
|
|
2160
2223
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2161
2224
|
*/
|
|
2162
2225
|
var ProcessRefundComponent = /** @class */ (function () {
|
|
2163
|
-
function ProcessRefundComponent(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2226
|
+
function ProcessRefundComponent(RefundsService$$1, paymentViewService, formBuilder, OrderslistService$$1, paymentLibComponent, router$$1, activeRoute) {
|
|
2164
2227
|
this.RefundsService = RefundsService$$1;
|
|
2228
|
+
this.paymentViewService = paymentViewService;
|
|
2165
2229
|
this.formBuilder = formBuilder;
|
|
2166
2230
|
this.OrderslistService = OrderslistService$$1;
|
|
2167
2231
|
this.paymentLibComponent = paymentLibComponent;
|
|
@@ -2184,6 +2248,7 @@
|
|
|
2184
2248
|
this.isReasonEmpty = false;
|
|
2185
2249
|
this.isReasonInvalid = false;
|
|
2186
2250
|
this.successMsg = null;
|
|
2251
|
+
this.cpoDetails = null;
|
|
2187
2252
|
this.isConfirmButtondisabled = true;
|
|
2188
2253
|
}
|
|
2189
2254
|
/**
|
|
@@ -2229,7 +2294,19 @@
|
|
|
2229
2294
|
if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
|
|
2230
2295
|
this.isFromRefundListPage = true;
|
|
2231
2296
|
}
|
|
2232
|
-
|
|
2297
|
+
this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe(( /**
|
|
2298
|
+
* @param {?} response
|
|
2299
|
+
* @return {?}
|
|
2300
|
+
*/function (response) {
|
|
2301
|
+
_this.cpoDetails = JSON.parse(response).content[0];
|
|
2302
|
+
}), ( /**
|
|
2303
|
+
* @param {?} error
|
|
2304
|
+
* @return {?}
|
|
2305
|
+
*/function (error) {
|
|
2306
|
+
_this.errorMessage = ( /** @type {?} */(error.replace(/"/g, "")));
|
|
2307
|
+
_this.isCPODown = true;
|
|
2308
|
+
}));
|
|
2309
|
+
};
|
|
2233
2310
|
/**
|
|
2234
2311
|
* @param {?} code
|
|
2235
2312
|
* @return {?}
|
|
@@ -2462,89 +2539,29 @@
|
|
|
2462
2539
|
this.loadRefundListPage();
|
|
2463
2540
|
}
|
|
2464
2541
|
};
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2479
|
-
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2480
|
-
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2481
|
-
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2482
|
-
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2483
|
-
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2484
|
-
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2485
|
-
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2486
|
-
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2487
|
-
// this.router.navigateByUrl(url);
|
|
2488
|
-
// }
|
|
2489
|
-
// loadCaseTransactionPage() {
|
|
2490
|
-
// this.paymentLibComponent.isRefundStatusView = false;
|
|
2491
|
-
// this.paymentLibCo}mponent.TAKEPAYMENT = true;
|
|
2492
|
-
// this.paymentLibComponent.viewName = 'case-transactions';
|
|
2493
|
-
// this.paymentViewService.getBSfeature().subscribe(
|
|
2494
|
-
// features => {
|
|
2495
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2496
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2497
|
-
// },
|
|
2498
|
-
// err => {
|
|
2499
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2500
|
-
// }
|
|
2501
|
-
// );
|
|
2502
|
-
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2503
|
-
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2504
|
-
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2505
|
-
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2506
|
-
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2507
|
-
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2508
|
-
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2509
|
-
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2510
|
-
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2511
|
-
// this.router.navigateByUrl(url);
|
|
2512
|
-
// }
|
|
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
|
+
};
|
|
2513
2555
|
/**
|
|
2514
2556
|
* @param {?} vals
|
|
2515
2557
|
* @param {?} field
|
|
2516
2558
|
* @return {?}
|
|
2517
2559
|
*/
|
|
2518
|
-
ProcessRefundComponent.prototype.resetForm =
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
// this.paymentViewService.getBSfeature().subscribe(
|
|
2524
|
-
// features => {
|
|
2525
|
-
// let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
|
|
2526
|
-
// this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
|
|
2527
|
-
// },
|
|
2528
|
-
// err => {
|
|
2529
|
-
// this.paymentLibComponent.ISBSENABLE = false;
|
|
2530
|
-
// }
|
|
2531
|
-
// );
|
|
2532
|
-
// let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
|
|
2533
|
-
// partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
2534
|
-
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
2535
|
-
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
2536
|
-
// partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
2537
|
-
// partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
|
|
2538
|
-
// partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
2539
|
-
// partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
2540
|
-
// let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=true&${partUrl}`;
|
|
2541
|
-
// this.router.navigateByUrl(url);
|
|
2542
|
-
// }
|
|
2543
|
-
/**
|
|
2544
|
-
* @param {?} vals
|
|
2545
|
-
* @param {?} field
|
|
2546
|
-
* @return {?}
|
|
2547
|
-
*/
|
|
2560
|
+
ProcessRefundComponent.prototype.resetForm = /**
|
|
2561
|
+
* @param {?} vals
|
|
2562
|
+
* @param {?} field
|
|
2563
|
+
* @return {?}
|
|
2564
|
+
*/
|
|
2548
2565
|
function (vals, field) {
|
|
2549
2566
|
if (field === 'action' || field === 'all') {
|
|
2550
2567
|
this.refundActionsHasError = vals[0];
|
|
@@ -2570,12 +2587,19 @@
|
|
|
2570
2587
|
* @return {?}
|
|
2571
2588
|
*/
|
|
2572
2589
|
function () {
|
|
2573
|
-
|
|
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
|
+
}
|
|
2574
2598
|
};
|
|
2575
2599
|
ProcessRefundComponent.decorators = [
|
|
2576
2600
|
{ type: i0.Component, args: [{
|
|
2577
2601
|
selector: 'ccpay-process-refund',
|
|
2578
|
-
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",
|
|
2579
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}"]
|
|
2580
2604
|
}] }
|
|
2581
2605
|
];
|
|
@@ -2583,6 +2607,7 @@
|
|
|
2583
2607
|
ProcessRefundComponent.ctorParameters = function () {
|
|
2584
2608
|
return [
|
|
2585
2609
|
{ type: RefundsService },
|
|
2610
|
+
{ type: PaymentViewService },
|
|
2586
2611
|
{ type: forms.FormBuilder },
|
|
2587
2612
|
{ type: OrderslistService },
|
|
2588
2613
|
{ type: PaymentLibComponent },
|
|
@@ -2606,10 +2631,10 @@
|
|
|
2606
2631
|
this.refundService = refundService;
|
|
2607
2632
|
this.submittedRefundList = [];
|
|
2608
2633
|
this.rejectedRefundList = [];
|
|
2634
|
+
// approvalStatus = 'Sent for approval';
|
|
2635
|
+
// rejectStatus = 'Update required';
|
|
2609
2636
|
this.approvalStatus = 'Sent for approval';
|
|
2610
2637
|
this.rejectStatus = 'Update required';
|
|
2611
|
-
// approvalStatus = 'sent for approval';
|
|
2612
|
-
// rejectStatus = 'sent back';
|
|
2613
2638
|
this.errorMessage = null;
|
|
2614
2639
|
this.isAuthorized = true;
|
|
2615
2640
|
}
|
|
@@ -2889,6 +2914,449 @@
|
|
|
2889
2914
|
return StatusHistoryComponent;
|
|
2890
2915
|
}());
|
|
2891
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
|
+
|
|
2892
3360
|
/**
|
|
2893
3361
|
* @fileoverview added by tsickle
|
|
2894
3362
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3242,6 +3710,7 @@
|
|
|
3242
3710
|
this.viewStatus = 'main';
|
|
3243
3711
|
this.isRemoveBtnDisabled = false;
|
|
3244
3712
|
this.clAmountDue = 0;
|
|
3713
|
+
this.overPaymentAmount = 0;
|
|
3245
3714
|
this.isFeeRecordsExist = false;
|
|
3246
3715
|
this.isGrpOutstandingAmtPositive = false;
|
|
3247
3716
|
//Order changes
|
|
@@ -3332,12 +3801,14 @@
|
|
|
3332
3801
|
}
|
|
3333
3802
|
this.excReference = this.paymentLibComponent.EXC_REFERENCE;
|
|
3334
3803
|
this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
|
|
3335
|
-
|
|
3336
|
-
|
|
3804
|
+
/** @type {?} */
|
|
3805
|
+
var serviceRequest = this.paymentLibComponent.SERVICEREQUEST;
|
|
3806
|
+
if (serviceRequest !== undefined && serviceRequest.toString() === 'true') {
|
|
3337
3807
|
this.serviceRequestValue = 'true';
|
|
3338
3808
|
}
|
|
3339
3809
|
else {
|
|
3340
3810
|
this.serviceRequestValue = 'false';
|
|
3811
|
+
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
3341
3812
|
}
|
|
3342
3813
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3343
3814
|
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
@@ -3541,6 +4012,7 @@
|
|
|
3541
4012
|
* @return {?}
|
|
3542
4013
|
*/function (fee) {
|
|
3543
4014
|
_this.orderFeesTotal = _this.orderFeesTotal + fee.calculated_amount;
|
|
4015
|
+
_this.overPaymentAmount = _this.overPaymentAmount + fee.over_payment;
|
|
3544
4016
|
}));
|
|
3545
4017
|
}
|
|
3546
4018
|
if (paymentGroup.remissions) {
|
|
@@ -3552,10 +4024,15 @@
|
|
|
3552
4024
|
}));
|
|
3553
4025
|
}
|
|
3554
4026
|
if (paymentGroup.payments) {
|
|
4027
|
+
/** @type {?} */
|
|
4028
|
+
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
3555
4029
|
paymentGroup.payments.forEach(( /**
|
|
3556
4030
|
* @param {?} payment
|
|
3557
4031
|
* @return {?}
|
|
3558
4032
|
*/function (payment) {
|
|
4033
|
+
if (isFeeOverPaymentExist_1) {
|
|
4034
|
+
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4035
|
+
}
|
|
3559
4036
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
3560
4037
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
3561
4038
|
}
|
|
@@ -4023,23 +4500,22 @@
|
|
|
4023
4500
|
*/
|
|
4024
4501
|
function (payment, remission, fees) {
|
|
4025
4502
|
var _this = this;
|
|
4026
|
-
this.
|
|
4027
|
-
this.payment = payment;
|
|
4028
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
4503
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
|
|
4029
4504
|
* @param {?} paymentGroup
|
|
4030
4505
|
* @return {?}
|
|
4031
4506
|
*/function (paymentGroup) {
|
|
4032
4507
|
_this.paymentGroup = paymentGroup;
|
|
4033
|
-
_this.paymentGroup.payments =
|
|
4508
|
+
_this.paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
4034
4509
|
* @param {?} paymentGroupObj
|
|
4035
4510
|
* @return {?}
|
|
4036
|
-
*/function (paymentGroupObj) { return paymentGroupObj
|
|
4511
|
+
*/function (paymentGroupObj) { return paymentGroupObj.reference === payment.reference; }));
|
|
4037
4512
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4038
4513
|
_this.remissions = remission;
|
|
4039
4514
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
4040
4515
|
* @param {?} data
|
|
4041
4516
|
* @return {?}
|
|
4042
4517
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
4518
|
+
_this.viewStatus = 'addrefundforremission';
|
|
4043
4519
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
4044
4520
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
4045
4521
|
}), ( /**
|
|
@@ -4332,16 +4808,21 @@
|
|
|
4332
4808
|
* @return {?}
|
|
4333
4809
|
*/
|
|
4334
4810
|
function (payment) {
|
|
4335
|
-
if (
|
|
4336
|
-
payment.
|
|
4337
|
-
this.isIssueRefunfBtnEnable = true;
|
|
4338
|
-
}
|
|
4339
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
4340
|
-
return true;
|
|
4811
|
+
if (payment !== null && payment !== undefined) {
|
|
4812
|
+
return payment.issue_refund && payment.refund_enable;
|
|
4341
4813
|
}
|
|
4342
4814
|
else {
|
|
4343
4815
|
return false;
|
|
4344
4816
|
}
|
|
4817
|
+
// if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
4818
|
+
// payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
4819
|
+
// this.isIssueRefunfBtnEnable = true;
|
|
4820
|
+
// }
|
|
4821
|
+
// if (this.isIssueRefunfBtnEnable) {
|
|
4822
|
+
// return true;
|
|
4823
|
+
// } else {
|
|
4824
|
+
// return false;
|
|
4825
|
+
// };
|
|
4345
4826
|
};
|
|
4346
4827
|
/**
|
|
4347
4828
|
* @return {?}
|
|
@@ -4391,7 +4872,7 @@
|
|
|
4391
4872
|
CaseTransactionsComponent.decorators = [
|
|
4392
4873
|
{ type: i0.Component, args: [{
|
|
4393
4874
|
selector: 'ccpay-case-transactions',
|
|
4394
|
-
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",
|
|
4875
|
+
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 [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\" [ngClass]='serviceRequestValue!== \"false\" ? \"govuk-margin-btm-20px\" : \"\"'>\n <!-- <span *ngIf=\"serviceRequestValue === 'false'\" class=\"heading-medium\">Service requests</span> -->\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment() && serviceRequestValue !== 'true'\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n [isEliginbleToAccess] = check4AllowedRoles2AccessRefund()\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [paymentGroupList] = \"paymentGroups\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[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",
|
|
4395
4876
|
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}"]
|
|
4396
4877
|
}] }
|
|
4397
4878
|
];
|
|
@@ -4408,7 +4889,8 @@
|
|
|
4408
4889
|
};
|
|
4409
4890
|
CaseTransactionsComponent.propDecorators = {
|
|
4410
4891
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
4411
|
-
isTakePayment: [{ type: i0.Input }]
|
|
4892
|
+
isTakePayment: [{ type: i0.Input }],
|
|
4893
|
+
isFromServiceRequestPage: [{ type: i0.Input }]
|
|
4412
4894
|
};
|
|
4413
4895
|
return CaseTransactionsComponent;
|
|
4414
4896
|
}());
|
|
@@ -4628,18 +5110,23 @@
|
|
|
4628
5110
|
if (fee.calculated_amount === 0) {
|
|
4629
5111
|
_this.isFeeAmountZero = true;
|
|
4630
5112
|
}
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
5113
|
+
if (paymentGroup.remissions) {
|
|
5114
|
+
_this.isRemissionsMatch = false;
|
|
5115
|
+
paymentGroup.remissions.forEach(( /**
|
|
5116
|
+
* @param {?} rem
|
|
5117
|
+
* @return {?}
|
|
5118
|
+
*/function (rem) {
|
|
5119
|
+
if (rem.fee_code === fee.code) {
|
|
5120
|
+
_this.isRemissionsMatch = true;
|
|
5121
|
+
fee['remissions'] = rem;
|
|
5122
|
+
fees.push(fee);
|
|
5123
|
+
}
|
|
5124
|
+
}));
|
|
5125
|
+
if (!_this.isRemissionsMatch) {
|
|
4639
5126
|
fees.push(fee);
|
|
4640
5127
|
}
|
|
4641
|
-
}
|
|
4642
|
-
|
|
5128
|
+
}
|
|
5129
|
+
else {
|
|
4643
5130
|
fees.push(fee);
|
|
4644
5131
|
}
|
|
4645
5132
|
}));
|
|
@@ -6679,25 +7166,14 @@
|
|
|
6679
7166
|
return AddRetroRemissionRequest;
|
|
6680
7167
|
}());
|
|
6681
7168
|
|
|
6682
|
-
/**
|
|
6683
|
-
* @fileoverview added by tsickle
|
|
6684
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6685
|
-
*/
|
|
6686
|
-
var PostRefundRetroRemission = /** @class */ (function () {
|
|
6687
|
-
function PostRefundRetroRemission(payment_reference, refund_reason) {
|
|
6688
|
-
this.payment_reference = payment_reference;
|
|
6689
|
-
this.refund_reason = refund_reason;
|
|
6690
|
-
}
|
|
6691
|
-
return PostRefundRetroRemission;
|
|
6692
|
-
}());
|
|
6693
|
-
|
|
6694
7169
|
/**
|
|
6695
7170
|
* @fileoverview added by tsickle
|
|
6696
7171
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6697
7172
|
*/
|
|
6698
7173
|
var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
6699
|
-
function PostIssueRefundRetroRemission(remissionReference) {
|
|
7174
|
+
function PostIssueRefundRetroRemission(remissionReference, contactDeatils) {
|
|
6700
7175
|
this.remissionReference = remissionReference;
|
|
7176
|
+
this.contact_details = contactDeatils;
|
|
6701
7177
|
}
|
|
6702
7178
|
return PostIssueRefundRetroRemission;
|
|
6703
7179
|
}());
|
|
@@ -6719,6 +7195,7 @@
|
|
|
6719
7195
|
//@Output() refundListReason: EventEmitter<any> = new EventEmitter({reason:string, code:string});
|
|
6720
7196
|
this.refundListReason = new i0.EventEmitter();
|
|
6721
7197
|
this.refundListAmount = new i0.EventEmitter();
|
|
7198
|
+
this.refundFees = new i0.EventEmitter();
|
|
6722
7199
|
this.refund = {
|
|
6723
7200
|
reason: {
|
|
6724
7201
|
duplicate: 'Duplicate payment',
|
|
@@ -6747,6 +7224,8 @@
|
|
|
6747
7224
|
this.isRemissionApplied = false;
|
|
6748
7225
|
// refundReasons: any[] = [];
|
|
6749
7226
|
this.commonRefundReasons = [];
|
|
7227
|
+
this.class = '';
|
|
7228
|
+
this.errorMsg = new Array();
|
|
6750
7229
|
}
|
|
6751
7230
|
/**
|
|
6752
7231
|
* @return {?}
|
|
@@ -6756,6 +7235,8 @@
|
|
|
6756
7235
|
*/
|
|
6757
7236
|
function () {
|
|
6758
7237
|
var _this = this;
|
|
7238
|
+
this.errorMessage = '';
|
|
7239
|
+
this.errorMsg = [];
|
|
6759
7240
|
this.default = 'Select a different reason';
|
|
6760
7241
|
this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
|
|
6761
7242
|
this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
|
|
@@ -6767,6 +7248,7 @@
|
|
|
6767
7248
|
this.amount = (this.fee.volume * this.fee.calculated_amount);
|
|
6768
7249
|
}
|
|
6769
7250
|
if (this.payment) {
|
|
7251
|
+
this.paymentReference = this.payment.reference;
|
|
6770
7252
|
this.remessionPayment = this.payment;
|
|
6771
7253
|
if (this.payment.status === 'Success') {
|
|
6772
7254
|
this.isPaymentSuccess = true;
|
|
@@ -6785,15 +7267,68 @@
|
|
|
6785
7267
|
])),
|
|
6786
7268
|
refundReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
6787
7269
|
refundDDReason: new forms.FormControl('', forms.Validators.compose([forms.Validators.required])),
|
|
6788
|
-
reason: new forms.FormControl()
|
|
7270
|
+
reason: new forms.FormControl(),
|
|
7271
|
+
feeAmount: new forms.FormControl(),
|
|
7272
|
+
feesList: this.formBuilder.array([])
|
|
6789
7273
|
});
|
|
6790
7274
|
/** @type {?} */
|
|
6791
7275
|
var remissionctrls = this.remissionForm.controls;
|
|
6792
7276
|
remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
|
|
7277
|
+
if (this.refundPaymentReference !== undefined && this.refundPaymentReference.length > 0) {
|
|
7278
|
+
this.paymentReference = this.refundPaymentReference;
|
|
7279
|
+
}
|
|
7280
|
+
else {
|
|
7281
|
+
this.paymentReference = this.payment.reference;
|
|
7282
|
+
}
|
|
7283
|
+
if (this.isFromServiceRequestPage) {
|
|
7284
|
+
this.paymentViewService.getApportionPaymentDetails(this.paymentReference).subscribe(( /**
|
|
7285
|
+
* @param {?} paymentGroup
|
|
7286
|
+
* @return {?}
|
|
7287
|
+
*/function (paymentGroup) {
|
|
7288
|
+
/** @type {?} */
|
|
7289
|
+
var fees = [];
|
|
7290
|
+
paymentGroup.fees.forEach(( /**
|
|
7291
|
+
* @param {?} fee
|
|
7292
|
+
* @return {?}
|
|
7293
|
+
*/function (fee) {
|
|
7294
|
+
_this.isRemissionsMatch = false;
|
|
7295
|
+
paymentGroup.remissions.forEach(( /**
|
|
7296
|
+
* @param {?} rem
|
|
7297
|
+
* @return {?}
|
|
7298
|
+
*/function (rem) {
|
|
7299
|
+
if (rem.fee_code === fee.code) {
|
|
7300
|
+
_this.isRemissionsMatch = true;
|
|
7301
|
+
fee['remissions'] = rem;
|
|
7302
|
+
fees.push(fee);
|
|
7303
|
+
}
|
|
7304
|
+
}));
|
|
7305
|
+
if (!_this.isRemissionsMatch) {
|
|
7306
|
+
fees.push(fee);
|
|
7307
|
+
}
|
|
7308
|
+
}));
|
|
7309
|
+
paymentGroup.fees = fees;
|
|
7310
|
+
_this.paymentFees = fees;
|
|
7311
|
+
_this.fees = fees;
|
|
7312
|
+
_this.paymentGroup = paymentGroup;
|
|
7313
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
7314
|
+
* @param {?} paymentGroupObj
|
|
7315
|
+
* @return {?}
|
|
7316
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
7317
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
7318
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
7319
|
+
_this.refundFeesList();
|
|
7320
|
+
}), ( /**
|
|
7321
|
+
* @param {?} error
|
|
7322
|
+
* @return {?}
|
|
7323
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
7324
|
+
}
|
|
7325
|
+
if (this.fees && this.viewCompStatus === 'issuerefund') {
|
|
7326
|
+
this.refundFeesList();
|
|
7327
|
+
}
|
|
6793
7328
|
if (this.viewCompStatus === '') {
|
|
6794
7329
|
this.viewStatus = 'main';
|
|
6795
7330
|
}
|
|
6796
|
-
if (this.viewCompStatus === '
|
|
7331
|
+
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
6797
7332
|
this.refundService.getRefundReasons().subscribe(( /**
|
|
6798
7333
|
* @param {?} refundReasons
|
|
6799
7334
|
* @return {?}
|
|
@@ -6805,7 +7340,7 @@
|
|
|
6805
7340
|
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
6806
7341
|
* @param {?} data
|
|
6807
7342
|
* @return {?}
|
|
6808
|
-
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
7343
|
+
*/function (data) { return data.name !== 'Retrospective remission' && data.name !== 'Overpayment'; }));
|
|
6809
7344
|
_this.cd.detectChanges();
|
|
6810
7345
|
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
6811
7346
|
* @param {?} data
|
|
@@ -6818,10 +7353,160 @@
|
|
|
6818
7353
|
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
6819
7354
|
_this.cd.detectChanges();
|
|
6820
7355
|
}));
|
|
7356
|
+
this.refundReason = this.changeRefundReason;
|
|
6821
7357
|
}
|
|
6822
7358
|
if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
|
|
6823
7359
|
this.viewStatus = 'processretroremissonpage';
|
|
6824
7360
|
}
|
|
7361
|
+
if (this.orderDetail !== undefined) {
|
|
7362
|
+
this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe(( /**
|
|
7363
|
+
* @param {?} paymentGroup
|
|
7364
|
+
* @return {?}
|
|
7365
|
+
*/function (paymentGroup) {
|
|
7366
|
+
_this.fees = paymentGroup.fees;
|
|
7367
|
+
_this.paymentReference = paymentGroup.payments[0].reference;
|
|
7368
|
+
}), ( /**
|
|
7369
|
+
* @param {?} error
|
|
7370
|
+
* @return {?}
|
|
7371
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
7372
|
+
}
|
|
7373
|
+
};
|
|
7374
|
+
/**
|
|
7375
|
+
* @return {?}
|
|
7376
|
+
*/
|
|
7377
|
+
AddRemissionComponent.prototype.goToPaymentViewComponent = /**
|
|
7378
|
+
* @return {?}
|
|
7379
|
+
*/
|
|
7380
|
+
function () {
|
|
7381
|
+
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7382
|
+
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7383
|
+
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7384
|
+
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7385
|
+
this.paymentLibComponent.viewName = 'payment-view';
|
|
7386
|
+
};
|
|
7387
|
+
/**
|
|
7388
|
+
* @return {?}
|
|
7389
|
+
*/
|
|
7390
|
+
AddRemissionComponent.prototype.refundFeesList = /**
|
|
7391
|
+
* @return {?}
|
|
7392
|
+
*/
|
|
7393
|
+
function () {
|
|
7394
|
+
/** @type {?} */
|
|
7395
|
+
var creds = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7396
|
+
// if(creds.controls.length > 0) {
|
|
7397
|
+
for (var i = 0; i < this.fees.length; i++) {
|
|
7398
|
+
creds.push(this.formBuilder.group({
|
|
7399
|
+
id: this.fees[i].id,
|
|
7400
|
+
code: this.fees[i].code,
|
|
7401
|
+
volume: this.fees[i].volume,
|
|
7402
|
+
calculated_amount: this.fees[i].calculated_amount,
|
|
7403
|
+
apportion_amount: this.fees[i].apportion_amount,
|
|
7404
|
+
ccd_case_number: this.fees[i].ccd_case_number,
|
|
7405
|
+
description: this.fees[i].description,
|
|
7406
|
+
net_amount: this.fees[i].net_amount,
|
|
7407
|
+
version: this.fees[i].version,
|
|
7408
|
+
refund_amount: [''],
|
|
7409
|
+
selected: [''],
|
|
7410
|
+
updated_volume: this.fees[i].volume
|
|
7411
|
+
}));
|
|
7412
|
+
}
|
|
7413
|
+
this.cd.detectChanges();
|
|
7414
|
+
//}
|
|
7415
|
+
};
|
|
7416
|
+
Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
|
|
7417
|
+
get: /**
|
|
7418
|
+
* @return {?}
|
|
7419
|
+
*/ function () {
|
|
7420
|
+
/** @type {?} */
|
|
7421
|
+
var dd = ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7422
|
+
return ( /** @type {?} */(this.remissionForm.get('feesList')));
|
|
7423
|
+
},
|
|
7424
|
+
enumerable: true,
|
|
7425
|
+
configurable: true
|
|
7426
|
+
});
|
|
7427
|
+
/**
|
|
7428
|
+
* @return {?}
|
|
7429
|
+
*/
|
|
7430
|
+
AddRemissionComponent.prototype.noneSelected = /**
|
|
7431
|
+
* @return {?}
|
|
7432
|
+
*/
|
|
7433
|
+
function () {
|
|
7434
|
+
if (this.isFullyRefund) {
|
|
7435
|
+
return false;
|
|
7436
|
+
}
|
|
7437
|
+
else {
|
|
7438
|
+
if (!this.feesList.controls.some(( /**
|
|
7439
|
+
* @param {?} item
|
|
7440
|
+
* @return {?}
|
|
7441
|
+
*/function (item) { return item.get('selected').value === true; }))) {
|
|
7442
|
+
this.errorMsg = [];
|
|
7443
|
+
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7444
|
+
* @param {?} el
|
|
7445
|
+
* @return {?}
|
|
7446
|
+
*/function (el) {
|
|
7447
|
+
el.classList.remove('inline-error-class');
|
|
7448
|
+
}));
|
|
7449
|
+
}
|
|
7450
|
+
return !this.feesList.controls.some(( /**
|
|
7451
|
+
* @param {?} item
|
|
7452
|
+
* @return {?}
|
|
7453
|
+
*/function (item) { return item.get('selected').value === true; }));
|
|
7454
|
+
}
|
|
7455
|
+
};
|
|
7456
|
+
/**
|
|
7457
|
+
* @param {?} i
|
|
7458
|
+
* @param {?} v1
|
|
7459
|
+
* @param {?} AppAmt
|
|
7460
|
+
* @param {?} Volume
|
|
7461
|
+
* @return {?}
|
|
7462
|
+
*/
|
|
7463
|
+
AddRemissionComponent.prototype.check_en = /**
|
|
7464
|
+
* @param {?} i
|
|
7465
|
+
* @param {?} v1
|
|
7466
|
+
* @param {?} AppAmt
|
|
7467
|
+
* @param {?} Volume
|
|
7468
|
+
* @return {?}
|
|
7469
|
+
*/
|
|
7470
|
+
function (i, v1, AppAmt, Volume) {
|
|
7471
|
+
/** @type {?} */
|
|
7472
|
+
var ele = ( /** @type {?} */(document.getElementById(v1)));
|
|
7473
|
+
/** @type {?} */
|
|
7474
|
+
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
7475
|
+
if (ele.checked) {
|
|
7476
|
+
formArray.at(i).get('refund_amount').setValue(AppAmt);
|
|
7477
|
+
formArray.at(i).get('volume').setValue(Volume);
|
|
7478
|
+
formArray.at(i).get('selected').setValue(true);
|
|
7479
|
+
formArray.at(i).get('updated_volume').setValue(Volume);
|
|
7480
|
+
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = AppAmt;
|
|
7481
|
+
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7482
|
+
if (Volume === 1) {
|
|
7483
|
+
(( /** @type {?} */(document.getElementById('VolumeUpdated_' + v1)))).value = Volume;
|
|
7484
|
+
}
|
|
7485
|
+
else {
|
|
7486
|
+
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = Volume;
|
|
7487
|
+
}
|
|
7488
|
+
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7489
|
+
document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
|
|
7490
|
+
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7491
|
+
}
|
|
7492
|
+
this.cd.detectChanges();
|
|
7493
|
+
}
|
|
7494
|
+
else {
|
|
7495
|
+
this.errorMsg = [];
|
|
7496
|
+
document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
|
|
7497
|
+
this.remissionForm.value.feesList[i]["refund_amount"] = '';
|
|
7498
|
+
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7499
|
+
this.remissionForm.value.feesList[i]["selected"] = false;
|
|
7500
|
+
(( /** @type {?} */(document.getElementById('feeAmount_' + v1)))).value = '';
|
|
7501
|
+
if (Volume > 1) {
|
|
7502
|
+
this.remissionForm.value.feesList[i]["volume"] = '';
|
|
7503
|
+
(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + v1)))).value = '';
|
|
7504
|
+
}
|
|
7505
|
+
if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
|
|
7506
|
+
document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
|
|
7507
|
+
}
|
|
7508
|
+
this.cd.detectChanges();
|
|
7509
|
+
}
|
|
6825
7510
|
};
|
|
6826
7511
|
/**
|
|
6827
7512
|
* @return {?}
|
|
@@ -6946,6 +7631,8 @@
|
|
|
6946
7631
|
*/
|
|
6947
7632
|
function () {
|
|
6948
7633
|
this.errorMessage = false;
|
|
7634
|
+
// this.isFromCheckAnsPage = true;
|
|
7635
|
+
this.errorMsg = [];
|
|
6949
7636
|
this.viewStatus = '';
|
|
6950
7637
|
this.isRefundRemission = false;
|
|
6951
7638
|
this.resetRemissionForm([false, false, false, false, false, false], 'All');
|
|
@@ -6956,8 +7643,14 @@
|
|
|
6956
7643
|
this.remissionForm.controls['refundDDReason'].setErrors(null);
|
|
6957
7644
|
this.remissionForm.controls['amount'].setErrors(null);
|
|
6958
7645
|
if (this.remissionForm.dirty && this.remissionForm.valid) {
|
|
6959
|
-
this.
|
|
6960
|
-
|
|
7646
|
+
if (!this.isFromCheckAnsPage) {
|
|
7647
|
+
this.viewCompStatus = '';
|
|
7648
|
+
this.viewStatus = "processretroremissonpage";
|
|
7649
|
+
}
|
|
7650
|
+
else {
|
|
7651
|
+
this.viewCompStatus = '';
|
|
7652
|
+
this.viewStatus = 'checkretroremissionpage';
|
|
7653
|
+
}
|
|
6961
7654
|
}
|
|
6962
7655
|
else {
|
|
6963
7656
|
if (remissionctrls['remissionCode'].value == '') {
|
|
@@ -6988,6 +7681,8 @@
|
|
|
6988
7681
|
*/
|
|
6989
7682
|
function () {
|
|
6990
7683
|
this.errorMessage = false;
|
|
7684
|
+
this.isFromCheckAnsPage = false;
|
|
7685
|
+
this.errorMsg = [];
|
|
6991
7686
|
if (this.isRefundRemission) {
|
|
6992
7687
|
this.paymentLibComponent.iscancelClicked = true;
|
|
6993
7688
|
this.refundListAmount.emit();
|
|
@@ -7005,6 +7700,7 @@
|
|
|
7005
7700
|
this.viewCompStatus = "addremission";
|
|
7006
7701
|
this.isRefundRemission = true;
|
|
7007
7702
|
this.errorMessage = '';
|
|
7703
|
+
this.errorMsg = [];
|
|
7008
7704
|
if (this.isFromPaymentDetailPage) {
|
|
7009
7705
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7010
7706
|
}
|
|
@@ -7060,14 +7756,47 @@
|
|
|
7060
7756
|
/**
|
|
7061
7757
|
* @return {?}
|
|
7062
7758
|
*/
|
|
7759
|
+
AddRemissionComponent.prototype.gotoAmountRetroRemission = /**
|
|
7760
|
+
* @return {?}
|
|
7761
|
+
*/
|
|
7762
|
+
function () {
|
|
7763
|
+
this.isFromCheckAnsPage = false;
|
|
7764
|
+
this.viewStatus = 'processretroremissonpage';
|
|
7765
|
+
this.viewCompStatus = '';
|
|
7766
|
+
// this.isRefundRemission = true;
|
|
7767
|
+
this.errorMessage = '';
|
|
7768
|
+
};
|
|
7769
|
+
/**
|
|
7770
|
+
* @return {?}
|
|
7771
|
+
*/
|
|
7063
7772
|
AddRemissionComponent.prototype.gotoProcessRetroRemissionPage = /**
|
|
7064
7773
|
* @return {?}
|
|
7065
7774
|
*/
|
|
7066
7775
|
function () {
|
|
7776
|
+
this.isFromCheckAnsPage = true;
|
|
7067
7777
|
this.viewStatus = '';
|
|
7068
7778
|
this.viewCompStatus = 'addremission';
|
|
7069
7779
|
this.isRefundRemission = true;
|
|
7070
7780
|
this.errorMessage = '';
|
|
7781
|
+
this.errorMsg = [];
|
|
7782
|
+
};
|
|
7783
|
+
/**
|
|
7784
|
+
* @param {?=} note
|
|
7785
|
+
* @return {?}
|
|
7786
|
+
*/
|
|
7787
|
+
AddRemissionComponent.prototype.gotoProcessRetroRemission = /**
|
|
7788
|
+
* @param {?=} note
|
|
7789
|
+
* @return {?}
|
|
7790
|
+
*/
|
|
7791
|
+
function (note) {
|
|
7792
|
+
if (note) {
|
|
7793
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
7794
|
+
}
|
|
7795
|
+
this.isFromCheckAnsPage = true;
|
|
7796
|
+
this.viewStatus = 'remissionAddressPage';
|
|
7797
|
+
this.viewCompStatus = '';
|
|
7798
|
+
this.isRefundRemission = true;
|
|
7799
|
+
this.errorMessage = '';
|
|
7071
7800
|
};
|
|
7072
7801
|
/**
|
|
7073
7802
|
* @return {?}
|
|
@@ -7111,6 +7840,7 @@
|
|
|
7111
7840
|
function () {
|
|
7112
7841
|
var _this = this;
|
|
7113
7842
|
this.errorMessage = '';
|
|
7843
|
+
this.errorMsg = [];
|
|
7114
7844
|
this.isConfirmationBtnDisabled = true;
|
|
7115
7845
|
if (this.isRefundRemission) {
|
|
7116
7846
|
this.retroRemission = true;
|
|
@@ -7119,7 +7849,7 @@
|
|
|
7119
7849
|
this.remissionReference = this.remission.remission_reference;
|
|
7120
7850
|
}
|
|
7121
7851
|
/** @type {?} */
|
|
7122
|
-
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
|
|
7852
|
+
var requestBody = new PostIssueRefundRetroRemission(this.remissionReference, this.contactDetailsObj);
|
|
7123
7853
|
this.paymentViewService.postRefundRetroRemission(requestBody).subscribe(( /**
|
|
7124
7854
|
* @param {?} response
|
|
7125
7855
|
* @return {?}
|
|
@@ -7155,7 +7885,13 @@
|
|
|
7155
7885
|
if (this.paymentLibComponent.REFUNDLIST === "true") {
|
|
7156
7886
|
this.isFromRefundListPage = true;
|
|
7157
7887
|
}
|
|
7888
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7889
|
+
* @param {?} a
|
|
7890
|
+
* @param {?} c
|
|
7891
|
+
* @return {?}
|
|
7892
|
+
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7158
7893
|
this.errorMessage = '';
|
|
7894
|
+
this.errorMsg = [];
|
|
7159
7895
|
this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
|
|
7160
7896
|
if (!this.refundReason || this.refundReason === 'Select a different reason') {
|
|
7161
7897
|
this.refundHasError = true;
|
|
@@ -7171,19 +7907,41 @@
|
|
|
7171
7907
|
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
7172
7908
|
}
|
|
7173
7909
|
else {
|
|
7910
|
+
if (this.isFromCheckAnsPage) {
|
|
7911
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7912
|
+
* @param {?} a
|
|
7913
|
+
* @param {?} c
|
|
7914
|
+
* @return {?}
|
|
7915
|
+
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7916
|
+
this.isFromCheckAnsPage = false;
|
|
7917
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7918
|
+
this.viewCompStatus = '';
|
|
7919
|
+
return;
|
|
7920
|
+
}
|
|
7174
7921
|
this.viewCompStatus = '';
|
|
7175
|
-
this.viewStatus = '
|
|
7922
|
+
this.viewStatus = 'contactDetailsPage';
|
|
7176
7923
|
}
|
|
7177
7924
|
}
|
|
7178
7925
|
else {
|
|
7179
7926
|
this.displayRefundReason = this.selectedRefundReason;
|
|
7927
|
+
if (this.isFromCheckAnsPage) {
|
|
7928
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
7929
|
+
* @param {?} a
|
|
7930
|
+
* @param {?} c
|
|
7931
|
+
* @return {?}
|
|
7932
|
+
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7933
|
+
this.isFromCheckAnsPage = false;
|
|
7934
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
7935
|
+
this.viewCompStatus = '';
|
|
7936
|
+
return;
|
|
7937
|
+
}
|
|
7180
7938
|
if (this.isFromRefundListPage) {
|
|
7181
7939
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7182
7940
|
this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
|
|
7183
7941
|
}
|
|
7184
7942
|
else {
|
|
7185
7943
|
this.viewCompStatus = '';
|
|
7186
|
-
this.viewStatus = '
|
|
7944
|
+
this.viewStatus = 'contactDetailsPage';
|
|
7187
7945
|
}
|
|
7188
7946
|
}
|
|
7189
7947
|
};
|
|
@@ -7199,86 +7957,290 @@
|
|
|
7199
7957
|
this.viewStatus = '';
|
|
7200
7958
|
this.isRefundRemission = true;
|
|
7201
7959
|
this.errorMessage = false;
|
|
7960
|
+
this.errorMsg = [];
|
|
7202
7961
|
this.refundHasError = false;
|
|
7203
7962
|
this.isReasonEmpty = false;
|
|
7204
7963
|
};
|
|
7205
7964
|
/**
|
|
7965
|
+
* @param {?} isFullyRefund
|
|
7206
7966
|
* @return {?}
|
|
7207
7967
|
*/
|
|
7208
|
-
AddRemissionComponent.prototype.
|
|
7968
|
+
AddRemissionComponent.prototype.gotoIssuePage = /**
|
|
7969
|
+
* @param {?} isFullyRefund
|
|
7209
7970
|
* @return {?}
|
|
7210
7971
|
*/
|
|
7211
|
-
function () {
|
|
7212
|
-
|
|
7972
|
+
function (isFullyRefund) {
|
|
7973
|
+
if (isFullyRefund) {
|
|
7974
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
7975
|
+
this.getRefundReasons();
|
|
7976
|
+
}
|
|
7977
|
+
else {
|
|
7978
|
+
[].forEach.call(document.querySelectorAll('input'), ( /**
|
|
7979
|
+
* @param {?} el
|
|
7980
|
+
* @return {?}
|
|
7981
|
+
*/function (el) {
|
|
7982
|
+
el.classList.remove('inline-error-class');
|
|
7983
|
+
}));
|
|
7984
|
+
/** @type {?} */
|
|
7985
|
+
var checkboxs = document.getElementsByTagName('input');
|
|
7986
|
+
this.errorMessage = '';
|
|
7987
|
+
this.totalRefundAmount = 0;
|
|
7988
|
+
this.errorMsg = [];
|
|
7989
|
+
for (var j = 0; j < checkboxs.length; j++) {
|
|
7990
|
+
if (checkboxs[j].checked) {
|
|
7991
|
+
this.fullRefund = false;
|
|
7992
|
+
/** @type {?} */
|
|
7993
|
+
var quantity = +(( /** @type {?} */(document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
|
|
7994
|
+
/** @type {?} */
|
|
7995
|
+
var amountToRefund = +(( /** @type {?} */(document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
|
|
7996
|
+
/** @type {?} */
|
|
7997
|
+
var apportionAmount = +(( /** @type {?} */(document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
|
|
7998
|
+
/** @type {?} */
|
|
7999
|
+
var calculatedAmount = +(( /** @type {?} */(document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
|
|
8000
|
+
if (amountToRefund === apportionAmount) {
|
|
8001
|
+
this.fullRefund = true;
|
|
8002
|
+
}
|
|
8003
|
+
if (amountToRefund === 0) {
|
|
8004
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8005
|
+
this.errorMsg.push('You need to enter a refund amount');
|
|
8006
|
+
this.getErrorClass(this.elementId);
|
|
8007
|
+
}
|
|
8008
|
+
if (quantity === 1) {
|
|
8009
|
+
if (amountToRefund > 0 && amountToRefund > apportionAmount) {
|
|
8010
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8011
|
+
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8012
|
+
this.getErrorClass(this.elementId);
|
|
8013
|
+
}
|
|
8014
|
+
}
|
|
8015
|
+
if (quantity > 1) {
|
|
8016
|
+
this.quantityUpdated = +(( /** @type {?} */(document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
|
|
8017
|
+
if (this.quantityUpdated === 0) {
|
|
8018
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8019
|
+
this.errorMsg.push('You need to enter quantity');
|
|
8020
|
+
this.getErrorClass(this.elementId);
|
|
8021
|
+
}
|
|
8022
|
+
if (this.fullRefund && quantity !== this.quantityUpdated) {
|
|
8023
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8024
|
+
this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
|
|
8025
|
+
this.getErrorClass(this.elementId);
|
|
8026
|
+
}
|
|
8027
|
+
if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
|
|
8028
|
+
this.refundAmtForFeeVolumes = +(( /** @type {?} */(document.getElementById('feeVOl_' + checkboxs[j].value)))).innerText;
|
|
8029
|
+
this.allowedRefundAmount = this.quantityUpdated * this.refundAmtForFeeVolumes;
|
|
8030
|
+
if (this.allowedRefundAmount !== amountToRefund) {
|
|
8031
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8032
|
+
this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
|
|
8033
|
+
this.getErrorClass(this.elementId);
|
|
8034
|
+
}
|
|
8035
|
+
}
|
|
8036
|
+
if (!this.fullRefund && amountToRefund > apportionAmount) {
|
|
8037
|
+
this.elementId = 'feeAmount_' + checkboxs[j].value;
|
|
8038
|
+
this.errorMsg.push('The amount you want to refund is more than the amount paid');
|
|
8039
|
+
this.getErrorClass(this.elementId);
|
|
8040
|
+
}
|
|
8041
|
+
if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
|
|
8042
|
+
this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
|
|
8043
|
+
this.errorMsg.push('The quantity you want to refund is more than the available quantity');
|
|
8044
|
+
this.getErrorClass(this.elementId);
|
|
8045
|
+
}
|
|
8046
|
+
}
|
|
8047
|
+
//this.remissionForm.value.feesList.find(id=>id=checkboxs[j].value)['refund_amount'] = apportionAmount;
|
|
8048
|
+
}
|
|
8049
|
+
}
|
|
8050
|
+
if (this.errorMsg.length === 0) {
|
|
8051
|
+
if (this.isFromCheckAnsPage) {
|
|
8052
|
+
this.isFromCheckAnsPage = false;
|
|
8053
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8054
|
+
* @param {?} a
|
|
8055
|
+
* @param {?} c
|
|
8056
|
+
* @return {?}
|
|
8057
|
+
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8058
|
+
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8059
|
+
* @param {?} value
|
|
8060
|
+
* @return {?}
|
|
8061
|
+
*/function (value) { return value.selected === true; }));
|
|
8062
|
+
this.viewStatus = 'checkissuerefundpage';
|
|
8063
|
+
this.viewCompStatus = '';
|
|
8064
|
+
return;
|
|
8065
|
+
}
|
|
8066
|
+
else if (this.isFromRefundStatusPage) {
|
|
8067
|
+
/** @type {?} */
|
|
8068
|
+
var remissionctrls = this.remissionForm.controls;
|
|
8069
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8070
|
+
* @param {?} a
|
|
8071
|
+
* @param {?} c
|
|
8072
|
+
* @return {?}
|
|
8073
|
+
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8074
|
+
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8075
|
+
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8076
|
+
* @param {?} value
|
|
8077
|
+
* @return {?}
|
|
8078
|
+
*/function (value) { return value.selected === true; }));
|
|
8079
|
+
this.refundFees.emit(this.fees);
|
|
8080
|
+
return;
|
|
8081
|
+
}
|
|
8082
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
8083
|
+
this.getRefundReasons();
|
|
8084
|
+
}
|
|
8085
|
+
}
|
|
8086
|
+
};
|
|
8087
|
+
/**
|
|
8088
|
+
* @param {?} value
|
|
8089
|
+
* @param {?} amount
|
|
8090
|
+
* @param {?} volume
|
|
8091
|
+
* @param {?} i
|
|
8092
|
+
* @return {?}
|
|
8093
|
+
*/
|
|
8094
|
+
AddRemissionComponent.prototype.calAmtToRefund = /**
|
|
8095
|
+
* @param {?} value
|
|
8096
|
+
* @param {?} amount
|
|
8097
|
+
* @param {?} volume
|
|
8098
|
+
* @param {?} i
|
|
8099
|
+
* @return {?}
|
|
8100
|
+
*/
|
|
8101
|
+
function (value, amount, volume, i) {
|
|
8102
|
+
/** @type {?} */
|
|
8103
|
+
var volumeFee = amount / volume;
|
|
8104
|
+
/** @type {?} */
|
|
8105
|
+
var amtToRefund = value * volumeFee;
|
|
8106
|
+
/** @type {?} */
|
|
8107
|
+
var formArray = ( /** @type {?} */(this.remissionForm.controls.feesList));
|
|
8108
|
+
formArray.at(i).get('refund_amount').setValue(amtToRefund);
|
|
8109
|
+
// formArray.at(i).get('volume').setValue(value);
|
|
8110
|
+
// (<HTMLInputElement>document.getElementById('feeAmount_'+i)).value = +amtToRefund;
|
|
8111
|
+
// const formControl = this.remissionForm.controls.feesList['volume'].at(i);
|
|
8112
|
+
// formControl.setValue(value);
|
|
8113
|
+
};
|
|
8114
|
+
/**
|
|
8115
|
+
* @param {?=} note
|
|
8116
|
+
* @return {?}
|
|
8117
|
+
*/
|
|
8118
|
+
AddRemissionComponent.prototype.gotoContactDetailsPage = /**
|
|
8119
|
+
* @param {?=} note
|
|
8120
|
+
* @return {?}
|
|
8121
|
+
*/
|
|
8122
|
+
function (note) {
|
|
8123
|
+
if (note) {
|
|
8124
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8125
|
+
}
|
|
7213
8126
|
this.errorMessage = '';
|
|
7214
|
-
this.
|
|
7215
|
-
this.
|
|
7216
|
-
this.viewCompStatus = 'issuerefund';
|
|
7217
|
-
this.viewStatus = '';
|
|
8127
|
+
this.viewCompStatus = '';
|
|
8128
|
+
this.viewStatus = 'contactDetailsPage';
|
|
7218
8129
|
this.isRefundRemission = true;
|
|
8130
|
+
this.errorMessage = false;
|
|
7219
8131
|
};
|
|
7220
8132
|
/**
|
|
7221
8133
|
* @return {?}
|
|
7222
8134
|
*/
|
|
7223
|
-
AddRemissionComponent.prototype.
|
|
8135
|
+
AddRemissionComponent.prototype.getRefundReasons = /**
|
|
7224
8136
|
* @return {?}
|
|
7225
8137
|
*/
|
|
7226
8138
|
function () {
|
|
7227
8139
|
var _this = this;
|
|
7228
|
-
this.
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
_this.
|
|
7242
|
-
_this.
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
}));
|
|
8140
|
+
if (this.viewCompStatus === 'issuerefundpage1') {
|
|
8141
|
+
this.refundService.getRefundReasons().subscribe(( /**
|
|
8142
|
+
* @param {?} refundReasons
|
|
8143
|
+
* @return {?}
|
|
8144
|
+
*/function (refundReasons) {
|
|
8145
|
+
_this.refundReasons = refundReasons.filter(( /**
|
|
8146
|
+
* @param {?} data
|
|
8147
|
+
* @return {?}
|
|
8148
|
+
*/function (data) { return data.recently_used === false; }));
|
|
8149
|
+
_this.refundReasons = _this.refundReasons.filter(( /**
|
|
8150
|
+
* @param {?} data
|
|
8151
|
+
* @return {?}
|
|
8152
|
+
*/function (data) { return data.name !== 'Retrospective remission'; }));
|
|
8153
|
+
_this.cd.detectChanges();
|
|
8154
|
+
_this.commonRefundReasons = refundReasons.filter(( /**
|
|
8155
|
+
* @param {?} data
|
|
8156
|
+
* @return {?}
|
|
8157
|
+
*/function (data) { return data.recently_used === true; }));
|
|
8158
|
+
_this.commonRefundReasons.sort(( /**
|
|
8159
|
+
* @param {?} a
|
|
8160
|
+
* @param {?} b
|
|
8161
|
+
* @return {?}
|
|
8162
|
+
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8163
|
+
_this.cd.detectChanges();
|
|
8164
|
+
}));
|
|
8165
|
+
}
|
|
7255
8166
|
};
|
|
7256
|
-
// Retro Refund
|
|
7257
|
-
// Retro Refund
|
|
7258
8167
|
/**
|
|
8168
|
+
* @param {?} elementId
|
|
8169
|
+
* @return {?}
|
|
8170
|
+
*/
|
|
8171
|
+
AddRemissionComponent.prototype.getErrorClass = /**
|
|
8172
|
+
* @param {?} elementId
|
|
8173
|
+
* @return {?}
|
|
8174
|
+
*/
|
|
8175
|
+
function (elementId) {
|
|
8176
|
+
if (this.errorMsg.length > 0) {
|
|
8177
|
+
/** @type {?} */
|
|
8178
|
+
var ele = document.getElementById(elementId);
|
|
8179
|
+
ele.classList.add('inline-error-class');
|
|
8180
|
+
}
|
|
8181
|
+
};
|
|
8182
|
+
/**
|
|
8183
|
+
* @return {?}
|
|
8184
|
+
*/
|
|
8185
|
+
AddRemissionComponent.prototype.changeIssueRefundReason = /**
|
|
7259
8186
|
* @return {?}
|
|
7260
8187
|
*/
|
|
7261
|
-
AddRemissionComponent.prototype.confirmRetroRefund =
|
|
7262
|
-
// Retro Refund
|
|
7263
|
-
/**
|
|
7264
|
-
* @return {?}
|
|
7265
|
-
*/
|
|
7266
8188
|
function () {
|
|
8189
|
+
this.isFromCheckAnsPage = true;
|
|
8190
|
+
this.errorMessage = '';
|
|
8191
|
+
this.errorMsg = [];
|
|
8192
|
+
this.refundHasError = false;
|
|
8193
|
+
this.isReasonEmpty = false;
|
|
8194
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
8195
|
+
this.viewStatus = '';
|
|
8196
|
+
this.isRefundRemission = true;
|
|
8197
|
+
};
|
|
8198
|
+
/**
|
|
8199
|
+
* @param {?} isFullyRefund
|
|
8200
|
+
* @return {?}
|
|
8201
|
+
*/
|
|
8202
|
+
AddRemissionComponent.prototype.confirmIssueRefund = /**
|
|
8203
|
+
* @param {?} isFullyRefund
|
|
8204
|
+
* @return {?}
|
|
8205
|
+
*/
|
|
8206
|
+
function (isFullyRefund) {
|
|
7267
8207
|
var _this = this;
|
|
7268
8208
|
this.isConfirmationBtnDisabled = true;
|
|
7269
8209
|
this.errorMessage = '';
|
|
8210
|
+
this.errorMsg = [];
|
|
7270
8211
|
if (this.isRefundRemission) {
|
|
7271
8212
|
this.retroRemission = true;
|
|
7272
8213
|
}
|
|
8214
|
+
if (isFullyRefund) {
|
|
8215
|
+
this.totalRefundAmount = this.payment.amount;
|
|
8216
|
+
}
|
|
8217
|
+
if (!isFullyRefund) {
|
|
8218
|
+
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
8219
|
+
* @param {?} value
|
|
8220
|
+
* @return {?}
|
|
8221
|
+
*/function (value) { return value.selected === true; }));
|
|
8222
|
+
}
|
|
8223
|
+
this.fees = this.fees.map(( /**
|
|
8224
|
+
* @param {?} obj
|
|
8225
|
+
* @return {?}
|
|
8226
|
+
*/function (obj) {
|
|
8227
|
+
return ({ id: obj.id,
|
|
8228
|
+
code: obj.code,
|
|
8229
|
+
version: obj.version,
|
|
8230
|
+
apportion_amount: obj.apportion_amount,
|
|
8231
|
+
calculated_amount: obj.calculated_amount,
|
|
8232
|
+
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8233
|
+
refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount });
|
|
8234
|
+
}));
|
|
7273
8235
|
/** @type {?} */
|
|
7274
|
-
var requestBody = new PostRefundRetroRemission(this.payment.reference,
|
|
8236
|
+
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.payment.reference, this.refundReason, this.totalRefundAmount, 'op');
|
|
7275
8237
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
7276
8238
|
* @param {?} response
|
|
7277
8239
|
* @return {?}
|
|
7278
8240
|
*/function (response) {
|
|
7279
8241
|
if (JSON.parse(response)) {
|
|
7280
8242
|
_this.viewCompStatus = '';
|
|
7281
|
-
_this.viewStatus = '
|
|
8243
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
7282
8244
|
_this.refundReference = JSON.parse(response).refund_reference;
|
|
7283
8245
|
if (JSON.parse(response).refund_amount) {
|
|
7284
8246
|
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
@@ -7290,18 +8252,105 @@
|
|
|
7290
8252
|
*/function (error) {
|
|
7291
8253
|
_this.errorMessage = error;
|
|
7292
8254
|
_this.isConfirmationBtnDisabled = false;
|
|
8255
|
+
_this.cd.detectChanges();
|
|
7293
8256
|
}));
|
|
7294
8257
|
};
|
|
7295
8258
|
/**
|
|
7296
|
-
* @param {?} key
|
|
7297
|
-
* @param {?} value
|
|
7298
8259
|
* @return {?}
|
|
7299
8260
|
*/
|
|
7300
|
-
AddRemissionComponent.prototype.
|
|
8261
|
+
AddRemissionComponent.prototype.gotoRefundReasonPage = /**
|
|
8262
|
+
* @return {?}
|
|
8263
|
+
*/
|
|
8264
|
+
function () {
|
|
8265
|
+
this.viewStatus = '';
|
|
8266
|
+
this.viewCompStatus = 'issuerefundpage1';
|
|
8267
|
+
};
|
|
8268
|
+
// Retro Refund
|
|
8269
|
+
// confirmRetroRefund() {
|
|
8270
|
+
// this.isConfirmationBtnDisabled = true;
|
|
8271
|
+
// this.errorMessage = '';
|
|
8272
|
+
// this.errorMsg = [];
|
|
8273
|
+
// if( this.isRefundRemission) {
|
|
8274
|
+
// this.retroRemission = true;
|
|
8275
|
+
// }
|
|
8276
|
+
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8277
|
+
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8278
|
+
// response => {
|
|
8279
|
+
// if (JSON.parse(response)) {
|
|
8280
|
+
// this.viewCompStatus = '';
|
|
8281
|
+
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8282
|
+
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8283
|
+
// if(JSON.parse(response).refund_amount) {
|
|
8284
|
+
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8285
|
+
// }
|
|
8286
|
+
// }
|
|
8287
|
+
// },
|
|
8288
|
+
// (error: any) => {
|
|
8289
|
+
// this.errorMessage = error;
|
|
8290
|
+
// this.isConfirmationBtnDisabled = false;
|
|
8291
|
+
// });
|
|
8292
|
+
// }
|
|
8293
|
+
// Retro Refund
|
|
8294
|
+
// confirmRetroRefund() {
|
|
8295
|
+
// this.isConfirmationBtnDisabled = true;
|
|
8296
|
+
// this.errorMessage = '';
|
|
8297
|
+
// this.errorMsg = [];
|
|
8298
|
+
// if( this.isRefundRemission) {
|
|
8299
|
+
// this.retroRemission = true;
|
|
8300
|
+
// }
|
|
8301
|
+
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8302
|
+
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8303
|
+
// response => {
|
|
8304
|
+
// if (JSON.parse(response)) {
|
|
8305
|
+
// this.viewCompStatus = '';
|
|
8306
|
+
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8307
|
+
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8308
|
+
// if(JSON.parse(response).refund_amount) {
|
|
8309
|
+
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8310
|
+
// }
|
|
8311
|
+
// }
|
|
8312
|
+
// },
|
|
8313
|
+
// (error: any) => {
|
|
8314
|
+
// this.errorMessage = error;
|
|
8315
|
+
// this.isConfirmationBtnDisabled = false;
|
|
8316
|
+
// });
|
|
8317
|
+
// }
|
|
8318
|
+
/**
|
|
7301
8319
|
* @param {?} key
|
|
7302
8320
|
* @param {?} value
|
|
7303
8321
|
* @return {?}
|
|
7304
8322
|
*/
|
|
8323
|
+
AddRemissionComponent.prototype.selectRadioButton =
|
|
8324
|
+
// Retro Refund
|
|
8325
|
+
// confirmRetroRefund() {
|
|
8326
|
+
// this.isConfirmationBtnDisabled = true;
|
|
8327
|
+
// this.errorMessage = '';
|
|
8328
|
+
// this.errorMsg = [];
|
|
8329
|
+
// if( this.isRefundRemission) {
|
|
8330
|
+
// this.retroRemission = true;
|
|
8331
|
+
// }
|
|
8332
|
+
// const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
|
|
8333
|
+
// this.paymentViewService.postRefundsReason(requestBody).subscribe(
|
|
8334
|
+
// response => {
|
|
8335
|
+
// if (JSON.parse(response)) {
|
|
8336
|
+
// this.viewCompStatus = '';
|
|
8337
|
+
// this.viewStatus = 'retrorefundconfirmationpage';
|
|
8338
|
+
// this.refundReference =JSON.parse(response).refund_reference;
|
|
8339
|
+
// if(JSON.parse(response).refund_amount) {
|
|
8340
|
+
// this.refundAmount = JSON.parse(response).refund_amount;
|
|
8341
|
+
// }
|
|
8342
|
+
// }
|
|
8343
|
+
// },
|
|
8344
|
+
// (error: any) => {
|
|
8345
|
+
// this.errorMessage = error;
|
|
8346
|
+
// this.isConfirmationBtnDisabled = false;
|
|
8347
|
+
// });
|
|
8348
|
+
// }
|
|
8349
|
+
/**
|
|
8350
|
+
* @param {?} key
|
|
8351
|
+
* @param {?} value
|
|
8352
|
+
* @return {?}
|
|
8353
|
+
*/
|
|
7305
8354
|
function (key, value) {
|
|
7306
8355
|
localStorage.setItem("myradio", key);
|
|
7307
8356
|
/** @type {?} */
|
|
@@ -7310,6 +8359,7 @@
|
|
|
7310
8359
|
remissionctrls['reason'].reset();
|
|
7311
8360
|
this.isRefundReasonsSelected = true;
|
|
7312
8361
|
this.errorMessage = false;
|
|
8362
|
+
this.errorMsg = [];
|
|
7313
8363
|
this.isReasonEmpty = false;
|
|
7314
8364
|
this.showReasonText = false;
|
|
7315
8365
|
this.refundHasError = false;
|
|
@@ -7344,6 +8394,38 @@
|
|
|
7344
8394
|
this.refundReason = args.target.options[args.target.options.selectedIndex].id;
|
|
7345
8395
|
}
|
|
7346
8396
|
};
|
|
8397
|
+
/**
|
|
8398
|
+
* @param {?} obj
|
|
8399
|
+
* @param {?} type
|
|
8400
|
+
* @return {?}
|
|
8401
|
+
*/
|
|
8402
|
+
AddRemissionComponent.prototype.getContactDetails = /**
|
|
8403
|
+
* @param {?} obj
|
|
8404
|
+
* @param {?} type
|
|
8405
|
+
* @return {?}
|
|
8406
|
+
*/
|
|
8407
|
+
function (obj, type) {
|
|
8408
|
+
this.contactDetailsObj = obj;
|
|
8409
|
+
this.viewCompStatus = '';
|
|
8410
|
+
this.viewStatus = type;
|
|
8411
|
+
};
|
|
8412
|
+
/**
|
|
8413
|
+
* @return {?}
|
|
8414
|
+
*/
|
|
8415
|
+
AddRemissionComponent.prototype.gotoPartialFeeRefundScreen = /**
|
|
8416
|
+
* @return {?}
|
|
8417
|
+
*/
|
|
8418
|
+
function () {
|
|
8419
|
+
if (this.isFromRefundStatusPage) {
|
|
8420
|
+
/** @type {?} */
|
|
8421
|
+
var remissionctrls = this.remissionForm.controls;
|
|
8422
|
+
this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
|
|
8423
|
+
return;
|
|
8424
|
+
}
|
|
8425
|
+
this.refundHasError = false;
|
|
8426
|
+
this.viewCompStatus = 'issuerefund';
|
|
8427
|
+
this.viewStatus = '';
|
|
8428
|
+
};
|
|
7347
8429
|
/**
|
|
7348
8430
|
* @param {?} event
|
|
7349
8431
|
* @return {?}
|
|
@@ -7355,7 +8437,20 @@
|
|
|
7355
8437
|
function (event) {
|
|
7356
8438
|
var _this = this;
|
|
7357
8439
|
this.errorMessage = '';
|
|
8440
|
+
this.errorMsg = [];
|
|
8441
|
+
this.isFromCheckAnsPage = false;
|
|
7358
8442
|
event.preventDefault();
|
|
8443
|
+
if (this.isFromRefundStatusPage) {
|
|
8444
|
+
/** @type {?} */
|
|
8445
|
+
var remissionctrls = this.remissionForm.controls;
|
|
8446
|
+
this.totalRefundAmount = this.remissionForm.value.feesList.reduce(( /**
|
|
8447
|
+
* @param {?} a
|
|
8448
|
+
* @param {?} c
|
|
8449
|
+
* @return {?}
|
|
8450
|
+
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8451
|
+
this.refundListAmount.emit(this.totalRefundAmount.toString());
|
|
8452
|
+
return;
|
|
8453
|
+
}
|
|
7359
8454
|
if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
|
|
7360
8455
|
this.viewStatus = 'order-full-view';
|
|
7361
8456
|
this.viewCompStatus = '';
|
|
@@ -7389,68 +8484,40 @@
|
|
|
7389
8484
|
}
|
|
7390
8485
|
this.viewCompStatus = '';
|
|
7391
8486
|
}
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
// let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
|
|
7427
|
-
// partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
7428
|
-
// partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
7429
|
-
// partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
7430
|
-
// partUrl += `&caseType=${this.caseType}`;
|
|
7431
|
-
// partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
7432
|
-
// partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
7433
|
-
// if(this.isFromPaymentDetailPage) {
|
|
7434
|
-
// partUrl += this.paymentLibComponent.isFromPaymentDetailPage
|
|
7435
|
-
// }
|
|
7436
|
-
// if(!this.paymentLibComponent.TAKEPAYMENT) {
|
|
7437
|
-
// this.paymentLibComponent.TAKEPAYMENT = undefined;
|
|
7438
|
-
// }
|
|
7439
|
-
// if ( this.paymentLibComponent.SERVICEREQUEST) {
|
|
7440
|
-
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
|
|
7441
|
-
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7442
|
-
// this.router.onSameUrlNavigation = 'reload';
|
|
7443
|
-
// this.router.navigateByUrl(url);
|
|
7444
|
-
// } else {
|
|
7445
|
-
// const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
|
|
7446
|
-
// this.router.routeReuseStrategy.shouldReuseRoute = () => false;
|
|
7447
|
-
// this.router.onSameUrlNavigation = 'reload';
|
|
7448
|
-
// this.router.navigateByUrl(url);
|
|
7449
|
-
// }
|
|
7450
|
-
// } else {
|
|
7451
|
-
// this.paymentLibComponent.viewName === 'refundstatuslist';
|
|
7452
|
-
// this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
7453
|
-
// }
|
|
8487
|
+
};
|
|
8488
|
+
/**
|
|
8489
|
+
* @param {?=} note
|
|
8490
|
+
* @return {?}
|
|
8491
|
+
*/
|
|
8492
|
+
AddRemissionComponent.prototype.gotoAddressPage = /**
|
|
8493
|
+
* @param {?=} note
|
|
8494
|
+
* @return {?}
|
|
8495
|
+
*/
|
|
8496
|
+
function (note) {
|
|
8497
|
+
if (note) {
|
|
8498
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
8499
|
+
}
|
|
8500
|
+
this.errorMessage = '';
|
|
8501
|
+
this.viewCompStatus = 'addrefundforremission';
|
|
8502
|
+
this.viewStatus = '';
|
|
8503
|
+
this.isRefundRemission = true;
|
|
8504
|
+
this.errorMessage = false;
|
|
8505
|
+
};
|
|
8506
|
+
/**
|
|
8507
|
+
* @param {?} event
|
|
8508
|
+
* @return {?}
|
|
8509
|
+
*/
|
|
8510
|
+
AddRemissionComponent.prototype.gotoRemissionSuccess = /**
|
|
8511
|
+
* @param {?} event
|
|
8512
|
+
* @return {?}
|
|
8513
|
+
*/
|
|
8514
|
+
function (event) {
|
|
8515
|
+
event.preventDefault();
|
|
8516
|
+
this.errorMessage = '';
|
|
8517
|
+
this.viewCompStatus = '';
|
|
8518
|
+
this.viewStatus = 'retroremissionconfirmationpage';
|
|
8519
|
+
this.isRefundRemission = true;
|
|
8520
|
+
this.errorMessage = false;
|
|
7454
8521
|
};
|
|
7455
8522
|
/**
|
|
7456
8523
|
* @return {?}
|
|
@@ -7461,6 +8528,7 @@
|
|
|
7461
8528
|
function () {
|
|
7462
8529
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7463
8530
|
this.errorMessage = '';
|
|
8531
|
+
this.errorMsg = [];
|
|
7464
8532
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7465
8533
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
7466
8534
|
this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
|
|
@@ -7494,30 +8562,36 @@
|
|
|
7494
8562
|
*/
|
|
7495
8563
|
function (event) {
|
|
7496
8564
|
event.preventDefault();
|
|
7497
|
-
|
|
8565
|
+
this.errorMsg = [];
|
|
8566
|
+
if (this.paymentLibComponent.isFromServiceRequestPage !== undefined && !this.paymentLibComponent.isFromServiceRequestPage) {
|
|
8567
|
+
this.OrderslistService.setnavigationPage('casetransactions');
|
|
8568
|
+
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
8569
|
+
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
8570
|
+
this.paymentLibComponent.viewName = 'case-transactions';
|
|
8571
|
+
this.paymentLibComponent.ISBSENABLE = true;
|
|
8572
|
+
this.paymentLibComponent.isRefundStatusView = false;
|
|
7498
8573
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
7499
8574
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
7500
8575
|
this.paymentLibComponent.VIEW = 'case-transactions';
|
|
7501
8576
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
7502
8577
|
this.paymentLibComponent.ISBSENABLE = true;
|
|
7503
8578
|
this.paymentLibComponent.isRefundStatusView = false;
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
// this.router.navigateByUrl(url);
|
|
8579
|
+
this.resetOrderData();
|
|
8580
|
+
/** @type {?} */
|
|
8581
|
+
var partUrl = this.bsPaymentDcnNumber ? "&dcn=" + this.bsPaymentDcnNumber : '';
|
|
8582
|
+
partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
|
|
8583
|
+
partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
|
|
8584
|
+
partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
|
|
8585
|
+
partUrl += "&caseType=" + this.caseType;
|
|
8586
|
+
partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
|
|
8587
|
+
partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
|
|
8588
|
+
/** @type {?} */
|
|
8589
|
+
var url = "/payment-history/" + this.ccdCaseNumber + "?view=case-transactions&takePayment=" + this.paymentLibComponent.TAKEPAYMENT + "&selectedOption=" + this.option + partUrl;
|
|
8590
|
+
this.router.routeReuseStrategy.shouldReuseRoute = ( /**
|
|
8591
|
+
* @return {?}
|
|
8592
|
+
*/function () { return false; });
|
|
8593
|
+
this.router.onSameUrlNavigation = 'reload';
|
|
8594
|
+
this.router.navigateByUrl(url);
|
|
7521
8595
|
}
|
|
7522
8596
|
else {
|
|
7523
8597
|
if (this.paymentLibComponent.REFUNDLIST) {
|
|
@@ -7584,6 +8658,17 @@
|
|
|
7584
8658
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
7585
8659
|
this.OrderslistService.setorderFeesTotal(null);
|
|
7586
8660
|
};
|
|
8661
|
+
/**
|
|
8662
|
+
* @return {?}
|
|
8663
|
+
*/
|
|
8664
|
+
AddRemissionComponent.prototype.changeRefundAmount = /**
|
|
8665
|
+
* @return {?}
|
|
8666
|
+
*/
|
|
8667
|
+
function () {
|
|
8668
|
+
this.isFromCheckAnsPage = true;
|
|
8669
|
+
this.viewCompStatus = 'issuerefund';
|
|
8670
|
+
this.viewStatus = '';
|
|
8671
|
+
};
|
|
7587
8672
|
/**
|
|
7588
8673
|
* @param {?} currency
|
|
7589
8674
|
* @return {?}
|
|
@@ -7601,8 +8686,8 @@
|
|
|
7601
8686
|
AddRemissionComponent.decorators = [
|
|
7602
8687
|
{ type: i0.Component, args: [{
|
|
7603
8688
|
selector: 'ccpay-add-remission',
|
|
7604
|
-
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",
|
|
7605
|
-
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 .
|
|
8689
|
+
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>",
|
|
8690
|
+
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}"]
|
|
7606
8691
|
}] }
|
|
7607
8692
|
];
|
|
7608
8693
|
/** @nocollapse */
|
|
@@ -7619,6 +8704,7 @@
|
|
|
7619
8704
|
};
|
|
7620
8705
|
AddRemissionComponent.propDecorators = {
|
|
7621
8706
|
fee: [{ type: i0.Input }],
|
|
8707
|
+
fees: [{ type: i0.Input }],
|
|
7622
8708
|
payment: [{ type: i0.Input }],
|
|
7623
8709
|
remission: [{ type: i0.Input }],
|
|
7624
8710
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
@@ -7634,7 +8720,12 @@
|
|
|
7634
8720
|
isFromRefundListPage: [{ type: i0.Input }],
|
|
7635
8721
|
isFromPaymentDetailPage: [{ type: i0.Input }],
|
|
7636
8722
|
isFromServiceRequestPage: [{ type: i0.Input }],
|
|
8723
|
+
isFullyRefund: [{ type: i0.Input, args: ['isFullyRefund',] }],
|
|
7637
8724
|
feeamount: [{ type: i0.Input }],
|
|
8725
|
+
refundPaymentReference: [{ type: i0.Input }],
|
|
8726
|
+
isFromRefundStatusPage: [{ type: i0.Input }],
|
|
8727
|
+
changeRefundReason: [{ type: i0.Input }],
|
|
8728
|
+
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
7638
8729
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
7639
8730
|
orderDetail: [{ type: i0.Input, args: ['orderDetail',] }],
|
|
7640
8731
|
orderRef: [{ type: i0.Input, args: ['orderRef',] }],
|
|
@@ -7648,7 +8739,8 @@
|
|
|
7648
8739
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
7649
8740
|
cancelRemission: [{ type: i0.Output }],
|
|
7650
8741
|
refundListReason: [{ type: i0.Output }],
|
|
7651
|
-
refundListAmount: [{ type: i0.Output }]
|
|
8742
|
+
refundListAmount: [{ type: i0.Output }],
|
|
8743
|
+
refundFees: [{ type: i0.Output }]
|
|
7652
8744
|
};
|
|
7653
8745
|
return AddRemissionComponent;
|
|
7654
8746
|
}());
|
|
@@ -8282,10 +9374,6 @@
|
|
|
8282
9374
|
result = 'Over Payment_Under Payment';
|
|
8283
9375
|
break;
|
|
8284
9376
|
}
|
|
8285
|
-
case 'PAYMENT_FAILURE_EVENT': {
|
|
8286
|
-
result = 'Payment failure event';
|
|
8287
|
-
break;
|
|
8288
|
-
}
|
|
8289
9377
|
default: {
|
|
8290
9378
|
result = selectedOption;
|
|
8291
9379
|
break;
|
|
@@ -8330,7 +9418,7 @@
|
|
|
8330
9418
|
ReportsComponent.decorators = [
|
|
8331
9419
|
{ type: i0.Component, args: [{
|
|
8332
9420
|
selector: 'ccpay-reports',
|
|
8333
|
-
template: "<div class=\"header\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='REPORTS'>\n <ccpay-error-banner *ngIf=\"errorMessage.showError\" [errorMessage]=\"errorMessage\"></ccpay-error-banner>\n <legend class=\"govuk-fieldset__legend--xl\">\n <h1 class=\"govuk-fieldset__heading\"> Choose the report type and date range</h1>\n </legend>\n</div>\n<form [formGroup]=\"reportsForm\">\n <div class=\"govuk-form-group\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input \n required\n id=\"DataLoss\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('DATA_LOSS')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"DATA_LOSS\" \n data-aria-controls=\"DataLoss\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"DataLoss\">Data loss</label>\n <span class=\"form-hint\">Missing transactions where data has been received from only either of Exela or Bulk scan</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"UnprocessedTransactions\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('UNPROCESSED')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"UNPROCESSED\" \n data-aria-controls=\"UnprocessedTransactions\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"UnprocessedTransactions\">Unprocessed transactions</label>\n <span class=\"form-hint\">Transaction records that are still unprocessed by staff.</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ProcessedUnallocated\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('PROCESSED_UNALLOCATED')\"\n type=\"radio\"\n value=\"PROCESSED_UNALLOCATED\" \n data-aria-controls=\"ProcessedUnallocated\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ProcessedUnallocated\">Processed unallocated</label>\n <span class=\"form-hint\">Payments that are marked as \u2018Unidentified\u2019 or \u2018Transferred\u2019 (Unsolicited requests)</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ShortfallsandSurplus\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('SURPLUS_AND_SHORTFALL')\"\n type=\"radio\"\n value=\"SURPLUS_AND_SHORTFALL\" \n data-aria-controls=\"ShortfallsandSurplus\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ShortfallsandSurplus\">Under payment and Over payment</label>\n <span class=\"form-hint\">Requests where balances are marked as Under payment/Over payment further case management.\n E.g: Refund approval, Customer contact</span>\n </div>\n
|
|
9421
|
+
template: "<div class=\"header\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='REPORTS'>\n <ccpay-error-banner *ngIf=\"errorMessage.showError\" [errorMessage]=\"errorMessage\"></ccpay-error-banner>\n <legend class=\"govuk-fieldset__legend--xl\">\n <h1 class=\"govuk-fieldset__heading\"> Choose the report type and date range</h1>\n </legend>\n</div>\n<form [formGroup]=\"reportsForm\">\n <div class=\"govuk-form-group\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input \n required\n id=\"DataLoss\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('DATA_LOSS')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"DATA_LOSS\" \n data-aria-controls=\"DataLoss\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"DataLoss\">Data loss</label>\n <span class=\"form-hint\">Missing transactions where data has been received from only either of Exela or Bulk scan</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"UnprocessedTransactions\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n (click)=\"validateDates('UNPROCESSED')\"\n name=\"selectedreport\"\n type=\"radio\"\n value=\"UNPROCESSED\" \n data-aria-controls=\"UnprocessedTransactions\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"UnprocessedTransactions\">Unprocessed transactions</label>\n <span class=\"form-hint\">Transaction records that are still unprocessed by staff.</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ProcessedUnallocated\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('PROCESSED_UNALLOCATED')\"\n type=\"radio\"\n value=\"PROCESSED_UNALLOCATED\" \n data-aria-controls=\"ProcessedUnallocated\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ProcessedUnallocated\">Processed unallocated</label>\n <span class=\"form-hint\">Payments that are marked as \u2018Unidentified\u2019 or \u2018Transferred\u2019 (Unsolicited requests)</span>\n </div>\n\n <div class=\"govuk-radios__item\">\n <input \n id=\"ShortfallsandSurplus\"\n class=\"govuk-radios__input\"\n formControlName=\"selectedreport\"\n name=\"selectedreport\"\n (click)=\"validateDates('SURPLUS_AND_SHORTFALL')\"\n type=\"radio\"\n value=\"SURPLUS_AND_SHORTFALL\" \n data-aria-controls=\"ShortfallsandSurplus\"/>\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"ShortfallsandSurplus\">Under payment and Over payment</label>\n <span class=\"form-hint\">Requests where balances are marked as Under payment/Over payment further case management.\n E.g: Refund approval, Customer contact</span>\n </div>\n \n </div>\n </div>\n <div class=\"govuk-form-group\">\n <div class=\"datefrom\">\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"date-from\">Date from</label>\n <input (change)=\"getSelectedFromDate()\" [max]=\"getToday()\" class=\"form-control\" id=\"date-from\" name=\"date-from\" type=\"date\" formControlName=\"startDate\" required/>\n </div>\n\n <div class=\"dateto\">\n <label class=\"govuk-label govuk-radios__label govuk-label--m\" for=\"date-to\">Date to</label>\n <input (change)=\"getSelectedFromDate()\" [max]=\"getToday()\" class=\"form-control\" id=\"date-to\" name=\"search\" type=\"date\" formControlName=\"endDate\" required/>\n </div>\n </div>\n <p class=\"inline-error-message\" *ngIf=\"isStartDateLesthanEndDate || isDateRangeBetnWeek\">\n <span *ngIf=\"isStartDateLesthanEndDate\">Please select 'Date From' less than or equal to 'Date To'</span>\n <span *ngIf=\"isDateRangeBetnWeek\"> Please select the date range between 7 days</span>\n </p>\n <div class=\"btnsubmit\">\n <button type=\"submit\" (click)=\"downloadReport()\" class=\"button\" [disabled]=\"!reportsForm.valid || isDownLoadButtondisabled || isStartDateLesthanEndDate || isDateRangeBetnWeek\">Download report</button>\n </div>\n </form>\n \n",
|
|
8334
9422
|
styles: [".govuk-radios__input:focus+.govuk-radios__label::before{border-width:4px;box-shadow:0 0 0 4px #ffaf00}.datefrom{width:50%;float:left}.dateto{width:50%;float:right}.govuk-label--m{font-size:large}.form-hint{padding-left:.7em}.header{margin-top:10px;margin-bottom:15px}.btnsubmit{margin-bottom:30px}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px}"]
|
|
8335
9423
|
}] }
|
|
8336
9424
|
];
|
|
@@ -8388,12 +9476,26 @@
|
|
|
8388
9476
|
return (r[user_full_name] = '', r);
|
|
8389
9477
|
}), {});
|
|
8390
9478
|
this.userLst = Object.keys(this.userLst);
|
|
9479
|
+
this.userLst.sort(( /**
|
|
9480
|
+
* @param {?} a
|
|
9481
|
+
* @param {?} b
|
|
9482
|
+
* @return {?}
|
|
9483
|
+
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
9484
|
+
this.serviceLst = this.refundList.reduce(( /**
|
|
9485
|
+
* @param {?} r
|
|
9486
|
+
* @param {?} __1
|
|
9487
|
+
* @return {?}
|
|
9488
|
+
*/function (r, _a) {
|
|
9489
|
+
var service_type = _a.service_type;
|
|
9490
|
+
return (r[service_type] = '', r);
|
|
9491
|
+
}), {});
|
|
9492
|
+
this.serviceLst = Object.keys(this.serviceLst);
|
|
9493
|
+
this.serviceLst.sort(( /**
|
|
9494
|
+
* @param {?} a
|
|
9495
|
+
* @param {?} b
|
|
9496
|
+
* @return {?}
|
|
9497
|
+
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8391
9498
|
}
|
|
8392
|
-
this.userLst.sort(( /**
|
|
8393
|
-
* @param {?} a
|
|
8394
|
-
* @param {?} b
|
|
8395
|
-
* @return {?}
|
|
8396
|
-
*/function (a, b) { return a.toString().localeCompare(b); }));
|
|
8397
9499
|
};
|
|
8398
9500
|
/**
|
|
8399
9501
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -8493,8 +9595,8 @@
|
|
|
8493
9595
|
TableComponent.decorators = [
|
|
8494
9596
|
{ type: i0.Component, args: [{
|
|
8495
9597
|
selector: 'ccpay-table',
|
|
8496
|
-
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\"
|
|
8497
|
-
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}"]
|
|
9598
|
+
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",
|
|
9599
|
+
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}"]
|
|
8498
9600
|
}] }
|
|
8499
9601
|
];
|
|
8500
9602
|
/** @nocollapse */
|
|
@@ -8517,14 +9619,32 @@
|
|
|
8517
9619
|
return TableComponent;
|
|
8518
9620
|
}());
|
|
8519
9621
|
|
|
9622
|
+
/**
|
|
9623
|
+
* @fileoverview added by tsickle
|
|
9624
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9625
|
+
*/
|
|
9626
|
+
var IPutNotificationRequest = /** @class */ (function () {
|
|
9627
|
+
function IPutNotificationRequest(contactDetails, notificationType) {
|
|
9628
|
+
if (notificationType === 'EMAIL') {
|
|
9629
|
+
this.recipient_email_address = contactDetails;
|
|
9630
|
+
}
|
|
9631
|
+
else if (notificationType === 'LETTER') {
|
|
9632
|
+
this.recipient_postal_address = contactDetails;
|
|
9633
|
+
}
|
|
9634
|
+
}
|
|
9635
|
+
return IPutNotificationRequest;
|
|
9636
|
+
}());
|
|
9637
|
+
|
|
8520
9638
|
/**
|
|
8521
9639
|
* @fileoverview added by tsickle
|
|
8522
9640
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8523
9641
|
*/
|
|
8524
9642
|
var IResubmitRefundRequest = /** @class */ (function () {
|
|
8525
|
-
function IResubmitRefundRequest(refund_reason, amount) {
|
|
9643
|
+
function IResubmitRefundRequest(refund_reason, amount, contact_details, refund_fees) {
|
|
8526
9644
|
this.refund_reason = refund_reason;
|
|
8527
9645
|
this.amount = amount;
|
|
9646
|
+
this.contact_details = contact_details;
|
|
9647
|
+
this.refund_fees = refund_fees;
|
|
8528
9648
|
}
|
|
8529
9649
|
return IResubmitRefundRequest;
|
|
8530
9650
|
}());
|
|
@@ -8534,20 +9654,18 @@
|
|
|
8534
9654
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8535
9655
|
*/
|
|
8536
9656
|
var RefundStatusComponent = /** @class */ (function () {
|
|
8537
|
-
function RefundStatusComponent(formBuilder, refundService,
|
|
9657
|
+
function RefundStatusComponent(formBuilder, refundService, notificationService, paymentLibComponent, OrderslistService$$1, paymentViewService) {
|
|
8538
9658
|
var _this = this;
|
|
8539
9659
|
this.formBuilder = formBuilder;
|
|
8540
9660
|
this.refundService = refundService;
|
|
9661
|
+
this.notificationService = notificationService;
|
|
8541
9662
|
this.paymentLibComponent = paymentLibComponent;
|
|
8542
|
-
this.paymentViewService = paymentViewService;
|
|
8543
|
-
this.router = router$$1;
|
|
8544
9663
|
this.OrderslistService = OrderslistService$$1;
|
|
9664
|
+
this.paymentViewService = paymentViewService;
|
|
8545
9665
|
this.LOGGEDINUSERROLES = [];
|
|
8546
9666
|
this.rejectedRefundList = [];
|
|
8547
9667
|
this.approvalStatus = 'Sent for approval';
|
|
8548
9668
|
this.rejectStatus = 'Update required';
|
|
8549
|
-
// approvalStatus = 'sent for approval';
|
|
8550
|
-
// rejectStatus = 'sent back';
|
|
8551
9669
|
this.errorMessage = null;
|
|
8552
9670
|
this.refundButtonState = '';
|
|
8553
9671
|
this.isAmountEmpty = false;
|
|
@@ -8556,19 +9674,17 @@
|
|
|
8556
9674
|
this.isRemissionLessThanFeeError = false;
|
|
8557
9675
|
this.refundHasError = false;
|
|
8558
9676
|
this.refundReasons = [];
|
|
9677
|
+
this.isResendOperationSuccess = false;
|
|
9678
|
+
this.isEditDetailsClicked = false;
|
|
9679
|
+
this.isEditAddressDeatilsClicked = false;
|
|
8559
9680
|
this.isRefundBtnDisabled = true;
|
|
8560
9681
|
this.isLastUpdatedByCurrentUser = true;
|
|
8561
9682
|
this.isProcessRefund = false;
|
|
8562
9683
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8563
|
-
this.
|
|
9684
|
+
this.isFromPayBubble = ( /**
|
|
8564
9685
|
* @return {?}
|
|
8565
9686
|
*/function () {
|
|
8566
|
-
return _this.
|
|
8567
|
-
* @param {?} role
|
|
8568
|
-
* @return {?}
|
|
8569
|
-
*/function (role) {
|
|
8570
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
8571
|
-
}));
|
|
9687
|
+
return _this.API_ROOT === 'api/payment-history';
|
|
8572
9688
|
});
|
|
8573
9689
|
}
|
|
8574
9690
|
/**
|
|
@@ -8579,13 +9695,9 @@
|
|
|
8579
9695
|
*/
|
|
8580
9696
|
function () {
|
|
8581
9697
|
var _this = this;
|
|
8582
|
-
// if (this.check4AllowedRoles2AccessRefund()) {
|
|
8583
9698
|
this.resetRemissionForm([false, false, false, false], 'All');
|
|
8584
9699
|
this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
|
|
8585
9700
|
this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
|
|
8586
|
-
// if(this.paymentLibComponent.isFromRefundStatusPage) {
|
|
8587
|
-
// this.viewName = 'reviewandsubmitview';
|
|
8588
|
-
// }
|
|
8589
9701
|
if (this.paymentLibComponent.isRefundStatusView) {
|
|
8590
9702
|
this.viewName = 'refundview';
|
|
8591
9703
|
this.OrderslistService.getRefundView().subscribe(( /**
|
|
@@ -8599,18 +9711,23 @@
|
|
|
8599
9711
|
}
|
|
8600
9712
|
else {
|
|
8601
9713
|
this.viewName = 'refundstatuslist';
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
*/function (refundList) {
|
|
8606
|
-
_this.rejectedRefundList = refundList['refund_list'];
|
|
8607
|
-
})),
|
|
8608
|
-
( /**
|
|
8609
|
-
* @param {?} error
|
|
9714
|
+
if (this.isEliginbleToAccess) {
|
|
9715
|
+
this.refundService.getRefundStatusList(this.ccdCaseNumber).subscribe(( /**
|
|
9716
|
+
* @param {?} refundList
|
|
8610
9717
|
* @return {?}
|
|
8611
|
-
*/function (
|
|
8612
|
-
_this.
|
|
8613
|
-
})
|
|
9718
|
+
*/function (refundList) {
|
|
9719
|
+
_this.rejectedRefundList = refundList['refund_list'];
|
|
9720
|
+
})),
|
|
9721
|
+
( /**
|
|
9722
|
+
* @param {?} error
|
|
9723
|
+
* @return {?}
|
|
9724
|
+
*/function (error) {
|
|
9725
|
+
_this.errorMessage = error.replace(/"/g, "");
|
|
9726
|
+
});
|
|
9727
|
+
}
|
|
9728
|
+
else {
|
|
9729
|
+
this.rejectedRefundList = [];
|
|
9730
|
+
}
|
|
8614
9731
|
}
|
|
8615
9732
|
this.refundStatusForm = this.formBuilder.group({
|
|
8616
9733
|
amount: new forms.FormControl('', forms.Validators.compose([
|
|
@@ -8621,6 +9738,7 @@
|
|
|
8621
9738
|
reason: new forms.FormControl()
|
|
8622
9739
|
});
|
|
8623
9740
|
if (this.refundlist !== undefined) {
|
|
9741
|
+
this.getRefundsNotification();
|
|
8624
9742
|
this.getRefundsStatusHistoryList();
|
|
8625
9743
|
if (this.LOGGEDINUSERROLES.some(( /**
|
|
8626
9744
|
* @param {?} i
|
|
@@ -8638,7 +9756,6 @@
|
|
|
8638
9756
|
this.refundButtonState = this.refundlist.refund_status.name;
|
|
8639
9757
|
}
|
|
8640
9758
|
}
|
|
8641
|
-
//}
|
|
8642
9759
|
};
|
|
8643
9760
|
/**
|
|
8644
9761
|
* @return {?}
|
|
@@ -8664,6 +9781,27 @@
|
|
|
8664
9781
|
});
|
|
8665
9782
|
}
|
|
8666
9783
|
};
|
|
9784
|
+
/**
|
|
9785
|
+
* @return {?}
|
|
9786
|
+
*/
|
|
9787
|
+
RefundStatusComponent.prototype.getRefundsNotification = /**
|
|
9788
|
+
* @return {?}
|
|
9789
|
+
*/
|
|
9790
|
+
function () {
|
|
9791
|
+
var _this = this;
|
|
9792
|
+
this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe(( /**
|
|
9793
|
+
* @param {?} refundsNotification
|
|
9794
|
+
* @return {?}
|
|
9795
|
+
*/function (refundsNotification) {
|
|
9796
|
+
_this.notificationList = refundsNotification['notifications'];
|
|
9797
|
+
})),
|
|
9798
|
+
( /**
|
|
9799
|
+
* @param {?} error
|
|
9800
|
+
* @return {?}
|
|
9801
|
+
*/function (error) {
|
|
9802
|
+
_this.errorMessage = error.replace(/"/g, "");
|
|
9803
|
+
});
|
|
9804
|
+
};
|
|
8667
9805
|
/**
|
|
8668
9806
|
* @param {?} refundlist
|
|
8669
9807
|
* @param {?} navigationpage
|
|
@@ -8751,18 +9889,21 @@
|
|
|
8751
9889
|
}));
|
|
8752
9890
|
};
|
|
8753
9891
|
/**
|
|
9892
|
+
* @param {?} refundReason
|
|
8754
9893
|
* @return {?}
|
|
8755
9894
|
*/
|
|
8756
9895
|
RefundStatusComponent.prototype.gotoRefundReasonPage = /**
|
|
9896
|
+
* @param {?} refundReason
|
|
8757
9897
|
* @return {?}
|
|
8758
9898
|
*/
|
|
8759
|
-
function () {
|
|
9899
|
+
function (refundReason) {
|
|
8760
9900
|
this.isRefundBtnDisabled = false;
|
|
8761
9901
|
this.paymentLibComponent.REFUNDLIST = "true";
|
|
8762
9902
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
8763
9903
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
8764
9904
|
this.errorMessage = false;
|
|
8765
|
-
this.
|
|
9905
|
+
this.changeRefundReason = refundReason;
|
|
9906
|
+
this.viewName = 'issuerefundpage1';
|
|
8766
9907
|
};
|
|
8767
9908
|
/**
|
|
8768
9909
|
* @return {?}
|
|
@@ -8776,7 +9917,12 @@
|
|
|
8776
9917
|
this.isRefundBtnDisabled = false;
|
|
8777
9918
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
8778
9919
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
8779
|
-
this.
|
|
9920
|
+
if (this.refundlist.reason == 'Retrospective remission') {
|
|
9921
|
+
this.viewName = 'processretroremissonpage';
|
|
9922
|
+
}
|
|
9923
|
+
else {
|
|
9924
|
+
this.viewName = 'issuerefund';
|
|
9925
|
+
}
|
|
8780
9926
|
};
|
|
8781
9927
|
/**
|
|
8782
9928
|
* @return {?}
|
|
@@ -8858,6 +10004,7 @@
|
|
|
8858
10004
|
function (refundListReason) {
|
|
8859
10005
|
if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
|
|
8860
10006
|
this.refundlist.reason = refundListReason.reason;
|
|
10007
|
+
this.refundlist.code = refundListReason.code;
|
|
8861
10008
|
this.refundCode = refundListReason.code;
|
|
8862
10009
|
}
|
|
8863
10010
|
else {
|
|
@@ -8887,6 +10034,21 @@
|
|
|
8887
10034
|
this.viewName = 'reviewandsubmitview';
|
|
8888
10035
|
this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
|
|
8889
10036
|
};
|
|
10037
|
+
/**
|
|
10038
|
+
* @param {?} fees
|
|
10039
|
+
* @return {?}
|
|
10040
|
+
*/
|
|
10041
|
+
RefundStatusComponent.prototype.getRefundFees = /**
|
|
10042
|
+
* @param {?} fees
|
|
10043
|
+
* @return {?}
|
|
10044
|
+
*/
|
|
10045
|
+
function (fees) {
|
|
10046
|
+
this.fees = fees;
|
|
10047
|
+
this.refundFees = this.fees.map(( /**
|
|
10048
|
+
* @param {?} obj
|
|
10049
|
+
* @return {?}
|
|
10050
|
+
*/function (obj) { return ({ fee_id: obj.id, code: obj.code, version: obj.version, volume: obj.volume, refund_amount: obj.refund_amount }); }));
|
|
10051
|
+
};
|
|
8890
10052
|
/**
|
|
8891
10053
|
* @return {?}
|
|
8892
10054
|
*/
|
|
@@ -8895,11 +10057,15 @@
|
|
|
8895
10057
|
*/
|
|
8896
10058
|
function () {
|
|
8897
10059
|
var _this = this;
|
|
8898
|
-
if (this.oldRefundReason === this.refundlist.reason) {
|
|
8899
|
-
|
|
10060
|
+
// if (this.oldRefundReason === this.refundlist.reason) {
|
|
10061
|
+
// this.refundCode = '';
|
|
10062
|
+
// }
|
|
10063
|
+
if (this.refundFees === undefined) {
|
|
10064
|
+
this.refundFees = this.refundlist['refund_fees'];
|
|
8900
10065
|
}
|
|
10066
|
+
this.refundCode = this.refundlist.code;
|
|
8901
10067
|
/** @type {?} */
|
|
8902
|
-
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
|
|
10068
|
+
var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount, this.refundlist.contact_details, this.refundFees);
|
|
8903
10069
|
this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe(( /**
|
|
8904
10070
|
* @param {?} response
|
|
8905
10071
|
* @return {?}
|
|
@@ -8917,7 +10083,141 @@
|
|
|
8917
10083
|
}));
|
|
8918
10084
|
};
|
|
8919
10085
|
/**
|
|
8920
|
-
* @param {?}
|
|
10086
|
+
* @param {?} note
|
|
10087
|
+
* @return {?}
|
|
10088
|
+
*/
|
|
10089
|
+
RefundStatusComponent.prototype.gotoEditAddressDetails = /**
|
|
10090
|
+
* @param {?} note
|
|
10091
|
+
* @return {?}
|
|
10092
|
+
*/
|
|
10093
|
+
function (note) {
|
|
10094
|
+
this.notification = note;
|
|
10095
|
+
this.isEditDetailsClicked = true;
|
|
10096
|
+
this.viewName = 'refundEditView';
|
|
10097
|
+
};
|
|
10098
|
+
/**
|
|
10099
|
+
* @param {?} obj
|
|
10100
|
+
* @return {?}
|
|
10101
|
+
*/
|
|
10102
|
+
RefundStatusComponent.prototype.getContactDetails = /**
|
|
10103
|
+
* @param {?} obj
|
|
10104
|
+
* @return {?}
|
|
10105
|
+
*/
|
|
10106
|
+
function (obj) {
|
|
10107
|
+
this.addressDetails = obj;
|
|
10108
|
+
this.viewName = 'revieweditdetailsconfirmationpage';
|
|
10109
|
+
};
|
|
10110
|
+
/**
|
|
10111
|
+
* @param {?} obj
|
|
10112
|
+
* @return {?}
|
|
10113
|
+
*/
|
|
10114
|
+
RefundStatusComponent.prototype.getContactDetailsForRefundList = /**
|
|
10115
|
+
* @param {?} obj
|
|
10116
|
+
* @return {?}
|
|
10117
|
+
*/
|
|
10118
|
+
function (obj) {
|
|
10119
|
+
this.refundlist.contact_details = obj;
|
|
10120
|
+
this.isEditDetailsClicked = false;
|
|
10121
|
+
this.isRefundBtnDisabled = false;
|
|
10122
|
+
this.viewName = 'reviewandsubmitview';
|
|
10123
|
+
};
|
|
10124
|
+
/**
|
|
10125
|
+
* @param {?=} note
|
|
10126
|
+
* @return {?}
|
|
10127
|
+
*/
|
|
10128
|
+
RefundStatusComponent.prototype.gotoEditDetailsPage = /**
|
|
10129
|
+
* @param {?=} note
|
|
10130
|
+
* @return {?}
|
|
10131
|
+
*/
|
|
10132
|
+
function (note) {
|
|
10133
|
+
if (note) {
|
|
10134
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10135
|
+
}
|
|
10136
|
+
this.isEditDetailsClicked = true;
|
|
10137
|
+
this.viewName = 'refundEditView';
|
|
10138
|
+
};
|
|
10139
|
+
/**
|
|
10140
|
+
* @return {?}
|
|
10141
|
+
*/
|
|
10142
|
+
RefundStatusComponent.prototype.submitEditDetail = /**
|
|
10143
|
+
* @return {?}
|
|
10144
|
+
*/
|
|
10145
|
+
function () {
|
|
10146
|
+
var _this = this;
|
|
10147
|
+
this.isResendOperationSuccess = false;
|
|
10148
|
+
/** @type {?} */
|
|
10149
|
+
var contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
|
|
10150
|
+
{
|
|
10151
|
+
address_line: this.addressDetails.address_line,
|
|
10152
|
+
city: this.addressDetails.city,
|
|
10153
|
+
county: this.addressDetails.county,
|
|
10154
|
+
country: this.addressDetails.country,
|
|
10155
|
+
postal_code: this.addressDetails.postal_code,
|
|
10156
|
+
};
|
|
10157
|
+
/** @type {?} */
|
|
10158
|
+
var resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
|
|
10159
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe(( /**
|
|
10160
|
+
* @param {?} response
|
|
10161
|
+
* @return {?}
|
|
10162
|
+
*/function (response) {
|
|
10163
|
+
_this.isResendOperationSuccess = response;
|
|
10164
|
+
}), ( /**
|
|
10165
|
+
* @param {?} error
|
|
10166
|
+
* @return {?}
|
|
10167
|
+
*/function (error) {
|
|
10168
|
+
_this.isResendOperationSuccess = false;
|
|
10169
|
+
_this.errorMessage = error.replace(/"/g, "");
|
|
10170
|
+
}));
|
|
10171
|
+
};
|
|
10172
|
+
/**
|
|
10173
|
+
* @param {?} notification
|
|
10174
|
+
* @return {?}
|
|
10175
|
+
*/
|
|
10176
|
+
RefundStatusComponent.prototype.putResend = /**
|
|
10177
|
+
* @param {?} notification
|
|
10178
|
+
* @return {?}
|
|
10179
|
+
*/
|
|
10180
|
+
function (notification) {
|
|
10181
|
+
var _this = this;
|
|
10182
|
+
this.isResendOperationSuccess = false;
|
|
10183
|
+
/** @type {?} */
|
|
10184
|
+
var contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
|
|
10185
|
+
{
|
|
10186
|
+
address_line: notification.contact_details.address_line,
|
|
10187
|
+
city: notification.contact_details.city,
|
|
10188
|
+
county: notification.contact_details.county,
|
|
10189
|
+
country: notification.contact_details.country,
|
|
10190
|
+
postal_code: notification.contact_details.postal_code,
|
|
10191
|
+
};
|
|
10192
|
+
/** @type {?} */
|
|
10193
|
+
var resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
|
|
10194
|
+
this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe(( /**
|
|
10195
|
+
* @param {?} response
|
|
10196
|
+
* @return {?}
|
|
10197
|
+
*/function (response) {
|
|
10198
|
+
_this.isResendOperationSuccess = response;
|
|
10199
|
+
}), ( /**
|
|
10200
|
+
* @param {?} error
|
|
10201
|
+
* @return {?}
|
|
10202
|
+
*/function (error) {
|
|
10203
|
+
_this.isResendOperationSuccess = false;
|
|
10204
|
+
_this.errorMessage = error.replace(/"/g, "");
|
|
10205
|
+
}));
|
|
10206
|
+
};
|
|
10207
|
+
/**
|
|
10208
|
+
* @param {?} Event
|
|
10209
|
+
* @return {?}
|
|
10210
|
+
*/
|
|
10211
|
+
RefundStatusComponent.prototype.gotoCasetransationPageCancelBtnClicked = /**
|
|
10212
|
+
* @param {?} Event
|
|
10213
|
+
* @return {?}
|
|
10214
|
+
*/
|
|
10215
|
+
function (Event) {
|
|
10216
|
+
event.preventDefault();
|
|
10217
|
+
this.viewName = 'refundstatuslist';
|
|
10218
|
+
};
|
|
10219
|
+
/**
|
|
10220
|
+
* @param {?} refundReference
|
|
8921
10221
|
* @param {?} refundList
|
|
8922
10222
|
* @return {?}
|
|
8923
10223
|
*/
|
|
@@ -8929,13 +10229,14 @@
|
|
|
8929
10229
|
function (refundReference, refundList) {
|
|
8930
10230
|
this.paymentLibComponent.refundlistsource = refundList;
|
|
8931
10231
|
this.paymentLibComponent.refundReference = refundReference;
|
|
10232
|
+
this.paymentLibComponent.isFromPayBubble = true;
|
|
8932
10233
|
this.paymentLibComponent.viewName = 'process-refund';
|
|
8933
10234
|
};
|
|
8934
10235
|
RefundStatusComponent.decorators = [
|
|
8935
10236
|
{ type: i0.Component, args: [{
|
|
8936
10237
|
selector: 'ccpay-refund-status',
|
|
8937
|
-
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",
|
|
8938
|
-
styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}"]
|
|
10238
|
+
template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n\n <!-- Notification sent details -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Notifications sent</h2>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Sent to</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Sent via</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Actions</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"notificationList\">\n <tr class=\"govuk-table__row\" *ngFor=\"let notification of notificationList; let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{notification.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderParty}}</td>\n <td class=\"govuk-table__cell whitespace-inherit col-40\">\n <div *ngIf=\"notification?.notification_type === 'EMAIL'\">\n <strong>Email</strong><br>\n {{notification?.contact_details?.email}}\n </div>\n <div *ngIf=\"notification?.notification_type === 'LETTER'\">\n <strong>Post</strong><br>\n {{notification?.contact_details?.address_line}} {{notification?.contact_details?.city}} {{notification?.contact_details?.county}} {{notification?.contact_details?.country}} {{notification?.contact_details?.postal_code}}\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i === 0\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a> | <a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\n <td class=\"govuk-table__cell whitespace-inherit\" *ngIf=\"i > 0\"> </td>\n\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"!notificationList\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\" colspan=\"4\">No record found ... </td>\n </tr>\n </tbody>\n </table> \n </div>\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview' && !isFromPayBubble && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div *ngIf=\"refundButtonState==='Update required'\" >\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Change refund details</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for return</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage(refundlist?.reason)\" *ngIf=\"refundlist?.reason !== 'Retrospective remission' && refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount ? changedAmount : refundlist?.amount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason !== 'Overpayment'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n <a class=\"govuk-link\" href=\"Javascript:void(0)\" *ngIf=\"refundlist?.contact_details !=null\" class=\"govuk-link right\" (click)=\"gotoEditDetailsPage(refundlist?.contact_details)\">\n Change\n </a>\n </td>\n </tr> \n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefundpage1' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromRefundStatusPage] = \"true\"\n [changeRefundReason]= \"changeRefundReason\" [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\" [refundPaymentReference]= \"refundlist?.payment_reference\" ></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\" [isFromServiceRequestPage] = \"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" [refundPaymentReference]= \"refundlist?.payment_reference\" [isFromRefundStatusPage]=\"true\" (refundListAmount)=\"getRefundAmount($event)\" (refundFees)=\"getRefundFees($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isResendOperationSuccess\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Notification sent\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{ refundlist?.refund_reference}} </strong></p>\n </div>\n\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewName === 'refundEditView' && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Edit contact details</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span class=\"govuk-hint font-size-19px\">\n Refund reference: {{ refundlist?.refund_reference}}\n </span>\n <ccpay-contact-details\n [isEditOperationInRefundList] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetailsInFefundsList)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoCasetransationPageCancelBtnClicked($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewName === 'revieweditdetailsconfirmationpage' && !isResendOperationSuccess && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSCHECKANDANSWERPAGE'> \n <h1 class=\"govuk-heading-l\">Check your answers</h1>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Refund reference\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ refundlist?.refund_reference}}\n </dd>\n <span class=\"govuk-summary-list__actions\"></span> \n </div>\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Send via\n <br/>\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage(addressDetails)\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage(addressDetails)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"submitEditDetail()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Send notification\n </button>\n </div>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n",
|
|
10239
|
+
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%}"]
|
|
8939
10240
|
}] }
|
|
8940
10241
|
];
|
|
8941
10242
|
/** @nocollapse */
|
|
@@ -8943,18 +10244,21 @@
|
|
|
8943
10244
|
return [
|
|
8944
10245
|
{ type: forms.FormBuilder },
|
|
8945
10246
|
{ type: RefundsService },
|
|
10247
|
+
{ type: NotificationService },
|
|
8946
10248
|
{ type: PaymentLibComponent },
|
|
8947
|
-
{ type:
|
|
8948
|
-
{ type:
|
|
8949
|
-
{ type: OrderslistService }
|
|
10249
|
+
{ type: OrderslistService },
|
|
10250
|
+
{ type: PaymentViewService }
|
|
8950
10251
|
];
|
|
8951
10252
|
};
|
|
8952
10253
|
RefundStatusComponent.propDecorators = {
|
|
8953
10254
|
LOGGEDINUSERROLES: [{ type: i0.Input, args: ['LOGGEDINUSERROLES',] }],
|
|
10255
|
+
API_ROOT: [{ type: i0.Input, args: ['API_ROOT',] }],
|
|
8954
10256
|
isOldPcipalOff: [{ type: i0.Input }],
|
|
8955
10257
|
isNewPcipalOff: [{ type: i0.Input }],
|
|
8956
10258
|
ccdCaseNumber: [{ type: i0.Input }],
|
|
8957
|
-
isTurnOff: [{ type: i0.Input }]
|
|
10259
|
+
isTurnOff: [{ type: i0.Input }],
|
|
10260
|
+
orderParty: [{ type: i0.Input }],
|
|
10261
|
+
isEliginbleToAccess: [{ type: i0.Input }]
|
|
8958
10262
|
};
|
|
8959
10263
|
return RefundStatusComponent;
|
|
8960
10264
|
}());
|
|
@@ -8964,11 +10268,11 @@
|
|
|
8964
10268
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8965
10269
|
*/
|
|
8966
10270
|
var ServiceRequestComponent = /** @class */ (function () {
|
|
8967
|
-
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, router$$1) {
|
|
8968
|
-
var _this = this;
|
|
10271
|
+
function ServiceRequestComponent(paymentLibComponent, paymentViewService, OrderslistService$$1, cd, router$$1) {
|
|
8969
10272
|
this.paymentLibComponent = paymentLibComponent;
|
|
8970
10273
|
this.paymentViewService = paymentViewService;
|
|
8971
10274
|
this.OrderslistService = OrderslistService$$1;
|
|
10275
|
+
this.cd = cd;
|
|
8972
10276
|
this.router = router$$1;
|
|
8973
10277
|
this.goToServiceRquestComponent = new i0.EventEmitter();
|
|
8974
10278
|
this.paymentGroups = [];
|
|
@@ -8976,7 +10280,6 @@
|
|
|
8976
10280
|
this.nonPayments = [];
|
|
8977
10281
|
this.allPayments = [];
|
|
8978
10282
|
this.remissions = [];
|
|
8979
|
-
this.fees = [];
|
|
8980
10283
|
this.isRefundRemission = true;
|
|
8981
10284
|
this.isAddFeeBtnEnabled = true;
|
|
8982
10285
|
this.isExceptionRecord = false;
|
|
@@ -8996,27 +10299,7 @@
|
|
|
8996
10299
|
this.isAddRemissionBtnEnabled = false;
|
|
8997
10300
|
this.isRefundRemissionBtnEnable = false;
|
|
8998
10301
|
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
8999
|
-
this.
|
|
9000
|
-
* @return {?}
|
|
9001
|
-
*/function () {
|
|
9002
|
-
return _this.allowedRolesToAccessRefund.some(( /**
|
|
9003
|
-
* @param {?} role
|
|
9004
|
-
* @return {?}
|
|
9005
|
-
*/function (role) {
|
|
9006
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
9007
|
-
}));
|
|
9008
|
-
});
|
|
9009
|
-
this.allowFurtherAccessAfter4Days = ( /**
|
|
9010
|
-
* @param {?} payment
|
|
9011
|
-
* @return {?}
|
|
9012
|
-
*/function (payment) {
|
|
9013
|
-
if (payment !== null && payment !== undefined) {
|
|
9014
|
-
/** @type {?} */
|
|
9015
|
-
var tmp4DayAgo = new Date();
|
|
9016
|
-
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
9017
|
-
return tmp4DayAgo >= new Date(payment.date_created);
|
|
9018
|
-
}
|
|
9019
|
-
});
|
|
10302
|
+
this.isContinueBtnDisabled = true;
|
|
9020
10303
|
}
|
|
9021
10304
|
/**
|
|
9022
10305
|
* @return {?}
|
|
@@ -9026,6 +10309,8 @@
|
|
|
9026
10309
|
*/
|
|
9027
10310
|
function () {
|
|
9028
10311
|
var _this = this;
|
|
10312
|
+
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
10313
|
+
this.isServiceRequest = 'false';
|
|
9029
10314
|
if (this.viewStatus === undefined) {
|
|
9030
10315
|
this.viewStatus = this.paymentLibComponent.viewName;
|
|
9031
10316
|
}
|
|
@@ -9065,9 +10350,9 @@
|
|
|
9065
10350
|
*/function (data) { return _this.orderTotalPayments = data; }));
|
|
9066
10351
|
}
|
|
9067
10352
|
}
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
10353
|
+
if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.TAKEPAYMENT) {
|
|
10354
|
+
this.isServiceRequest = 'false';
|
|
10355
|
+
}
|
|
9071
10356
|
};
|
|
9072
10357
|
/**
|
|
9073
10358
|
* @return {?}
|
|
@@ -9096,7 +10381,7 @@
|
|
|
9096
10381
|
if (this.takePayment) {
|
|
9097
10382
|
this.paymentLibComponent.isTakePayment = this.takePayment;
|
|
9098
10383
|
}
|
|
9099
|
-
this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
10384
|
+
//this.paymentLibComponent.SERVICEREQUEST = "true";
|
|
9100
10385
|
this.paymentLibComponent.isFromServiceRequestPage = false;
|
|
9101
10386
|
if (this.isServiceRequest !== 'false') {
|
|
9102
10387
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
@@ -9123,79 +10408,6 @@
|
|
|
9123
10408
|
this.router.onSameUrlNavigation = 'reload';
|
|
9124
10409
|
this.router.navigateByUrl(url);
|
|
9125
10410
|
};
|
|
9126
|
-
/**
|
|
9127
|
-
* @param {?} feeCode
|
|
9128
|
-
* @return {?}
|
|
9129
|
-
*/
|
|
9130
|
-
ServiceRequestComponent.prototype.chkForAddRemission = /**
|
|
9131
|
-
* @param {?} feeCode
|
|
9132
|
-
* @return {?}
|
|
9133
|
-
*/
|
|
9134
|
-
function (feeCode) {
|
|
9135
|
-
var e_1, _a;
|
|
9136
|
-
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
|
|
9137
|
-
if (this.orderDetail[0]['remissions'].length > 0) {
|
|
9138
|
-
try {
|
|
9139
|
-
for (var _b = __values(this.orderDetail[0]['remissions']), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9140
|
-
var remission = _c.value;
|
|
9141
|
-
if (remission.fee_code === feeCode) {
|
|
9142
|
-
return false;
|
|
9143
|
-
}
|
|
9144
|
-
}
|
|
9145
|
-
}
|
|
9146
|
-
catch (e_1_1) {
|
|
9147
|
-
e_1 = { error: e_1_1 };
|
|
9148
|
-
}
|
|
9149
|
-
finally {
|
|
9150
|
-
try {
|
|
9151
|
-
if (_c && !_c.done && (_a = _b.return))
|
|
9152
|
-
_a.call(_b);
|
|
9153
|
-
}
|
|
9154
|
-
finally {
|
|
9155
|
-
if (e_1)
|
|
9156
|
-
throw e_1.error;
|
|
9157
|
-
}
|
|
9158
|
-
}
|
|
9159
|
-
}
|
|
9160
|
-
return true;
|
|
9161
|
-
}
|
|
9162
|
-
else {
|
|
9163
|
-
return false;
|
|
9164
|
-
}
|
|
9165
|
-
};
|
|
9166
|
-
/**
|
|
9167
|
-
* @return {?}
|
|
9168
|
-
*/
|
|
9169
|
-
ServiceRequestComponent.prototype.chkForPBAPayment = /**
|
|
9170
|
-
* @return {?}
|
|
9171
|
-
*/
|
|
9172
|
-
function () {
|
|
9173
|
-
var _this = this;
|
|
9174
|
-
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9175
|
-
this.orderDetail.forEach(( /**
|
|
9176
|
-
* @param {?} orderDetail
|
|
9177
|
-
* @return {?}
|
|
9178
|
-
*/function (orderDetail) {
|
|
9179
|
-
if (orderDetail.payments) {
|
|
9180
|
-
orderDetail.payments.forEach(( /**
|
|
9181
|
-
* @param {?} payment
|
|
9182
|
-
* @return {?}
|
|
9183
|
-
*/function (payment) {
|
|
9184
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9185
|
-
_this.paymentLibComponent.paymentReference = payment.reference;
|
|
9186
|
-
_this.isPBA = true;
|
|
9187
|
-
}
|
|
9188
|
-
}));
|
|
9189
|
-
}
|
|
9190
|
-
}));
|
|
9191
|
-
if (this.isPBA) {
|
|
9192
|
-
return true;
|
|
9193
|
-
}
|
|
9194
|
-
else {
|
|
9195
|
-
return false;
|
|
9196
|
-
}
|
|
9197
|
-
}
|
|
9198
|
-
};
|
|
9199
10411
|
/**
|
|
9200
10412
|
* @param {?} fee
|
|
9201
10413
|
* @return {?}
|
|
@@ -9206,7 +10418,7 @@
|
|
|
9206
10418
|
*/
|
|
9207
10419
|
function (fee) {
|
|
9208
10420
|
var _this = this;
|
|
9209
|
-
if (this.
|
|
10421
|
+
if (this.chkIsAddRemissionBtnEnable(fee)) {
|
|
9210
10422
|
this.feeId = fee;
|
|
9211
10423
|
this.viewStatus = 'addremission';
|
|
9212
10424
|
this.payment = this.orderDetail[0].payments[0];
|
|
@@ -9220,8 +10432,8 @@
|
|
|
9220
10432
|
* @return {?}
|
|
9221
10433
|
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
9222
10434
|
_this.payment = _this.paymentGroup.payments[0];
|
|
9223
|
-
//
|
|
9224
|
-
//
|
|
10435
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
10436
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
9225
10437
|
}), ( /**
|
|
9226
10438
|
* @param {?} error
|
|
9227
10439
|
* @return {?}
|
|
@@ -9242,9 +10454,8 @@
|
|
|
9242
10454
|
*/
|
|
9243
10455
|
function (payment, remission, fees) {
|
|
9244
10456
|
var _this = this;
|
|
9245
|
-
this.
|
|
9246
|
-
this.payment
|
|
9247
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
10457
|
+
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
10458
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
|
|
9248
10459
|
* @param {?} paymentGroup
|
|
9249
10460
|
* @return {?}
|
|
9250
10461
|
*/function (paymentGroup) {
|
|
@@ -9252,13 +10463,14 @@
|
|
|
9252
10463
|
_this.paymentGroup.payments = _this.paymentGroup.payments.filter(( /**
|
|
9253
10464
|
* @param {?} paymentGroupObj
|
|
9254
10465
|
* @return {?}
|
|
9255
|
-
*/function (paymentGroupObj) { return paymentGroupObj
|
|
10466
|
+
*/function (paymentGroupObj) { return paymentGroupObj.reference === payment.reference; }));
|
|
9256
10467
|
_this.payment = _this.paymentGroup.payments[0];
|
|
9257
10468
|
_this.remissions = remission;
|
|
9258
10469
|
_this.remissionFeeAmt = fees.filter(( /**
|
|
9259
10470
|
* @param {?} data
|
|
9260
10471
|
* @return {?}
|
|
9261
10472
|
*/function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
10473
|
+
_this.viewStatus = 'addrefundforremission';
|
|
9262
10474
|
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
9263
10475
|
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
9264
10476
|
}), ( /**
|
|
@@ -9303,70 +10515,40 @@
|
|
|
9303
10515
|
* @param {?} payment
|
|
9304
10516
|
* @return {?}
|
|
9305
10517
|
*/
|
|
9306
|
-
ServiceRequestComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
9307
|
-
* @param {?} payment
|
|
9308
|
-
* @return {?}
|
|
9309
|
-
*/
|
|
9310
|
-
function (payment) {
|
|
9311
|
-
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
9312
|
-
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
9313
|
-
this.isIssueRefunfBtnEnable = true;
|
|
9314
|
-
}
|
|
9315
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
9316
|
-
return true;
|
|
9317
|
-
}
|
|
9318
|
-
else {
|
|
9319
|
-
return false;
|
|
9320
|
-
}
|
|
9321
|
-
};
|
|
9322
|
-
/**
|
|
9323
|
-
* @return {?}
|
|
9324
|
-
*/
|
|
9325
|
-
ServiceRequestComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
9326
|
-
* @return {?}
|
|
9327
|
-
*/
|
|
9328
|
-
function () {
|
|
9329
|
-
var _this = this;
|
|
9330
|
-
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
9331
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
9332
|
-
this.orderDetail.forEach(( /**
|
|
9333
|
-
* @param {?} orderDetail
|
|
9334
|
-
* @return {?}
|
|
9335
|
-
*/function (orderDetail) {
|
|
9336
|
-
if (orderDetail.payments) {
|
|
9337
|
-
orderDetail.payments.forEach(( /**
|
|
9338
|
-
* @param {?} payment
|
|
9339
|
-
* @return {?}
|
|
9340
|
-
*/function (payment) {
|
|
9341
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
9342
|
-
_this.isRefundRemissionBtnEnable = true;
|
|
9343
|
-
}
|
|
9344
|
-
}));
|
|
9345
|
-
}
|
|
9346
|
-
}));
|
|
9347
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
9348
|
-
return true;
|
|
9349
|
-
}
|
|
9350
|
-
else {
|
|
9351
|
-
return false;
|
|
9352
|
-
}
|
|
9353
|
-
}
|
|
9354
|
-
};
|
|
9355
|
-
/**
|
|
9356
|
-
* @param {?} payment
|
|
9357
|
-
* @return {?}
|
|
9358
|
-
*/
|
|
9359
10518
|
ServiceRequestComponent.prototype.issueRefund = /**
|
|
9360
10519
|
* @param {?} payment
|
|
9361
10520
|
* @return {?}
|
|
9362
10521
|
*/
|
|
9363
10522
|
function (payment) {
|
|
10523
|
+
var _this = this;
|
|
9364
10524
|
if (payment !== null && payment !== undefined) {
|
|
9365
|
-
if (this.
|
|
9366
|
-
this.
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
10525
|
+
if (this.chkIsIssueRefundBtnEnable(payment)) {
|
|
10526
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe(( /**
|
|
10527
|
+
* @param {?} paymentGroup
|
|
10528
|
+
* @return {?}
|
|
10529
|
+
*/function (paymentGroup) {
|
|
10530
|
+
paymentGroup.payments = paymentGroup.payments.filter(( /**
|
|
10531
|
+
* @param {?} paymentGroupObj
|
|
10532
|
+
* @return {?}
|
|
10533
|
+
*/function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
|
|
10534
|
+
if (payment.over_payment > 0) {
|
|
10535
|
+
_this.viewStatus = '';
|
|
10536
|
+
_this.payment = payment;
|
|
10537
|
+
_this.paymentGroupList = paymentGroup;
|
|
10538
|
+
_this.viewCompStatus = 'overpayment';
|
|
10539
|
+
}
|
|
10540
|
+
else {
|
|
10541
|
+
_this.viewStatus = 'issuerefund';
|
|
10542
|
+
_this.viewCompStatus = '';
|
|
10543
|
+
_this.paymentFees = paymentGroup.fees;
|
|
10544
|
+
_this.payment = payment;
|
|
10545
|
+
_this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
10546
|
+
_this.isRefundRemission = true;
|
|
10547
|
+
}
|
|
10548
|
+
}), ( /**
|
|
10549
|
+
* @param {?} error
|
|
10550
|
+
* @return {?}
|
|
10551
|
+
*/function (error) { return _this.errorMessage = error; }));
|
|
9370
10552
|
}
|
|
9371
10553
|
}
|
|
9372
10554
|
};
|
|
@@ -9408,6 +10590,54 @@
|
|
|
9408
10590
|
this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
|
|
9409
10591
|
this.viewStatus = 'payment-view';
|
|
9410
10592
|
};
|
|
10593
|
+
/**
|
|
10594
|
+
* @param {?} payment
|
|
10595
|
+
* @return {?}
|
|
10596
|
+
*/
|
|
10597
|
+
ServiceRequestComponent.prototype.chkIsIssueRefundBtnEnable = /**
|
|
10598
|
+
* @param {?} payment
|
|
10599
|
+
* @return {?}
|
|
10600
|
+
*/
|
|
10601
|
+
function (payment) {
|
|
10602
|
+
if (payment !== null && payment !== undefined) {
|
|
10603
|
+
return payment.issue_refund && payment.refund_enable;
|
|
10604
|
+
}
|
|
10605
|
+
else {
|
|
10606
|
+
return false;
|
|
10607
|
+
}
|
|
10608
|
+
};
|
|
10609
|
+
/**
|
|
10610
|
+
* @param {?} remission
|
|
10611
|
+
* @return {?}
|
|
10612
|
+
*/
|
|
10613
|
+
ServiceRequestComponent.prototype.chkIsAddRefundBtnEnable = /**
|
|
10614
|
+
* @param {?} remission
|
|
10615
|
+
* @return {?}
|
|
10616
|
+
*/
|
|
10617
|
+
function (remission) {
|
|
10618
|
+
if (remission !== null && remission !== undefined) {
|
|
10619
|
+
return remission.add_refund;
|
|
10620
|
+
}
|
|
10621
|
+
else {
|
|
10622
|
+
return false;
|
|
10623
|
+
}
|
|
10624
|
+
};
|
|
10625
|
+
/**
|
|
10626
|
+
* @param {?} fee
|
|
10627
|
+
* @return {?}
|
|
10628
|
+
*/
|
|
10629
|
+
ServiceRequestComponent.prototype.chkIsAddRemissionBtnEnable = /**
|
|
10630
|
+
* @param {?} fee
|
|
10631
|
+
* @return {?}
|
|
10632
|
+
*/
|
|
10633
|
+
function (fee) {
|
|
10634
|
+
if (fee !== null && fee !== undefined) {
|
|
10635
|
+
return fee.add_remission && fee.remission_enable;
|
|
10636
|
+
}
|
|
10637
|
+
else {
|
|
10638
|
+
return false;
|
|
10639
|
+
}
|
|
10640
|
+
};
|
|
9411
10641
|
/**
|
|
9412
10642
|
* @return {?}
|
|
9413
10643
|
*/
|
|
@@ -9424,11 +10654,158 @@
|
|
|
9424
10654
|
this.OrderslistService.setorderRemissionTotal(null);
|
|
9425
10655
|
this.OrderslistService.setorderFeesTotal(null);
|
|
9426
10656
|
};
|
|
10657
|
+
/**
|
|
10658
|
+
* @param {?} paymentType
|
|
10659
|
+
* @return {?}
|
|
10660
|
+
*/
|
|
10661
|
+
ServiceRequestComponent.prototype.selectPymentOption = /**
|
|
10662
|
+
* @param {?} paymentType
|
|
10663
|
+
* @return {?}
|
|
10664
|
+
*/
|
|
10665
|
+
function (paymentType) {
|
|
10666
|
+
this.paymentType = paymentType;
|
|
10667
|
+
this.isContinueBtnDisabled = false;
|
|
10668
|
+
};
|
|
10669
|
+
/**
|
|
10670
|
+
* @return {?}
|
|
10671
|
+
*/
|
|
10672
|
+
ServiceRequestComponent.prototype.goToPaymentViewComp = /**
|
|
10673
|
+
* @return {?}
|
|
10674
|
+
*/
|
|
10675
|
+
function () {
|
|
10676
|
+
this.viewCompStatus = '';
|
|
10677
|
+
this.viewStatus = 'paymentview';
|
|
10678
|
+
};
|
|
10679
|
+
/**
|
|
10680
|
+
* @param {?} paymentgrp
|
|
10681
|
+
* @return {?}
|
|
10682
|
+
*/
|
|
10683
|
+
ServiceRequestComponent.prototype.continuePayment = /**
|
|
10684
|
+
* @param {?} paymentgrp
|
|
10685
|
+
* @return {?}
|
|
10686
|
+
*/
|
|
10687
|
+
function (paymentgrp) {
|
|
10688
|
+
if (this.paymentType === 'op') {
|
|
10689
|
+
this.isFullyRefund = false;
|
|
10690
|
+
this.viewStatus = '';
|
|
10691
|
+
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10692
|
+
}
|
|
10693
|
+
else if (this.paymentType === 'fp') {
|
|
10694
|
+
this.isFullyRefund = true;
|
|
10695
|
+
this.paymentGroupList = paymentgrp;
|
|
10696
|
+
this.viewStatus = 'issuerefund';
|
|
10697
|
+
this.viewCompStatus = "";
|
|
10698
|
+
this.isRefundRemission = true;
|
|
10699
|
+
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
10700
|
+
this.isFromPaymentDetailPage = true;
|
|
10701
|
+
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
10702
|
+
}
|
|
10703
|
+
};
|
|
10704
|
+
/**
|
|
10705
|
+
* @param {?} obj
|
|
10706
|
+
* @return {?}
|
|
10707
|
+
*/
|
|
10708
|
+
ServiceRequestComponent.prototype.getContactDetails = /**
|
|
10709
|
+
* @param {?} obj
|
|
10710
|
+
* @return {?}
|
|
10711
|
+
*/
|
|
10712
|
+
function (obj) {
|
|
10713
|
+
this.contactDetailsObj = obj;
|
|
10714
|
+
this.viewStatus = '';
|
|
10715
|
+
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10716
|
+
};
|
|
10717
|
+
/**
|
|
10718
|
+
* @param {?} event
|
|
10719
|
+
* @return {?}
|
|
10720
|
+
*/
|
|
10721
|
+
ServiceRequestComponent.prototype.gotoPaymentSelectPage = /**
|
|
10722
|
+
* @param {?} event
|
|
10723
|
+
* @return {?}
|
|
10724
|
+
*/
|
|
10725
|
+
function (event) {
|
|
10726
|
+
event.preventDefault();
|
|
10727
|
+
this.viewStatus = '';
|
|
10728
|
+
this.viewCompStatus = 'overpayment';
|
|
10729
|
+
};
|
|
10730
|
+
/**
|
|
10731
|
+
* @param {?=} note
|
|
10732
|
+
* @return {?}
|
|
10733
|
+
*/
|
|
10734
|
+
ServiceRequestComponent.prototype.gotoAddressPage = /**
|
|
10735
|
+
* @param {?=} note
|
|
10736
|
+
* @return {?}
|
|
10737
|
+
*/
|
|
10738
|
+
function (note) {
|
|
10739
|
+
if (note) {
|
|
10740
|
+
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10741
|
+
}
|
|
10742
|
+
this.errorMessage = '';
|
|
10743
|
+
this.viewStatus = '';
|
|
10744
|
+
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10745
|
+
};
|
|
10746
|
+
/**
|
|
10747
|
+
* @return {?}
|
|
10748
|
+
*/
|
|
10749
|
+
ServiceRequestComponent.prototype.processRefund = /**
|
|
10750
|
+
* @return {?}
|
|
10751
|
+
*/
|
|
10752
|
+
function () {
|
|
10753
|
+
var _this = this;
|
|
10754
|
+
this.isConfirmationBtnDisabled = true;
|
|
10755
|
+
this.errorMessage = '';
|
|
10756
|
+
/** @type {?} */
|
|
10757
|
+
var obj = this.paymentGroupList.fees[0];
|
|
10758
|
+
this.fees = [{ id: obj.id,
|
|
10759
|
+
code: obj.code,
|
|
10760
|
+
version: obj.version,
|
|
10761
|
+
apportion_amount: obj.apportion_amount,
|
|
10762
|
+
calculated_amount: obj.calculated_amount,
|
|
10763
|
+
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
10764
|
+
volume: obj.volume,
|
|
10765
|
+
refund_amount: this.getOverPaymentValue() }];
|
|
10766
|
+
/** @type {?} */
|
|
10767
|
+
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
|
|
10768
|
+
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
10769
|
+
* @param {?} response
|
|
10770
|
+
* @return {?}
|
|
10771
|
+
*/function (response) {
|
|
10772
|
+
if (JSON.parse(response)) {
|
|
10773
|
+
_this.viewCompStatus = '';
|
|
10774
|
+
_this.viewStatus = 'refundconfirmationpage';
|
|
10775
|
+
_this.refundReference = JSON.parse(response).refund_reference;
|
|
10776
|
+
_this.refundAmount = JSON.parse(response).refund_amount;
|
|
10777
|
+
}
|
|
10778
|
+
}), ( /**
|
|
10779
|
+
* @param {?} error
|
|
10780
|
+
* @return {?}
|
|
10781
|
+
*/function (error) {
|
|
10782
|
+
_this.errorMessage = error;
|
|
10783
|
+
_this.isConfirmationBtnDisabled = false;
|
|
10784
|
+
_this.cd.detectChanges();
|
|
10785
|
+
}));
|
|
10786
|
+
};
|
|
10787
|
+
/**
|
|
10788
|
+
* @return {?}
|
|
10789
|
+
*/
|
|
10790
|
+
ServiceRequestComponent.prototype.getOverPaymentValue = /**
|
|
10791
|
+
* @return {?}
|
|
10792
|
+
*/
|
|
10793
|
+
function () {
|
|
10794
|
+
/** @type {?} */
|
|
10795
|
+
var feesOverPayment = 0;
|
|
10796
|
+
this.paymentGroupList.fees.forEach(( /**
|
|
10797
|
+
* @param {?} fee
|
|
10798
|
+
* @return {?}
|
|
10799
|
+
*/function (fee) {
|
|
10800
|
+
feesOverPayment += fee.over_payment;
|
|
10801
|
+
}));
|
|
10802
|
+
return feesOverPayment > 0 ? feesOverPayment : this.paymentGroupList.payments[0].over_payment;
|
|
10803
|
+
};
|
|
9427
10804
|
ServiceRequestComponent.decorators = [
|
|
9428
10805
|
{ type: i0.Component, args: [{
|
|
9429
10806
|
selector: 'ccpay-service-request',
|
|
9430
|
-
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>",
|
|
9431
|
-
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%}"]
|
|
10807
|
+
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>",
|
|
10808
|
+
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}"]
|
|
9432
10809
|
}] }
|
|
9433
10810
|
];
|
|
9434
10811
|
/** @nocollapse */
|
|
@@ -9437,6 +10814,7 @@
|
|
|
9437
10814
|
{ type: PaymentLibComponent },
|
|
9438
10815
|
{ type: PaymentViewService },
|
|
9439
10816
|
{ type: OrderslistService },
|
|
10817
|
+
{ type: i0.ChangeDetectorRef },
|
|
9440
10818
|
{ type: router.Router }
|
|
9441
10819
|
];
|
|
9442
10820
|
};
|
|
@@ -9452,6 +10830,7 @@
|
|
|
9452
10830
|
orderFeesTotal: [{ type: i0.Input, args: ['orderFeesTotal',] }],
|
|
9453
10831
|
orderTotalPayments: [{ type: i0.Input, args: ['orderTotalPayments',] }],
|
|
9454
10832
|
orderRemissionTotal: [{ type: i0.Input, args: ['orderRemissionTotal',] }],
|
|
10833
|
+
paymentGroupList: [{ type: i0.Input, args: ['paymentGroupList',] }],
|
|
9455
10834
|
takePayment: [{ type: i0.Input, args: ['takePayment',] }],
|
|
9456
10835
|
ccdCaseNumber: [{ type: i0.Input, args: ['ccdCaseNumber',] }],
|
|
9457
10836
|
isServiceRequest: [{ type: i0.Input, args: ["isServiceRequest",] }],
|
|
@@ -9720,6 +11099,7 @@
|
|
|
9720
11099
|
PaymentListComponent,
|
|
9721
11100
|
PaymentViewComponent,
|
|
9722
11101
|
PbaPaymentComponent,
|
|
11102
|
+
ContactDetailsComponent,
|
|
9723
11103
|
ProcessRefundComponent,
|
|
9724
11104
|
RefundListComponent,
|
|
9725
11105
|
CardDetailsComponent,
|
|
@@ -9768,45 +11148,47 @@
|
|
|
9768
11148
|
exports.PaymentLibService = PaymentLibService;
|
|
9769
11149
|
exports.PaymentLibComponent = PaymentLibComponent;
|
|
9770
11150
|
exports.PaymentLibModule = PaymentLibModule;
|
|
9771
|
-
exports.ɵ
|
|
9772
|
-
exports.ɵ
|
|
9773
|
-
exports.ɵ
|
|
9774
|
-
exports.ɵ
|
|
9775
|
-
exports.ɵ
|
|
9776
|
-
exports.ɵ
|
|
9777
|
-
exports.ɵ
|
|
9778
|
-
exports.ɵt =
|
|
9779
|
-
exports.ɵ
|
|
11151
|
+
exports.ɵbd = AddRemissionComponent;
|
|
11152
|
+
exports.ɵy = AllocatePaymentsComponent;
|
|
11153
|
+
exports.ɵo = CardDetailsComponent;
|
|
11154
|
+
exports.ɵbb = CaseTransactionsComponent;
|
|
11155
|
+
exports.ɵj = ContactDetailsComponent;
|
|
11156
|
+
exports.ɵbk = ErrorBannerComponent;
|
|
11157
|
+
exports.ɵbc = FeeSummaryComponent;
|
|
11158
|
+
exports.ɵt = MarkUnidentifiedPaymentComponent;
|
|
11159
|
+
exports.ɵv = MarkUnsolicitedPaymentComponent;
|
|
11160
|
+
exports.ɵq = PageNotFoundComponent;
|
|
9780
11161
|
exports.ɵb = PaymentListComponent;
|
|
9781
11162
|
exports.ɵf = PaymentViewComponent;
|
|
9782
|
-
exports.ɵ
|
|
11163
|
+
exports.ɵba = PbaDetailsComponent;
|
|
9783
11164
|
exports.ɵi = PbaPaymentComponent;
|
|
9784
|
-
exports.ɵ
|
|
9785
|
-
exports.ɵ
|
|
9786
|
-
exports.ɵ
|
|
9787
|
-
exports.ɵ
|
|
9788
|
-
exports.ɵ
|
|
9789
|
-
exports.ɵ
|
|
9790
|
-
exports.ɵ
|
|
9791
|
-
exports.ɵ
|
|
9792
|
-
exports.ɵ
|
|
9793
|
-
exports.ɵ
|
|
9794
|
-
exports.ɵ
|
|
9795
|
-
exports.ɵ
|
|
9796
|
-
exports.ɵ
|
|
9797
|
-
exports.ɵ
|
|
9798
|
-
exports.ɵ
|
|
9799
|
-
exports.ɵ
|
|
11165
|
+
exports.ɵl = ProcessRefundComponent;
|
|
11166
|
+
exports.ɵx = ProcessedPaymentsComponent;
|
|
11167
|
+
exports.ɵn = RefundListComponent;
|
|
11168
|
+
exports.ɵbm = RefundStatusComponent;
|
|
11169
|
+
exports.ɵbi = ReportsComponent;
|
|
11170
|
+
exports.ɵbn = ServiceRequestComponent;
|
|
11171
|
+
exports.ɵr = StatusHistoryComponent;
|
|
11172
|
+
exports.ɵbl = TableComponent;
|
|
11173
|
+
exports.ɵw = UnprocessedPaymentsComponent;
|
|
11174
|
+
exports.ɵbf = CapitalizePipe;
|
|
11175
|
+
exports.ɵbe = CcdHyphensPipe;
|
|
11176
|
+
exports.ɵbg = keyValuePipe;
|
|
11177
|
+
exports.ɵbh = SanitizeHtmlPipe;
|
|
11178
|
+
exports.ɵu = BulkScaningPaymentService;
|
|
11179
|
+
exports.ɵp = CardDetailsService;
|
|
11180
|
+
exports.ɵz = CaseTransactionsService;
|
|
11181
|
+
exports.ɵk = NotificationService;
|
|
9800
11182
|
exports.ɵa = OrderslistService;
|
|
9801
11183
|
exports.ɵc = PaymentListService;
|
|
9802
11184
|
exports.ɵg = PaymentViewService;
|
|
9803
|
-
exports.ɵ
|
|
11185
|
+
exports.ɵm = RefundsService;
|
|
9804
11186
|
exports.ɵe = ErrorHandlerService;
|
|
9805
11187
|
exports.ɵh = WebComponentHttpClient;
|
|
9806
|
-
exports.ɵ
|
|
11188
|
+
exports.ɵbo = ConsoleLoggerService;
|
|
9807
11189
|
exports.ɵd = LoggerService;
|
|
9808
|
-
exports.ɵ
|
|
9809
|
-
exports.ɵ
|
|
11190
|
+
exports.ɵs = StatusHistoryService;
|
|
11191
|
+
exports.ɵbj = XlFileService;
|
|
9810
11192
|
|
|
9811
11193
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9812
11194
|
|