Initial commit: Horux Strategy Platform
- Laravel 11 backend with API REST - React 18 + TypeScript + Vite frontend - Multi-parser architecture for accounting systems (CONTPAQi, Aspel, SAP) - 27+ financial metrics calculation - PDF report generation with Browsershot - Complete documentation (10 documents) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
28
backend/app/Models/ReporteContable.php
Normal file
28
backend/app/Models/ReporteContable.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class ReporteContable extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'reportes_contables';
|
||||
|
||||
protected $fillable = [
|
||||
'nombre',
|
||||
];
|
||||
|
||||
public function categorias(): HasMany
|
||||
{
|
||||
return $this->hasMany(CategoriaContable::class)->orderBy('orden');
|
||||
}
|
||||
|
||||
public function cuentas(): HasMany
|
||||
{
|
||||
return $this->hasMany(Cuenta::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user