From 6469bf9e73bb2986139c9a630e54299a9dbfc74d Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 25 May 2016 17:15:57 +0200 Subject: [PATCH] don't notify about invoices with amount lower than 1 (#10984) --- synchro_orleans/data/management/commands/email_new_invoices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synchro_orleans/data/management/commands/email_new_invoices.py b/synchro_orleans/data/management/commands/email_new_invoices.py index 74e16c9..47a3eb5 100644 --- a/synchro_orleans/data/management/commands/email_new_invoices.py +++ b/synchro_orleans/data/management/commands/email_new_invoices.py @@ -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