|
|
@ -189,6 +189,10 @@ class VracoopPointRetrait(models.Model): |
|
|
|
if slot_elem >= last_morning_hour_week: |
|
|
|
continue |
|
|
|
|
|
|
|
if slot_elem_last >= last_morning_hour_week: |
|
|
|
slot_elem_last = last_morning_hour_week |
|
|
|
last_slot = slot_elem_last.strftime("%H:%M") |
|
|
|
|
|
|
|
# Si le jour est égal à la date du jour |
|
|
|
if slot_elem.date() == today_datetime.date(): |
|
|
|
if (slot_elem_last > last_morning_hour_week): |
|
|
@ -202,10 +206,7 @@ class VracoopPointRetrait(models.Model): |
|
|
|
first_slot = slot_elem_first.strftime("%H:00") |
|
|
|
if first_slot == last_slot: |
|
|
|
continue |
|
|
|
if slot_elem_last >= last_morning_hour_week: |
|
|
|
slot_elem_last = last_morning_hour_week |
|
|
|
last_slot = slot_elem_last.strftime("%H:%M") |
|
|
|
|
|
|
|
|
|
|
|
# Vérification si |
|
|
|
# Nombre max de retrait défini a été atteint |
|
|
|
# Pas de controle si La valeur définie est 0 |
|
|
@ -236,6 +237,10 @@ class VracoopPointRetrait(models.Model): |
|
|
|
if slot_elem >= last_noon_hour_week: |
|
|
|
continue |
|
|
|
|
|
|
|
if slot_elem_last >= last_noon_hour_week: |
|
|
|
slot_elem_last = last_noon_hour_week |
|
|
|
last_slot = slot_elem_last.strftime("%H:%M") |
|
|
|
|
|
|
|
# Si le jour est égal à la date du jour |
|
|
|
if slot_elem.date() == today_datetime.date(): |
|
|
|
if (slot_elem_last > last_noon_hour_week): |
|
|
@ -249,10 +254,6 @@ class VracoopPointRetrait(models.Model): |
|
|
|
first_slot = slot_elem_first.strftime("%H:00") |
|
|
|
if first_slot == last_slot: |
|
|
|
continue |
|
|
|
if slot_elem_last >= last_noon_hour_week: |
|
|
|
slot_elem_last = last_noon_hour_week |
|
|
|
last_slot = slot_elem_last.strftime("%H:%M") |
|
|
|
|
|
|
|
# Vérification si |
|
|
|
# Nombre max de retrait défini a été atteint |
|
|
|
# Pas de controle si La valeur définie est 0 |
|
|
|