The influence of the chemical potential oscillations on the de Haas-van Alphen effect in quasi-two-dimensional compounds