Bläddra i källkod

Merge branch 'dev'

master
Guillaume 3 år sedan
förälder
incheckning
e30868cc8a
1 ändrade filer med 9 tillägg och 5 borttagningar
  1. +9
    -5
      backend/controllers/DistributionController.php

+ 9
- 5
backend/controllers/DistributionController.php Visa fil

@@ -363,11 +363,15 @@ class DistributionController extends BackendController
// abonnements manquants
$arraySubscriptions = Subscription::searchByDate($date);
$json['missing_subscriptions'] = [] ;
foreach ($arraySubscriptions as $subscription) {
if (!$subscription->hasOrderAlreadyExist($ordersArrayObject)) {
$json['missing_subscriptions'][] = [
'username' => $subscription->getUsername()
] ;
if($distribution->active) {
foreach ($arraySubscriptions as $subscription) {
if(!$subscription->hasOrderAlreadyExist($ordersArrayObject)
&& $subscription->productSubscription && count($subscription->productSubscription)) {

$json['missing_subscriptions'][] = [
'username' => $subscription->getUsername()
] ;
}
}
}
}

Laddar…
Avbryt
Spara