Commit 2bd743921aa98f44ecee2874a45c1b90baafc982

Authored by Ronan Tavares Camargo
1 parent 572fb117
Exists in master

Redmine #4999

cit-almoxarifado-web/src/main/webapp/assets/js/angular/custom/controller/AtendimentoRequisicaoConsumoController.js
... ... @@ -489,7 +489,7 @@ citApp.controller( 'AtendimentoRequisicaoConsumoController',
489 489 $scope.validarQuantidadeAtendidaMaiorQuantidadeRequisitada = function(atendimentoItem){
490 490 atendimentoItem.$somaQtdAtendida = 0;
491 491 atendimentoItem.atendimentoRequisicaoConsumoItemEnderecos.forEach(function(atendimentoItemEndereco){
492   - atendimentoItem.$somaQtdAtendida += parseFloat(atendimentoItemEndereco.quantidade);
  492 + atendimentoItem.$somaQtdAtendida += atendimentoItemEndereco.quantidade ? parseFloat(atendimentoItemEndereco.quantidade) : 0;
493 493 });
494 494  
495 495 if(atendimentoItem.$somaQtdAtendida > atendimentoItem.requisicaoConsumoItem.quantidade){
... ...