mirror of
https://github.com/kbenestad/invoice.git
synced 2026-06-18 16:14:33 +00:00
Replace the fixed-convention exchange rate label with an inline expression:
[amount] <currency> per {other}, where the currency dropdown lets users
pick which side of the rate to enter. Covers both "35 THB per USD" and
"0.028 USD per THB" without requiring mental inversion.
Formula: price_local = per * rate when local currency is in numerator,
price_local = per / rate when foreign currency is in numerator.
rcur is persisted to localStorage and included in the PDF note.
https://claude.ai/code/session_0151QtsUhzXmgzEhSvXG2SDt
|
||
|---|---|---|
| .. | ||
| config.yml | ||
| index.html | ||