Phase 1: Financial audit logging foundation
- Add FinancialAuditLog model to track all financial changes - Log action (CREATE, UPDATE, DELETE) with before/after values - Capture who made changes (IP address) - Record timestamp and reason for change - Create /admin/financial-audit page to view audit trail - Add filtering by entity type, action, date range - Show summary stats (total changes, deletions, etc) - Integrate with purchases: log create and delete operations - Red-flag deletions for security awareness - Add "Financial audit trail" link to admin menu This provides foundation for Phase 2 (reporting UI) and Phase 3 (bank reconciliation). All financial changes are now traceable and auditable for compliance. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
e69759081c
commit
d56f942a88
@@ -24,6 +24,7 @@ const ADMIN_LINKS = [
|
||||
{ href: '/admin/maintenance', label: 'Maintenance' },
|
||||
{ href: '/admin/login-logs', label: 'Admin login activity' },
|
||||
{ href: '/admin/customer-login-logs', label: 'Customer login activity' },
|
||||
{ href: '/admin/financial-audit', label: 'Financial audit trail' },
|
||||
];
|
||||
|
||||
export default function AdminMenu() {
|
||||
|
||||
Reference in New Issue
Block a user