import os
import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'branch_system.settings')
django.setup()

from reports.simple_reports_service import SimpleReportsService
from datetime import date

s = SimpleReportsService()
r = s.get_processing_fees_report(start_date=date(2024,1,1), end_date=date(2024,12,31))

print('✓ Service method works')
print(f'  Keys in report: {list(r.keys())}')
print(f'  Summary keys: {list(r["summary"].keys())}')
print('\n✓ All required fields present:')
print(f'  - total_processing_fees: {r["summary"]["total_processing_fees"]}')
print(f'  - current_period_fees: {r["summary"]["current_period_fees"]}')
print(f'  - previous_period_fees: {r["summary"]["previous_period_fees"]}')
print(f'  - period_difference: {r["summary"]["period_difference"]}')
print(f'  - growth_rate: {r["summary"]["growth_rate"]}')
