employee_approver_check(); $common = new time_sheets_common(); $user_id = get_current_user_id(); $timesheets = $this->return_invoicing_list(); $allow_show_record_invoicing = get_user_option('time_sheets_invoicing_allow_show_record_invoicing', $user_id); if ($_GET['show_retainers']) { $retainers_parm = "&show_retainers=checked"; } if ($_GET['hide_nonretainers']) { $retainers_parm = $retainers_parm . "&hide_nonretainers=checked"; } if ($timesheets) { echo "
"; } else { echo "No time sheets to invoice."; } } function invoice_timesheet(){ $entry = new time_sheets_entry(); $common = new time_sheets_common(); if ($_GET['action']=='preinvoice') { $entry->show_timesheet(); } else { echo "| "; $this->show_invoicing_list(); echo " | "; $common->show_clients_on_retainer(); echo " |