$commande->init() ; | $commande->init() ; | ||||
$user_action = User::findBy([ | |||||
'id_etablissement' => $production->id_etablissement, | |||||
'status' => 11 | |||||
]) ; | |||||
$commande->creditHistorique( | $commande->creditHistorique( | ||||
CreditHistorique::TYPE_PAIEMENT, | CreditHistorique::TYPE_PAIEMENT, | ||||
$commande->getMontant(), | $commande->getMontant(), | ||||
$production->id_etablissement, | $production->id_etablissement, | ||||
$commande->id_user | |||||
$user_action->id | |||||
) ; | ) ; | ||||
} | } | ||||