How to stop cash drawer opening when print bill button is click

when i press print bill cash drawer open so how to stop this only it has open settle payment cash button is press.

You need to separate your drawer kick command from your printer template.
Guessing you just put the kick code on bottom of print template.
Print bill prints the template hence kicks drawer.
Create a second template with just the kick command, a job and an action to go with it.
Then add action to a payment processed rule (constrain to cash if you dont want it opening for card).
This action can then be used for ‘no sale’ open drawer and on work period ended rules if wanted to open drawer other times without any print at all.