Guest User

Untitled

a guest
Dec 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. /**
  2.    * Metodo para alterar o status da assistencia Recolhida
  3.    *
  4.    * @name alteraStatusRecolhimento
  5.    * @access Public
  6.    * @author Tássio Neri
  7.    * @param integer $idAssistencia Codigo da Assistencia
  8.    * @param integer $status Status
  9.    * @return Array
  10.    */
  11.   public function alteraStatusRecolhimento($idAssistencia, $status)
  12.   {
  13.     //Verifica se foi informado o cod
  14.     if(empty($idAssistencia))
  15.         throw new Exception("Erro ao alterar Status da Assistência: Id da Assistência não informado.");
  16.    
  17.     //Verifica se foi informado o cod
  18.     if(empty($status))
  19.         throw new Exception("Erro ao alterar Status da Assistência: Status não informado.");
  20.  
  21.     //Objeto
  22.     $oAssistencia = new Db_webpdv_Assistencia();
  23.  
  24.     //Busca Assistencias Recolhidas
  25.     return $oAssistencia->buscaRecolhimentosRealizados($centralEntrega, $storeno, $status);
  26.   }
Add Comment
Please, Sign In to add comment