Пример #1
0
 public function get_sign_off_date($action_history_row)
 {
     if ($action_history_row->action_status == "complete" || $action_history_row->action_status == "submitted" || $action_history_row->action_status == "aborted" || $action_history_row->action_status == "abort_no_action") {
         return $action_history_row->create_datetime;
     }
     if ($action_history_row->action_status == "claim_cancel") {
         $ow_history_service = new OW_History_Service();
         $claimed_row = $ow_history_service->get_action_history_by_parameters("claimed", $action_history_row->step_id, $action_history_row->post_id, $action_history_row->from_id);
         return $claimed_row->create_datetime;
     }
     $ow_history_service = new OW_History_Service();
     $action = $ow_history_service->get_action_history_by_from_id($action_history_row->ID);
     if ($action) {
         return $action->create_datetime;
     }
 }