Commit 23ac5bdd by Damien Moulard

fix change makeup shift

parent b35a7800
Pipeline #1453 passed with stage
in 1 minute 29 seconds
...@@ -181,12 +181,11 @@ def change_shift(request): ...@@ -181,12 +181,11 @@ def change_shift(request):
listRegister = [int(request.POST['idRegister'])] listRegister = [int(request.POST['idRegister'])]
data = { data = {
"idPartner": int(request.POST['idPartner']), "idPartner": int(request.POST['idPartner']),
"idShift":int(request.POST['idNewShift']), "idShift": int(request.POST['idNewShift']),
"in_ftop_team":request.POST['in_ftop_team'], "in_ftop_team": request.POST['in_ftop_team'],
"is_makeup":cs.shift_is_makeup(listRegister) "is_makeup": cs.shift_is_makeup(idOldShift)
} }
should_block_service_exchange = getattr(settings, 'BLOCK_SERVICE_EXCHANGE_24H_BEFORE', False) should_block_service_exchange = getattr(settings, 'BLOCK_SERVICE_EXCHANGE_24H_BEFORE', False)
if should_block_service_exchange: if should_block_service_exchange:
# Block change if old shift is to happen in less than 24 hours # Block change if old shift is to happen in less than 24 hours
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment