Browse Source

Enterprise condition

pull/1/head
wahyun 7 months ago
parent
commit
7d951d4532
  1. 24
      src/views/Master/MasterTransaction/index.js

24
src/views/Master/MasterTransaction/index.js

@ -85,21 +85,25 @@ class index extends Component {
</Tooltip> </Tooltip>
</>, </>,
}, },
{ ...(this.state.role_name === 'Super Admin' ? [
title: this.state.role_name === 'Super Admin' ? "Company Name" : null, {
dataIndex: "join_first_company_name", title: "Company Name",
key: "join_first_company_name", dataIndex: "join_first_company_name",
render: (text, record) => { key: "join_first_company_name",
return this.state.role_name === 'Super Admin' ? ( render: (text, record) => {
<span>{record.join_first_company_name}</span> return <span>{ record.join_first_company_name }</span>;
) : null; }
}] : [])
,
{ title: 'Type Paket', dataIndex: 'type_paket', key: 'type_paket', className: "nowrap",
render: (text,record) => {
return <span>{ !["Basic","Free"].includes(record.type_paket) ? 'Enterprise' : record.type_paket}</span>
} }
}, },
{ title: 'Type Paket', dataIndex: 'type_paket', key: 'type_paket', className: "nowrap" },
{ {
title: this.props.t('Expired Date'), dataIndex: 'exp_ospro', key: 'exp_ospro', title: this.props.t('Expired Date'), dataIndex: 'exp_ospro', key: 'exp_ospro',
render: (text,record) => { render: (text,record) => {
return moment(record.exp_ospro).format('DD MMMM, YYYY'); return <span>{ moment(record.exp_ospro).format('DD MMMM, YYYY') }</span>;
} }
}, },
]; ];

Loading…
Cancel
Save