Commit 412b7dc44431959a68423fb83c3358f64b00e97d
1 parent
4bfbed38
Exists in
master
[Redmine Atendimento #4827]Alteração endereço estoque
Showing
2 changed files
with
14 additions
and
3 deletions
Show diff stats
cit-almoxarifado-web/src/main/webapp/assets/js/angular/custom/controller/TransferenciaEnderecoEstoqueController.js
... | ... | @@ -108,6 +108,15 @@ citApp.controller('TransferenciaEnderecoEstoqueController', ['$scope', 'Transfer |
108 | 108 | } |
109 | 109 | $scope.listEnderecoEstoqueOrigem.push(materialLocalEstoque.originalElement); |
110 | 110 | }); |
111 | + | |
112 | + if($scope.transferenciaEnderecoEstoque.material.unidadeArmazenamento.tipoNumerico.codigo == 2){ | |
113 | + $scope.showInteiro = false; | |
114 | + $scope.showDecimal = true; | |
115 | + }else{ | |
116 | + $scope.showDecimal = false; | |
117 | + $scope.showInteiro = true; | |
118 | + } | |
119 | + | |
111 | 120 | $scope.carregarListaDestino(); |
112 | 121 | $scope.setLoading(false); |
113 | 122 | }else{ | ... | ... |
cit-almoxarifado-web/src/main/webapp/html/transferenciaEnderecoEstoque/transferenciaEnderecoEstoqueEdit.html
... | ... | @@ -81,9 +81,11 @@ |
81 | 81 | </div> |
82 | 82 | |
83 | 83 | <div class="row"> |
84 | - <div class="col-md-6"> | |
85 | - <label-input-number ng-show="transferenciaEnderecoEstoque.material.unidadeArmazenamento.tipoNumerico.codigo != 2" ng-id="transferenciaEnderecoEstoque.quantidade" ng-model="transferenciaEnderecoEstoque.quantidade" ng-custom-maxlength="4" ng-type="text" ng-label="ALMOXARIFADO.LABEL.QUANTIDADE_TRANSFERENCIA" ng-obrigatorio="true" form="transferenciaEnderecoEstoqueForm" ng-disabled="!edit || edit && !transferenciaEnderecoEstoque.enderecoEstoqueDestino"/> | |
86 | - <label-input-decimal ng-show="transferenciaEnderecoEstoque.material.unidadeArmazenamento.tipoNumerico.codigo == 2" ng-precisao="decimal" ng-custom-maxlength="11" ng-evento-blur="aplicarValidacaoDecimal" ng-id="transferenciaEnderecoEstoque.quantidade" ng-model="transferenciaEnderecoEstoque.quantidade" ng-label="ALMOXARIFADO.LABEL.QUANTIDADE_TRANSFERENCIA" ng-obrigatorio="true" form="transferenciaEnderecoEstoqueForm"/> | |
84 | + <div class="col-md-6" ng-if="showInteiro"> | |
85 | + <label-input-number ng-id="transferenciaEnderecoEstoque.quantidade" ng-model="transferenciaEnderecoEstoque.quantidade" ng-custom-maxlength="4" ng-type="text" ng-label="ALMOXARIFADO.LABEL.QUANTIDADE_TRANSFERENCIA" ng-obrigatorio="true" form="transferenciaEnderecoEstoqueForm" ng-disabled="!edit || edit && !transferenciaEnderecoEstoque.enderecoEstoqueDestino"/> | |
86 | + </div> | |
87 | + <div class="col-md-6" ng-if="showDecimal"> | |
88 | + <label-input-decimal ng-precisao="decimal" ng-custom-maxlength="11" ng-evento-blur="aplicarValidacaoDecimal" ng-id="transferenciaEnderecoEstoque.quantidade" ng-model="transferenciaEnderecoEstoque.quantidade" ng-label="ALMOXARIFADO.LABEL.QUANTIDADE_TRANSFERENCIA" ng-obrigatorio="true" form="transferenciaEnderecoEstoqueForm" ng-disabled="!edit || edit && !transferenciaEnderecoEstoque.enderecoEstoqueDestino"/> | |
87 | 89 | </div> |
88 | 90 | <div class="col-sm-6"> |
89 | 91 | <label-input-data ng-id="transferenciaEnderecoEstoque.dataTransferencia" form="transferenciaEnderecoEstoqueForm" ng-disabled="!edit" ng-label="ALMOXARIFADO.LABEL.DATA_TRANSFERENCIA" ng-obrigatorio="edit" ng-model="transferenciaEnderecoEstoque.dataTransferencia" /> | ... | ... |