Browse Source

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

dev
Guillaume Bourgeois 5 years ago
parent
commit
c54d7688a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Subscription.php

+ 1
- 1
common/models/Subscription.php View File

] ; ] ;
$nbDays = (strtotime($date) - strtotime($this->date_begin)) / (24 * 60 * 60); $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)); $numDay = date('N', strtotime($date));
$day = $arrayDays[$numDay] ; $day = $arrayDays[$numDay] ;
if ($this->$day) { if ($this->$day) {

Loading…
Cancel
Save