Browse Source

[fix] Add delay for date_due in subscritions_invoices

Josué Tille 6 years ago
parent
commit
66ccf30902
1 changed files with 1 additions and 1 deletions
  1. 1 1
      coin/billing/create_subscriptions_invoices.py

+ 1 - 1
coin/billing/create_subscriptions_invoices.py

@@ -47,7 +47,7 @@ def create_member_invoice_for_a_period(member, date):
                           relativedelta(days=+1))
                           relativedelta(days=+1))
 
 
     invoice = Invoice.objects.create(
     invoice = Invoice.objects.create(
-        date_due=datetime.date.today(),
+        date_due=datetime.date.today() + datetime.timedelta(days=settings.PAYMENT_DELAY),
         member=member
         member=member
     )
     )