Aniadidas opciones varias y corregidos bugs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package Logica;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Vector;
|
||||
|
||||
public class Gestion implements Serializable{
|
||||
@@ -101,6 +102,24 @@ public class Gestion implements Serializable{
|
||||
}
|
||||
}
|
||||
|
||||
public void editarTransaccionFecha(String nombreViejo, LocalDate fecha) {
|
||||
for(Transaccion elemento:this.gestiones) {
|
||||
if(elemento.getNombre().equals(nombreViejo)) {
|
||||
elemento.setFecha(fecha);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void editarTransaccionDiero(String nombreViejo, float dinero) {
|
||||
for(Transaccion elemento:this.gestiones) {
|
||||
if(elemento.getNombre().equals(nombreViejo)) {
|
||||
elemento.setPrecio(dinero);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Devuelve verdadero si es un ingerso y falso si es un gasto
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user