public function noIdentificados($cuenta_bancaria_id, $aaaa, $mm)
 {
     $fecha = FechasUtility::fechasConciliacion($aaaa, $mm);
     $this->fecha_inicio = $fecha['inicial'];
     $this->fecha_fin = $fecha['final'];
     /**
      * @todo Agregar campo fecha_identificado a tabla no_identificados
      * @todo Incluir identificados c/fecha_identificado(año/mes) mayor al consultado
      */
     $no_identificados = NoIdentificado::where('cuenta_bancaria_id', $cuenta_bancaria_id)->whereBetween('fecha', [$this->fecha_inicio, $this->fecha_fin])->where('identificado', 0)->orderBy('fecha')->get();
     return view('conciliacion.noIdentificados', compact('no_identificados'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(Request $request)
 {
     /**
      * @todo Determinar Cuentas bancarias accesibles por el usuario y seleccionar en default la primera
      */
     $cuenta_bancaria_id = $request->get('cuenta_bancaria_id');
     if (empty($cuenta_bancaria_id)) {
         $cuenta_bancaria_id = 1;
     }
     $no_identificados = NoIdentificado::where('cuenta_bancaria_id', $cuenta_bancaria_id)->with('cuentaBancaria')->get();
     $cuentas_bancarias = CuentaBancaria::all()->lists('cuenta_tipo_urg', 'id')->all();
     return view('no_identificados.indexNoIdentificados', compact('no_identificados', 'cuentas_bancarias', 'cuenta_bancaria_id'));
 }
Exemplo n.º 3
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create($tipo, $egreso_id = null, $opciones = null)
 {
     if ($tipo == 'ingreso' && !empty($egreso_id)) {
         $egreso = Egreso::find($egreso_id);
         $egreso->load('rms.cog');
         $arr_rms = [];
         foreach ($egreso->rms as $rm) {
             $arr_rms[$rm->id] = ['rm' => $rm->rm, 'cog' => $rm->cog->cog];
         }
         /**
          * @todo Consultar otras posibles identificaciones del deósito para determinar solo el saldo x identificar
          */
         $no_identificados = NoIdentificado::where('identificado', 0)->orderBy('fecha', 'DESC')->get()->lists('fecha_monto', 'id');
         return view('polizas.formIngresoReemEgreso', compact('egreso', 'no_identificados', 'arr_rms'));
     } else {
         return redirect()->back();
     }
 }