This commit is contained in:
2026-07-02 01:25:29 +03:30
parent e5995939f4
commit 7ea7fa9ae9
6 changed files with 28 additions and 28 deletions
@@ -2,7 +2,7 @@
<section class="dashboard-income-summary">
<DashboardSectionHeader title="خلاصه درآمد معاملات" :help="help" />
<p class="dashboard-income-summary__intro">
سود اسپرد (اختلاف قیمت) و کارمزد جدا محاسبه می‌شوند. جمع = هر دو. همه مبالغ
سود اختلاف قیمت و کارمزد جدا محاسبه می‌شوند. جمع = هر دو. همه مبالغ
<strong>ریال</strong> هستند (نه تومان).
</p>
@@ -49,21 +49,21 @@ const props = defineProps<{
const help = dashboardTradingIncomeSummary
const unit = DASHBOARD_RIAL_UNIT
const spreadRial = computed(() => Number(props.finance?.fullPriceSood ?? 0))
const priceDiffRial = computed(() => Number(props.finance?.fullPriceSood ?? 0))
const commissionRial = computed(() =>
Number(props.finance?.fullPriceKarmozd ?? props.finance?.fullPriceKaermozd ?? 0)
)
const totalRial = computed(() =>
Number(props.finance?.totalTradingProfit ?? spreadRial.value + commissionRial.value)
Number(props.finance?.totalTradingProfit ?? priceDiffRial.value + commissionRial.value)
)
const rows = computed(() => [
{
key: 'spread',
label: 'سود اسپرد',
hint: 'اختلاف قیمت پایه و قیمت مشتری',
amount: formatDashboardAmount(spreadRial.value),
help: dashboardKpi.spreadProfit,
key: 'priceDiff',
label: 'سود اختلاف قیمت',
hint: 'فاصله بین قیمت پایه و قیمت مشتری',
amount: formatDashboardAmount(priceDiffRial.value),
help: dashboardKpi.priceDiffProfit,
isTotal: false,
},
{
@@ -77,7 +77,7 @@ const rows = computed(() => [
{
key: 'total',
label: 'جمع سود',
hint: 'اسپرد + کارمزد',
hint: 'اختلاف قیمت + کارمزد',
amount: formatDashboardAmount(totalRial.value),
help: dashboardKpi.totalTradingProfit,
isTotal: true,