Skip to content

Commit

Permalink
[5321] - Incidencia das alíquotas de IR, PIS, COFINS e CSSL nas fatur…
Browse files Browse the repository at this point in the history
…as de clientes das esferas municipal e estadual
  • Loading branch information
GuilhermeAAguiar authored and pamelagatinho committed Sep 27, 2023
1 parent 3cefc5c commit b4e1e73
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/gcom/faturamento/RepositorioFaturamentoHBM.java
Original file line number Diff line number Diff line change
Expand Up @@ -10373,12 +10373,16 @@ public Integer pesquisarClienteResponsavelImovel(Integer idImovel)
+ "inner join cli.clienteTipo cltp "
+ "where imo.id = :idImovel AND "
+ "crt.id = :idResponsavel AND "
+ "cltp.esferaPoder.id = :esferaPoder AND "
+ "cltp.esferaPoder.id in (:esferaPoderFederal, "
+ ":esferaPoderMunicipal, "
+ ":esferaPoderEstadual) and "
+ "cliImo.dataFimRelacao is null ";
retorno = (Integer) session.createQuery(consulta).setInteger(
"idImovel", idImovel).setInteger("idResponsavel",
ClienteRelacaoTipo.RESPONSAVEL).setInteger("esferaPoder",
EsferaPoder.FEDERAL).setMaxResults(1).uniqueResult();
ClienteRelacaoTipo.RESPONSAVEL).setInteger("esferaPoderFederal",
EsferaPoder.FEDERAL).setInteger("esferaPoderEstadual",
EsferaPoder.ESTADUAL).setInteger("esferaPoderMunicipal",
EsferaPoder.MUNICIPAL).setMaxResults(1).uniqueResult();

} catch (HibernateException e) {
// levanta a exce��o para a pr�xima camada
Expand Down

0 comments on commit b4e1e73

Please sign in to comment.