Commit 3748eae8 authored by Patrick's avatar Patrick
Browse files

Do not recalculate twice permanences having a status < CLOSE

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