<?php

namespace App\Models\Lookups;

use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class AdjustmentReason extends Model
{
    use BelongsToTenant;

    public const COUNT_ERROR = 'COUNT_ERROR';

    public const THEFT = 'THEFT';

    public const FOUND = 'FOUND';

    public const SUPPLIER_CORRECTION = 'SUPPLIER_CORRECTION';

    public const OTHER = 'OTHER';

    protected $fillable = ['code', 'name', 'sort_order', 'is_active'];

    protected function casts(): array
    {
        return [
            'is_active' => 'boolean',
            'sort_order' => 'integer',
        ];
    }
}
