This commit is contained in:
Julien Constant 2023-04-09 00:10:35 +02:00
parent 76f9f1b102
commit da5a4a4a53

View File

@ -583,7 +583,7 @@ class CounterClick(CounterTabsMixin, CanViewMixin, DetailView):
- <str>, where the string is the code of the product - <str>, where the string is the code of the product
- <int>X<str>, where the integer is the quantity and str the code - <int>X<str>, where the integer is the quantity and str the code
""" """
string = parse_qs(request.body.decode())["code"][0].upper() string = parse_qs(request.body.decode()).get("code", [""])[0].upper()
if string == "FIN": if string == "FIN":
return self.finish(request) return self.finish(request)
elif string == "ANN": elif string == "ANN":