@hmcts/ccpay-web-component 5.2.4 → 5.2.6-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 +11 -7
- 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/lib/components/unprocessed-payments/unprocessed-payments.component.js +12 -8
- package/fesm2015/hmcts-ccpay-web-component.js +11 -7
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4122,6 +4122,7 @@
|
|
|
4122
4122
|
this.paymentLibComponent = paymentLibComponent;
|
|
4123
4123
|
this.paymentViewService = paymentViewService;
|
|
4124
4124
|
this.OrderslistService = OrderslistService;
|
|
4125
|
+
this.FEE_RECORDS_EXISTS = false;
|
|
4125
4126
|
this.selectedUnprocessedFeeEvent = new i0.EventEmitter();
|
|
4126
4127
|
this.getUnprocessedFeeCount = new i0.EventEmitter();
|
|
4127
4128
|
this.viewStatus = 'main';
|
|
@@ -4147,14 +4148,20 @@
|
|
|
4147
4148
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
4148
4149
|
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
4149
4150
|
this.isStFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
4150
|
-
this.OrderslistService.getFeeExists().subscribe(function (data) {
|
|
4151
|
+
this.OrderslistService.getFeeExists().subscribe(function (data) {
|
|
4152
|
+
if (data === null) {
|
|
4153
|
+
_this.FEE_RECORDS_EXISTS = false;
|
|
4154
|
+
}
|
|
4155
|
+
else {
|
|
4156
|
+
_this.FEE_RECORDS_EXISTS = data;
|
|
4157
|
+
}
|
|
4158
|
+
});
|
|
4151
4159
|
this.getUnassignedPaymentlist();
|
|
4152
4160
|
};
|
|
4153
4161
|
UnprocessedPaymentsComponent.prototype.getUnassignedPaymentlist = function () {
|
|
4154
4162
|
var _this = this;
|
|
4155
4163
|
if (this.selectedOption === 'dcn') {
|
|
4156
4164
|
this.bulkScaningPaymentService.getBSPaymentsByDCN(this.dcnNumber).subscribe(function (unassignedPayments) {
|
|
4157
|
-
// unassignedPayments['data'].map(data => data.expandable=false);
|
|
4158
4165
|
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
4159
4166
|
_this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
4160
4167
|
}
|
|
@@ -4172,7 +4179,6 @@
|
|
|
4172
4179
|
}
|
|
4173
4180
|
else {
|
|
4174
4181
|
this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).subscribe(function (unassignedPayments) {
|
|
4175
|
-
// unassignedPayments['data'].map(data => data.expandable=false);
|
|
4176
4182
|
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
4177
4183
|
_this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
4178
4184
|
}
|
|
@@ -4198,7 +4204,6 @@
|
|
|
4198
4204
|
if (unassignedPayments['ccd_reference'] === undefined) {
|
|
4199
4205
|
this.isExceptionCase = true;
|
|
4200
4206
|
}
|
|
4201
|
-
// this.isRecordExist = this.unassignedRecordList.length === 0;
|
|
4202
4207
|
this.getUnprocessedFeeCount.emit(this.unassignedRecordList.length);
|
|
4203
4208
|
this.unprocessedPaymentSelectEvent(this.unassignedRecordList);
|
|
4204
4209
|
};
|
|
@@ -4251,11 +4256,11 @@
|
|
|
4251
4256
|
if (this.isUnprocessedRecordSelected && this.isExceptionCase) {
|
|
4252
4257
|
this.isMarkAsUnidentifiedbtnEnabled = true;
|
|
4253
4258
|
}
|
|
4254
|
-
else if (this.isUnprocessedRecordSelected && !this.isExceptionCase && !this.FEE_RECORDS_EXISTS) {
|
|
4259
|
+
else if (this.isUnprocessedRecordSelected && !this.isExceptionCase && this.FEE_RECORDS_EXISTS !== null && !this.FEE_RECORDS_EXISTS) {
|
|
4255
4260
|
this.isAllocateToExistingFeebtnEnabled = false;
|
|
4256
4261
|
this.isAllocatedToNewFeebtnEnabled = true;
|
|
4257
4262
|
}
|
|
4258
|
-
else if (this.isUnprocessedRecordSelected && !this.isExceptionCase && this.FEE_RECORDS_EXISTS) {
|
|
4263
|
+
else if (this.isUnprocessedRecordSelected && !this.isExceptionCase && (this.FEE_RECORDS_EXISTS === null || this.FEE_RECORDS_EXISTS)) {
|
|
4259
4264
|
if (!this.ISTURNOFF) {
|
|
4260
4265
|
this.isAllocateToExistingFeebtnEnabled = true;
|
|
4261
4266
|
this.isAllocatedToNewFeebtnEnabled = false;
|
|
@@ -4273,7 +4278,6 @@
|
|
|
4273
4278
|
this.isAllocateToExistingFeebtnEnabled = false;
|
|
4274
4279
|
this.isAllocatedToNewFeebtnEnabled = false;
|
|
4275
4280
|
this.isMarkAsUnidentifiedbtnEnabled = false;
|
|
4276
|
-
//this.validateButtons();
|
|
4277
4281
|
this.selectedUnprocessedFeeEvent.emit('');
|
|
4278
4282
|
};
|
|
4279
4283
|
UnprocessedPaymentsComponent.prototype.showDetailRow = function (event, obj, i) {
|