Đóng gói cuối tuần

This commit is contained in:
2026-04-18 04:46:01 +00:00
parent 761b34916b
commit 3cef1c40df
37 changed files with 1266 additions and 301 deletions

26
app/Models/Settlement.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Settlement extends Model
{
use HasUuids, HasFactory;
protected $guarded = [];
protected $casts = [
'temp_value' => 'decimal:2',
'final_value' => 'decimal:2',
'difference' => 'decimal:2',
'issue_date' => 'date',
];
public function product()
{
return $this->belongsTo(Product::class);
}
}