Generating and printing bill