v6 update

This commit is contained in:
Mohit Panjwani
2022-01-10 16:06:17 +05:30
parent b770e6277f
commit bdea879273
722 changed files with 19047 additions and 9186 deletions

View File

@ -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);