mirror of
https://github.com/kbenestad/reimburse.git
synced 2026-06-18 16:04:31 +00:00
- New config key date-format (default DD/MM/YYYY) controls date display throughout the form and PDF output - formatDate(iso) converts stored YYYY-MM-DD to the configured display format - parseDate(str) converts user input back to YYYY-MM-DD for state storage - All three date inputs (line date, period from/to) switched from type=date to type=text with format placeholder, removing browser locale dependency - PDF line dates, period header, and continuation header all use formatDate() - Filename stays in YYYY-MM-DD for safe file naming https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
# =============================================================================
|
|
# Reimbursement Form — Configuration
|
|
# =============================================================================
|
|
|
|
# Organization
|
|
organization: "Center for Asylum Protection"
|
|
logo: yes # yes|no — if yes, loads assets/logo.png or logo.jpg
|
|
logo-maxwidth: 4 # cm — maximum logo width on PDF
|
|
|
|
# Page setup
|
|
page-size: A4 # A4 or letter
|
|
|
|
# Typography
|
|
# Standard fonts: Helvetica, Times, Courier (plus Bold/Italic variants)
|
|
# Custom: place a .ttf file in assets/ and use the filename (e.g. "assets/MyFont.ttf")
|
|
font-body: Helvetica
|
|
font-heading: Helvetica
|
|
font-monospace: Courier
|
|
font-size: 10 # base font size in pt for PDF
|
|
|
|
# Branding
|
|
accent-colour: "#1a3a5c"
|
|
|
|
# Form text (appears on PDF)
|
|
intro: ""
|
|
footer: "Confidential"
|
|
|
|
# Base currency (ISO code — must appear in currencies list)
|
|
currency-base: USD
|
|
|
|
# Date display format (YYYY = year, MM = month, DD = day)
|
|
# Examples: DD/MM/YYYY | YYYY-MM-DD | MM/DD/YYYY | DD.MM.YYYY
|
|
date-format: DD/MM/YYYY
|
|
|
|
# Available currencies
|
|
currencies:
|
|
- code: USD
|
|
name: United States dollar
|
|
- code: THB
|
|
name: Thai baht
|
|
- code: EUR
|
|
name: Euro
|
|
- code: NOK
|
|
name: Norwegian krone
|
|
|
|
# Account codes (shown in dropdown)
|
|
accounts:
|
|
- "1000 - General Operations"
|
|
- "2000 - Travel & Transport"
|
|
- "3000 - Office Supplies"
|
|
- "4000 - Professional Services"
|
|
|
|
# Programs (shown in dropdown — "Other" adds a text field)
|
|
programs:
|
|
- "General Operations"
|
|
- "Legal Aid Program"
|
|
- "Protection Program"
|
|
- Other
|