Commit b85d0bc8 authored by Patrick's avatar Patrick
Browse files

cron job to pre-open orders

parent 5dce8a76
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
from repanier.task import task_order
class Command(BaseCommand):
args = '<none>'
help = 'Pre open orders planned up to 3 days in the future'
def handle(self, *args, **options):
something_to_pre_open = task_order.automatically_pre_open()
if something_to_pre_open:
self.stdout.write('At least one order being pre opened')
else:
self.stdout.write('Nothing to pre open')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment