feat(remittance): register enable_remittance in superadmin settings catalog

This commit is contained in:
2026-10-27 18:07:23 +03:30
parent 3a920761fe
commit 47f5cf818a
3 changed files with 46 additions and 3 deletions
+5 -1
View File
@@ -387,6 +387,7 @@ const KEY_TYPE_FALLBACK: Record<string, SettingFieldType> = {
show_to_users_chat: 'switch', show_to_users_chat: 'switch',
has_landing: 'switch', has_landing: 'switch',
has_charts: 'switch', has_charts: 'switch',
enable_remittance: 'switch',
has_chat: 'switch', has_chat: 'switch',
landing_site: 'longtext', landing_site: 'longtext',
landing_header: 'longtext', landing_header: 'longtext',
@@ -806,6 +807,8 @@ const KEY_HELP_FALLBACK: Record<string, string> = {
'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.', 'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.',
has_charts: has_charts:
'روشن: بخش نمودارها در اپلیکیشن فعال است. خاموش: نمودارها غیرفعال هستند.', 'روشن: بخش نمودارها در اپلیکیشن فعال است. خاموش: نمودارها غیرفعال هستند.',
enable_remittance:
'روشن: امکان انتقال وجه یا محصول از کیف پول به سایر شماره‌ها توسط کاربران فعال است. خاموش: این امکان غیرفعال است.',
landing_site: 'محتوای تنظیمات کلی لندینگ وبسایت.', landing_site: 'محتوای تنظیمات کلی لندینگ وبسایت.',
landing_header: 'محتوای هدر و ناوبری لندینگ.', landing_header: 'محتوای هدر و ناوبری لندینگ.',
landing_hero: 'محتوای سکشن هیرو لندینگ.', landing_hero: 'محتوای سکشن هیرو لندینگ.',
@@ -1107,6 +1110,7 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
show_to_users_chat: 'نمایش چت به کاربران', show_to_users_chat: 'نمایش چت به کاربران',
has_landing: 'لندینگ وبسایت', has_landing: 'لندینگ وبسایت',
has_charts: 'نمودارها', has_charts: 'نمودارها',
enable_remittance: 'حواله',
has_chat: 'چت پشتیبانی', has_chat: 'چت پشتیبانی',
landing_site: 'تنظیمات کلی سایت', landing_site: 'تنظیمات کلی سایت',
landing_header: 'هدر و ناوبری', landing_header: 'هدر و ناوبری',
@@ -1210,7 +1214,7 @@ export const SETTING_LOCKED_KEYS = new Set([
'unit', 'unit',
'wss_enabled', 'wss_enabled',
'zaarbox_api_url', 'zaarbox_api_url',
'show_to_users_chat', 'has_landing', 'has_charts', 'chat_api', 'chat_api_key', 'chat_upload_url', 'chat_download_url' 'show_to_users_chat', 'has_landing', 'has_charts', 'enable_remittance', 'chat_api', 'chat_api_key', 'chat_upload_url', 'chat_download_url'
]) ])
/** قابل ویرایش در پنل — هم‌تراز deploy_settings_const.sql */ /** قابل ویرایش در پنل — هم‌تراز deploy_settings_const.sql */
+1 -1
View File
@@ -22,7 +22,7 @@ export const KHANEGI_SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [
title: 'دسترسی مشتری به قابلیت‌ها', title: 'دسترسی مشتری به قابلیت‌ها',
icon: 'TeamOutlined', icon: 'TeamOutlined',
match: (k) => match: (k) =>
/^(enable_automation|enable_conditional_order|enable_product_funds|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|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, k,
), ),
}, },
+40 -1
View File
@@ -10,6 +10,7 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"enable_customer_level_profit", "enable_customer_level_profit",
"enable_gold_credit", "enable_gold_credit",
"enable_product_funds", "enable_product_funds",
"enable_remittance",
"group_sms", "group_sms",
"has_charts", "has_charts",
"has_landing", "has_landing",
@@ -32,6 +33,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"balance_report_exclude_customer_id", "balance_report_exclude_customer_id",
"bale_bot_token", "bale_bot_token",
"banner_enabled", "banner_enabled",
"brand_logos",
"buy_fee", "buy_fee",
"change_mesghal", "change_mesghal",
"charge_notif", "charge_notif",
@@ -72,6 +74,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"fee_deduct_from_gold", "fee_deduct_from_gold",
"fee_free", "fee_free",
"fee_service_charge_percentage", "fee_service_charge_percentage",
"fee_show_in_factor",
"gift_for_referral", "gift_for_referral",
"gift_for_referrer", "gift_for_referrer",
"has_chat", "has_chat",
@@ -86,9 +89,18 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"landing_header", "landing_header",
"landing_hero", "landing_hero",
"landing_live_price", "landing_live_price",
"landing_seo_html",
"landing_site", "landing_site",
"landing_steps", "landing_steps",
"landing_theme",
"landing_trust", "landing_trust",
"login_hero_brand_name",
"login_hero_eyebrow",
"login_hero_feature_1",
"login_hero_feature_2",
"login_hero_feature_3",
"login_hero_feature_4",
"login_hero_title",
"logo_login", "logo_login",
"logo_register", "logo_register",
"main_metal", "main_metal",
@@ -101,6 +113,9 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"min_withdraw", "min_withdraw",
"minimum_sell", "minimum_sell",
"montify_name", "montify_name",
"montzar_account_pargar",
"montzar_account_tahesab",
"montzar_account_zarin",
"montzar_base_url", "montzar_base_url",
"montzar_closed", "montzar_closed",
"montzar_diff", "montzar_diff",
@@ -111,6 +126,8 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"montzar_open_buy", "montzar_open_buy",
"montzar_open_sell", "montzar_open_sell",
"montzar_order_response", "montzar_order_response",
"montzar_order_status_path",
"montzar_order_wait_callback",
"montzar_password", "montzar_password",
"montzar_product_id", "montzar_product_id",
"montzar_token", "montzar_token",
@@ -121,9 +138,13 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"node_shared_secret", "node_shared_secret",
"open_register", "open_register",
"pargar_api_token", "pargar_api_token",
"pargar_backfill_include_old",
"pargar_bank_account_id",
"pargar_bank_card_number",
"pargar_item_id_gold", "pargar_item_id_gold",
"pargar_item_id_rial", "pargar_item_id_rial",
"pargar_password", "pargar_password",
"pargar_sync_withdraw_documents",
"pargar_username", "pargar_username",
"payping_fin_customer_id", "payping_fin_customer_id",
"payping_fin_sync_enabled", "payping_fin_sync_enabled",
@@ -135,6 +156,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"payping_start_url", "payping_start_url",
"payping_strict_failed_withdraw", "payping_strict_failed_withdraw",
"payping_verify_url", "payping_verify_url",
"physical_withdraw_pay_on_site_enabled",
"price_channel_access", "price_channel_access",
"price_channel_bale_to", "price_channel_bale_to",
"price_channel_diff", "price_channel_diff",
@@ -143,13 +165,16 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"price_channel_footer_link", "price_channel_footer_link",
"price_channel_footer_phone", "price_channel_footer_phone",
"price_channel_message_text", "price_channel_message_text",
"price_channel_product_message_text",
"price_channel_messengers", "price_channel_messengers",
"price_channel_min_seconds", "price_channel_min_seconds",
"price_channel_product_message_text",
"price_channel_rubika_to", "price_channel_rubika_to",
"price_channel_telegram_to", "price_channel_telegram_to",
"price_extreme_date", "price_extreme_date",
"price_extreme_source",
"price_provider", "price_provider",
"product_allowed_price_sources",
"product_formula_presets",
"products_site_link_enabled", "products_site_link_enabled",
"products_site_link_text", "products_site_link_text",
"products_site_link_url", "products_site_link_url",
@@ -164,6 +189,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"register_jibit_verify", "register_jibit_verify",
"register_referral_bonus_message", "register_referral_bonus_message",
"register_referral_sms_to_referrer", "register_referral_sms_to_referrer",
"require_accept_rules",
"require_zero_main_gold_before_other_buy", "require_zero_main_gold_before_other_buy",
"rubika_bot_token", "rubika_bot_token",
"sell_fee", "sell_fee",
@@ -175,6 +201,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"show_product_card_meta", "show_product_card_meta",
"show_product_details", "show_product_details",
"show_product_trade_status", "show_product_trade_status",
"sms_charge_card_number",
"sms_notif_bank_card_admin", "sms_notif_bank_card_admin",
"sms_notif_bank_card_customer", "sms_notif_bank_card_customer",
"sms_notif_fund_withdraw_admin", "sms_notif_fund_withdraw_admin",
@@ -192,6 +219,16 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"sms_notif_withdraw_admin", "sms_notif_withdraw_admin",
"sms_notif_withdraw_otp", "sms_notif_withdraw_otp",
"sms_panel", "sms_panel",
"sms_panel_0098_from",
"sms_panel_0098_password",
"sms_panel_0098_username",
"sms_panel_asanak_password",
"sms_panel_asanak_source",
"sms_panel_asanak_username",
"sms_panel_free_sms_password",
"sms_panel_free_sms_phone_number",
"sms_panel_free_sms_username",
"sms_panel_provider",
"sse_path", "sse_path",
"startDay", "startDay",
"support_messenger", "support_messenger",
@@ -210,6 +247,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"title_pwa", "title_pwa",
"tracking_systems", "tracking_systems",
"tracking_systems_enabled", "tracking_systems_enabled",
"tv_news",
"unit", "unit",
"up_price", "up_price",
"wallet_payment_provider", "wallet_payment_provider",
@@ -218,6 +256,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"zaarbox_price_key", "zaarbox_price_key",
"zarin_api", "zarin_api",
"zarin_gorohe_kar", "zarin_gorohe_kar",
"zarin_idbank",
"zarin_name_g", "zarin_name_g",
"zarin_noe_kar", "zarin_noe_kar",
"zarin_noe_kar_tedadi", "zarin_noe_kar_tedadi",