소스 검색

[backend] Abonnements : correction filterDistributionsByDateDelay()

dev
Guillaume 4 년 전
부모
커밋
2a8f7b803c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      common/models/Subscription.php

+ 2
- 1
common/models/Subscription.php 파일 보기

@@ -380,7 +380,6 @@ class Subscription extends ActiveRecordCommon
->where('id_producer = :id_producer')
->andWhere('date >= :date_begin')
->andWhere('date >= :date_earliest_order');
$incomingDistributions = Distribution::filterDistributionsByDateDelay($incomingDistributions) ;

if ($this->date_end) {
$incomingDistributions->andWhere('date < :date_end');
@@ -392,6 +391,8 @@ class Subscription extends ActiveRecordCommon
$incomingDistributions->params($params);
$incomingDistributionsArray = $incomingDistributions->all();

$incomingDistributions = Distribution::filterDistributionsByDateDelay($incomingDistributionsArray) ;

$matchedIncomingDistributionsArray = [];
foreach ($incomingDistributionsArray as $incomingDistribution) {
if ($this->matchWith($incomingDistribution->date)) {

Loading…
취소
저장