<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SaleItem extends Model { protected $fillable=['sale_id','fuel_type_id','tank_id','meter_start','meter_end','quantity','unit_price','cost_price','total','cost_total','profit']; public function sale(){return $this->belongsTo(Sale::class);} public function fuelType(){return $this->belongsTo(FuelType::class);} public function tank(){return $this->belongsTo(Tank::class);} }
