Commit Graph

18 Commits

Author SHA1 Message Date
e43e9c40ad fix: Only allow ADMIN to save bank account details
Change condition from 'isPrimaryUser || isAdmin' to just 'isAdmin'
for bank account fields to ensure only ADMIN users can have/save
bank account data, not regular CUSTOMER users.
2026-03-18 09:33:05 +01:00
60e2f95637 feat: Add bank account details to admin profile
- Add accountHolder, bankName, iban, bic fields to AppUser domain
- Update UserOption, UserRow, UserMutation records in CatalogService
- Update all AppUser constructor calls to include new fields
- Add bank fields to frontend UserOption and UserRow types
- Add bank account form section to AdminProfilePage
2026-03-18 09:31:32 +01:00
49b1a3b363 feat: Add Preistabelle for admin to manage monthly system price
- Add SystemPricing domain model to store monthly price in MongoDB
- Add SystemPricingRepository for database access
- Add SystemPricingService with get/save functionality
- Add SystemPricingController with GET/POST endpoints (admin only)
- Add PricingPage component for frontend
- Add navigation menu item for Preistabelle (above Rechnung)
- Add route /admin/preistabelle for the new page
2026-03-17 21:18:27 +01:00
d03dc94ad1 feat: Extend React/Java app to match Lua functionality
Backend:
- Add Pretreatment record for pre-treatment data
- Extend Sample with pretreatment, clinicalExamDate, internalNote
- Extend TherapyRecommendation with detail fields (count, duration, dosage, location)
- Add startvacVaccination and noAntibioticTreatment flags
- Add null-safety defaults for MongoDB compatibility

Frontend:
- Add pretreatment fields to SampleRegistrationPage
- Add special pathogens section to AnamnesisPage
- Add therapy detail pickers to TherapyPage
- Improve AntibiogramPage: full text labels, centered headers
- Fix AdminDashboardPage TypeScript error in chart tooltip

Styling:
- Enlarge matrix buttons for S/I/R text
- Add matrix-col class for centered table columns
2026-03-17 16:50:40 +01:00
7c59944646 feat: New users require admin approval
- Set active=false for newly registered users
- Return RegistrationResponse instead of SessionResponse after registration
- Show success message informing user that admin approval is pending
- Login check already filters for active users only
2026-03-17 09:28:14 +01:00
3367129d37 fix: Add nextSampleNumber to all AppUser constructor calls in CatalogService 2026-03-17 09:18:53 +01:00
217e0b8dc0 feat: Store next sample number on user collection
- Add nextSampleNumber field to AppUser record with default 100000
- Add compact constructor to initialize nextSampleNumber to 100000
- Add reserveNextSampleNumber method to atomically reserve and increment
- Update createSample to use reserveNextSampleNumber from user
- Update nextSampleNumber to read from user collection
- Update dashboardOverview to use new nextSampleNumber method
2026-03-17 09:10:40 +01:00
dbc8c2a2a2 feat: Start sample numbering at 10000 for each veterinarian
- Add findTopByOwnerAccountIdOrderBySampleNumberDesc to SampleRepository
- Modify nextSampleNumber to accept ownerAccountId parameter
- Calculate next sample number per user based on ownerAccountId
- Update dashboardOverview and createSample to use user-specific numbering
2026-03-17 09:04:41 +01:00
538ec2419d AdminStatisticsService korrigiert: Proben werden jetzt basierend auf ownerAccountId und createdByUserCode korrekt zugeordnet 2026-03-16 20:17:27 +01:00
1df2d8276c Admin Dashboard mit Statistiken: Tierärzte-Anzahl, Gesamtproben und Proben pro Tierarzt 2026-03-16 17:11:17 +01:00
2deafd219b Projekt auf Java 21 umgestellt 2026-03-16 12:43:21 +01:00
e01afb9a10 Add report templates and unify template storage 2026-03-13 19:20:54 +01:00
490be6a89b Add persistent invoice template management 2026-03-13 16:02:46 +01:00
c7362a553b Harden access control and restore customer admin pages 2026-03-13 08:52:04 +01:00
eb699666d9 Harden auth and improve user management 2026-03-12 20:28:06 +01:00
1a8e37bd36 Add customer search and navigation updates 2026-03-12 16:50:50 +01:00
8ebb4d06e5 Add customer registration and deployment updates 2026-03-12 16:02:16 +01:00
fb8e3c8ef6 Initial MUH app implementation 2026-03-12 11:43:27 +01:00