diff --git a/app/Models/VendorContact.php b/app/Models/VendorContact.php index 5c2e373c8311..2b2fcd3f1252 100644 --- a/app/Models/VendorContact.php +++ b/app/Models/VendorContact.php @@ -136,4 +136,8 @@ class VendorContact extends Authenticatable implements HasLocalePreference ->withTrashed() ->where('id', $this->decodePrimaryKey($value))->firstOrFail(); } + public function purchase_order_invitations(): \Illuminate\Database\Eloquent\Relations\HasMany + { + return $this->hasMany(PurchaseOrderInvitation::class); + } }