private function getIngresos()
 {
     $ingresos = Ingreso::where('cuenta_bancaria_id', $this->cuenta_bancaria_id)->whereBetween('fecha', [$this->fecha_inicio, $this->fecha_fin])->with('cuenta')->get();
     return $ingresos;
 }
예제 #2
0
 private function crearIngreso($i_legacy)
 {
     $cuenta_id = $this->getCuentaId($i_legacy->concepto);
     $ingreso = Ingreso::create(['cuenta_bancaria_id' => $this->cuenta_bancaria->id, 'poliza' => $i_legacy->ingreso_id, 'fecha' => $i_legacy->fecha, 'cuenta_id' => $cuenta_id, 'concepto' => '(' . $i_legacy->concepto . ') ' . $i_legacy->cmt, 'monto' => round($i_legacy->monto, 2)]);
 }