Commit Graph
9 Commits
Author SHA1 Message Date
michaelschal 73b85f2598 Fix foreign key constraint issue when creating new records
Add a SQL script to ensure the existence of a default admin user and test data, addressing the foreign key constraint violation in the 'avoirs' table caused by missing 'created_by' references.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:46:14 +00:00
michaelschal 6f09a7abc4 Add comprehensive diagnostic SQL script for production debugging
Adds a detailed SQL script to the production environment for diagnosing issues by checking table structures, constraints, data counts, and performing a simple insertion test.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:44:46 +00:00
michaelschal 4ff6e992c0 Add simplified test data without optional contact email
Add simplified test data to `sql/create_test_data_simple.sql` including suppliers and groups without optional fields, and perform test insertions for `avoirs` to verify core functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:38:56 +00:00
michaelschal 0e9ca4a27a Add simple diagnostic queries for production database analysis
Adds a SQL script with basic queries to count records in suppliers, groups, and users tables, and retrieve initial entries from each.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:37:50 +00:00
michaelschal 29798a0a81 Add diagnostic scripts for checking and fixing data references
Introduce SQL scripts to verify and populate necessary data in suppliers, groups, and users tables for testing avoirs functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:36:30 +00:00
michaelschal d55fa1ed80 Add comprehensive diagnostic tests for database connectivity and operations
Add SQL script with diagnostic queries to test table existence, manual record insertion, and record deletion, ensuring proper database functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:34:32 +00:00
michaelschal d313d70351 Improve production database setup and add diagnostic queries
Update `sql/create_avoirs_production.sql` to include checks for dependent tables and add indexes. Add `sql/debug_simple.sql` for step-by-step table debugging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:31:19 +00:00
michaelschal 0c3e49e19c Add diagnostic scripts to help troubleshoot database table issues
Add SQL scripts for diagnosing and recreating the 'avoirs' table to address potential production environment inconsistencies.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/2Jd7tYp
2025-09-08 14:23:44 +00:00
michaelschal f3565df01f Add functionality to manage and track customer credit notes
Introduces the "Avoirs" feature, including database schema, API endpoints for CRUD operations, and frontend components for viewing and managing credit notes.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/0C3uBiZ
2025-09-08 13:48:14 +00:00