Ejemplo n.º 1
0
         if ($udtf->isValid()) {
             $udtf->setEnableCalcSystemTotalTime(TRUE);
             $udtf->setEnableCalcWeeklySystemTotalTime(TRUE);
             $udtf->setEnableCalcException(TRUE);
             if ($udtf->Save() != TRUE) {
                 $fail_transaction = TRUE;
                 break;
             }
         } else {
             $fail_transaction = TRUE;
             break;
         }
     }
     if ($fail_transaction == FALSE) {
         //$udtf->FailTransaction();
         $udtf->CommitTransaction();
         Redirect::Page(URLBuilder::getURL(array('refresh' => TRUE), '../CloseWindow.php'));
         break;
     } else {
         $udtf->FailTransaction();
     }
 default:
     /*
     Don't allow editing System time. If they want to force a bank time
     		they can just add that to the accrual, and either set a time pair to 0
     		or enter a Absense Dock (only for salary) employees.
     However when you do a Absense dock, what hours is it docking from,
     		total, regular,overtime?
     */
     if ($id != '') {
         Debug::Text(' ID was passed: ' . $id, __FILE__, __LINE__, __METHOD__, 10);