the reason for this is mood swing and effect in the work. there could be errors and no company would appreciate that.

instead of the boss shouting; its better to give them leave.