<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SupplierReturn extends Model
{
    protected $table = 'supplier_returns';
    public $timestamps = false;

    protected $fillable = [
        'return_no', 'purchase_id', 'supplier_name', 'return_date', 'notes', 'total', 'refund_method'
    ];

    public function items()
    {
        return $this->hasMany(SupplierReturnItem::class);
    }
}
