From be34e1a6b5cafcfacd8deee46a5362129031cfdf Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 12 Jul 2016 22:56:21 +0200 Subject: [PATCH] generate invoices for unpaid customorders --- shop/management/commands/invoice-worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/management/commands/invoice-worker.py b/shop/management/commands/invoice-worker.py index 5c8ab654..2ad55e88 100644 --- a/shop/management/commands/invoice-worker.py +++ b/shop/management/commands/invoice-worker.py @@ -26,7 +26,7 @@ class Command(BaseCommand): self.output('Generated Invoice object for %s' % order) # check if we need to generate any invoices for custom orders - for customorder in CustomOrder.objects.filter(paid=True, invoice__isnull=True): + for customorder in CustomOrder.objects.filter(invoice__isnull=True): # generate invoice for this CustomOrder Invoice.objects.create(customorder=customorder) self.output('Generated Invoice object for %s' % customorder)