exclude paid invoices from mailing
This commit is contained in:
parent
51fb1f754c
commit
637c050111
|
@ -65,9 +65,8 @@ class Command(BaseCommand):
|
|||
if options['list']:
|
||||
print "destination;nr. facture;montant;montant regle"
|
||||
|
||||
queryset = Facture.objects.filter(Q(paye=False) | Q(date_reglement__isnull=True),
|
||||
active=True, date_limite_paie__gte=datetime.now(),
|
||||
famille__liaisonnameidfamille__isnull=False)
|
||||
queryset = Facture.objects.filter(active=True, date_limite_paie__gte=datetime.now(),
|
||||
famille__liaisonnameidfamille__isnull=False).exclude(Q(paye=True) | Q(date_reglement__isnull=False))
|
||||
if options['fake']:
|
||||
if not options['id']:
|
||||
raise CommandError('An invoice id should be provided')
|
||||
|
|
Reference in New Issue