Feat: Agregada gestión de tablas ISR en settings
- Nueva tabla isr_tables y isr_brackets en BD - Controlador IsrController para CRUD de tablas ISR - Integración con pestaña ISR en settings - Soporte para importación via CSV - Captura manual de brackets
This commit is contained in:
21
app/Models/IsrTable.php
Normal file
21
app/Models/IsrTable.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class IsrTable extends Model
|
||||
{
|
||||
protected $table = 'isr_tables';
|
||||
|
||||
protected $fillable = ['year'];
|
||||
|
||||
/**
|
||||
* Relación con los brackets de ISR
|
||||
*/
|
||||
public function brackets(): HasMany
|
||||
{
|
||||
return $this->hasMany(IsrBracket::class)->orderBy('order');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user