feat: add whatsapp_number field to suppliers, customers, users
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
de3f4ceae6
commit
92a2eb120f
6 files changed
+93
-2
No files matched your search
@@ -12,7 +12,7 @@ class Supplier extends Model
|
||||
protected $fillable = [
|
||||
'supplier_code', 'name', 'category',
|
||||
'contact_person', 'email', 'secondary_email',
|
||||
'phone', 'phone2', 'whatsapp',
|
||||
'phone', 'phone2', 'whatsapp', 'whatsapp_number',
|
||||
'address', 'website',
|
||||
'tax_number', 'credit_terms', 'credit_days',
|
||||
'is_active', 'remarks',
|
||||
@@ -20,6 +20,11 @@ class Supplier extends Model
|
||||
|
||||
protected $casts = ['is_active' => 'boolean'];
|
||||
|
||||
public function routeNotificationFor(string $channel, mixed $notification = null): ?string
|
||||
{
|
||||
return $this->whatsapp_number;
|
||||
}
|
||||
|
||||
public function purchaseOrders()
|
||||
{
|
||||
return $this->hasMany(PurchaseOrder::class);
|
||||
|
||||
Reference in new issue
Block a user