33 lines
694 B
PHP
33 lines
694 B
PHP
<?php
|
|
|
|
namespace Modules\IndustrialEngineering\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class VendorQuoteComparison extends Model
|
|
{
|
|
protected $table = 'ie_vendor_quote_comparisons';
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $casts = [
|
|
'quoted_price' => 'decimal:4',
|
|
'is_selected' => 'boolean',
|
|
];
|
|
|
|
public function sourcingCase()
|
|
{
|
|
return $this->belongsTo(SupplierSourcingCase::class, 'sourcing_case_id');
|
|
}
|
|
|
|
public function supplier()
|
|
{
|
|
return $this->belongsTo(Supplier::class, 'supplier_id');
|
|
}
|
|
|
|
public function itemMaster()
|
|
{
|
|
return $this->belongsTo(ItemMaster::class, 'item_master_id');
|
|
}
|
|
}
|