# Path: payments/utils.py
# def show_overdue_orders(verbose=0):
#     """
#     Display all users who has orders overdue.
#     """
#     return get_unpaid_orders_print_results(True, verbose)


from django.core.management.base import BaseCommand
from payments.utils import show_overdue_orders



class Command(BaseCommand):
    help = 'Display all orders that are overdue, and will be expired.'

    def handle(self, *args, **options):
        orders_no, tickets_no = show_overdue_orders(verbose=options['verbosity'])

        if options['verbosity'] > 0:

# Path: payments/utils.py
# def show_overdue_orders(verbose=0):
#     """
#     Display all users who has orders overdue.
#     """
#     return get_unpaid_orders_print_results(True, verbose)


# Path: payments/management/commands/show_overdue_orders.py
from django.core.management.base import BaseCommand
from payments.utils import show_overdue_orders




class Command(BaseCommand):
    help = 'Display all orders that are overdue, and will be expired.'

    def handle(self, *args, **options):
        orders_no, tickets_no = show_overdue_orders(verbose=options['verbosity'])

        if options['verbosity'] > 0:

            self.stdout.write(