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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user