130 Commits

Author SHA1 Message Date
ske087
c7f5203aa7 Add boxes/crates management system to warehouse module
- Created boxes_crates table with 8-digit auto-generated box numbers
- Added manage_boxes route and full CRUD operations
- Implemented box status tracking (open/closed)
- Added location assignment functionality
- Integrated QZ Tray printing with barcode labels
- Created manage_boxes.html with table, preview, and print features
- Added 'Manage Boxes/Crates' card to warehouse main page
- Boxes can be created without location and assigned later
- Includes delete functionality for admin/management roles
- Added box statistics display
2025-12-07 00:31:41 +02:00
ske087
f8209e0e0a updated to fix create location page 2025-12-06 23:29:23 +02:00
ske087
5905c693e6 udpdated vier and checked some documentation 2025-12-01 23:48:09 +02:00
ske087
f710c85102 moved the old code folder 2025-11-29 20:28:36 +02:00
ske087
8696dbbeac Add comprehensive README with current project status 2025-11-29 20:27:59 +02:00
ske087
41f9caa6ba Improve maintenance & backup UI with per-table operations
- Enhanced maintenance card with dark mode support
- Added system storage information display (logs, database, backups)
- Implemented per-table backup and restore functionality
- Added database table management with drop capability
- Restructured backup management UI with split layout:
  - Quick action buttons for full/data-only backups
  - Collapsible per-table backup/restore section
  - Split schedule creation (1/3) and active schedules list (2/3)
- Fixed database config loading to use mariadb module
- Fixed SQL syntax for reserved 'rows' keyword
- Removed System Information card
- All database operations use correct config keys from external_server.conf
2025-11-29 20:23:40 +02:00
ske087
7912885046 User management and module improvements
- Added daily_mirror module to permissions system
- Fixed user module management - updates now work correctly
- Implemented dashboard module filtering based on user permissions
- Fixed warehouse create_locations page (config parser and delete)
- Implemented POST-Redirect-GET pattern to prevent duplicate entries
- Added application license system with validation middleware
- Cleaned up debug logging code
- Improved user module selection with fetch API instead of form submit
2025-11-29 14:16:36 +02:00
ske087
3e314332a7 updated files 2025-11-26 22:00:44 +02:00
ske087
d070db0052 Fix print_lost_labels compact styling and production data import
- Added compact table styling to print_lost_labels page (smaller fonts, reduced padding)
- Fixed production data import missing fields (production_order_line, line_number)
- Added better error handling and logging for Excel file imports
- Skip empty rows in production data import
- Log all columns and columns with data for debugging
2025-11-26 21:59:03 +02:00
ske087
d3a0123acc updating daily miror 2025-11-25 00:12:15 +02:00
ske087
c38b5d7b44 Add Daily Mirror interactive dashboard with charts and pivot tables
- Created comprehensive dashboard with Chart.js visualizations
- Added API endpoint /api/dashboard_data for aggregated data
- Implemented weekly tracking for orders, production, and deliveries
- Added interactive pivot table for customer × week analysis
- Fixed collation issues in database joins
- Includes 4 summary cards with key metrics
- Charts display orders, production finished, and deliveries by week
- Click-to-expand data tables for detailed view
- Time range filter (4-52 weeks)
- Data sources: scanfg_orders (finished), dm_orders, dm_deliveries
2025-11-25 00:09:19 +02:00
ske087
c6e254c390 updated aplications database 2025-11-22 22:26:23 +02:00
Quality System Admin
4d6bd537e3 updated siles 2025-11-22 18:51:13 +02:00
ske087
5de2584b27 Fix FG quality page: Display OK for quality code 0, export CSV with 0 value 2025-11-13 04:26:46 +02:00
ske087
0d98c527c6 Fix config file parsing and improve backup/restore functionality
- Fix external_server.conf parsing to skip comment lines and empty lines
- Update routes.py get_db_connection() to handle comments
- Update settings.py get_external_db_connection() to handle comments
- Improve restore_backup() to use mariadb command instead of Python parsing
- Remove SQLite database creation (MariaDB only)
- Add environment detection for dump command (mariadb-dump vs mysqldump)
- Add conditional SSL flag based on Docker environment
- Fix database restore to handle MariaDB sandbox mode comments
2025-11-13 03:59:27 +02:00
ske087
9d14d67e52 Add compatibility layer for Docker and Gunicorn deployments
- Auto-detect mysqldump vs mariadb-dump command
- Conditional SSL flag based on Docker environment detection
- Works in both Docker containers and standard systemd deployments
- No breaking changes to existing functionality
2025-11-13 02:51:07 +02:00
ske087
2ce918e1b3 Docker deployment improvements: fixed backup/restore, sticky headers, quality code display 2025-11-13 02:40:36 +02:00
Quality System Admin
3b69161f1e complet updated 2025-11-06 21:34:02 +02:00
Quality System Admin
7f19a4e94c updated access 2025-11-06 21:33:52 +02:00
Quality System Admin
9571526e0a updated documentation for print labels module and lost label module 2025-11-06 21:05:16 +02:00
Quality System Admin
f1ff492787 updated / print module / keypairing options 2025-11-06 20:37:19 +02:00
Quality System Admin
c91b7d0a4d Fixed the scan error and backup problems 2025-11-05 21:25:02 +02:00
Quality System Admin
9020f2c1cf updated docker compose and env file 2025-11-03 23:30:16 +02:00
Quality System Admin
1cb54be01e updated 2025-11-03 23:04:44 +02:00
Quality System Admin
f9dfc011f2 updated to document the database structure. 2025-11-03 22:37:30 +02:00
Quality System Admin
59cb9bcc9f updated to ignore logs 2025-11-03 22:22:09 +02:00
Quality System Admin
9c19379810 updated backups solution 2025-11-03 22:18:56 +02:00
Quality System Admin
1ade0b5681 updated documentation folder 2025-11-03 21:17:10 +02:00
Quality System Admin
8d47e6e82d updated structure and app 2025-11-03 19:48:53 +02:00
Quality System Admin
7fd4b7449d Major UI/UX improvements and help system implementation
 New Features:
- Implemented comprehensive help/documentation system with Markdown support
- Added floating help buttons throughout the application
- Created modular CSS architecture for better maintainability
- Added theme-aware help pages (light/dark mode support)

🎨 UI/UX Improvements:
- Implemented 25%/75% card layout consistency across printing module pages
- Fixed barcode display issues (removed black rectangles, proper barcode patterns)
- Enhanced print method selection with horizontal layout (space-saving)
- Added floating back button in help pages
- Improved form controls styling (radio buttons, dropdowns)

🔧 Technical Enhancements:
- Modularized CSS: Created print_module.css with 779 lines of specialized styles
- Enhanced base.css with floating button components and dark mode support
- Updated routes.py with help system endpoints and Markdown processing
- Fixed JsBarcode integration with proper CDN fallback
- Removed conflicting inline styles from templates

📚 Documentation:
- Created dashboard.md with comprehensive user guide
- Added help viewer template with theme synchronization
- Set up documentation image system with proper Flask static serving
- Implemented docs/images/ folder structure

🐛 Bug Fixes:
- Fixed barcode positioning issues (horizontal/vertical alignment)
- Resolved CSS conflicts between inline styles and modular CSS
- Fixed radio button oval display issues
- Removed borders from barcode frames while preserving label info borders
- Fixed theme synchronization between main app and help pages

📱 Responsive Design:
- Applied consistent 25%/75% layout across print_module, print_lost_labels, upload_data, view_orders
- Added responsive breakpoints for tablet (30%/70%) and mobile (stacked) layouts
- Improved mobile-friendly form layouts and button sizing

The application now features a professional, consistent UI with comprehensive help system and improved printing module functionality.
2025-11-03 18:48:56 +02:00
Quality System Admin
b56cccce3f production server 2025-10-22 21:04:38 +03:00
Quality System Admin
42f6394dd9 Update project: Simplified UI design and improved structure
- Modernized UI with simple, clean design
- Fixed logo sizing and positioning
- Improved fg_scan page layout with side-by-side cards
- Enhanced base template with theme toggle and user info
- Added simple.css and simple.js for clean styling
- Updated database configuration for Docker integration
- Organized project structure and moved old files
2025-10-22 20:59:57 +03:00
Quality System Admin
c96039542d updated control access 2025-10-16 02:36:32 +03:00
Quality System Admin
50c791e242 cleaning structure 2025-10-16 01:42:59 +03:00
Quality System Admin
e0ba349862 updated docker compose 2025-10-13 22:21:03 +03:00
Quality System Admin
c292854d72 updated docker compose files 2025-10-13 21:18:33 +03:00
Quality System Admin
ee9dc0eb1c update with docker file 2025-10-13 21:17:54 +03:00
Quality System Admin
aaf6f2b32f updated database deployment and views 2025-10-12 00:22:45 +03:00
Quality System Admin
a84c881e71 docs: Update database setup script to reflect current table structure
- Added printed_labels column (INT(1) DEFAULT 0) for print tracking
- Added data_livrare column (DATE NULL) for delivery dates from CSV
- Added dimensiune column (VARCHAR(20) NULL) for product dimensions
- Updated documentation to explain new columns and their purpose

This keeps the setup script synchronized with the actual database structure
that has been modified during development and testing.
2025-10-11 23:38:50 +03:00
Quality System Admin
d264bcdca9 feat: Major system improvements and production deployment
 New Features:
- Added view_orders route with proper table display
- Implemented CSV upload with preview workflow and date parsing
- Added production WSGI server configuration with Gunicorn
- Created comprehensive production management scripts

🔧 Bug Fixes:
- Fixed upload_data route column mapping for actual CSV structure
- Resolved print module database queries and template rendering
- Fixed view orders navigation routing (was pointing to JSON API)
- Corrected barcode display width constraints in print module
- Added proper date format parsing for MySQL compatibility

🎨 UI/UX Improvements:
- Updated view_orders template with theme-compliant styling
- Hidden barcode text in print module preview for cleaner display
- Enhanced CSV upload with two-step preview-then-save workflow
- Improved error handling and debugging throughout upload process

🚀 Production Infrastructure:
- Added Gunicorn WSGI server with proper configuration
- Created systemd service for production deployment
- Implemented production management scripts (start/stop/status)
- Added comprehensive logging setup
- Updated requirements.txt with production dependencies

📊 Database & Data:
- Enhanced order_for_labels table compatibility
- Fixed column mappings for real CSV data structure
- Added proper date parsing and validation
- Improved error handling with detailed debugging

🔧 Technical Debt:
- Reorganized database setup documentation
- Added proper error handling throughout upload workflow
- Enhanced debugging capabilities for troubleshooting
- Improved code organization and documentation
2025-10-11 23:31:32 +03:00
Quality System Admin
af62fa478f feat: Implement comprehensive database setup system
- Add complete database setup script (setup_complete_database.py)
- Add quick deployment script (quick_deploy.sh)
- Add comprehensive documentation (DATABASE_SETUP_README.md)
- Move individual db scripts to backup_db_scripts folder
- Update external_server.conf with correct database settings
- Clean up obsolete documentation files
- Streamline deployment process to single command

Features:
- One-script database creation for all tables and triggers
- Automated permissions and roles setup
- Complete verification and error handling
- Production-ready deployment workflow
- Maintains backward compatibility with individual scripts
2025-10-11 21:45:37 +03:00
05394697a0 updated validation and auto submit 2025-10-10 22:49:57 +03:00
e257f6be18 updated to scan module 2025-10-09 01:10:05 +03:00
b8e85180c7 updated to scrol betwen the rows in the card 2025-10-09 00:41:32 +03:00
c99ff70da7 updated to do 2025-10-09 00:37:10 +03:00
b0e17b69e7 lets add settings new to css 2025-10-09 00:34:52 +03:00
scheianu ionut
a8811b94b7 Major updates: Setup environment, database, permissions and admin access
- Created virtual environment and installed requirements
- Set up MariaDB database with user 'sa' and database 'recticel'
- Created order_for_labels table for printing functionality
- Implemented role-based permissions system with admin role
- Added admin access to print label modules and etichete functionality
- Fixed template routing issues in main_page_etichete.html
- Updated app to run on port 8781 with network access (0.0.0.0)
- Added systemd service file for background deployment
- Created installation documentation
2025-10-07 22:07:06 +03:00
957c8eca4d moved to test environment 2025-10-05 14:32:47 -04:00
cb8a48e58f import locations to bulk 2025-10-05 09:58:33 +03:00
97b9ae9fe2 centered preview in the create location page 2025-10-05 09:40:03 +03:00