Print bill when custmor acuunt closes

it possible to print bill and to open the cash register when I charge the client and closes his account?

Because now it’s just close the account without a receipt or open the cash register,