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:
40
backend/app/Services/Parsers/ParserInterface.php
Normal file
40
backend/app/Services/Parsers/ParserInterface.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Parsers;
|
||||
|
||||
interface ParserInterface
|
||||
{
|
||||
/**
|
||||
* Parsea un archivo de balanza y retorna array de cuentas normalizadas
|
||||
*
|
||||
* @param string $filePath Ruta completa al archivo
|
||||
* @return array<int, array{
|
||||
* codigo: string,
|
||||
* nombre: string,
|
||||
* nivel: int,
|
||||
* saldo_inicial_deudor: float,
|
||||
* saldo_inicial_acreedor: float,
|
||||
* cargos: float,
|
||||
* abonos: float,
|
||||
* saldo_final_deudor: float,
|
||||
* saldo_final_acreedor: float,
|
||||
* es_cuenta_padre: bool
|
||||
* }>
|
||||
*/
|
||||
public function parsear(string $filePath): array;
|
||||
|
||||
/**
|
||||
* Verifica si este parser puede manejar el archivo
|
||||
*
|
||||
* @param string $filePath Ruta completa al archivo
|
||||
* @return bool
|
||||
*/
|
||||
public function puedeManej(string $filePath): bool;
|
||||
|
||||
/**
|
||||
* Retorna el identificador del sistema
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSistema(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user