Arreglado horrible error con el parseo matematico

This commit is contained in:
Daniel Cortes
2019-01-06 13:02:02 -03:00
parent b8d66f0472
commit 3ee8b5c10c
6 changed files with 156 additions and 112 deletions

View File

@@ -166,9 +166,10 @@ public class ArqueoController {
private void updateResumenArqueo() {
int totalEfectivo = this.view.getEfectivoField().getValue();
int totalDocumentos = this.view.getDocumentosField().getValue();
int totalIngresos = ingresoDAO.getTotalIngreso(this.caja);
int totalEgresos = this.view.getEgresosField().getValue();
int totalIngresos = ingresoDAO.getTotalIngreso(this.caja);
int rendido = totalDocumentos + totalEfectivo + totalEgresos;
int diferencia = rendido - totalIngresos;