Commit 49507eeeafce419eb46031378060083362a243f8
Exists in
master
and in
2 other branches
Merge branch 'master' into 'develop'
Master(benjamin) See merge request !130
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -91,6 +91,10 @@ angular.module('focaCrearRemito').controller('remitoController', |
91 | 91 | label: 'remito', |
92 | 92 | val: newValue |
93 | 93 | }); |
94 | + focaBotoneraLateralService.setRutasPausadas({ | |
95 | + label: 'rutas', | |
96 | + val: 'venta-remito/crear' | |
97 | + }); | |
94 | 98 | }, true); |
95 | 99 | |
96 | 100 | $scope.seleccionarNotaPedido = function () { |
... | ... | @@ -509,6 +513,19 @@ angular.module('focaCrearRemito').controller('remitoController', |
509 | 513 | modalInstance.result.then( |
510 | 514 | function (cliente) { |
511 | 515 | |
516 | + if ($scope.remito.precioCondicion !== undefined) { | |
517 | + focaModalService | |
518 | + .alert('Debe agregar lista de precio de cliente actual') | |
519 | + .then(function () { | |
520 | + $scope.remito.precioCondicion = undefined; | |
521 | + $scope.$broadcast('removeCabecera', 'Precios y Condiciones:'); | |
522 | + $filter('filter')($scope.botonera, | |
523 | + { label: 'Precios y Condiciones' })[0].checked = false; | |
524 | + }) | |
525 | + .catch(function () { | |
526 | + }) | |
527 | + } | |
528 | + | |
512 | 529 | if (angular.equals({}, cliente.vendedor)) { |
513 | 530 | |
514 | 531 | focaModalService |