Revert "Actualizado resumen de arqueo"
This reverts commit 47e10ac3b8.
Volviendo a un estado anterior por problemas con los cambios sobre
jformatedtextfield, se usara otra estrategia
This commit is contained in:
@@ -116,6 +116,7 @@ public class ArqueoController {
|
||||
private void fillResumen() {
|
||||
this.updateResumenEfectivo();
|
||||
this.updateResumenDocumentos();
|
||||
this.updateResumenIngresos();
|
||||
this.updateResumenEgresos();
|
||||
this.updateResumenArqueo();
|
||||
}
|
||||
@@ -151,6 +152,14 @@ public class ArqueoController {
|
||||
documentosField.setText(String.valueOf(total));
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtiene el total de ingresos para la caja y lo muestra en el campo ingresosField
|
||||
*/
|
||||
private void updateResumenIngresos() {
|
||||
int total = this.ingresoDAO.getTotalIngreso(this.caja);
|
||||
this.view.getIngresosField().setText(String.valueOf(total));
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtiene el total de egresos y lo muestra en el campo de egresosField
|
||||
*/
|
||||
@@ -165,7 +174,7 @@ public class ArqueoController {
|
||||
private void updateResumenArqueo() {
|
||||
int totalEfectivo = Integer.parseInt(this.view.getEfectivoField().getText());
|
||||
int totalDocumentos = Integer.parseInt(this.view.getDocumentosField().getText());
|
||||
int totalIngresos = this.ingresoDAO.getTotalIngreso(this.caja);
|
||||
int totalIngresos = Integer.parseInt(this.view.getIngresosField().getText());
|
||||
int totalEgresos = Integer.parseInt(this.view.getEgresosField().getText());
|
||||
|
||||
int rendido = totalDocumentos + totalEfectivo + totalEgresos;
|
||||
|
||||
Reference in New Issue
Block a user