agregado procesos y bd clases
This commit is contained in:
36
bdAsegasa/Extensiones/pagosliquidacionescia.cs
Normal file
36
bdAsegasa/Extensiones/pagosliquidacionescia.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace bdAsegasa.db
|
||||
{
|
||||
public partial class pagosliquidacionescias
|
||||
{
|
||||
public double ImportePago
|
||||
{
|
||||
get
|
||||
{
|
||||
return Math.Round((this.ImporteLiquidaciones) + (this.ImporteRegularizacion), 2, MidpointRounding.AwayFromZero);
|
||||
}
|
||||
}
|
||||
|
||||
public double ImporteCobros
|
||||
{
|
||||
get
|
||||
{
|
||||
return Math.Round(this.liquidacionescompanias.Where(x => x.idTipoLiquidacionNavigation?.Codigo != "TIPLIQ.DESCOBRO").Sum(x => x.Importe), 2, MidpointRounding.AwayFromZero);
|
||||
}
|
||||
}
|
||||
|
||||
public double ImporteDesCobros
|
||||
{
|
||||
get
|
||||
{
|
||||
return Math.Round(this.liquidacionescompanias.Where(x => x.idTipoLiquidacionNavigation?.Codigo == "TIPLIQ.DESCOBRO").Sum(x => x.Importe), 2, MidpointRounding.AwayFromZero);
|
||||
}
|
||||
}
|
||||
|
||||
public void ActualizaImportePago()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user