Commit 04b92fde098c2034c9896682d63adb3ad8a6f27b
1 parent
46559030d9
Exists in
master
and in
2 other branches
Formato de Nº en remito
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -391,14 +391,15 @@ angular.module('focaCrearHojaRuta').controller('hojaRutaCtrl', |
391 | 391 | function (data) { |
392 | 392 | var remitoNumero; |
393 | 393 | data.data.remitos.forEach(function(idRemitos) { |
394 | - remitoNumero = idRemitos.numeroRemito; | |
394 | + remitoNumero = idRemitos; | |
395 | 395 | }); |
396 | 396 | focaModalService.alert( |
397 | 397 | 'Hoja ruta creada Nº: ' + |
398 | 398 | $filter('rellenarDigitos')(data.data.sucursal, 4) + '-' + |
399 | 399 | $filter('rellenarDigitos')(data.data.numeroHojaRuta, 8) + |
400 | - ' con nº de remito abierto: ' + | |
401 | - $filter('rellenarDigitos')(remitoNumero) | |
400 | + '\nRemito Abierto Nº: ' + | |
401 | + $filter('rellenarDigitos')(remitoNumero.sucursal, 4) + '-' + | |
402 | + $filter('rellenarDigitos')(remitoNumero.numeroRemito,8) | |
402 | 403 | ); |
403 | 404 | |
404 | 405 | config(); |