public function run() { Model::unguard(); Cuenta::create(['cuenta' => 'Presupuesto', 'tipo' => 'Ejecutora']); Cuenta::create(['cuenta' => 'ReintegroDF', 'tipo' => 'Ejecutora']); Cuenta::create(['cuenta' => 'Recursos Presupuesto (Ministración)', 'tipo' => 'Ejecutora']); Cuenta::create(['cuenta' => 'Comisiones Bancarias', 'tipo' => 'BancoCargo']); Cuenta::create(['cuenta' => 'Abono Bancario', 'tipo' => 'BancoAbono']); Cuenta::create(['cuenta' => 'Inversión', 'tipo' => 'Banco']); Cuenta::create(['cuenta' => 'Intereses', 'tipo' => 'BancoAbono']); Cuenta::create(['cuenta' => 'Facturación', 'tipo' => 'Banco']); Cuenta::create(['cuenta' => 'Equivocado', 'tipo' => 'Banco']); Cuenta::create(['cuenta' => 'No Identificado', 'tipo' => 'BancoAbono']); Cuenta::create(['cuenta' => 'PROMEP', 'tipo' => 'ComunOtro']); Cuenta::create(['cuenta' => 'CA', 'tipo' => 'PuenteExt']); Cuenta::create(['cuenta' => 'Donativo', 'tipo' => 'PuenteOtro']); Cuenta::create(['cuenta' => 'Congreso', 'tipo' => 'PuenteOtro']); Cuenta::create(['cuenta' => 'Convenio', 'tipo' => 'PuenteOtro']); Cuenta::create(['cuenta' => 'Taller', 'tipo' => 'PuenteOtro']); Cuenta::create(['cuenta' => 'Diplomado', 'tipo' => 'PuenteOtro']); Cuenta::create(['cuenta' => 'Devolucion Recursos', 'tipo' => 'PuenteDev']); Cuenta::create(['cuenta' => 'Varios', 'tipo' => 'ComunOtro']); Cuenta::create(['cuenta' => 'Aportaciones Especiales', 'tipo' => 'PuenteOtro']); Cuenta::create(['cuenta' => 'Fondo Fijo de Caja', 'tipo' => 'ComunOtro']); Cuenta::create(['cuenta' => 'Apertura de Cuenta', 'tipo' => 'BancoAbono']); Cuenta::create(['cuenta' => 'I0110/186/10 (MUJERES)', 'tipo' => 'PuenteExt']); Cuenta::create(['cuenta' => 'Retención ISR', 'tipo' => 'Ejecutora']); Cuenta::create(['cuenta' => 'Apertura de Cuenta', 'tipo' => 'ComunOtro']); Cuenta::create(['cuenta' => 'Devolución de Cheque', 'tipo' => 'ComunOtro']); Cuenta::create(['cuenta' => 'CANCELADO', 'tipo' => 'Banco']); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $egreso = Egreso::findOrFail($id); $cuentas = Cuenta::whereIn('tipo', ['Ejecutora'])->lists('cuenta', 'id')->all(); $cuentas_bancarias = CuentaBancaria::all()->lists('cuenta_tipo_urg', 'id'); $benefs = Benef::all()->sortBy('benef')->lists('benef', 'id'); $fecha = null; $cheque = null; return view('egresos.formEgreso', compact('egreso', 'fecha', 'cheque', 'cuentas', 'cuentas_bancarias', 'benefs')); }