mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 20:51:09 -04:00
v6 update
This commit is contained in:
@ -9,13 +9,8 @@ class TaxType extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'percent',
|
||||
'company_id',
|
||||
'compound_tax',
|
||||
'collective_tax',
|
||||
'description',
|
||||
protected $guarded = [
|
||||
'id',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@ -23,6 +18,9 @@ class TaxType extends Model
|
||||
'compound_tax' => 'boolean'
|
||||
];
|
||||
|
||||
public const TYPE_GENERAL = 'GENERAL';
|
||||
public const TYPE_MODULE = 'MODULE';
|
||||
|
||||
public function taxes()
|
||||
{
|
||||
return $this->hasMany(Tax::class);
|
||||
|
||||
Reference in New Issue
Block a user