feat: import system improvements, INK2 fix, and Swedish text corrections (#10)
- SIE parser: Windows-1252 and CP437 encoding detection and decoding - Bank file parser: add Nordea Business (Företag) CSV format - Bank file parser: improve format detection for SEB, Länsförsäkringar, generic CSV - INK2 engine: calculate årets resultat (7222) from income statement for open fiscal years - Dashboard: parallel Supabase queries, simplified dashboard page - Fix Swedish characters (å, ä, ö) in BAS data descriptions, validation messages, AI consent disclosures - Import wizard UI improvements across all steps - Migration: add 'bas_range' match type to sie_account_mappings constraint - Extensive new tests for SIE parser encoding and bank file parser Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a1ca96453c
commit
e8fb84b4fd
@@ -15,9 +15,9 @@ export function validateSwedishPersonalNumber(pnr: string): string | null {
|
||||
const month = parseInt(cleaned.slice(4, 6))
|
||||
const day = parseInt(cleaned.slice(6, 8))
|
||||
|
||||
if (month < 1 || month > 12) return 'Ogiltig manad'
|
||||
if (month < 1 || month > 12) return 'Ogiltig månad'
|
||||
if (day < 1 || day > 31) return 'Ogiltig dag'
|
||||
if (year < 1900 || year > new Date().getFullYear()) return 'Ogiltigt ar'
|
||||
if (year < 1900 || year > new Date().getFullYear()) return 'Ogiltigt år'
|
||||
|
||||
// Luhn check on the last 10 digits (YYMMDDXXXX)
|
||||
const luhnDigits = cleaned.slice(2)
|
||||
|
||||
Reference in New Issue
Block a user