QuestPdf Implementado en la totalidad de reportes.
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 7m55s

This commit is contained in:
2025-06-24 12:52:37 -03:00
parent a5bcbefa52
commit 229eb937f5
51 changed files with 4009 additions and 954 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace GestionIntegral.Api.Dtos.Reportes.ViewModels
{
public class LiquidacionCanillaViewModel
{
// --- Datos de entrada ---
public IEnumerable<LiquidacionCanillaDetalleDto> Detalles { get; set; } = new List<LiquidacionCanillaDetalleDto>();
public IEnumerable<LiquidacionCanillaGananciaDto> Ganancias { get; set; } = new List<LiquidacionCanillaGananciaDto>();
// --- Parámetros del reporte ---
public string FechaLiquidacion { get; set; } = string.Empty;
// Propiedades calculadas para un acceso más fácil y limpio en la plantilla
public string NombreVendedor => Detalles.FirstOrDefault()?.Canilla ?? "N/A";
public decimal TotalARendir => Detalles.Sum(d => d.TotalRendir);
public decimal TotalComisiones => Ganancias.Sum(g => g.TotalRendir);
// Propiedad para el título del reporte
public string TituloReporte => EsAccionista ? "Liquidación de Accionistas" : "Liquidación Venta de Diarios";
public bool EsAccionista { get; set; }
}
}