fix edits for borsemes

This commit is contained in:
2026-07-23 12:28:48 +03:30
parent d3727265e8
commit 73feee2048
6 changed files with 210 additions and 58 deletions
+22 -2
View File
@@ -31,15 +31,33 @@ export interface DashboardMaster {
}>
}
export interface DashboardQuantityProductProfit {
product_id: number
title: string
group_type?: string | null
/** کارمزد کسرشده از کیف همان محصول (گرم/واحد) */
grams: number
value_rial: number
unit?: string
}
export interface DashboardDailyProductProfit {
product_id: number
title: string
grams: number
}
export interface DashboardDailyProfit {
date: string
/** سود طلایی روز: کارمزد کسرشده از طلا (گرم) */
/** سود فلزی روز: کارمزد کسرشده از فلز (گرم) */
profit_gold: number
/** سود ریالی روز: کارمزد کسرشده از ریال */
profit_rial: number
/** سود اختلاف قیمت روز (ریال) */
spread_rial: number
order_count: number
/** تفکیک سود مقداری به‌ازای هر محصول در همان روز */
profit_by_product?: DashboardDailyProductProfit[]
}
export interface DashboardFinance {
@@ -54,7 +72,7 @@ export interface DashboardFinance {
Gifts?: string
GiftsPrise?: number
sumAll?: number
/** سود طلایی: مجموع کارمزدهای کسرشده از طلا (گرم) */
/** سود طلایی/فلزی: مجموع کارمزدهای کسرشده از فلز (گرم) */
profitGoldGrams?: number
/** سود ریالی: مجموع کارمزدهای کسرشده از ریال */
profitRial?: number
@@ -68,6 +86,8 @@ export interface DashboardFinance {
profitGoldConvertedGram?: number
/** ارزش ریالی سود طلایی با قیمت روز */
profitGoldValueRial?: number
/** سود کارمزد فلزی به‌ازای هر محصول مقداری/آبشده */
profitQuantityProducts?: DashboardQuantityProductProfit[]
/** تفکیک روزانهٔ سود طلایی/ریالی */
daily?: DashboardDailyProfit[]
}