Files
repo-home/apps/frontend/app/stock/movement/new/page.tsx
T

28 lines
995 B
TypeScript

import Link from "next/link";
import { sites } from "../../../../_config/sites";
import { LocationForm } from "../../../../components/location/location.form";
import { articleFindAll } from "../../../../actions/article.actions";
import { locationFindAll, locationTree } from "../../../../actions/location.actions";
import { StockForm } from "../../../../components/stock/stock.form";
import { categoryFindAll } from "../../../../actions/category.actions";
export default async function StockMovmentNewPage() {
const artikel = await articleFindAll();
const orte = await locationTree();
const kategorien = await categoryFindAll();
return (
<div className="h-screen flex flex-col gap-4">
<div>
{sites.location.new.name}
<StockForm article={artikel} orte={orte} categories={kategorien}></StockForm>
</div>
<Link href={sites.location.url}>zurück zu {sites.location.name}</Link>
</div>
);
}