Commit Graph

13 Commits

Author SHA1 Message Date
e9ade045d8 feat: add separate unpaid and paid bill totals to location cards
- Display both unpaid and paid bill amounts in LocationCard and MonthCard
- Rename variables for clarity: totalUnpaid, totalPayed, unpaidTotal, payedTotal
- ViewLocationCard uses totalAmount for tenant bills (regardless of payment status)
- Update Croatian translations: "Ukupno neplaćeno" (unpaid), "Ukupno plaćeno" (paid)
- Add ShoppingCartIcon for unpaid amounts, BanknotesIcon for paid amounts
- Update HomePage to calculate and pass both totals to month cards

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 14:59:11 +01:00
Knee Cola
c025c6f2ce Update formatCurrency to use currency code from UserSettings
Changes:
- Updated formatCurrency function:
  - Added currencyCode parameter with EUR default
  - Implemented Intl.NumberFormat for proper currency formatting
  - Added fallback for invalid currency codes
- Updated component hierarchy to pass currency:
  - HomePage: Fetch userSettings and pass to MonthLocationList
  - MonthLocationList: Accept and pass currency to child components
  - LocationCard: Accept currency prop and use in formatCurrency
  - MonthCard: Accept currency prop and use in formatCurrency
  - ViewLocationCard: Pass currency from userSettings to formatCurrency
- Removed hardcoded $ symbols, now using proper currency formatting

All currency amounts now display with the user's selected currency code
from their settings, using locale-appropriate formatting (hr-HR).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 23:04:42 +01:00
d30bd50e1a enabled i18n for all components 2024-02-16 21:56:41 +01:00
f2d44190e8 fixed scroll into view to scroll to top 2024-02-09 10:42:38 +01:00
3d335f9890 fixing card min with on desktop 2024-02-09 10:13:45 +01:00
27b696faab home page converted back to server-side component 2024-02-09 09:40:43 +01:00
0128d46a32 fixing typescript errors 2024-02-08 14:48:49 +01:00
e66958f6a3 improved re-render time when expanding month 2024-02-02 09:30:45 +01:00
85aea1fa6d changed control from radio to checkbox 2024-02-01 15:35:44 +01:00
acaeae8d7b enabled accordion to be collapsed 2024-02-01 15:31:33 +01:00
bccb00aaeb implemented scroll into view 2024-02-01 15:07:44 +01:00
f71098d9e8 tracking active month via URL param 2024-02-01 14:34:27 +01:00
15422a6d75 implemented months as accordion 2024-02-01 14:14:21 +01:00