From c8fafeb140cc7c3e4e4911fdfebcbbf4256b7009 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 11 Mar 2026 09:03:47 +0530 Subject: [PATCH] Added stock data masters in plant model file --- app/Models/Plant.php | 5 +++++ 1 file changed, 5 insertions(+) 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'); -- 2.49.1