public function postCreate() { $nota_venta = new NotaVenta(); $nota_venta->orden_compra_id = Input::get('orden_compra_id'); $nota_venta->cliente_id = Input::get('cliente_id'); $nota_venta->vendedor_id = Input::get('vendedor_id'); $nota_venta->observacion = Input::get('observacion'); $nota_venta->fecha_emision = date("Y-m-d H:i:s"); $nota_venta->fecha_entrega_real = Input::get('fecha_entrega'); $nota_venta->status = 'Activo'; $nota_venta->save(); return Redirect::action('SGRM\\NotasVentaController@getIndex'); }