fixed some missed data, added role based function(user)

This commit is contained in:
Jelaletdin12 committed 2026-08-31 19:18:42 +05:00
1 parent 5884ec831c
commit 9ad86634dd
31 files changed
+1276 -977

No files matched your search

@@ -17,6 +17,7 @@ import { resolveLocalizedName } from "@/features/cardRequisites/api/cardRequisit
import { useInfiniteBranches } from "@/features/branches/hooks/useBranches";
import { useInfiniteCardTypes } from "@/features/cardTypes/hooks/useCardTypes";
import { useInfiniteClients } from "@/features/clients/hooks/useClients";
import { getRegionOptions } from "@/constants";
// ─── Status Badge ─────────────────────────────────────────────────────────────
@@ -42,8 +43,6 @@ const COLUMN_IDS = ["id", "uniqueId", "cardType", "customer", "user", "region",
// ─── Filter constants ─────────────────────────────────────────────────────────
const REGION_CODES = ["AG", "AH", "BN", "DZ", "LB", "MR"] as const;
export default function CardRequisitesPage() {
const { t, i18n } = useTranslation();
const lang = (i18n.language === "ru" ? "ru" : i18n.language === "en" ? "en" : "tm") as "tm" | "ru" | "en";
@@ -147,7 +146,7 @@ export default function CardRequisitesPage() {
const total = data?.count ?? 0;
const totalPages = Math.max(1, Math.ceil(total / perPage));
const regionOptions = useMemo(() => REGION_CODES.map((code) => ({ value: code, label: t(`loanOrders.regions.${code}`, code) })), [t]);
const regionOptions = useMemo(() => getRegionOptions(t), [t]);
const statusOptions = useMemo(
() => [