fix formatting of billable amount on the dashboard

This commit is contained in:
Gregor Vostrak
2024-04-26 02:40:44 +02:00
parent bb5ccf3606
commit 212ee27d13

View File

@@ -16,7 +16,7 @@ import CardTitle from '@/Components/Common/CardTitle.vue';
import LinearGradient from 'zrender/lib/graphic/LinearGradient'; import LinearGradient from 'zrender/lib/graphic/LinearGradient';
import ProjectsChartCard from '@/Components/Dashboard/ProjectsChartCard.vue'; import ProjectsChartCard from '@/Components/Dashboard/ProjectsChartCard.vue';
import { formatHumanReadableDuration } from '@/utils/time'; import { formatHumanReadableDuration } from '@/utils/time';
import { formatMoney } from '@/utils/money'; import { formatCents } from '@/utils/money';
use([ use([
CanvasRenderer, CanvasRenderer,
@@ -150,12 +150,7 @@ const option = ref({
" /> " />
<StatCard <StatCard
title="Billable Amount" title="Billable Amount"
:value=" :value="formatCents(props.totalWeeklyBillableAmount.value)" />
formatMoney(
props.totalWeeklyBillableAmount.value,
props.totalWeeklyBillableAmount.currency
)
" />
<ProjectsChartCard <ProjectsChartCard
:weekly-project-overview=" :weekly-project-overview="
props.weeklyProjectOverview props.weeklyProjectOverview