Adding delay and penalty calculations
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LatePeriodFine extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'user_identity',
|
||||
'period_type',
|
||||
'period_start',
|
||||
'period_end',
|
||||
'late_minutes',
|
||||
'allowance_minutes',
|
||||
'fine_minutes',
|
||||
'fine_amount',
|
||||
'daily_fine_amount',
|
||||
'weekly_fine_amount',
|
||||
'total_fine_amount',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'period_start' => 'date',
|
||||
'period_end' => 'date',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user