<?php

namespace Modules\Vrc\Entities;

use Illuminate\Database\Eloquent\Model;

class VrcEstimateItem extends Model
{
    protected $table = 'vrc_estimate_items';

    protected $fillable = [
        'business_id', 'estimate_id', 'kind', 'ref_id', 'description', 'hsn_sac', 'qty',
        'unit_price', 'discount', 'discount_type', 'tax_rate_id', 'line_total', 'sort_order',
    ];

    protected $casts = [
        'qty'        => 'decimal:2',
        'unit_price' => 'decimal:2',
        'discount'   => 'decimal:2',
        'line_total' => 'decimal:2',
    ];
}
