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',
has_landing: 'switch',
has_charts: 'switch',
enable_remittance: 'switch',
has_chat: 'switch',
landing_site: 'longtext',
landing_header: 'longtext',
@@ -806,6 +807,8 @@ const KEY_HELP_FALLBACK: Record<string, string> = {
'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.',
has_charts:
'روشن: بخش نمودارها در اپلیکیشن فعال است. خاموش: نمودارها غیرفعال هستند.',
enable_remittance:
'روشن: امکان انتقال وجه یا محصول از کیف پول به سایر شماره‌ها توسط کاربران فعال است. خاموش: این امکان غیرفعال است.',
landing_site: 'محتوای تنظیمات کلی لندینگ وبسایت.',
landing_header: 'محتوای هدر و ناوبری لندینگ.',
landing_hero: 'محتوای سکشن هیرو لندینگ.',
@@ -1107,6 +1110,7 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
show_to_users_chat: 'نمایش چت به کاربران',
has_landing: 'لندینگ وبسایت',
has_charts: 'نمودارها',
enable_remittance: 'حواله',
has_chat: 'چت پشتیبانی',
landing_site: 'تنظیمات کلی سایت',
landing_header: 'هدر و ناوبری',
@@ -1210,7 +1214,7 @@ export const SETTING_LOCKED_KEYS = new Set([
'unit',
'wss_enabled',
'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 */
+1 -1
View File
@@ -22,7 +22,7 @@ export const KHANEGI_SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [
title: 'دسترسی مشتری به قابلیت‌ها',
icon: 'TeamOutlined',
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,
),
},
+40 -1
View File
@@ -10,6 +10,7 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"enable_customer_level_profit",
"enable_gold_credit",
"enable_product_funds",
"enable_remittance",
"group_sms",
"has_charts",
"has_landing",
@@ -32,6 +33,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"balance_report_exclude_customer_id",
"bale_bot_token",
"banner_enabled",
"brand_logos",
"buy_fee",
"change_mesghal",
"charge_notif",
@@ -72,6 +74,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"fee_deduct_from_gold",
"fee_free",
"fee_service_charge_percentage",
"fee_show_in_factor",
"gift_for_referral",
"gift_for_referrer",
"has_chat",
@@ -86,9 +89,18 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"landing_header",
"landing_hero",
"landing_live_price",
"landing_seo_html",
"landing_site",
"landing_steps",
"landing_theme",
"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_register",
"main_metal",
@@ -101,6 +113,9 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"min_withdraw",
"minimum_sell",
"montify_name",
"montzar_account_pargar",
"montzar_account_tahesab",
"montzar_account_zarin",
"montzar_base_url",
"montzar_closed",
"montzar_diff",
@@ -111,6 +126,8 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"montzar_open_buy",
"montzar_open_sell",
"montzar_order_response",
"montzar_order_status_path",
"montzar_order_wait_callback",
"montzar_password",
"montzar_product_id",
"montzar_token",
@@ -121,9 +138,13 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"node_shared_secret",
"open_register",
"pargar_api_token",
"pargar_backfill_include_old",
"pargar_bank_account_id",
"pargar_bank_card_number",
"pargar_item_id_gold",
"pargar_item_id_rial",
"pargar_password",
"pargar_sync_withdraw_documents",
"pargar_username",
"payping_fin_customer_id",
"payping_fin_sync_enabled",
@@ -135,6 +156,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"payping_start_url",
"payping_strict_failed_withdraw",
"payping_verify_url",
"physical_withdraw_pay_on_site_enabled",
"price_channel_access",
"price_channel_bale_to",
"price_channel_diff",
@@ -143,13 +165,16 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"price_channel_footer_link",
"price_channel_footer_phone",
"price_channel_message_text",
"price_channel_product_message_text",
"price_channel_messengers",
"price_channel_min_seconds",
"price_channel_product_message_text",
"price_channel_rubika_to",
"price_channel_telegram_to",
"price_extreme_date",
"price_extreme_source",
"price_provider",
"product_allowed_price_sources",
"product_formula_presets",
"products_site_link_enabled",
"products_site_link_text",
"products_site_link_url",
@@ -164,6 +189,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"register_jibit_verify",
"register_referral_bonus_message",
"register_referral_sms_to_referrer",
"require_accept_rules",
"require_zero_main_gold_before_other_buy",
"rubika_bot_token",
"sell_fee",
@@ -175,6 +201,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"show_product_card_meta",
"show_product_details",
"show_product_trade_status",
"sms_charge_card_number",
"sms_notif_bank_card_admin",
"sms_notif_bank_card_customer",
"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_otp",
"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",
"startDay",
"support_messenger",
@@ -210,6 +247,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"title_pwa",
"tracking_systems",
"tracking_systems_enabled",
"tv_news",
"unit",
"up_price",
"wallet_payment_provider",
@@ -218,6 +256,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"zaarbox_price_key",
"zarin_api",
"zarin_gorohe_kar",
"zarin_idbank",
"zarin_name_g",
"zarin_noe_kar",
"zarin_noe_kar_tedadi",