diff --git a/client/src/components/shop-info/shop-info.general.component.jsx b/client/src/components/shop-info/shop-info.general.component.jsx
index 2a20e9549..6803e53ae 100644
--- a/client/src/components/shop-info/shop-info.general.component.jsx
+++ b/client/src/components/shop-info/shop-info.general.component.jsx
@@ -145,124 +145,168 @@ export function ShopInfoGeneral({ form, bodyshop }) {
- {HasFeatureAccess({ featureName: "export", bodyshop }) && (
- <>
-
-
-
- {InstanceRenderManager({
- imex: (
-
- {() => (
-
-
-
- )}
-
- )
- })}
-
-
-
-
-
- 2
- 3
-
-
-
- {() => {
- return (
-
-
- {t("bodyshop.labels.2tiername")}
- {t("bodyshop.labels.2tiersource")}
-
-
- );
- }}
-
-
-
-
-
-
-
- >
- )}
-
-
-
-
-
-
- {InstanceRenderManager({
- imex: (
-
-
-
- )
- })}
-
-
-
- {HasFeatureAccess({ featureName: "bills", bodyshop }) && (
- <>
- {InstanceRenderManager({
- imex: (
+ {[
+ ...(HasFeatureAccess({ featureName: "export", bodyshop })
+ ? [
+
+ ,
+ InstanceRenderManager({
+ imex: (
+
+ {() => (
+
+
+
+ )}
+
+ )
+ }),
+
+
+ ,
+
+
+ 2
+ 3
+
+ ,
+
+ {() => {
+ return (
+
+
+ {t("bodyshop.labels.2tiername")}
+ {t("bodyshop.labels.2tiersource")}
+
+
+ );
+ }}
+ ,
+
+
+ ,
+
+
+
+ ]
+ : []),
+
+
+ ,
+
+
+ ,
+ InstanceRenderManager({
+ imex: (
+
+
+
+ )
+ }),
+
+
+ ,
+ ...(HasFeatureAccess({ featureName: "bills", bodyshop })
+ ? [
+ InstanceRenderManager({
+ imex: (
+
+
+
+ )
+ }),
+
+
+ ,
+
- )
- })}
-
-
-
-
-
-
- >
- )}
-
-
-
-
-
-
- {HasFeatureAccess({ featureName: "export", bodyshop }) && (
- <>
-
- {ReceivableCustomFieldSelect}
-
-
- {ReceivableCustomFieldSelect}
-
-
- {ReceivableCustomFieldSelect}
-
- {
- return {
- required: getFieldValue("enforce_class"),
- //message: t("general.validation.required"),
- type: "array"
- };
- }
- ]}
- >
-
-
-
-
-
- {ClosingPeriod.treatment === "on" && (
-
-
-
- )}
- {ADPPayroll.treatment === "on" && (
-
-
-
- )}
- {ADPPayroll.treatment === "on" && (
-
-
-
- )}
- >
- )}
+ ]
+ : []),
+
+
+ ,
+
+
+ ,
+ ...(HasFeatureAccess({ featureName: "export", bodyshop })
+ ? [
+
+ {ReceivableCustomFieldSelect}
+ ,
+
+ {ReceivableCustomFieldSelect}
+ ,
+
+ {ReceivableCustomFieldSelect}
+ ,
+ {
+ return {
+ required: getFieldValue("enforce_class"),
+ //message: t("general.validation.required"),
+ type: "array"
+ };
+ }
+ ]}
+ >
+
+ ,
+
+
+ ,
+ ...(ClosingPeriod.treatment === "on"
+ ? [
+
+
+
+ ]
+ : []),
+ ...(ADPPayroll.treatment === "on"
+ ? [
+
+
+
+ ]
+ : []),
+ ...(ADPPayroll.treatment === "on"
+ ? [
+
+
+
+ ]
+ : [])
+ ]
+ : [])
+ ]}
null}>
@@ -446,211 +491,255 @@ export function ShopInfoGeneral({ form, bodyshop }) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ({
- validator(rule, value) {
- if (!value && !getFieldValue(["md_hour_split", "paint"])) {
- return Promise.resolve();
- }
- if (value + getFieldValue(["md_hour_split", "paint"]) === 1) {
- return Promise.resolve();
- }
- return Promise.reject(t("bodyshop.validation.larsplit"));
+ {[
+
-
-
- ({
- validator(rule, value) {
- if (!value && !getFieldValue(["md_hour_split", "paint"])) {
- return Promise.resolve();
- }
- if (value + getFieldValue(["md_hour_split", "prep"]) === 1) {
- return Promise.resolve();
- }
- return Promise.reject(t("bodyshop.validation.larsplit"));
+ ]}
+ >
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {HasFeatureAccess({ featureName: "timetickets", bodyshop }) && (
- <>
-
-
-
-
-
-
-
-
-
- >
- )}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ ]}
+ >
+
+ ,
+
+
+ ,
+ ({
+ validator(rule, value) {
+ if (!value && !getFieldValue(["md_hour_split", "paint"])) {
+ return Promise.resolve();
+ }
+ if (value + getFieldValue(["md_hour_split", "paint"]) === 1) {
+ return Promise.resolve();
+ }
+ return Promise.reject(t("bodyshop.validation.larsplit"));
+ }
+ })
+ ]}
+ >
+
+ ,
+ ({
+ validator(rule, value) {
+ if (!value && !getFieldValue(["md_hour_split", "paint"])) {
+ return Promise.resolve();
+ }
+ if (value + getFieldValue(["md_hour_split", "prep"]) === 1) {
+ return Promise.resolve();
+ }
+ return Promise.reject(t("bodyshop.validation.larsplit"));
+ }
+ })
+ ]}
+ >
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+ ...(HasFeatureAccess({ featureName: "timetickets", bodyshop })
+ ? [
+
+
+ ,
+
+
+ ,
+
+
+
+ ]
+ : []),
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+ ,
+
+
+
+ ]}