fixes bug #AL-3255

master
valdevir 2023-10-16 09:49:59 -03:00
parent 1d18e216b5
commit 355a229750
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ModelWeb</artifactId>
<version>1.16.0</version>
<version>1.16.1</version>
<distributionManagement>
<repository>

View File

@ -1180,6 +1180,10 @@ public class CorridaServiceImpl implements CorridaService {
BigDecimal valorTaxaEmbarque= tarifa!=null ? tarifa.getImportetaxaembarque() : null ;
BigDecimal valorPedagio = tarifa!=null ? tarifa.getImportepedagio() : null ;
Long tempoReserva = null;
if(reservaEspecialCliente.getClienteId() ==null) {
log.error("Cliente id não foi cadastrado (null) para reservaId=" + reservaEspecialCliente.getReservaEspecialClienteId() + " da corrida_id =" + reservaEspecialCliente.getCorridaId() );
continue;
}
Cliente cliente = clienteService.obtenerID(reservaEspecialCliente.getClienteId().intValue());
if(cliente ==null || !Boolean.TRUE.equals(cliente.getActivo())) {
continue;