update marketing
All checks were successful
All checks were successful
This commit is contained in:
35
app/Models/VatTransaction.php
Normal file
35
app/Models/VatTransaction.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class VatTransaction extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'business_id',
|
||||
'vat_id',
|
||||
'vat_rate',
|
||||
'vat_amount',
|
||||
'vatable_id',
|
||||
'vatable_type',
|
||||
];
|
||||
|
||||
public function vatable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
}
|
||||
|
||||
public function vat()
|
||||
{
|
||||
return $this->belongsTo(Vat::class);
|
||||
}
|
||||
|
||||
public function business()
|
||||
{
|
||||
return $this->belongsTo(Business::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user