added functions to generate package bill
condition if generate bill button is clicked