46 lines
904 B
C#
46 lines
904 B
C#
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 "";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|