Merge pull request 'Added invoice master id in alert mail rules' (#154) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Reviewed-on: #154
This commit was merged in pull request #154.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user