Commit b85d0bc8 authored by Patrick's avatar Patrick
Browse files

cron job to pre-open orders

parent 5dce8a76
# -*- coding: utf-8 -*-
from 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')
self.stdout.write('Nothing to pre open')
Supports Markdown
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