From bf5eeb5ac4a107c68e6c2fa0ad5ad66f5b260404 Mon Sep 17 00:00:00 2001 From: mohammad sedighi Date: Thu, 12 Nov 2026 14:36:50 +0330 Subject: [PATCH] added enable_customer_profit --- src/config/khanegiSettingCatalog.ts | 6 +++++- src/config/khanegiSystemSettingGroups.ts | 2 +- src/config/superAdminSettingKeys.ts | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/config/khanegiSettingCatalog.ts b/src/config/khanegiSettingCatalog.ts index f1dd9ae..d3bfd97 100644 --- a/src/config/khanegiSettingCatalog.ts +++ b/src/config/khanegiSettingCatalog.ts @@ -390,6 +390,7 @@ const KEY_TYPE_FALLBACK: Record = { has_landing: 'switch', has_charts: 'switch', enable_remittance: 'switch', + enable_customer_profit: 'switch', has_chat: 'switch', landing_site: 'longtext', landing_header: 'longtext', @@ -815,6 +816,8 @@ const KEY_HELP_FALLBACK: Record = { 'روشن: بخش نمودارها در اپلیکیشن فعال است. خاموش: نمودارها غیرفعال هستند.', enable_remittance: 'روشن: امکان انتقال وجه یا محصول از کیف پول به سایر شماره‌ها توسط کاربران فعال است. خاموش: این امکان غیرفعال است.', + enable_customer_profit: + 'روشن: امکان نگهداری و سپرده‌گذاری طلا یا پول با سود دوره‌ای برای مشتریان فعال است. خاموش: این امکان غیرفعال است.', landing_site: 'محتوای تنظیمات کلی لندینگ وبسایت.', landing_header: 'محتوای هدر و ناوبری لندینگ.', landing_hero: 'محتوای سکشن هیرو لندینگ.', @@ -1118,6 +1121,7 @@ export const KEY_LABEL_FALLBACK: Record = { has_landing: 'لندینگ وبسایت', has_charts: 'نمودارها', enable_remittance: 'حواله', + enable_customer_profit: 'سود مشارکت و سپرده', has_chat: 'چت پشتیبانی', landing_site: 'تنظیمات کلی سایت', landing_header: 'هدر و ناوبری', @@ -1223,7 +1227,7 @@ export const SETTING_LOCKED_KEYS = new Set([ 'unit', 'wss_enabled', 'zaarbox_api_url', - 'show_to_users_chat', 'has_landing', 'has_charts', 'enable_remittance', 'chat_api', 'chat_api_key', 'chat_upload_url', 'chat_download_url' + 'show_to_users_chat', 'has_landing', 'has_charts', 'enable_remittance', 'enable_customer_profit', 'chat_api', 'chat_api_key', 'chat_upload_url', 'chat_download_url' ]) /** قابل ویرایش در پنل — هم‌تراز deploy_settings_const.sql */ diff --git a/src/config/khanegiSystemSettingGroups.ts b/src/config/khanegiSystemSettingGroups.ts index 3ff821b..5857918 100644 --- a/src/config/khanegiSystemSettingGroups.ts +++ b/src/config/khanegiSystemSettingGroups.ts @@ -22,7 +22,7 @@ export const KHANEGI_SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [ title: 'دسترسی مشتری به قابلیت‌ها', icon: 'TeamOutlined', match: (k) => - /^(enable_automation|enable_conditional_order|enable_product_funds|enable_remittance|has_page_price_trigger|has_page_notification|has_page_gift_card|enable_customer_level_profit|banner_enabled|jibit_enabled|customer_direct_sms|has_page_earn_money|group_sms|customer_special_pricing|enable_gold_credit|tracking_systems_enabled|permision__enabled|show_to_users_chat|has_landing|has_charts)$/.test( + /^(enable_automation|enable_conditional_order|enable_product_funds|enable_remittance|enable_customer_profit|has_page_price_trigger|has_page_notification|has_page_gift_card|enable_customer_level_profit|banner_enabled|jibit_enabled|customer_direct_sms|has_page_earn_money|group_sms|customer_special_pricing|enable_gold_credit|tracking_systems_enabled|permision__enabled|show_to_users_chat|has_landing|has_charts)$/.test( k, ), }, diff --git a/src/config/superAdminSettingKeys.ts b/src/config/superAdminSettingKeys.ts index 2f9601a..ab433ca 100644 --- a/src/config/superAdminSettingKeys.ts +++ b/src/config/superAdminSettingKeys.ts @@ -8,6 +8,7 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set([ "enable_automation", "enable_conditional_order", "enable_customer_level_profit", + "enable_customer_profit", "enable_gold_credit", "enable_product_funds", "enable_remittance",