<?php

namespace App\Models;

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

class TaxCalculation extends Model
{
    use HasFactory;
    protected $fillable = [
        'name',
        'voucher_master_id',
        'calculation_type',
        'description',
        'priority',
        'default',
        'status',
    ];
    public function getVoucher()
    {
        return $this->belongsTo(VoucherMaster::class,'voucher_master_id');
    }

}
