Преглед на файлове

[Administration] Distributions : correctif génération abonnements

feature/souke
Guillaume Bourgeois преди 1 година
родител
ревизия
4758b48665
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. +1
    -3
      backend/controllers/SubscriptionController.php

+ 1
- 3
backend/controllers/SubscriptionController.php Целия файл

@@ -254,8 +254,6 @@ class SubscriptionController extends BackendController
{
$subscriptionModule = $this->getSubscriptionModule();
$distributionModule = $this-> getDistributionModule();
$orderModule = $this->getOrderModule();

$subscription = $subscriptionModule->findOneSubscriptionById($idSubscription);
$matchedDistributionsArray = $distributionModule->findDistributionsIncomingMatchWithSubscrtiption($subscription);

@@ -265,7 +263,7 @@ class SubscriptionController extends BackendController
->deleteOrdersIncomingDistributionsFromSubscription($subscription);
}
foreach ($matchedDistributionsArray as $distribution) {
$orderModule->createOrderFromSubscription($subscription, $distribution->date);
$subscriptionModule->createOrderFromSubscription($subscription, $distribution->date);
}
$this->setFlash('success', 'Commandes ' . ($update ? 're-' : '') . 'générées dans les distributions futures.');
return $this->redirect(['subscription/index']);

Loading…
Отказ
Запис