- Finish up with Statistics

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-07-30 17:24:55 -04:00
parent 65bb8c6f26
commit bbc446ef01
10 changed files with 472 additions and 299 deletions

View File

@@ -1,3 +1,4 @@
// ProductionBoardKanbanSettings.jsx
import { useMutation } from "@apollo/client";
import { Button, Card, Checkbox, Col, Form, notification, Popover, Radio, Row } from "antd";
import React, { useEffect, useState } from "react";
@@ -121,6 +122,22 @@ export default function ProductionBoardKanbanSettings({ associationSettings, par
].map((item) => renderCheckboxItem(item, `production.labels.${item}`))}
</Row>
</Card>
<Card title={t("production.settings.statistics_title")} style={cardStyle}>
<Row gutter={[16, 16]}>
{[
{ name: "totalHrs", label: "total_hours_in_production" },
{ name: "totalLAB", label: "total_lab_in_production" },
{ name: "totalLAR", label: "total_lar_in_production" },
{ name: "totalAmountInProduction", label: "total_amount_in_production" },
{ name: "jobsInProduction", label: "jobs_in_production" },
{ name: "totalHrsOnBoard", label: "total_hours_on_board" },
{ name: "totalLABOnBoard", label: "total_lab_on_board" },
{ name: "totalLAROnBoard", label: "total_lar_on_board" },
{ name: "jobsOnBoard", label: "total_jobs_on_board" },
{ name: "totalAmountOnBoard", label: "total_amount_on_board" }
].map((item) => renderCheckboxItem(item.name, `production.settings.statistics.${item.label}`))}
</Row>
</Card>
</>
);