
import os

file_path = 'core/views.py'

missing_reports = r"""

@login_required
def cashflow_report(request):
    return render(request, 'core/cashflow_report.html')

@login_required
def customer_statement(request):
    return render(request, 'core/customer_statement.html')

@login_required
def supplier_statement(request):
    return render(request, 'core/supplier_statement.html')
"""

with open(file_path, 'a') as f:
    f.write(missing_reports)

print("Appended missing reports to core/views.py")
