@@ -444,11 +444,6 @@ class Subscription extends ActiveRecordCommon | |||
->andWhere('distribution.date >= :date_begin') | |||
->andWhere('order.id_subscription = :id_subscription'); | |||
if ($this->date_end) { | |||
$orders->andWhere('distribution.date <= :date_end'); | |||
$params[':date_end'] = $this->date_end; | |||
} | |||
$orders->params($params); | |||
$ordersArray = $orders->all(); | |||
@@ -470,7 +465,6 @@ class Subscription extends ActiveRecordCommon | |||
); | |||
} | |||
ProductOrder::deleteAll(['id_order' => $order->id]); | |||
$order->delete(); | |||
} | |||
} |