small fix
This commit is contained in:
parent
820c7a42da
commit
0f5d11d484
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user