浏览代码

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

dev
父节点
当前提交
c54d7688a8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      common/models/Subscription.php

+ 1
- 1
common/models/Subscription.php 查看文件

@@ -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) {

正在加载...
取消
保存