diff --git a/apps/dashboard/app/(authenticated)/sales/estimates/page.tsx b/apps/dashboard/app/(authenticated)/sales/estimates/page.tsx
index 2fa2273..ab2504f 100644
--- a/apps/dashboard/app/(authenticated)/sales/estimates/page.tsx
+++ b/apps/dashboard/app/(authenticated)/sales/estimates/page.tsx
@@ -6,10 +6,12 @@ import FormDialog from '@/shared/components/form-dialog'
import { EstimateForm } from '@/modules/estimates/estimate-form'
import { ESTIMATE_ROUTES } from '@garage/api'
import type { EstimatesClient } from '@garage/api'
-import { Car, FileTextIcon } from 'lucide-react'
+import { Car, FileTextIcon, UserIcon } from 'lucide-react'
import { Button } from '@/shared/components/ui/button'
import Link from 'next/link'
import { formatDate } from '@/shared/utils/formatters'
+import { getVehicleLabel } from '@/modules/vehicles/utils/getVehicleLabel'
+import { getFullName } from '@/shared/utils/getFullName'
export default function EstimatesPage() {
return (
@@ -52,15 +54,24 @@ export default function EstimatesPage() {
{
accessorKey: "customer_name",
header: ({ column }) => ,
+ cell: ({ row }) => {
+ const item:any = row.original
+ return (
+
@@ -111,14 +112,14 @@ export default function PaymentReceivedPage() {
},
},
{
- accessorKey: "payment_mode_name",
+ accessorKey: "payment_mode",
header: ({ column }) =>
,
cell: ({ row }) => {
- const item = row.original as unknown as PaymentReceivedItem
+ const item:any = row.original as unknown as PaymentReceivedItem
return (
- {item.payment_mode_name || "—"}
+ {item.payment_mode?.title || "—"}
)
},
diff --git a/apps/dashboard/modules/appointments/appointment-form.tsx b/apps/dashboard/modules/appointments/appointment-form.tsx
index e567687..71262cb 100644
--- a/apps/dashboard/modules/appointments/appointment-form.tsx
+++ b/apps/dashboard/modules/appointments/appointment-form.tsx
@@ -11,6 +11,7 @@ import {
RhfTextareaField,
RhfSelectField,
RhfAsyncSelectField,
+ RhfTimeField,
} from "@/shared/components/form"
import { toast } from "sonner"
import { useAuthApi } from "@/shared/useApi"
@@ -40,8 +41,8 @@ export type AppointmentFormProps = {
const DEFAULT_VALUES: AppointmentFormValues = {
title: "",
date: "",
- from_time: "",
- to_time: "",
+ from_time: "00:00:00",
+ to_time: "00:00:00",
customer: null,
vehicle: null,
service_writer: null,
@@ -157,8 +158,8 @@ export function AppointmentForm({ resourceId, initialData, onSuccess }: Appointm
/>