From efaf876df3229eb22701cafad499ca00bf5049fc Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 3 Jan 2026 16:36:54 +0530 Subject: [PATCH] Added invoice master id in alert mail rules --- app/Models/AlertMailRule.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Models/AlertMailRule.php b/app/Models/AlertMailRule.php index 2d7c358..be6c00a 100644 --- a/app/Models/AlertMailRule.php +++ b/app/Models/AlertMailRule.php @@ -13,6 +13,7 @@ class AlertMailRule extends Model protected $fillable = [ 'module', 'plant', + 'invoice_master_id', 'rule_name', 'email', 'cc_emails', @@ -23,8 +24,9 @@ class AlertMailRule extends Model 'updated_by', ]; - // public function plant(): BelongsTo - // { - // return $this->belongsTo(Plant::class); - // } + public function invoiceMaster(): BelongsTo + { + return $this->belongsTo(InvoiceMaster::class); + //return $this->belongsTo(InvoiceMaster::class, 'invoice_master_id'); + } } -- 2.49.1