Fix select drug orders tab when two visits are in same date and when thers is no drug added in current visit