diff --git a/app/Models/Plant.php b/app/Models/Plant.php index c88940e..ca9bc27 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -53,6 +53,11 @@ class Plant extends Model return $this->hasMany(InvoiceValidation::class, 'plant_id', 'id'); } + public function stockDataMasters() + { + return $this->hasMany(StockDataMaster::class, 'plant_id', 'id'); + } + public function qualityValidations() { return $this->hasMany(QualityValidation::class, 'plant_id', 'id');