Hoan thien core finance v2 - Calculation Pipeline, Form Templates

This commit is contained in:
2026-04-28 03:57:18 +00:00
parent 002c9a8b99
commit 49aa20a634
24 changed files with 1043 additions and 875 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class FormPrintLog extends Model
{
use HasUuids, HasFactory;
protected $guarded = [];
protected $casts = [
'snapshot_data' => 'array',
'printed_at' => 'datetime',
];
public function template()
{
return $this->belongsTo(FormTemplate::class);
}
public function printedBy()
{
return $this->belongsTo(User::class, 'printed_by');
}
}