- Added --debug switch to CLI to show detailed diagnostic information - In normal mode, --get-rate now outputs only the rate value without additional messages - All diagnostic messages are now hidden in normal mode and shown only with --debug - Updated all modules to support debug mode with debug_print() function - Fixed rate calculation logic to properly handle weekends and holidays according to CNB rules - For weekends/holidays, uses rate from last working day before them - For regular days without rates, searches backwards for working day with rate - Maintains backward compatibility with existing functionality - Added comprehensive tests for rate calculation with weekends/holidays - All modules now respect the debug mode setting - Rate calculation correctly implements CNB rules for tax purposes
3.0 KiB
3.0 KiB