public function updateObservacionSeleccionador()
 {
     $input = Request::createFromGlobals();
     OrdenCompra::find($input->id)->update(['id_seleccionador_cotizacion' => $_SESSION['user_id'], 'observacion_seleccionador_cotizacion' => $input->motivo]);
 }
 public function updateBodega()
 {
     $input = Request::createFromGlobals();
     $orden_compra = OrdenCompra::find($input->id)->update(['bodega' => $input->bodega]);
 }
예제 #3
0
 public function actualizarObservacion()
 {
     $input = Request::createFromGlobals();
     OrdenCompra::find($input->id)->update(['observacion_aprobador_cotizacion' => $input->observacion_aprobador_cotizacion]);
 }
예제 #4
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $record = OrdenCompra::find($id)->delete();
     return new AjaxResponse('success', '');
 }