feat(docs): added in link to the main docs and to the material xfer

This commit is contained in:
2025-09-19 07:56:43 -05:00
parent 99b3ad633c
commit 0bbe411db0
2 changed files with 49 additions and 5 deletions

View File

@@ -14,13 +14,16 @@ import {
TooltipContent, TooltipContent,
TooltipTrigger, TooltipTrigger,
} from "@/components/ui/tooltip"; } from "@/components/ui/tooltip";
import { useSettingStore } from "@/lib/store/useSettings";
export default function TransferToNextLot() { export default function TransferToNextLot() {
const [gaylordFilled, setGaylordFilled] = useState([0]); const [gaylordFilled, setGaylordFilled] = useState([0]);
const [actualAmount, setActualAmount] = useState(0); const [actualAmount, setActualAmount] = useState(0);
const [tab, setTab] = useState("esitmate"); const [tab, setTab] = useState("esitmate");
const [typeSwitch, setTypeSwitch] = useState(false); const [typeSwitch, setTypeSwitch] = useState(false);
const { settings } = useSettingStore();
const server = settings.filter((n: any) => n.name === "dbServer");
const form = useAppForm({ const form = useAppForm({
defaultValues: { defaultValues: {
runningNumber: "", runningNumber: "",
@@ -111,7 +114,7 @@ export default function TransferToNextLot() {
} }
> >
<p className="text-center"> <p className="text-center">
Almost full Almost full - 95%
</p> </p>
</button> </button>
<button <button
@@ -129,7 +132,7 @@ export default function TransferToNextLot() {
} }
> >
<p className="text-center"> <p className="text-center">
About 75% full About full - 75%
</p> </p>
</button> </button>
<button <button
@@ -145,7 +148,7 @@ export default function TransferToNextLot() {
} }
> >
<p className="text-center"> <p className="text-center">
Half full Half full - 50%
</p> </p>
</button> </button>
<button <button
@@ -163,7 +166,7 @@ export default function TransferToNextLot() {
} }
> >
<p className="text-center"> <p className="text-center">
Almost empty Almost empty - 25%
</p> </p>
</button> </button>
</div> </div>
@@ -218,7 +221,7 @@ export default function TransferToNextLot() {
name="runningNumber" name="runningNumber"
children={(field) => ( children={(field) => (
<field.InputField <field.InputField
label="Runnung Number" label="Running Number"
inputType="number" inputType="number"
required={true} required={true}
/> />
@@ -398,6 +401,19 @@ export default function TransferToNextLot() {
process, this process will just get process, this process will just get
the gaylord to the next lot. the gaylord to the next lot.
</p> </p>
<br />
{settings.length > 0 && (
<p>
For more in depth instructions
please{" "}
<a
href={`https://${server[0].value}.alpla.net/lst/d/docs/ocp/ocp#tranfer-partial-estimated-quantity-to-the-next-lot`}
target="_blank"
>
<em>CLICK HERE</em>
</a>
</p>
)}
</div> </div>
) : ( ) : (
<div> <div>
@@ -437,6 +453,19 @@ export default function TransferToNextLot() {
process, this process will just get process, this process will just get
the gaylord to the next lot. the gaylord to the next lot.
</p> </p>
<br />
{settings.length > 0 && (
<p>
For more in depth instructions
please{" "}
<a
href={`https://${server[0].value}.alpla.net/lst/d/docs/ocp/ocp#tranfer-partial-estimated-quantity-to-the-next-lot`}
target="_blank"
>
<em>CLICK HERE</em>
</a>
</p>
)}
</div> </div>
)} )}
</LstCard> </LstCard>

View File

@@ -28,6 +28,7 @@ import { useLogout } from "@/hooks/useLogout";
import ExportInventoryData from "@/components/logistics/warehouse/ExportInventoryData"; import ExportInventoryData from "@/components/logistics/warehouse/ExportInventoryData";
import { AddCards } from "@/components/dashboard/AddCards"; import { AddCards } from "@/components/dashboard/AddCards";
import DMButtons from "@/components/logistics/dm/DMButtons"; import DMButtons from "@/components/logistics/dm/DMButtons";
import { useSettingStore } from "@/lib/store/useSettings";
//import { AddCards } from "@/components/dashboard/AddCards"; //import { AddCards } from "@/components/dashboard/AddCards";
// same as the layout // same as the layout
@@ -38,6 +39,9 @@ export const Route = createRootRoute({
const { user } = useSessionStore(); const { user } = useSessionStore();
const logout = useLogout(); const logout = useLogout();
const location = useLocation(); const location = useLocation();
const { settings } = useSettingStore();
const server = settings.filter((n: any) => n.name === "dbServer");
return ( return (
<div className="overflow-hidden"> <div className="overflow-hidden">
@@ -61,6 +65,17 @@ export const Route = createRootRoute({
<div className="m-1"> <div className="m-1">
<ModeToggle /> <ModeToggle />
</div> </div>
<div className="mr-1 ml-1">
{settings.length > 0 && (
<a
href={`https://${server[0].value}.alpla.net/lst/d/docs`}
target="_blank"
>
LST - Docs
</a>
)}
</div>
{session ? ( {session ? (
<div className="m-1"> <div className="m-1">
<DropdownMenu> <DropdownMenu>