don't notify about invoices with amount lower than 1 (#10984)

This commit is contained in:
Serghei Mihai 2016-05-25 17:15:57 +02:00
parent 7f73a8c906
commit 6469bf9e73
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class Command(BaseCommand):
notification = InvoiceNotificationEmail.objects.filter(invoice_number=invoice.id).latest()
if notification.date_sent > timezone.now() - timedelta(days=notification_timeout):
continue
if invoice.solde == 0:
if invoice.solde < 1:
continue
except InvoiceNotificationEmail.DoesNotExist:
pass