fix: add staleTime to job card expense, parts, and services queries; update job card general info and payments received components

This commit is contained in:
2026-05-13 17:20:59 +04:00
parent 6b356d2855
commit 05b55b5721
12 changed files with 174 additions and 91 deletions
@@ -44,6 +44,7 @@ export default function JobCardPartsPage({
const { data, isLoading } = useQuery({
queryKey,
queryFn: () => api.jobCards.getParts(jobCardId),
staleTime: 30_000,
})
const rows = (data as any)?.data ?? []