Commit d430a54c1a9adffebdbbea6b828cee5ac507b045

Authored by joyfas.silva
1 parent 16058c9a
Exists in master

{Redmine tarefa-4530}

cit-tabelas-corp-web/src/main/webapp/assets/js/angular/custom/controller/UnidadeMedidaController.js
... ... @@ -111,12 +111,4 @@ citApp.controller('UnidadeMedidaController', ['$scope', 'UnidadeMedidaRepository
111 111 }
112 112 });
113 113 };
114   -
115   - $scope.aplicarValidacaoDecimal = function(){
116   - if($scope.unidadeMedida.quantidadeDecimal){
117   - $scope.unidadeMedida.quantidadeDecimal = parseFloat($scope.unidadeMedida.quantidadeDecimal).toFixed(2);
118   - }else{
119   - $scope.unidadeMedida.quantidadeDecimal = '';
120   - }
121   - };
122 114 }]);
123 115 \ No newline at end of file
... ...
cit-tabelas-corp-web/src/main/webapp/html/unidadeMedida/unidadeMedidaEdit.html
... ... @@ -79,7 +79,7 @@
79 79 <label-input-number ng-id="unidadeMedida.quantidadeInteiro" ng-model="unidadeMedida.quantidadeInteiro" ng-custom-maxlength="4" ng-type="text" ng-label="CORPORATIVO.LABEL.QUANTIDADE_PADRAO" ng-obrigatorio="showInteiro" form="unidadeMedidaForm" ng-disabled="unidadeMedida.isUnidadePadrao || !edit"/>
80 80 </div>
81 81 <div class="col-md-4" ng-show="showDecimal">
82   - <label-input-decimal ng-precisao="decimal" ng-custom-maxlength="11" ng-evento-blur="aplicarValidacaoDecimal" ng-id="unidadeMedida.quantidadeDecimal" ng-model="unidadeMedida.quantidadeDecimal" ng-label="CORPORATIVO.LABEL.QUANTIDADE_PADRAO" ng-obrigatorio="showDecimal" form="unidadeMedidaForm" ng-disabled="unidadeMedida.isUnidadePadrao || !edit"/>
  82 + <label-input-decimal ng-precisao="decimal" ng-custom-maxlength="9" ng-evento-blur="aplicarValidacaoDecimal" ng-id="unidadeMedida.quantidadeDecimal" ng-model="unidadeMedida.quantidadeDecimal" ng-label="CORPORATIVO.LABEL.QUANTIDADE_PADRAO" ng-obrigatorio="showDecimal" form="unidadeMedidaForm" ng-disabled="unidadeMedida.isUnidadePadrao || !edit"/>
83 83 </div>
84 84 </div>
85 85 </fieldset>
... ...