Commit 074f4a96 authored by Patrick's avatar Patrick
Browse files

Allow to invoice a permanence up to "today"

parent 4e700377
......@@ -138,14 +138,7 @@ class PermanenceDoneAdmin(TranslatableAdmin):
self.message_user(request, user_message, user_message_level)
return None
next_permanence_not_invoiced = Permanence.objects.filter(
permanence_date__gte=permanence.permanence_date) \
if next_permanence_not_invoiced is not None:
max_payment_date = next_permanence_not_invoiced.permanence_date # - datetime.timedelta(days=1)
max_payment_date =
max_payment_date =
bank_account = BankAccount.objects.filter(
operation_status=BANK_LATEST_TOTAL) \
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