From 0f5d11d4841e0b2946808effa3c8961062c71bb6 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 14 Oct 2024 10:55:42 +0200 Subject: [PATCH] small fix --- alkatorapi/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/alkatorapi/views.py b/alkatorapi/views.py index f9c63ba..26c0cf2 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -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)