Commit 3808c081186169805d0a875122e147007cdbc070
1 parent
57bcda2eec
Exists in
master
and in
1 other branch
Filtradas facturas para que no se vean los remitos.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -22,7 +22,10 @@ angular.module('focaModalResumenCuenta') |
22 | 22 | focaModalResumenCuentaService |
23 | 23 | .getResumenCuenta(cliente.COD, $scope.fechaDesde) |
24 | 24 | .then(function (res) { |
25 | - res.data.facturas = calcularSaldos(res.data.facturas); | |
25 | + res.data.facturas = res.data.facturas.filter(function(factura){ | |
26 | + return factura.TCO != "RC" && factura.TCO != "RE" | |
27 | + }) | |
28 | + res.data.facturas = calcularSaldos(res.data.facturas); | |
26 | 29 | $scope.generado = true; |
27 | 30 | $scope.results = res.data; |
28 | 31 | $scope.results.fechaDesde = $scope.fechaDesde; |