@@ -226,11 +226,16 @@ class CommandeAuto extends \yii\db\ActiveRecord | |||
$commande->init() ; | |||
$user_action = User::findBy([ | |||
'id_etablissement' => $production->id_etablissement, | |||
'status' => 11 | |||
]) ; | |||
$commande->creditHistorique( | |||
CreditHistorique::TYPE_PAIEMENT, | |||
$commande->getMontant(), | |||
$production->id_etablissement, | |||
$commande->id_user | |||
$user_action->id | |||
) ; | |||
} | |||