- Introduced Technician Dashboard V1 (tech_v1_overview.html) with KPI cards and new cases overview. - Implemented Technician Dashboard V2 (tech_v2_workboard.html) featuring a workboard layout for daily tasks and opportunities. - Developed Technician Dashboard V3 (tech_v3_table_focus.html) with a power table for detailed case management. - Created a dashboard selector page (technician_dashboard_selector.html) for easy navigation between dashboard versions. - Added user dashboard preferences migration (130_user_dashboard_preferences.sql) to store default dashboard paths. - Enhanced sag_sager table with assigned group ID (131_sag_assignment_group.sql) for better case management. - Updated sag_subscriptions table to include cancellation rules and billing dates (132_subscription_cancellation.sql, 134_subscription_billing_dates.sql). - Implemented subscription staging for CRM integration (136_simply_subscription_staging.sql). - Added a script to move time tracking section in detail view (move_time_section.py). - Created a test script for subscription processing (test_subscription_processing.py).
32 lines
731 B
Python
32 lines
731 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test script for subscription invoice processing
|
|
Run this manually to test the subscription processing job
|
|
"""
|
|
import asyncio
|
|
import sys
|
|
import os
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
from app.core.database import init_db
|
|
from app.jobs.process_subscriptions import process_subscriptions
|
|
|
|
|
|
async def main():
|
|
"""Run subscription processing test"""
|
|
print("🧪 Testing subscription invoice processing...")
|
|
print("=" * 60)
|
|
|
|
# Initialize database connection pool
|
|
init_db()
|
|
print("✅ Database initialized")
|
|
|
|
await process_subscriptions()
|
|
|
|
print("=" * 60)
|
|
print("✅ Test complete")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|