TorbatYar/frontend/app/accounting/settings/general/page.tsx
Mortezakoohjani 320d9cd547 Replace opaque company settings form with a real company profile page.
Users now fill legal name, national ID, economic code, address and contacts instead of generic setting key/value ops documents.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 18:37:50 +03:30

68 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import Link from "next/link";
import {
PageHeader,
Card,
CardContent,
CardHeader,
CardTitle,
Button,
} from "@/components/ds";
const LINKS = [
{
href: "/accounting/settings/company",
title: "اطلاعات شرکت",
description: "نام حقوقی، شناسه ملی، کد اقتصادی، آدرس و تماس",
},
{
href: "/accounting/settings/auto-posting",
title: "اسناد اتوماتیک",
description: "ثبت خودکار اسناد دفتر کل و قواعد استاندارد",
},
{
href: "/accounting/fiscal",
title: "سال و دوره مالی",
description: "تعریف سال مالی و دوره جاری",
},
{
href: "/accounting/currencies",
title: "ارزها",
description: "ارز پایه و نرخ‌ها",
},
{
href: "/accounting/chart-of-accounts",
title: "دفتر حساب",
description: "چارت حساب‌ها و ساختار حسابداری",
},
];
export default function GeneralSettingsPage() {
return (
<div>
<PageHeader
title="تنظیمات عمومی"
description="میانبر به تنظیمات پرکاربرد حسابداری — اطلاعات شرکت را از منوی «اطلاعات شرکت» وارد کنید."
/>
<div className="grid gap-4 sm:grid-cols-2">
{LINKS.map((item) => (
<Card key={item.href}>
<CardHeader>
<CardTitle>{item.title}</CardTitle>
</CardHeader>
<CardContent className="space-y-3">
<p className="text-sm text-[var(--muted)]">{item.description}</p>
<Link href={item.href}>
<Button type="button" variant="outline" size="sm">
مشاهده
</Button>
</Link>
</CardContent>
</Card>
))}
</div>
</div>
);
}