Commit 270cbfcfb01eec3132dcd90eb3176007a17d9478
1 parent
395ab411
Exists in
master
Atendimento #4999
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
cit-almoxarifado-api/src/main/java/br/com/centralit/api/dao/impl/MovimentoEstoqueDaoHibernate.java
... | ... | @@ -181,7 +181,9 @@ public class MovimentoEstoqueDaoHibernate extends CitGenericDAOImpl implements M |
181 | 181 | Map<String, Object> parametros = new HashMap<String, Object>(); |
182 | 182 | StringBuilder sql = new StringBuilder(); |
183 | 183 | |
184 | - sql.append("select atendimento.dataAtendimento, atendimentoItem.quantidade from alm_me_movimentoestoque me "); | |
184 | + sql.append("select atendimento.dataAtendimento, "); | |
185 | + sql.append(" (select sum(quantidade) from alm_rc_at_item_endereco where alm_rc_at_item_endereco.at_req_consumoitem_id = atendimentoItem.id) as quantidade "); | |
186 | + sql.append(" from alm_me_movimentoestoque me "); | |
185 | 187 | sql.append(" inner join dominio dominio on dominio.id = me.dominioClasseReferencia_id "); |
186 | 188 | sql.append(" left join alm_rc_atendimentoitem atendimentoItem on atendimentoItem.id = me.idClasseReferencia "); |
187 | 189 | sql.append(" left join alm_rc_atendimento atendimento on atendimento.id = atendimentoItem.AtendimentoReqConsumo_Id "); | ... | ... |
cit-almoxarifado-web/src/main/webapp/assets/js/angular/custom/controller/AtendimentoRequisicaoConsumoController.js
... | ... | @@ -376,7 +376,7 @@ citApp.controller( 'AtendimentoRequisicaoConsumoController', |
376 | 376 | }); |
377 | 377 | }); |
378 | 378 | |
379 | - //buscarInformacoesParaAtendimento(atendimentoItem); | |
379 | + buscarInformacoesParaAtendimento(atendimentoItem); | |
380 | 380 | |
381 | 381 | atendimento.atendimentoRequisicaoConsumoItems.push(atendimentoItem); |
382 | 382 | }); | ... | ... |