IO-2693 Remove committed column in table for non-enhanced payroll.

This commit is contained in:
Patrick Fic
2024-03-19 08:56:23 -07:00
parent 1b16d75dc7
commit f618719419

View File

@@ -65,14 +65,19 @@ export function TimeTicketList({
}, [timetickets]);
const columns = [
{
title: t("timetickets.fields.committed"),
dataIndex: "committed_at",
key: "committed_at",
render: (text, record) => (
<Checkbox disabled checked={record.committed_at}/>
),
},
...(Enhanced_Payroll.treatment === "on"
? [{
title: t("timetickets.fields.committed"),
dataIndex: "committed_at",
key: "committed_at",
render: (text, record) => (
<Checkbox disabled checked={record.committed_at}/>
),
},]
: [
]),
{
title: t("timetickets.fields.date"),
dataIndex: "date",