agregado procesos y bd clases
This commit is contained in:
45
bdAsegasa/Extensiones/liquidacionesviajes.cs
Normal file
45
bdAsegasa/Extensiones/liquidacionesviajes.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
namespace bdAsegasa.db
|
||||
{
|
||||
public partial class liquidacionesviajes
|
||||
{
|
||||
public double Diferencia
|
||||
{
|
||||
get
|
||||
{
|
||||
return Math.Round((double)(TotalJustificado - Anticipo), 2);
|
||||
}
|
||||
}
|
||||
|
||||
public string ADevolver
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Diferencia < 0)
|
||||
{
|
||||
return Math.Abs(Diferencia).ToString("c2");
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string ARecibir
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Diferencia > 0)
|
||||
{
|
||||
return Diferencia.ToString("c2");
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user