Files
evidencija-rezija/app
Nikola Derežić 3e581d8878 refactor: replace generateTenantCode boolean with tenantPaymentMethod enum
- Replace generateTenantCode boolean field with tenantPaymentMethod enum ("none" | "iban" | "revolut")
- Update LocationEditForm to use dropdown select instead of toggle for payment method selection
- Consolidate multiple useState hooks into single formValues state object
- Change from defaultValue to controlled components with value/onChange pattern
- Add hidden inputs to preserve tenant data when payment method is not selected
- Update validation logic to check tenantPaymentMethod === "iban"
- Update ViewLocationCard to use new tenantPaymentMethod field
- Add Croatian translations for new dropdown options

This provides better scalability for adding future payment methods and improves form state management.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 15:34:59 +01:00
..
2025-11-23 11:59:06 +01:00
2024-01-15 15:31:13 +01:00
2024-01-15 15:26:17 +01:00
2024-01-15 15:47:02 +01:00
2024-01-15 15:47:02 +01:00
2024-01-15 15:47:02 +01:00
2024-01-15 15:47:02 +01:00
2024-01-15 15:47:02 +01:00
2024-01-15 15:47:02 +01:00
2024-02-17 09:14:06 +01:00