From c55e1f907a919657c3c2c637891c0b8a178bb9cc Mon Sep 17 00:00:00 2001 From: wixarm Date: Wed, 18 Feb 2026 15:45:51 +0330 Subject: [PATCH] add: two new keys --- src/Pages/Herds.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Pages/Herds.tsx b/src/Pages/Herds.tsx index ffb0cb0..b34418f 100644 --- a/src/Pages/Herds.tsx +++ b/src/Pages/Herds.tsx @@ -38,7 +38,7 @@ export default function LiveStocks() { ? `/herd/web/api/v1/rancher/${farmid}/rancher_dashboard/` : "/herd/web/api/v1/rancher/rancher_main_dashboard/", queryKey: ["HerdsDashboard"], - } + }, ); const handleUpdate = () => { @@ -63,10 +63,10 @@ export default function LiveStocks() { item?.activity === "I" ? "صنعتی" : item?.activity === "V" - ? "روستایی" - : item?.activity === "N" - ? "عشایری" - : "-", + ? "روستایی" + : item?.activity === "N" + ? "عشایری" + : "-", item?.epidemiologic, parseInt(item?.light_livestock_number)?.toLocaleString(), parseInt(item?.heavy_livestock_number)?.toLocaleString(), @@ -156,6 +156,8 @@ export default function LiveStocks() { "تعداد دام سنگین", "تعداد دام سبک", "مجموع وزن خرید از سهمیه ها", + "تعداد دام های فعال", + "تعداد دام های غیرفعال", "جزئیات", ] : [ @@ -186,6 +188,10 @@ export default function LiveStocks() { "0", DashboardData?.total_purchase_weight?.toLocaleString() || "0", + DashboardData?.total_active_livestock_count?.toLocaleString() || + "0", + DashboardData?.total_deactive_livestock_count?.toLocaleString() || + "0",