fixed a bug with the fucking doctor revenue, please update the procedure ViewEarningByDoctor