feat: update kyc tab, branch day register, and dormancy reports
This commit is contained in:
@@ -19,6 +19,7 @@ import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
|
||||
/** Custom Services */
|
||||
import { ClientsService } from '../clients/clients.service';
|
||||
import { toIsoDate } from 'app/core/utils/api-date';
|
||||
|
||||
/** Report data + computation */
|
||||
import {
|
||||
@@ -176,7 +177,7 @@ export class KycExpiryComponent implements OnInit {
|
||||
accountNo: r?.clientAccountNo || '',
|
||||
branchCode: r?.clientOfficeName || '',
|
||||
riskCategory: r?.riskCategory ?? 1,
|
||||
expiryDate: (r?.expiryDate || '').toString().slice(0, 10),
|
||||
expiryDate: toIsoDate(r?.expiryDate),
|
||||
// Only the masked forms come back from the server, which is what the dialog shows and all it
|
||||
// needs — the destination itself is resolved server-side when a notice is sent.
|
||||
mobile: r?.clientMobileMasked || (r?.hasMobile ? 'On file' : ''),
|
||||
@@ -187,7 +188,7 @@ export class KycExpiryComponent implements OnInit {
|
||||
private mapContact(log: any): KycContactRow {
|
||||
const status = log?.deliveryStatus || 'NOT_APPLICABLE';
|
||||
return {
|
||||
date: (log?.contactedOn || log?.createdOn || '').toString().slice(0, 10),
|
||||
date: toIsoDate(log?.contactedOn || log?.createdOn),
|
||||
channel: log?.channel || '',
|
||||
channelLabel: channelLabel(log?.channel || ''),
|
||||
notes: log?.notes || '',
|
||||
|
||||
Reference in New Issue
Block a user