Commit 2bd743921aa98f44ecee2874a45c1b90baafc982
1 parent
572fb117
Exists in
master
Redmine #4999
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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){ | ... | ... |