Commit 037df4a405d73512dcc847e5695849a5b473d416

Authored by Ronan Tavares Camargo
1 parent 3f76f998
Exists in master

Atendimento #4943

cit-almoxarifado-web/src/main/webapp/assets/js/angular/custom/controller/AtendimentoRequisicaoConsumoController.js
... ... @@ -332,14 +332,16 @@ citApp.controller( 'AtendimentoRequisicaoConsumoController',
332 332 var atendimentoItem = {
333 333 material : requisicaoConsumoItem.materialConsumo,
334 334 requisicaoConsumoItem : requisicaoConsumoItem,
335   - locaisEstoque: []
  335 + $locaisEstoque: []
336 336 };
337 337  
338 338 MaterialLocalEstoqueRepository.buscarLocaisEstoquePorIdMaterialIdAlmoxarifado(requisicaoConsumoItem.materialConsumo.id, req.almoxarifado.id).then(function(result) {
339   - atendimentoItem.locaisEstoque = result;
  339 + atendimentoItem.$locaisEstoque = result;
340 340  
341 341 result.forEach(function(localEstoque){
342   - if(localPrincipal)
  342 + if(localEstoque.localPrincipal){
  343 + atendimentoItem.localEstoque = localEstoque;
  344 + }
343 345 });
344 346 });
345 347  
... ...