Last Movie You've Seen
- TV & Home Theater
- 16 Replies
home, let's see Expandables with my mother and her boyfriend the other night,
at the theaters Super League of pets.
at the theaters Super League of pets.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
async getGastos() {
const uid = await this.auth.getUid();
const ruta = 'Usuarios/' + uid + '/Gastos';
this.firebaseService.getCollection<Gasto>(ruta).subscribe(res => {
this.gastos = res;
// this.gastos.forEach(gasto => {
// gasto.monto_gasto;
// });
});
this.setTransc()
}
async getIngresos() {
const uid = await this.auth.getUid();
const ruta = 'Usuarios/' + uid + '/Ingresos';
this.firebaseService.getCollection<Ingreso>(ruta).subscribe(res => {
this.ingresos = res;
// this.ingresos.forEach(ingreso => {
// ingreso.monto_ingreso
// });
this.setTransc()
});
}
setTransc() {
let sumaGastos = 0;
this.gastos.forEach(gasto => {
sumaGastos += gasto.monto_gasto
console.log("ggg", sumaGastos);
});
let sumaIngresos = 0;
this.ingresos.forEach((ingreso, i) => {
sumaIngresos += ingreso.monto_ingreso
console.log("iii", sumaIngresos);
});
}
async todo(){
await this.getGastos();
await this.getIngresos();
}