diff --git a/src/js/controller.js b/src/js/controller.js index 8f04a98..7a9216f 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -129,7 +129,7 @@ angular.module('focaModalCobranza') $scope.getTotalCobrado = function(cobros) { var total = 0; for (var i = 0; i < cobros.length; i++) { - total += cobros[i].importe; + total += cobros[i].IMP; } return parseFloat(total.toFixed(2)); }; diff --git a/src/views/foca-modal-cobranza.html b/src/views/foca-modal-cobranza.html index 5e4934d..93cd773 100644 --- a/src/views/foca-modal-cobranza.html +++ b/src/views/foca-modal-cobranza.html @@ -97,9 +97,9 @@ - + - +