_companyID = 1;
_company = objNull;
{
if ((_x select 0) isEqualTo _companyID) exitWith {_company = (_x select 1);};
} foreach maxence_all_entreprises;
if !(isNull _company) then {
_oldEntACC = _company getVariable ["entreprise_bankacc",0];
_oldEntACC = _oldEntACC + _price;
_company setVariable ["entreprise_bankacc",_oldEntACC,true];
[(_company getVariable ["entreprise_id",0]),5,(_company getVariable ["entreprise_bankacc",0])] remoteExecCall ["max_entreprise_fnc_updateEntreprise",2];
[_company,format ["Ravitaillement en essence : %1",(name player)],_price,2] remoteExecCall ["max_entreprise_fnc_insertEntrepriseLogs",2];
};