Add customer multi-level referral profit editor and related settings UI.

Expose enable_customer_level_profit in config and let admins edit per-customer level percents from the customers table/mobile sheets.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-10 16:48:53 +03:30
co-authored by Cursor
parent 4dde172ed7
commit de97d7caa6
12 changed files with 252 additions and 21 deletions
+7
View File
@@ -41,5 +41,12 @@ export interface Customer {
gold: number
moshtari_code?: string | number | null
pargar_account_id?: string | number | null
/** درصد سود چندسطحی از کارمزد زیرمجموعه‌ها — `{ level, present }` */
profit_amount_by_lvl?: ProfitByLevel[]
// print_name: string
}
export interface ProfitByLevel {
level: number
present: number
}