|
|
|
@ -17,7 +17,7 @@ logger_yandex = logging.getLogger('yandex_money') |
|
|
|
def periodic_billing(): |
|
|
|
def periodic_billing(): |
|
|
|
logger_yandex.info("start periodic billing task") |
|
|
|
logger_yandex.info("start periodic billing task") |
|
|
|
|
|
|
|
|
|
|
|
invoices = InvoiceRebilling.objects.filter(method='Y', rebilling_on=True).exclude(status='F') |
|
|
|
invoices = InvoiceRebilling.objects.filter(method='Y').exclude(status='F') |
|
|
|
|
|
|
|
|
|
|
|
for invoice in invoices.filter( |
|
|
|
for invoice in invoices.filter( |
|
|
|
expected_date__gt=timezone.now(), expected_date__lt=timezone.now() + relativedelta(days=1)): |
|
|
|
expected_date__gt=timezone.now(), expected_date__lt=timezone.now() + relativedelta(days=1)): |
|
|
|
|