fix(): Ajuste na rotina de salvar arquivos que falta descrição
This commit is contained in:
parent
0b59bd22d0
commit
47351ef0c6
1 changed files with 39 additions and 29 deletions
|
|
@ -84,6 +84,10 @@ try{
|
|||
$markings->documents_categorys_id = new \stdClass();
|
||||
$markings->documents_categorys_id->value = $documentsCategorysId;
|
||||
|
||||
/** Verifica se a descrição foi informada */
|
||||
if(!empty($result->description)){
|
||||
|
||||
|
||||
/** Verifica se a movimentação foi localizada */
|
||||
if($result->financial_movements_id > 0){
|
||||
|
||||
|
|
@ -125,6 +129,12 @@ try{
|
|||
throw new InvalidArgumentException("Nenhuma movimentação financeira localizada para esta solicitação", 0);
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
/** Informo */
|
||||
throw new InvalidArgumentException("A descrição do documento não foi informada", 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** Caso o token de acesso seja inválido, informo */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue