diff --git a/client/src/js/views/OwnersDetail.jsx b/client/src/js/views/OwnersDetail.jsx
index d947155b..8906b658 100644
--- a/client/src/js/views/OwnersDetail.jsx
+++ b/client/src/js/views/OwnersDetail.jsx
@@ -498,14 +498,14 @@ class OwnersDetail extends React.Component {
{owner.workSafeBCPolicyNumber}
-
+
{formatDateTime(owner.workSafeBCExpiryDate, Constant.DATE_YEAR_SHORT_MONTH_DAY)}
- {owner.cglCompanyName}
+ {owner.cglCompany}
@@ -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/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}
/>
-
+ /> */}
diff --git a/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx b/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx
index 056c43b8..e3d0f387 100644
--- a/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx
+++ b/client/src/js/views/dialogs/OwnersPolicyEditDialog.jsx
@@ -29,7 +29,7 @@ class OwnersPolicyEditDialog extends React.Component {
this.state = {
workSafeBCPolicyNumber: owner.workSafeBCPolicyNumber || '',
workSafeBCExpiryDate: owner.workSafeBCExpiryDate || '',
- cglCompanyName: owner.cglCompanyName || '',
+ cglCompany: owner.cglCompany || '',
cglPolicyNumber: owner.cglPolicyNumber || '',
cglEndDate: owner.cglEndDate || '',
@@ -52,7 +52,7 @@ class OwnersPolicyEditDialog extends React.Component {
if (this.state.workSafeBCExpiryDate !== owner.workSafeBCExpiryDate) {
return true;
}
- if (this.state.cglCompanyName !== owner.cglCompanyName) {
+ if (this.state.cglCompany !== owner.cglCompany) {
return true;
}
if (this.state.cglPolicyNumber !== owner.cglPolicyNumber) {
@@ -99,7 +99,7 @@ class OwnersPolicyEditDialog extends React.Component {
...this.props.owner,
workSafeBCPolicyNumber: this.state.workSafeBCPolicyNumber,
workSafeBCExpiryDate: toZuluTime(this.state.workSafeBCExpiryDate),
- cglCompanyName: this.state.cglCompanyName,
+ cglCompany: this.state.cglCompany,
cglPolicyNumber: this.state.cglPolicyNumber,
cglEndDate: toZuluTime(this.state.cglEndDate),
};
@@ -125,7 +125,7 @@ class OwnersPolicyEditDialog extends React.Component {
onSubmit={this.formSubmitted}
>
-
+
WCB Number *
@@ -141,7 +141,7 @@ class OwnersPolicyEditDialog extends React.Component {
-
+
WCB Expiry Date
-
+
CGL Insurance Company
@@ -167,14 +167,14 @@ class OwnersPolicyEditDialog extends React.Component {
-
+
CGL Policy Number
-
+
CGL Policy End Date