@@ -144,6 +144,7 @@ class ProducerAdminController extends BackendController | |||
if($withOrders) { | |||
$countOrders = Order::searchCount([ | |||
'id_user' => $idUser, | |||
'distribution.id_producer' => $fromProducerId | |||
], ['conditions' => 'date_delete IS NULL']); | |||
} | |||