$af->Save();
             if (count($timesheet_queue_ids) > 1) {
                 //Remove the authorized/declined timesheet from the stack.
                 array_shift($timesheet_queue_ids);
                 Redirect::Page(URLBuilder::getURL(array('id' => $timesheet_queue_ids[0], 'selected_level' => $selected_level, 'timesheet_queue_ids' => base64_encode(serialize($timesheet_queue_ids))), 'ViewTimeSheetVerification.php'));
             } else {
                 Redirect::Page(URLBuilder::getURL(array('refresh' => TRUE), '../CloseWindow.php'));
             }
             break;
         }
     }
 default:
     if ((int) $id > 0) {
         Debug::Text(' ID was passed: ' . $id, __FILE__, __LINE__, __METHOD__, 10);
         $pptsvlf = new PayPeriodTimeSheetVerifyListFactory();
         $pptsvlf->getByIDAndCompanyID($id, $current_company->getId());
         $status_options = $pptsvlf->getOptions('type');
         foreach ($pptsvlf as $pptsv_obj) {
             //Debug::Arr($station,'Department', __FILE__, __LINE__, __METHOD__,10);
             $data = array('id' => $pptsv_obj->getId(), 'pay_period_id' => $pptsv_obj->getPayPeriod(), 'user_id' => $pptsv_obj->getUser(), 'user_full_name' => $pptsv_obj->getUserObject()->getFullName(), 'pay_period_start_date' => $pptsv_obj->getPayPeriodObject()->getStartDate(), 'pay_period_end_date' => $pptsv_obj->getPayPeriodObject()->getEndDate(), 'status_id' => $pptsv_obj->getStatus(), 'status' => $status_options[$pptsv_obj->getStatus()], 'created_date' => $pptsv_obj->getCreatedDate(), 'created_by' => $pptsv_obj->getCreatedBy(), 'updated_date' => $pptsv_obj->getUpdatedDate(), 'updated_by' => $pptsv_obj->getUpdatedBy(), 'deleted_date' => $pptsv_obj->getDeletedDate(), 'deleted_by' => $pptsv_obj->getDeletedBy());
         }
         //Get Next TimeSheet to authorize:
         if ($permission->Check('punch', 'authorize') and $selected_level != NULL and count($timesheet_queue_ids) <= 1) {
             Debug::Text('Get TimeSheet Queue: ', __FILE__, __LINE__, __METHOD__, 10);
             $ulf = new UserListFactory();
             $hlf = new HierarchyListFactory();
             $hllf = new HierarchyLevelListFactory();
             $timesheet_levels = $hllf->getLevelsByUserIdAndObjectTypeID($current_user->getId(), 90);
             Debug::Arr($timesheet_levels, 'TimeSheet Levels', __FILE__, __LINE__, __METHOD__, 10);
             if (isset($selected_levels['timesheet']) and isset($request_levels[$selected_levels['timesheet']])) {
                 $timesheet_selected_level = $timesheet_levels[$selected_levels['timesheet']];