Commit 2e6999d1342da82b594d517b27ebbf94aa103088
1 parent
8d8b289fd4
Exists in
master
fuera simbolos moneda
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -176,7 +176,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
176 | 176 | }); |
177 | 177 | $scope.$broadcast('addCabecera', { |
178 | 178 | label: 'Cotizacion:', |
179 | - valor: $scope.notaPedido.cotizacion.VENDEDOR | |
179 | + valor: $filter('number')($scope.notaPedido.cotizacion.VENDEDOR, '2') | |
180 | 180 | }); |
181 | 181 | crearNotaPedidoService.getNumeroNotaPedido().then( |
182 | 182 | function(res) { |
... | ... | @@ -236,7 +236,8 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
236 | 236 | }, |
237 | 237 | { |
238 | 238 | label: 'Cotizacion:', |
239 | - valor: notaPedido.cotizacion.VENDEDOR | |
239 | + valor: $filter('number')(notaPedido.cotizacion.VENDEDOR, | |
240 | + '2') | |
240 | 241 | }, |
241 | 242 | { |
242 | 243 | label: 'Cliente:', |
... | ... | @@ -648,7 +649,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
648 | 649 | }); |
649 | 650 | $scope.$broadcast('addCabecera', { |
650 | 651 | label: 'Cotizacion:', |
651 | - valor: cotizacion.VENDEDOR | |
652 | + valor: $filter('number')(cotizacion.VENDEDOR, '2') | |
652 | 653 | }); |
653 | 654 | } |
654 | 655 | }, function() { |
src/views/nota-pedido.html
... | ... | @@ -98,13 +98,13 @@ |
98 | 98 | ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" |
99 | 99 | ng-hide="articulo.editPrecio" |
100 | 100 | ng-bind="articulo.precio | |
101 | - currency: notaPedido.moneda.SIMBOLO : 4"> | |
101 | + number : 4"> | |
102 | 102 | </i> |
103 | 103 | </td> |
104 | 104 | <td |
105 | 105 | class="col text-right" |
106 | 106 | ng-bind="(articulo.precio * articulo.cantidad) | |
107 | - currency: notaPedido.moneda.SIMBOLO"> | |
107 | + number: 2"> | |
108 | 108 | </td> |
109 | 109 | <td class="text-center"> |
110 | 110 | <button |
... | ... | @@ -159,8 +159,7 @@ |
159 | 159 | <td class="col text-right"> |
160 | 160 | <input |
161 | 161 | class="form-control" |
162 | - ng-value="articuloACargar.precio | | |
163 | - currency: notaPedido.moneda.SIMBOLO : 4" | |
162 | + ng-value="articuloACargar.precio | number: 2" | |
164 | 163 | ng-show="idLista != -1" |
165 | 164 | readonly |
166 | 165 | > |
... | ... | @@ -179,7 +178,7 @@ |
179 | 178 | <td class="col text-right"> |
180 | 179 | <input |
181 | 180 | class="form-control" |
182 | - ng-value="getSubTotal() | currency: notaPedido.moneda.SIMBOLO" | |
181 | + ng-value="getSubTotal() | number: 2" | |
183 | 182 | readonly |
184 | 183 | ></td> |
185 | 184 | <td class="text-center align-middle"> |