Commit Graph

67 Commits

Author SHA1 Message Date
Sidney 27fcbada35 feat(finance): migrate manually created payments to sql-first architecture with local_id support 2026-05-21 08:32:22 -03:00
Sidney ed52d6a2fa feat: implement robust valor_pago architecture and financial sync hardening for Portal and Manager 2026-05-15 09:49:07 -03:00
Sidney f6022fd0fc feat(finance): add valor_pago column and implement robust gross/net separation logic 2026-05-15 08:55:02 -03:00
Sidney 8a42db3e58 fix(finance): implement gross amount recovery and protection against net value overwrites in portal and manager 2026-05-15 08:33:59 -03:00
Sidney cf1ad968ca Fix: restore and force amount recovery bugfix to run even for JSON values, preventing the Portal UI from double-discounting corrupted historical payments 2026-05-15 08:16:20 -03:00
Sidney 55c0a06a93 Fix: ensure Portal finance API prioritizes JSON amount/discount to strictly match Manager UI logic; Update GEMINI.md and MEMORY.md to enforce server.js obsolescence 2026-05-15 08:04:03 -03:00
Sidney c150c70472 Docs: mark original server.js files as obsolete in manager and portal 2026-05-15 07:56:44 -03:00
Sidney 8d29449666 Fix: synchronize server.js portal logic with server.selfhosted.js to include db.amount_original and db.discount in double discount recovery 2026-05-15 07:49:53 -03:00
Sidney e7ded2df80 Fix: cast json amount to Number in portal logic to ensure strict equality comparison works for recovering corrupted double discount 2026-05-14 22:11:26 -03:00
Sidney 58182ff53c Fix: preserve gross amount in webhook and reconstruct it in portal to fix double discount on paid items 2026-05-14 22:03:18 -03:00
Sidney 7bada2a4e7 Fix: use SELECT * in Portal financial query to prevent column-not-found crash before Phase 1 migration runs 2026-05-14 21:54:48 -03:00
Sidney b440023add Phase 1: Add rich columns to alunos_cobrancas and migrate JSON metadata to SQL on boot 2026-05-14 21:38:02 -03:00
Sidney 00351031d1 Fix: double discount, dynamic column header, receipt link, remaining installments card 2026-05-14 21:19:47 -03:00
Sidney c2efa1729f Fix: use PostgreSQL as primary source for Portal financial data (SQL-First) to show paid installments 2026-05-14 16:39:12 -03:00
Sidney 66139bff0d Fix: implement hybrid finance logic (JSON + SQL) to ensure paid installments visibility 2026-05-14 16:09:04 -03:00
Sidney 8a444fa660 Revert: restore Financeiro.tsx to original state before column changes 2026-05-14 15:57:06 -03:00
Sidney 044d846f7d Fix: use school_data (JSON) as the single source of truth for financial values 2026-05-14 15:48:57 -03:00
Sidney 13b4da1cf7 Fix: expand payment status normalization for better filtering 2026-05-14 15:41:46 -03:00
Sidney 1ed6a1bc55 Fix: resolve build error caused by syntax glitch in Financeiro.tsx 2026-05-14 15:23:09 -03:00
Sidney 5bc102dbc9 Fix: ensure financial values are visible and robust in Portal 2026-05-14 14:40:13 -03:00
Sidney e5e3c5e751 Fix: improve financial visibility with dynamic headers and paid labels in Portal 2026-05-14 14:21:21 -03:00
Sidney c55ec728e1 Fix: unify frequency percentage logic (Total Course Denominator) on Dashboard and Frequency pages 2026-05-14 14:16:40 -03:00
Sidney 4c72a9e20d Fix: synchronize Dashboard frequency calculation with Frequency page 2026-05-14 14:10:05 -03:00
Sidney f1f1c0e84a Fix: frequency visibility and justification submission tracking in Portal 2026-05-14 13:34:17 -03:00
Sidney bfb2bc12db fix: strict attendance window and immediate cloud sync across manager and portal 2026-05-11 22:19:08 -03:00
Sidney a1b5075e41 fix: biometric attendance timezone shift and mandatory lesson binding 2026-05-11 21:43:31 -03:00
Sidney 4970f17d07 fix: remove syntax error (TS in JS) in portal backend 2026-05-11 20:09:02 -03:00
Sidney e58b38f010 fix: restaura importações vitais e estabiliza lógica de datas 2026-05-11 19:59:02 -03:00
Sidney 4c8ce88ca1 feat: central de notificações profissionais (financeiro e acadêmico) e estabilização de frequência 2026-05-11 19:48:43 -03:00
Sidney a667368ce3 fix: portal now reads attendance and lessons from school_data JSON; restore amber color for justified absences 2026-05-06 21:58:04 -03:00
Sidney 5c49093ed0 fix: remove TO_CHAR timezone stripping from portal frequency API - return ISO dates with timezone via pg driver toISOString to match Manager JSON format 2026-05-06 21:22:32 -03:00
Sidney 8b05fd95f0 docs: update memory and gemini with frequency parity rules; fix: absolute logic parity for portal frequency matching 2026-05-06 21:08:58 -03:00
Sidney bc9f012129 fix: use exact local time string for justification dates to prevent postgres timezone shift bugs 2026-05-06 20:44:05 -03:00
Sidney b850d76ba5 fix: match portal attendance stats logic, record selection priority, and UI colors identically with manager 2026-05-06 20:31:11 -03:00
Sidney 5862a8374d fix: resolve reference errors causing white screens and clean up typescript typings on portal 2026-05-06 10:05:24 -03:00
Sidney 9ba2e11e27 fix: unify frequency deduplication and fix dashboard crash on portal 2026-05-06 09:17:14 -03:00
Sidney ef8b7c51a8 fix: resolve sync infinite loop and unify frequency logic across portal and manager 2026-05-06 08:35:22 -03:00
Sidney 488051673a feat: implement soft delete for exams and update grade calculation to arithmetic mean across manager and portal 2026-05-05 21:44:56 -03:00
Sidney 9e44ce0712 feat: unified notification system with SQL and WhatsApp integration 2026-05-05 20:50:35 -03:00
Sidney bafd1a6292 feat: implementacao de fechamento automatico de pauta e unificacao relacional de frequencia 2026-05-05 09:25:12 -03:00
Sidney 9a09d7852a feat: migracao relacional da frequencia, correcoes no boletim e novos cards analiticos 2026-05-05 08:48:37 -03:00
Sidney 402ef4b389 feat: melhorias no boletim, duplicação de provas e cadeado de retentativa 2026-05-01 16:52:17 -03:00
Sidney dffc7b8903 fix: remoção de constraints restritivas e melhoria de logs de submissão 2026-05-01 14:24:06 -03:00
Sidney 08c89d4f41 fix: movido delay de 5s para antes do envio e sincronizado server.js 2026-05-01 11:12:55 -03:00
Sidney 71f5a4159f fix: delay de 5s no envio, mensagens de erro detalhadas e cache-busting no Manager 2026-05-01 11:10:13 -03:00
Sidney e2cb0376cf fix: robustez nos IDs (trim) e substituição de ícone Loader2 por RefreshCw para compatibilidade 2026-05-01 11:00:29 -03:00
Sidney 26dc4210eb fix: normalização de IDs e melhoria no feedback de envio de provas (Portal/Manager) 2026-05-01 10:41:02 -03:00
Sidney 4119dc12f4 feat: migração de notas para tabela dedicada PostgreSQL e estabilização de boletim 2026-04-30 19:51:32 -03:00
Sidney a8adcd6cf0 feat: implement autonomous messaging schedules and fix portal grade crash 2026-04-30 11:30:14 -03:00
Sidney f52c5084c6 feat: database data viewer, retake policy toggle and exam UI fixes 2026-04-29 20:05:00 -03:00