Controlador de bodega

This commit is contained in:
2021-07-20 03:17:55 -04:00
parent a5b91eb585
commit 245c8bfa4b
9 changed files with 242 additions and 4 deletions

View File

@@ -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');
}
}