23 lines
399 B
PHP
23 lines
399 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property string $quantity
|
|
* @property string $tax_rate
|
|
*/
|
|
class QuotationItem extends Model
|
|
{
|
|
use BelongsToTenant;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['quantity' => 'decimal:3', 'tax_rate' => 'decimal:2'];
|
|
}
|
|
}
|