<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class TaxMasterSub extends Model
{
    use HasFactory;

    protected $fillable = [
        'tax_master_id',
        'name',
        'percentage',
        'calculation',
        'description',
        'priority',
        'default',
        'status',
        'code'
    ];
    public function getTaxMaster()
    {
        return $this->belongsTo(TaxMaster::class,'tax_master_id');
    }
}
