36 lines
645 B
PHP
36 lines
645 B
PHP
<?php namespace App\Models;
|
|
/**
|
|
* @copyright (c) 2025 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
|
|
*/
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Descripción
|
|
*
|
|
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
|
|
*
|
|
* @version 1.0.0
|
|
*/
|
|
class Price extends Model
|
|
{
|
|
protected $fillable = [
|
|
'inventory_id',
|
|
'cost',
|
|
'retail_price',
|
|
'tax',
|
|
];
|
|
|
|
protected $casts = [
|
|
'cost' => 'decimal:2',
|
|
'retail_price' => 'decimal:2',
|
|
'tax' => 'decimal:2',
|
|
];
|
|
|
|
public function inventory()
|
|
{
|
|
return $this->belongsTo(Inventory::class);
|
|
}
|
|
}
|