IO-2693 Remove committed column in table for non-enhanced payroll.
This commit is contained in:
@@ -65,14 +65,19 @@ export function TimeTicketList({
|
|||||||
}, [timetickets]);
|
}, [timetickets]);
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
...(Enhanced_Payroll.treatment === "on"
|
||||||
title: t("timetickets.fields.committed"),
|
? [{
|
||||||
dataIndex: "committed_at",
|
title: t("timetickets.fields.committed"),
|
||||||
key: "committed_at",
|
dataIndex: "committed_at",
|
||||||
render: (text, record) => (
|
key: "committed_at",
|
||||||
<Checkbox disabled checked={record.committed_at}/>
|
render: (text, record) => (
|
||||||
),
|
<Checkbox disabled checked={record.committed_at}/>
|
||||||
},
|
),
|
||||||
|
},]
|
||||||
|
: [
|
||||||
|
|
||||||
|
]),
|
||||||
|
|
||||||
{
|
{
|
||||||
title: t("timetickets.fields.date"),
|
title: t("timetickets.fields.date"),
|
||||||
dataIndex: "date",
|
dataIndex: "date",
|
||||||
|
|||||||
Reference in New Issue
Block a user