fix some bug

This commit is contained in:
2026-07-01 22:28:09 +03:30
parent d2c5c20729
commit 3bf249377f
38 changed files with 1872 additions and 1610 deletions
+2
View File
@@ -37,6 +37,8 @@ export interface DashboardFinance {
fullPriceSood?: number
fullPriceKarmozd?: number
fullPriceKaermozd?: number
/** سود اسپرد + کارمزد */
totalTradingProfit?: number
orderCount?: number
Gifts?: string
GiftsPrise?: number
+34
View File
@@ -1,5 +1,7 @@
import type { User } from '@/model/user'
export type WalletKind = 'main' | 'product' | 'fund'
export interface WalletMetalBalance {
metal_id: number
label: string
@@ -8,6 +10,20 @@ export interface WalletMetalBalance {
display_unit?: string
}
export interface WalletProductSummary {
id?: number
title?: string
group_type?: string
unit?: string
amount?: number | string
metal_id?: number
}
export interface WalletFundSummary {
id?: number
title?: string
}
export interface Wallet {
owner: number
id: number
@@ -17,6 +33,22 @@ export interface Wallet {
product_id?: number | null
metal_gold?: Record<string, number>
customer: User
product?: WalletProductSummary | null
fund?: WalletFundSummary | null
wallet_kind?: WalletKind
wallet_kind_label?: string
wallet_subject?: string
product_title?: string | null
product_group_type?: string | null
product_unit?: string | null
product_amount?: number | string | null
fund_title?: string | null
wallet_metal_id?: number
wallet_metal_label?: string
gold_to_cash?: number
gold_grams?: number
total_rial_value?: number
created_at?: string
}
export interface WalletTableSums {
@@ -43,6 +75,8 @@ export interface Withdraw {
tracked_number?: string
date_at?: string
sts?: number
type?: number
bank_account_id?: number | null
created_at?: string
updated_at?: string
sts_str?: string