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