'use client' import Link from 'next/link' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' import { CheckCircle, XCircle, AlertCircle, FileText, ExternalLink, RotateCcw, Info, } from 'lucide-react' import type { ImportResult } from '@/lib/import/types' interface ImportResultStepProps { result: ImportResult onNewImport: () => void } export default function ImportResultStep({ result, onNewImport }: ImportResultStepProps) { const hasErrors = result.errors.length > 0 const skipped = result.details?.skippedVouchers // Filter out raw "hoppades över" warnings when we have structured data const otherWarnings = skipped && skipped.total > 0 ? result.warnings.filter((w) => !w.includes('hoppades över')) : result.warnings return (
{result.journalEntriesCreated}
Vad kan du göra?
{skipped.empty} tomma verifikationer
Platshållare utan bokföringsrader — vanligt i Fortnox och Visma. Påverkar inte din bokföring.
{skipped.unbalanced} obalanserade verifikationer
Debet och kredit stämmer inte överens i källsystemet. Saldon har justerats automatiskt.
{skipped.singleLine} enradsverifikationer
Verifikationer med bara en rad (t.ex. periodiseringar). Kräver minst två rader för dubbelbokning.
{skipped.unmapped} verifikationer med ej kopplade konton
Innehåller konton som inte kunde kopplas till din kontoplan.
Granska importerade verifikationer
Kontrollera att allt ser korrekt ut i bokföringslistan
Verifiera balanserna
Jämför huvudboken med din tidigare bokföring
Fortsätt med ny bokföring
Nu kan du börja lägga till nya transaktioner