From 0bbe411db089daa8913ec1c2fd233ef8f69dc127 Mon Sep 17 00:00:00 2001
From: Blake Matthes
Date: Fri, 19 Sep 2025 07:56:43 -0500
Subject: [PATCH] feat(docs): added in link to the main docs and to the
material xfer
---
.../consumption/TransferToNextLot.tsx | 39 ++++++++++++++++---
frontend/src/routes/__root.tsx | 15 +++++++
2 files changed, 49 insertions(+), 5 deletions(-)
diff --git a/frontend/src/components/logistics/materialHelper/consumption/TransferToNextLot.tsx b/frontend/src/components/logistics/materialHelper/consumption/TransferToNextLot.tsx
index 33f4b20..8d0a4b1 100644
--- a/frontend/src/components/logistics/materialHelper/consumption/TransferToNextLot.tsx
+++ b/frontend/src/components/logistics/materialHelper/consumption/TransferToNextLot.tsx
@@ -14,13 +14,16 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
+import { useSettingStore } from "@/lib/store/useSettings";
export default function TransferToNextLot() {
const [gaylordFilled, setGaylordFilled] = useState([0]);
const [actualAmount, setActualAmount] = useState(0);
const [tab, setTab] = useState("esitmate");
const [typeSwitch, setTypeSwitch] = useState(false);
+ const { settings } = useSettingStore();
+ const server = settings.filter((n: any) => n.name === "dbServer");
const form = useAppForm({
defaultValues: {
runningNumber: "",
@@ -111,7 +114,7 @@ export default function TransferToNextLot() {
}
>
- Almost full
+ Almost full - 95%
@@ -218,7 +221,7 @@ export default function TransferToNextLot() {
name="runningNumber"
children={(field) => (
@@ -398,6 +401,19 @@ export default function TransferToNextLot() {
process, this process will just get
the gaylord to the next lot.
+
+ {settings.length > 0 && (
+
+ For more in depth instructions
+ please{" "}
+
+ CLICK HERE
+
+
+ )}
) : (
@@ -437,6 +453,19 @@ export default function TransferToNextLot() {
process, this process will just get
the gaylord to the next lot.
+
+ {settings.length > 0 && (
+
+ For more in depth instructions
+ please{" "}
+
+ CLICK HERE
+
+
+ )}
)}
diff --git a/frontend/src/routes/__root.tsx b/frontend/src/routes/__root.tsx
index 1311a4c..4005699 100644
--- a/frontend/src/routes/__root.tsx
+++ b/frontend/src/routes/__root.tsx
@@ -28,6 +28,7 @@ import { useLogout } from "@/hooks/useLogout";
import ExportInventoryData from "@/components/logistics/warehouse/ExportInventoryData";
import { AddCards } from "@/components/dashboard/AddCards";
import DMButtons from "@/components/logistics/dm/DMButtons";
+import { useSettingStore } from "@/lib/store/useSettings";
//import { AddCards } from "@/components/dashboard/AddCards";
// same as the layout
@@ -38,6 +39,9 @@ export const Route = createRootRoute({
const { user } = useSessionStore();
const logout = useLogout();
const location = useLocation();
+ const { settings } = useSettingStore();
+
+ const server = settings.filter((n: any) => n.name === "dbServer");
return (