From 51767a0e248887a6d2fefc3534d109f3b59ff0b1 Mon Sep 17 00:00:00 2001 From: Wang Date: Wed, 11 Sep 2024 10:14:10 -0700 Subject: [PATCH 1/3] TH-119992: hide the WCB & CGL expiry date --- client/src/js/views/OwnersDetail.jsx | 4 ++-- client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/js/views/OwnersDetail.jsx b/client/src/js/views/OwnersDetail.jsx index d947155b..0b9b61f8 100644 --- a/client/src/js/views/OwnersDetail.jsx +++ b/client/src/js/views/OwnersDetail.jsx @@ -498,7 +498,7 @@ class OwnersDetail extends React.Component { {owner.workSafeBCPolicyNumber} - + {formatDateTime(owner.workSafeBCExpiryDate, Constant.DATE_YEAR_SHORT_MONTH_DAY)} @@ -513,7 +513,7 @@ class OwnersDetail extends React.Component { {owner.cglPolicyNumber} - + {formatDateTime(owner.cglEndDate, Constant.DATE_YEAR_SHORT_MONTH_DAY)} diff --git a/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx b/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx index 056c43b8..b9315656 100644 --- a/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx +++ b/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx @@ -125,7 +125,7 @@ class OwnersPolicyEditDialog extends React.Component { onSubmit={this.formSubmitted} > - + WCB Number * @@ -141,7 +141,7 @@ class OwnersPolicyEditDialog extends React.Component { - + - + CGL Policy Number - + - + CGL Insurance Company From 825ee752942cc52ac8b4d3d518cd980768a17121 Mon Sep 17 00:00:00 2001 From: Wang Date: Fri, 13 Sep 2024 10:36:25 -0700 Subject: [PATCH 3/3] TH-119992: removed other fields per business request --- client/src/js/views/WcbCglCoverage.jsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/client/src/js/views/WcbCglCoverage.jsx b/client/src/js/views/WcbCglCoverage.jsx index 6074d6fc..3583b7df 100644 --- a/client/src/js/views/WcbCglCoverage.jsx +++ b/client/src/js/views/WcbCglCoverage.jsx @@ -12,15 +12,15 @@ import * as Constant from '../constants'; import PageHeader from '../components/ui/PageHeader.jsx'; import SearchBar from '../components/ui/SearchBar.jsx'; -import DateControl from '../components/DateControl.jsx'; +// import DateControl from '../components/DateControl.jsx'; import Favourites from '../components/Favourites.jsx'; import Form from '../components/Form.jsx'; import MultiDropdown from '../components/MultiDropdown.jsx'; import SortTable from '../components/SortTable.jsx'; import Spinner from '../components/Spinner.jsx'; import PrintButton from '../components/PrintButton.jsx'; - -import { formatDateTime, toZuluTime } from '../utils/date'; +// import { formatDateTime, toZuluTime } from '../utils/date'; +import { toZuluTime } from '../utils/date'; class WcbCglCoverage extends React.Component { static propTypes = { @@ -170,9 +170,9 @@ class WcbCglCoverage extends React.Component { { field: 'primaryContactNumber', title: 'Phone' }, { field: 'primaryContactCell', title: 'Cell' }, { field: 'wcbNumber', title: 'WCB Number' }, - { field: 'wcbExpiryDate', title: 'WCB Expires' }, + // { field: 'wcbExpiryDate', title: 'WCB Expires' }, { field: 'cglNumber', title: 'CGL Policy' }, - { field: 'cglExpiryDate', title: 'CGL Expires' }, + // { field: 'cglExpiryDate', title: 'CGL Expires' }, ]} > {_.map(ownersCoverage, (entry) => { @@ -186,9 +186,9 @@ class WcbCglCoverage extends React.Component { {entry.primaryContactNumber} {entry.primaryContactCell} {entry.wcbNumber} - {formatDateTime(entry.wcbExpiryDate, 'YYYY-MMM-DD')} + {/* {formatDateTime(entry.wcbExpiryDate, 'YYYY-MMM-DD')} */} {entry.cglNumber} - {formatDateTime(entry.cglExpiryDate, 'YYYY-MMM-DD')} + {/* {formatDateTime(entry.cglExpiryDate, 'YYYY-MMM-DD')} */} ); })} @@ -261,7 +261,7 @@ class WcbCglCoverage extends React.Component { updateState={this.updateSearchState} showMaxItems={2} /> - + /> */}