fix sql
This commit is contained in:
@@ -341,8 +341,8 @@
|
||||
<th class="px-2 py-2 text-right">مقدار</th>
|
||||
<th class="px-2 py-2 text-right">مظنه/گرم</th>
|
||||
<th class="px-2 py-2 text-right">قیمت مشتری</th>
|
||||
<th class="px-2 py-2 text-right">سود اسپرد/گرم</th>
|
||||
<th class="px-2 py-2 text-right">سود اسپرد کل</th>
|
||||
<th class="px-2 py-2 text-right">سود اختلاف قیمت/گرم</th>
|
||||
<th class="px-2 py-2 text-right">سود کل اختلاف قیمت</th>
|
||||
<th class="px-2 py-2 text-right">کارمزد (ریال)</th>
|
||||
<th class="px-2 py-2 text-right">وضعیت</th>
|
||||
<th class="px-2 py-2 text-right">تاریخ</th>
|
||||
@@ -522,9 +522,9 @@ const {
|
||||
} = useDashboardPage()
|
||||
|
||||
const tradingProfitTotal = computed(() => {
|
||||
const spread = Number(finance.value?.fullPriceSood ?? 0)
|
||||
const priceDiff = Number(finance.value?.fullPriceSood ?? 0)
|
||||
const commission = Number(finance.value?.fullPriceKarmozd ?? finance.value?.fullPriceKaermozd ?? 0)
|
||||
return Number(finance.value?.totalTradingProfit ?? spread + commission)
|
||||
return Number(finance.value?.totalTradingProfit ?? priceDiff + commission)
|
||||
})
|
||||
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user