<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class GoodsReceiptLine extends Model {
    protected $guarded = ['id'];
    public $timestamps = false;
    public function receipt() { return $this->belongsTo(GoodsReceipt::class, 'goods_receipt_id'); }
    public function item() { return $this->belongsTo(StockItem::class, 'item_id'); }
    public function product() { return $this->belongsTo(Product::class); }
}
