fix: format amount fields with currency and thousand separators; show – for empty values #25
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_biz#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Ref: lhumina_code/home#210
Two related display bugs make financial data unreadable:
10000000instead of€10,000,000)0instead of–Amount formatting rules
10000000€10,000,000€10M250000€250,000€250K1500€1,500€1,500eur)Empty value rules
Show
–(en-dash) instead of0or empty string for:Scope
All entity templates that display amounts or optional dates:
Nice to have (can be a follow-up)
A currency display selector so the user can pick their preferred display currency (EUR / USD / GBP). The selected currency is applied to all amount displays.
Acceptance criteria
0shown for empty date or optional value fieldsImplemented in commit
76f7cf0: added 6 formatting helpers (format_amount, format_amount_compact, format_optional_date, etc.) applied to all financial fields; dashboard metrics, roadmap, CRM cards.