public function getDesactive($cotizacion_venta_id)
 {
     $country = CotizacionVenta::find($cotizacion_venta_id);
     $country->status = 'Inactivo';
     $country->save();
     return Redirect::back();
 }
 public function getIndex()
 {
     $ordenes_compra_cliente_act = OrdenCompraCliente::whereStatus('Activo')->orderBy('fecha_emision')->get();
     $ordenes_compra_cliente_inact = OrdenCompraCliente::whereStatus('Inactivo')->orderBy('fecha_emision')->get();
     $cotizaciones_venta = CotizacionVenta::whereStatus('Activo')->orderBy('numero', 'DESC')->lists('numero', 'id');
     $vendedores = Vendedor::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id');
     $clientes = Cliente::whereStatus('Activo')->orderBy('rut')->lists('rut', 'id');
     return View::make('sgrm.ordenes_compra_cliente.index')->with('cotizaciones_venta', $cotizaciones_venta)->with('vendedores', $vendedores)->with('clientes', $clientes)->with('ordenes_compra_cliente_act', $ordenes_compra_cliente_act)->with('ordenes_compra_cliente_inact', $ordenes_compra_cliente_inact);
 }