Wire DocumentNumberSequence allocator, ledger-based subsidiary/detail reports, and posted-voucher reopen flow without mock ops forms. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
897 B
TypeScript
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 },
|
|
]}
|
|
/>
|
|
);
|
|
}
|