Controlador de bodega
This commit is contained in:
@@ -73,4 +73,20 @@ class Restaurante extends Model {
|
||||
public function cajas() {
|
||||
return $this->hasMany(Caja::class, 'restaurante_id');
|
||||
}
|
||||
|
||||
public function bodegaIngresos() {
|
||||
return $this->hasMany(BodegaIngreso::class, 'restaurante_id');
|
||||
}
|
||||
|
||||
public function bodegaEgresos() {
|
||||
return $this->hasMany(BodegaEgreso::class, 'restaurante_id');
|
||||
}
|
||||
|
||||
public function bodegaMovimientos() {
|
||||
return $this->hasMany(BodegaMovimiento::class, 'restaurante_id');
|
||||
}
|
||||
|
||||
public function bodegaActual() {
|
||||
return $this->hasMany(BodegaActual::class, 'restaurante_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user