mirror of
https://github.com/kbenestad/reimburse.git
synced 2026-06-18 16:04:31 +00:00
Selecting a non-base currency now shows a modal explaining the exchange
rate convention, using the actual currency names. Selecting Other shows
a variant asking the user to enter the ISO code first. Both messages
are configurable via fx-rate-message and fx-rate-message-other in
config.yml using {foreign} and {base} placeholders.
The Other option in the currency dropdown no longer shows __OTHER__.
https://claude.ai/code/session_01MbwfxnjLA9KdFTrfzB55HM
58 lines
2 KiB
YAML
58 lines
2 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"
|
|
|
|
# FX rate modal messages ({foreign} = foreign currency name, {base} = base currency name)
|
|
fx-rate-message: "You have selected an expense in a currency different from the one in which you are submitting your claim. Please enter the exchange rate as amount of {foreign} you pay for 1 {base}."
|
|
fx-rate-message-other: "You have selected an expense in a currency different from the one in which you are submitting your claim. Enter the three letter currency code first, and then enter the exchange rate as amount of the foreign currency you pay for 1 {base}."
|
|
|
|
# Base currency (ISO code — must appear in currencies list)
|
|
currency-base: USD
|
|
|
|
# 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
|