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
This commit is contained in:
ske087
2025-12-07 00:31:41 +02:00
parent f8209e0e0a
commit c7f5203aa7
5 changed files with 827 additions and 2 deletions

View File

@@ -3940,6 +3940,13 @@ def delete_location():
return jsonify({'success': False, 'error': str(e)})
@warehouse_bp.route('/manage_boxes', methods=['GET', 'POST'])
@requires_warehouse_module
def manage_boxes():
from app.warehouse import manage_boxes_handler
return manage_boxes_handler()
# Daily Mirror Route Redirects for Backward Compatibility
@bp.route('/daily_mirror_main')
def daily_mirror_main_route():