small fix

This commit is contained in:
Martin Quarda 2024-10-14 10:55:42 +02:00
parent 820c7a42da
commit 0f5d11d484

View File

@ -315,6 +315,7 @@ web: https://alkator.cz""",
elif paid == 'CANCELLED' and not invoice.paid:
for ip in InvoiceProduct.objects.filter(invoice=invoice):
ip.product.quantity += ip.quantity
ip.product.save()
ip.delete()
invoice.delete()
return HttpResponse(status=200)