瀏覽代碼

[backend] Distributions : gestion des abonnements manquants

dev
Guillaume 3 年之前
父節點
當前提交
c87f63ffb6
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      common/models/Subscription.php

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

@@ -178,7 +178,7 @@ class Subscription extends ActiveRecordCommon
'distribution.date' => date('Y-m-d', strtotime($date))
]);

if ($distribution && count($this->productSubscription)) {
if ($distribution && count($this->productSubscription) && $this->id_point_sale) {
// commande
$order = new Order;
if (strlen($this->username)) {

Loading…
取消
儲存