Se limpio el metodo de TipoIngreso

Ademas se corrigio un bug que introduci al cambiar la forma en que el
wraper funcionaba
This commit is contained in:
Daniel Cortes
2019-03-07 19:17:19 -03:00
parent 7e31885c8a
commit cd6dbc0709
16 changed files with 133 additions and 103 deletions

View File

@@ -172,11 +172,11 @@ public class EstadoResultadoController extends BaseController {
private void fillGastosGenerales() {
TipoEgreso facturaGastosGenerales = DAOManager.getTipoEgresoDAO()
.findByNombre("Factura Gastos Generales").orElse(TipoEgreso.EMPTY);
.getByNombre("Factura Gastos Generales").orElse(TipoEgreso.EMPTY);
TipoEgreso gastoGeneralConBoleta = DAOManager.getTipoEgresoDAO()
.findByNombre("Gasto General Con Boleta").orElse(TipoEgreso.EMPTY);
.getByNombre("Gasto General Con Boleta").orElse(TipoEgreso.EMPTY);
TipoEgreso gastoGeneralSinRespaldo = DAOManager.getTipoEgresoDAO()
.findByNombre("Gasto General Sin Respaldo").orElse(TipoEgreso.EMPTY);
.getByNombre("Gasto General Sin Respaldo").orElse(TipoEgreso.EMPTY);
int cuentaCorrienteFactura = this.estadoResultado.getCuentaCorrienteFactura();
int cuentaCorrienteBoleta = this.estadoResultado.getCuentaCorrienteBoleta();
@@ -201,7 +201,7 @@ public class EstadoResultadoController extends BaseController {
}
private void fillGastosOperacionales() {
TipoEgreso tipoPagoPartime = DAOManager.getTipoEgresoDAO().findByNombre("Pago Partime").orElse(TipoEgreso.EMPTY);
TipoEgreso tipoPagoPartime = DAOManager.getTipoEgresoDAO().getByNombre("Pago Partime").orElse(TipoEgreso.EMPTY);
int costoVenta = this.estadoResultado.getCostoVenta();
int remuneraciones = this.estadoResultado.getRemuneraciones();