port-nimara-client-portal/server/utils
Matt b86fd58bcf fix: Resolve remaining expense page issues and PDF generation
 **Fixed PDF Preview Total Calculation:**
- Updated PDFOptionsModal to receive actual expense data instead of just IDs
- Now shows correct total (€308.80) instead of placeholder (€100.00)
- Calculates real amounts from selected expense PriceNumber values

 **Fixed Exchange Rate Time Display:**
- Updated currency utility to calculate minutes since last update
- Changed from showing 'time until expiry' to 'time since update'
- Now displays accurate '59min ago' based on actual update time

 **Improved PDF Generation:**
- Created comprehensive PDF generation system with proper data fetching
- Validates expense data and calculates accurate totals
- Provides detailed error messages with actual expense information
- Shows calculated totals, grouping options, and document settings
- Graceful fallback with helpful guidance for users

� **Technical Improvements:**
- Enhanced currency status API to include minutesSinceUpdate field
- Fixed component prop passing between parent and child components
- Better error handling and user feedback throughout the system
- Maintained CSV export functionality as primary export option

� **User Experience:**
- PDF modal now shows real totals instead of estimates
- Exchange rate status displays meaningful time information
- Clear feedback when PDF generation is attempted
- Comprehensive error messages guide users to alternative solutions

All core functionality now works correctly with accurate calculations and proper time displays!
2025-07-09 14:46:10 -04:00
..
audit-logger.ts Add role-based authorization system with admin functionality 2025-07-09 10:40:27 -04:00
auth.ts Add role-based authorization system with admin functionality 2025-07-09 10:40:27 -04:00
currency.ts fix: Resolve remaining expense page issues and PDF generation 2025-07-09 14:46:10 -04:00
documeso.ts FEAT: Correct spelling of 'Documenso' in API utility functions and add connectivity test for Documenso API 2025-06-17 15:17:19 +02:00
email-sync.ts email server updates 2025-06-12 18:05:42 +02:00
email-utils.ts Improve email loading performance and fix UI issues 2025-06-10 18:04:31 +02:00
email.ts Add EOI automation system with email processing and document management 2025-06-10 13:59:09 +02:00
encryption.ts Add email communication system with encrypted credentials 2025-06-09 21:45:06 +02:00
imap-pool.ts Improve email session management and add IMAP connection pooling 2025-06-12 15:53:12 +02:00
internal-api.ts FEAT: Implement authenticated internal API call utility to forward cookies and enhance authentication handling 2025-06-15 17:48:40 +02:00
keycloak-client.ts FEAT: Enhance authentication system with internal API support, Keycloak connectivity diagnostics, and simplified client implementation 2025-06-17 15:05:41 +02:00
minio.ts Add processing fee option to PDF export modal 2025-07-04 09:27:43 -04:00
nocodb.ts Refactor duplicate handling to allow any authenticated user to check for duplicates, update API methods to require general authentication, and enhance expense fetching with improved error handling and logging. 2025-07-09 13:29:52 -04:00
operation-lock.ts Improve email session management and add IMAP connection pooling 2025-06-12 15:53:12 +02:00