Wire DocumentNumberSequence allocator, ledger-based subsidiary/detail reports, and posted-voucher reopen flow without mock ops forms. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
"use client";
|
|
import { SpecializedOpsPage } from "@/components/accounting/SpecializedOpsPage";
|
|
export default function Page() {
|
|
return (
|
|
<SpecializedOpsPage
|
|
title="تسهیلات و اعتبارات"
|
|
description="ثبت تسهیلات بانکی، نرخ و سررسید — داده واقعی در /ops."
|
|
module="treasury"
|
|
docType="facility"
|
|
createLabel="تسهیل جدید"
|
|
fields={[
|
|
{ key: "party", label: "بانک / طرف حساب", kind: "party" },
|
|
{ key: "facility_type", label: "نوع", kind: "select", options: [
|
|
{ value: "loan", label: "وام" },
|
|
{ value: "credit_line", label: "خط اعتباری" },
|
|
{ value: "lc", label: "اعتبار اسنادی" },
|
|
]},
|
|
{ key: "amount", label: "مبلغ اصل", kind: "money" },
|
|
{ key: "interest_rate", label: "نرخ سود (%)", kind: "text" },
|
|
{ key: "start_date", label: "شروع", kind: "date" },
|
|
{ key: "end_date", label: "پایان", kind: "date" },
|
|
]}
|
|
/>
|
|
);
|
|
}
|