check if bill is generated
fix issue of generating bill