This modest paper presents a study on the energy quality produced by a multifunction system consisting of a Photovoltaic power source connected to a battery. A three-level inverter was used in the system studied for the purpose of improving the quality of energy injected into the grid and decreasing the Total Harmonic Distortion (THD). A Maximum Power Point Tracking (MPPT) algorithm based on a Fuzzy Logic Controller is used for the purpose of ensuring optimal production of photovoltaic energy.