diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 4b66523..bff380a 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -48,6 +48,11 @@ class Plant extends Model return $this->hasMany(StickerMaster::class, 'plant_id', 'id'); } + public function weightValidations(): HasMany + { + return $this->hasMany(WeightValidation::class, 'plant_id', 'id'); + } + public function invoiceValidations() { return $this->hasMany(InvoiceValidation::class, 'plant_id', 'id');