Commits
Marek Vsechovsky committed 2ee66c471c5
Session 155, Step 10: Fix silent failure in input file generation when clicking Start processing - AIM-2999 Fix silent failure in input file generation when clicking Start processing - AIM-3000 Fix credit dialog not showing for Used mode with 0 used - AIM-3001 Consolidate AiCreditProviderMode into AiCreditProviderType as a bitmask - AIM-3002 Fix incorrect AiCreditProviderCreditRemaining value - AIM-3003 Generate SQL migration script for bitmask consolidation Outcome: Fixed five issues: added error handling to input file generation so failures are no longer silent; removed the `startCredit > 0` gate that blocked the credit dialog for 'Used' mode providers with 0 used; consolidated `AiCreditProviderMode` into `AiCreditProviderType` as a 3-bit bitmask (bit 1=dollars/tokens, bit 2=remaining/used, bit 4=absolute/percentage); fixed the incorrect `AiCreditProviderCreditRemaining` value (174→87) with a SQL migration that recalculates from actual purchase sums; and created migration script `126_ConsolidateAiCreditProviderModeIntoType.sql` that performs the bitmask conversion, data repair, and column removal.