Commit Graph

26 Commits

Author SHA1 Message Date
Knee Cola
1605eec5fb Replace billedToTenant boolean with billedTo enum
Migrated from boolean checkbox to enum-based radio buttons for better
flexibility and clarity in tracking bill payment responsibility.

Changes:
- Added BilledTo enum with values 'tenant' and 'landlord'
- Replaced Bill.billedToTenant (boolean) with Bill.billedTo (enum)
- Updated BillEditForm to use radio buttons instead of checkbox
- Updated billActions to handle billedTo enum values
- Updated all display filtering to use enum comparison
- Updated printActions barcode filtering
- Updated translations for radio button labels (en/hr)

The billedTo property is optional for backward compatibility -
undefined values default to BilledTo.Tenant, maintaining current
behavior where only tenant bills are displayed and calculated.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 13:48:28 +01:00
Knee Cola
f0ccac3f68 Filter bills display to show only billedToTenant bills
Updated all components to respect the billedToTenant flag:

- LocationCard: Filter bills display and monthlyExpense calculation
- ViewLocationCard: Filter bills display and monthlyExpense calculation
- HomePage: Update monthlyExpense calculations for month grouping
- printActions: Filter barcode print data to only include tenant bills

All filtering uses (bill.billedToTenant ?? true) for backward
compatibility with existing bills that don't have this property set.

This ensures users only see and calculate expenses for bills that
are the tenant's responsibility.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 13:36:42 +01:00
40e421a32a podešen styling ikone 2024-12-14 09:04:15 +01:00
74a9229ffa link ikona zamijenjena sa share ikonom 2024-12-14 09:01:09 +01:00
4ab61f9917 implementiran share by link 2024-12-13 17:50:12 +01:00
439de9d305 implementirano kopiranje linka 2024-12-13 15:38:48 +01:00
52c5672662 LocationCard: added visible tooltip 2024-02-17 11:12:12 +01:00
440ab6a815 Fixed LocationCard translation 2024-02-17 10:34:34 +01:00
fc6243f9b8 i18n: minor fixes 2024-02-17 10:14:46 +01:00
fcd94408fe BugFix: fixed translation formating 2024-02-17 09:41:35 +01:00
d30bd50e1a enabled i18n for all components 2024-02-16 21:56:41 +01:00
27b696faab home page converted back to server-side component 2024-02-09 09:40:43 +01:00
85e142ca7b bug fix: location expense counted unpaid bills 2024-01-17 16:37:07 +01:00
0eb11e7d02 form action redirects user to tjhe appropriate year 2024-01-17 15:47:55 +01:00
a078633bd5 fixed card width on cellphone 2024-01-16 14:11:50 +01:00
226beb974f header & footer 2024-01-16 10:24:21 +01:00
bb84d50de1 added right padding to card title 2024-01-16 09:03:32 +01:00
d627ad757d year & month replaced by yearMonth object 2024-01-09 16:20:49 +01:00
46b65711a8 yearMonth split into year + month 2024-01-09 15:43:01 +01:00
c76a69df5b added location total to UI 2024-01-09 10:51:05 +01:00
94fee6f775 adding new billing location completed 2024-01-05 15:13:15 +01:00
f26aae7d66 refactoring: renamed actions tp billActions 2024-01-05 14:30:44 +01:00
245cc38717 implemente bill add 2024-01-05 14:20:00 +01:00
76ddedf652 Bill Edit Form: dovršen fetch 2024-01-04 15:38:58 +01:00
f11987dd3a dovršen rendering homepage-a 2024-01-04 14:46:31 +01:00
b653ce40bc kreirane komponente 2024-01-04 10:30:43 +01:00