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]); }, [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",