Commit 1452f40f9f87153e025f81a43029fdee0460b591
Exists in
master
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-filtros!2
Showing
1 changed file
Show diff stats
src/js/app.js
| 1 | angular.module('focaFiltros', []) | 1 | angular.module('focaFiltros', []) |
| 2 | .filter('comprobante', function() { | 2 | .filter('comprobante', function() { |
| 3 | return function(valores) { | 3 | return function(valores) { |
| 4 | return (Array(5).join('0') + valores[0]).slice(-5) + '-' + | 4 | return (Array(4).join('0') + valores[0]).slice(-4) + '-' + |
| 5 | (Array(8).join('0') + valores[1]).slice(-8); | 5 | (Array(8).join('0') + valores[1]).slice(-8); |
| 6 | }; | 6 | }; |
| 7 | }); | 7 | }); |
| 8 | 8 |