funcion/planilla-pedidos-total #33

Merged
atasistro merged 25 commits from funcion/planilla-pedidos-total into master 2024-10-08 20:07:57 -03:00
Showing only changes of commit 48e1a04bae - Show all commits

View file

@ -16,7 +16,7 @@ class Producto extends Model
{
return $this->belongsToMany('App\Subpedido','productos_subpedidos')->withPivot(["cantidad"]);
}
public function proveedor()
{
return $this->belongsTo('App\Proveedor');
@ -33,10 +33,6 @@ class Producto extends Model
return $request->has('paginar') && intval($request->input('paginar')) ? intval($request->input('paginar')) : self::$paginarPorDefecto;
}
public static function productosIDFila() {
return Producto::pluck('fila', 'id',)->all();
}
public static function productosFilaID() {
return Producto::pluck('id', 'fila',)->all();
}
@ -44,5 +40,5 @@ class Producto extends Model
public static function productosIDNombre() {
return Producto::pluck('nombre', 'id',)->all();
}
}