TorbatYar/frontend/modules/payment/features/ledger.tsx
Mortezakoohjani 4451b32a33 feat(payment-frontend): ship Torbat Pay admin portal for MVP 14.0-14.5
Add payment module, BFF proxy, hub/dashboard/ops/PSP/merchant screens wired to real APIs, and mark payment-frontend complete in project status.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 18:35:07 +03:30

27 lines
963 B
TypeScript

"use client";
import { PaymentListPage } from "@/modules/payment/components/PaymentListPage";
import { paymentApi } from "@/modules/payment/services/payment-api";
export const PaymentLedger = function PaymentLedgerPage() {
return (
<PaymentListPage
title="دفتر کل"
description="ثبت‌های دفتر کل مرتبط با تراکنش‌های پرداخت."
resourceKey="ledger"
fetcher={(tenantId) => paymentApi.ledger.list(tenantId)}
filterKey="direction"
columns={[
{ key: "id", header: "شناسه" },
{ key: "amount_minor", header: "مبلغ (ریال)" },
{ key: "direction", header: "جهت" },
{ key: "status", header: "وضعیت", type: "status" },
{ key: "payment_transaction_id", header: "تراکنش" },
{ key: "created_at", header: "تاریخ", type: "datetime" },
]}
/>
);
};
export default PaymentLedger;