Sistema NEXUS v3.4 migrado con: Estructura principal: - core/orchestration: Sistema SIMCO + CAPVED (27 directivas, 28 perfiles) - core/catalog: Catalogo de funcionalidades reutilizables - shared/knowledge-base: Base de conocimiento compartida - devtools/scripts: Herramientas de desarrollo - control-plane/registries: Control de servicios y CI/CD - orchestration/: Configuracion de orquestacion de agentes Proyectos incluidos (11): - gamilit (submodule -> GitHub) - trading-platform (OrbiquanTIA) - erp-suite con 5 verticales: - erp-core, construccion, vidrio-templado - mecanicas-diesel, retail, clinicas - betting-analytics - inmobiliaria-analytics - platform_marketing_content - pos-micro, erp-basico Configuracion: - .gitignore completo para Node.js/Python/Docker - gamilit como submodule (git@github.com:rckrdmrd/gamilit-workspace.git) - Sistema de puertos estandarizado (3005-3199) Generated with NEXUS v3.4 Migration System EPIC-010: Configuracion Git y Repositorios
1.3 KiB
1.3 KiB
ET-FIN-002: Servicio de Flujo de Efectivo
ID: ET-FIN-002 | Módulo: MAE-014
Cash Flow Service
@Injectable()
export class CashFlowService {
async getProjection(projectId: string, months: number): Promise<CashFlowProjection> {
const incomes = await this.getProjectedIncomes(projectId, months);
const expenses = await this.getProjectedExpenses(projectId, months);
return this.buildProjection(incomes, expenses, months);
}
async compareRealVsProjected(projectId: string, month: Date): Promise<Comparison> {
const projected = await this.getMonthProjection(projectId, month);
const actual = await this.getMonthActual(projectId, month);
return {
projected, actual,
variance: actual.total - projected.total,
variancePercent: ((actual.total - projected.total) / projected.total) * 100
};
}
async checkLiquidityAlert(projectId: string): Promise<LiquidityAlert | null> {
const balance = await this.getCurrentBalance(projectId);
const avgDailyExpense = await this.getAvgDailyExpense(projectId);
const coverageDays = balance / avgDailyExpense;
if (coverageDays < 15) {
return { level: 'critical', coverageDays, message: 'Liquidez crítica' };
}
return null;
}
}
Generado: 2025-11-21