Commit 7b8ed003ed8fc3d7bc3687401657869edf269157
1 parent
02aacaad
Exists in
master
redmine #4283 Adicionada validacao para divergencia de valores entre o campo 'va…
…lor total da nota' e 'valor dos materiais adicionados'.
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
citgrp-patrimonio-web/src/main/webapp/assets/js/angular/custom/controller/EntradaController.js
... | ... | @@ -2109,6 +2109,10 @@ citApp.controller('EntradaController', ['$scope', '$timeout', 'FileUploader', 'E |
2109 | 2109 | $scope.stepValid = false; |
2110 | 2110 | $scope.permitidoAvancar = false; |
2111 | 2111 | |
2112 | + } else if($scope.entrada.valorTotalNota < $scope.valorTotalLancado) { | |
2113 | + | |
2114 | + $scope.showAlert('error', $translate.instant('ALMOXARIFADO.VALIDACAO.NOTA_FISCAL_IGUAL_VALOR_INFORMADO')); | |
2115 | + $scope.permitidoAvancar = false; | |
2112 | 2116 | } |
2113 | 2117 | |
2114 | 2118 | return $scope.stepValid; | ... | ... |