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:
2026-04-21 13:22:01 -06:00
parent 66df616eee
commit 4abf89c57f
11 changed files with 778 additions and 24 deletions

21
app/Models/IsrTable.php Normal file
View 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');
}
}