Commit 3748eae8 authored by Patrick's avatar Patrick

Do not recalculate twice permanences having a status < CLOSE

parent 5a3fbcd9
......@@ -49,6 +49,7 @@ class Command(BaseCommand):
# if customer_invoice.is_order_confirm_send:
# confirm_customer_invoice(permanence.id, customer_invoice.customer_id)
for permanence in Permanence.objects.filter(
status__gte=PERMANENCE_CLOSED,
status__lt=PERMANENCE_DONE
).order_by('permanence_date'):
print ("%s %s" % (permanence.permanence_date, permanence.get_status_display()))
......
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