TorbatYar/frontend/app/accounting/vouchers/templates/page.tsx
Mortezakoohjani 7953e47f8b Ship accounting UX: Rial integers, auto doc numbers, reverse-and-edit, real reports, customers nav.
Wire DocumentNumberSequence allocator, ledger-based subsidiary/detail reports, and posted-voucher reopen flow without mock ops forms.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 15:52:06 +03:30

23 lines
897 B
TypeScript

"use client";
import { SpecializedOpsPage } from "@/components/accounting/SpecializedOpsPage";
export default function Page() {
return (
<SpecializedOpsPage
title="الگوی سند"
description="ذخیره الگوی شرح/ساختار سند برای استفاده سریع در صدور سند."
module="vouchers"
docType="template"
createLabel="الگوی جدید"
fields={[
{ key: "template_name", label: "نام الگو", kind: "text" },
{ key: "voucher_type", label: "نوع سند", kind: "select", options: [
{ value: "general", label: "عمومی" },
{ value: "opening", label: "افتتاحیه" },
{ value: "closing", label: "اختتامیه" },
]},
{ key: "amount", label: "مبلغ نمونه", kind: "money", required: false },
]}
/>
);
}