<?php

namespace App\Models\Accounts\Expense;

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

class DebitMemoItem extends Model
{
    use HasFactory;

    protected $table = 'ac_debitmemo_items';

    protected $dates = ['deleted_at'];

         /**
     * Attributes that should be mass-assignable.
     *
     * @var array
     */
    protected $fillable = ['company_id','chartid','price','total','debit_memo_id'];


    public function chartofaccount(){

        return $this->hasOne('App\Models\Accounts\Accounting\Chartofaccounts','id','chartid');

    }
}
