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