Przeglądaj źródła

Merge branch 'dev'

master
Guillaume 3 lat temu
rodzic
commit
e30868cc8a
1 zmienionych plików z 9 dodań i 5 usunięć
  1. +9
    -5
      backend/controllers/DistributionController.php

+ 9
- 5
backend/controllers/DistributionController.php Wyświetl plik

@@ -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()
] ;
}
}
}
}

Ładowanie…
Anuluj
Zapisz