<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Traits\ModelTimeFormat;

use App\Traits\ModelLogChanging;

class WaybillCalculate extends Model
{
    use ModelLogChanging;

    use ModelTimeFormat;

    protected $fillable=[
        'waybill_id','total_expense','total_receivable','gross_margin','gross_profit_rate'
    ];

    public function waybill(){
        return $this->belongsTo('App\Waybill','waybill_id','id');
    }
}
