Changed the table layout in create_invoice

When there are no purchases or times, the app will display a error
message instead of an empty list