Browse Source

[backend] Correction bug commandes importées dans le mauvais producteur

dev
Guillaume Bourgeois 5 years ago
parent
commit
21630ba949
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      common/models/Subscription.php

+ 2
- 1
common/models/Subscription.php View File

@@ -261,7 +261,8 @@ class Subscription extends ActiveRecordCommon
public static function addAll($date, $force = false)
{
$distribution = Distribution::searchOne([
'date' => date('Y-m-d', strtotime($date))
'date' => date('Y-m-d', strtotime($date)),
'id_producer' => Producer::getId(),
]) ;

if ($distribution) {

Loading…
Cancel
Save