public static function addAll($date, $force = false) | public static function addAll($date, $force = false) | ||||
{ | { | ||||
$distribution = Distribution::searchOne([ | $distribution = Distribution::searchOne([ | ||||
'date' => date('Y-m-d', strtotime($date)) | |||||
'date' => date('Y-m-d', strtotime($date)), | |||||
'id_producer' => Producer::getId(), | |||||
]) ; | ]) ; | ||||
if ($distribution) { | if ($distribution) { |