瀏覽代碼

[Backend] Correctif modification / suppression abonnement #157

refactoring
Guillaume 2 年之前
父節點
當前提交
f95e05ed6c
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. +0
    -6
      common/models/Subscription.php

+ 0
- 6
common/models/Subscription.php 查看文件

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

Loading…
取消
儲存