prefix}timesheet t where t.invoiced = 1 and t.payrolled = 0"; $count = $db->get_var($sql); return $count; } function show_payroll_list() { global $wpdb; $db = new time_sheets_db(); $main = new time_sheets_main(); $queue_approval = new time_sheets_queue_approval(); $approver = $queue_approval->employee_approver_check(); $options = get_option('time_sheets'); $common = new time_sheets_common(); $timesheets = $this->return_payroll_list(); if ($timesheets) { echo "
"; } else { echo "No time sheets to process for payroll."; } } function payroll_timesheet(){ $entry = new time_sheets_entry(); if ($_GET['action']=='preinvoice') { $entry->show_timesheet(); } else { echo "| "; $this->show_payroll_list(); echo " |