Files
Asegasa.NET/bdAsegasa/Extensiones/PagoExtorno.cs
2026-04-28 11:52:16 +02:00

15 lines
452 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
namespace bdAsegasa.db
{
public class PagoExtorno
{
public double NumeroGeneracion { get; set; }
public DateTime FechaGeneracion { get; set; }
public List<ve_recibos> Pagos { get; set; } = new List<ve_recibos>();
public double TotalLiquidacion => Math.Round(Pagos.Sum(x => (x.TotalRecibo ?? 0) * -1), 2, MidpointRounding.AwayFromZero);
}
}