Parcourir la source

[backend] Abonnements : correction correspondance avec les dates de distribution futures

dev
Guillaume Bourgeois il y a 5 ans
Parent
révision
c54d7688a8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      common/models/Subscription.php

+ 1
- 1
common/models/Subscription.php Voir le fichier

@@ -321,7 +321,7 @@ class Subscription extends ActiveRecordCommon
] ;
$nbDays = (strtotime($date) - strtotime($this->date_begin)) / (24 * 60 * 60);
if ($nbDays % ($this->week_frequency * 7) < 7) {
if (round($nbDays) % ($this->week_frequency * 7) < 7) {
$numDay = date('N', strtotime($date));
$day = $arrayDays[$numDay] ;
if ($this->$day) {

Chargement…
Annuler
Enregistrer