Ver código fonte

[backend] Distributions : gestion des abonnements manquants

prodstable
Guillaume 4 anos atrás
pai
commit
c87f63ffb6
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      common/models/Subscription.php

+ 1
- 1
common/models/Subscription.php Ver arquivo

@@ -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)) {

Carregando…
Cancelar
Salvar