From 1d80153da1e81bcdef0f4fb578b52dbef85684f6 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Tue, 28 Jun 2022 16:14:26 -0700
Subject: [PATCH] Added placeholder for paint codes on prod board.
---
.../production-list-columns.data.js | 23 ++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/client/src/components/production-list-columns/production-list-columns.data.js b/client/src/components/production-list-columns/production-list-columns.data.js
index e09e98775..203dd9c46 100644
--- a/client/src/components/production-list-columns/production-list-columns.data.js
+++ b/client/src/components/production-list-columns/production-list-columns.data.js
@@ -1,5 +1,5 @@
import { PauseCircleOutlined } from "@ant-design/icons";
-import { Space } from "antd";
+import { Space, Tag } from "antd";
import i18n from "i18next";
import moment from "moment";
import React from "react";
@@ -530,6 +530,27 @@ const r = ({ technician, state, activeStatuses, bodyshop }) => {
),
},
+ //Added as a place holder for St Claude. Not implemented as it requires another join for a field used by only 1 client.
+ // {
+ // title: i18n.t("vehicles.fields.v_paint_codes", { number: "" }),
+ // dataIndex: "v_paint_codes",
+ // key: "v_paint_codes",
+ // render: (text, record) =>
+ // record.vehicle?.v_paint_codes ? (
+ //
+ // {Object.keys(record.vehicle.v_paint_codes)
+ // .filter(
+ // (key) =>
+ // record.vehicle.v_paint_codes[key] !== "" &&
+ // record.vehicle.v_paint_codes[key] !== null &&
+ // record.vehicle.v_paint_codes[key] !== undefined
+ // )
+ // .map((key, idx) => (
+ // {record.vehicle.v_paint_codes[key]}
+ // ))}
+ //
+ // ) : null,
+ // },
];
};
export default r;