Commit 88ba9a27edfacafedea2331481270e3ac45f32b3
1 parent
7a947cbd5d
Exists in
develop
con alerta de bootstrap
Showing
2 changed files
with
13 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -1027,10 +1027,10 @@ angular.module('focaCrearRemito').controller('remitoController', |
1027 | 1027 | //Si el monto Total es superior a $10.000.000.000,00 desactivo el botón Guardar |
1028 | 1028 | $scope.comprobarTotal = function(total) { |
1029 | 1029 | if (total >= 10000000000) { |
1030 | - focaModalService.alert('El monto total debe ser menor a $10.000.000.000,00, elimina un artículo o reduce las cantidades'); | |
1030 | + $scope.auxComprobar = true; | |
1031 | 1031 | $( "#guardar" ).prop( "disabled", true ); |
1032 | - return; | |
1033 | 1032 | } else { |
1033 | + $scope.auxComprobar = false; | |
1034 | 1034 | $( "#guardar" ).prop( "disabled", false ); |
1035 | 1035 | } |
1036 | 1036 | }; |
src/views/remito.html
... | ... | @@ -221,6 +221,17 @@ |
221 | 221 | </table> |
222 | 222 | </div> |
223 | 223 | </div> |
224 | + <div | |
225 | + class="col-12 col-md-10 col-lg-10 p-0" | |
226 | + ng-if="auxComprobar"> | |
227 | + <div | |
228 | + class="alert alert-danger ml-auto mt-2" | |
229 | + role="alert" | |
230 | + style="width: 60%;"> | |
231 | + <i class="fa fa-exclamation-triangle fa-lg"></i> | |
232 | + El monto total debe ser menor a $10.000.000.000,00, elimina un artículo o reduce las cantidades | |
233 | + </div> | |
234 | + </div> | |
224 | 235 | </div> |
225 | 236 | </div> |
226 | 237 | <div class="row d-md-none fixed-bottom"> |