Commit c60a8e4bb4833fd6f0221ed5e2d1fc5d25b7a146

Authored by Jose Pinto
1 parent 255d797e8d
Exists in master and in 1 other branch develop

refactor - propiedades cobranzas

src/js/controller.js
... ... @@ -129,7 +129,7 @@ angular.module('focaModalCobranza')
129 129 $scope.getTotalCobrado = function(cobros) {
130 130 var total = 0;
131 131 for (var i = 0; i < cobros.length; i++) {
132   - total += cobros[i].importe;
  132 + total += cobros[i].IMP;
133 133 }
134 134 return parseFloat(total.toFixed(2));
135 135 };
src/views/foca-modal-cobranza.html
... ... @@ -97,9 +97,9 @@
97 97 <tr class="selectable"
98 98 ng-repeat="(key, cobranza) in currentPageCobranzas"
99 99 ng-click="select(cobranza)">
100   - <td ng-bind="cobranza.fecha | date : 'dd/MM/yyyy'"></td>
  100 + <td ng-bind="cobranza.FEC | date : 'dd/MM/yyyy'"></td>
101 101 <td ng-bind="cobranza.cliente.NOM"></td>
102   - <td ng-bind="[cobranza.puntoVenta, cobranza.numeroRecibo] | comprobante"></td>
  102 + <td ng-bind="[cobranza.PVE, cobranza.NCO] | comprobante"></td>
103 103 <td ng-bind="getTotalCobrado(cobranza.cobros) | number: 2"></td>
104 104 <td>
105 105 <button