Artikel DB struktur geändert von CODEX

This commit is contained in:
Marco_205 committed 2026-10-12 14:42:28 +00:00
1 parent 0c0a678eaa
commit 9c18234efe
95 files changed
+3872 -2316

No files matched your search

+29 -25
View File
@@ -1,27 +1,31 @@
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";
import Link from 'next/link';
import { sites } from '../../../../_config/sites';
import { articleFindAll } from '../../../../actions/article.actions';
import { locationTree } from '../../../../actions/location.actions';
import {
stockContentFindAll,
stockFindAll,
} from '../../../../actions/stock.actions';
import { StockForm } from '../../../../components/stock/stock.form';
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>
);
export default async function StockMovementPage() {
const [article, orte, stocks, contents] = await Promise.all([
articleFindAll(),
locationTree(),
stockFindAll(),
stockContentFindAll(),
]);
return (
<main>
<StockForm
article={article}
orte={orte}
stocks={stocks}
contents={contents}
/>
<Link className="text-sky-700 p-6" href={sites.main.url}>
Zurück
</Link>
</main>
);
}