def METHOD_NAME(cls):
    """
    Create invoices for both autopayable and non-autopayable subscriptions
    """
    # invoice date is 2 months before the end of the subscription (this is arbitrary)
    invoice_date = utils.months_from_date(cls.subscription.date_start, cls.subscription_length - 2)
    tasks.calculate_users_in_all_domains(invoice_date)
    tasks.generate_invoices_based_on_date(invoice_date)