_IDEntreprise = 1;
_entreprise = objNull;
{
_id = _x select 0;
_entreprise = _x select 1;
if (_id isequalto _IDEntreprise) exitWith {_entreprise = _x select 1;};
}foreach maxence_all_entreprises;
_oldEntACC = _entreprise getVariable ["entreprise_bankacc",0];
_oldEntACC = _oldEntACC + _totalcost;
_entreprise setVariable ["entreprise_bankacc",_oldEntACC,true];
[(_entreprise getVariable ["entreprise_id",0]),5,(_entreprise getVariable ["entreprise_bankacc",0])] remoteExecCall ["max_entreprise_fnc_updateEntreprise",2];
[_entreprise,format ["%1 (ravitaillement station)",(name player)],_totalcost,2] remoteExecCall ["max_entreprise_fnc_insertEntrepriseLogs",2];