-- redondeo

This commit is contained in:
2021-06-09 07:42:48 -07:00
parent 5ff65bf0ff
commit df8b4b7c2d

View File

@@ -715,7 +715,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
TCDoc = get_GlobalTipoCambio(TxtFechaDocumento.Text.ToDate().AddMonths(-1).LastDayOfMonth()).ToDecimal();
}
Importe = gvr.FCTextBox("TxtAbonar").Text.ToDecimal();
Importe = gvr.FCTextBox("TxtAbonar").Text.ToDecimal().RoundSQL();
ImporteMN = Importe;
ImporteComplementaria = 0;
@@ -756,8 +756,8 @@ public partial class Bancos_PagoDeudor : ClsPaginas
}
}
ImporteMN = Math.Round(ImporteMN, 2, MidpointRounding.AwayFromZero);
ImporteComplementaria = Math.Round(ImporteComplementaria, 2, MidpointRounding.AwayFromZero);
ImporteMN = ImporteMN.RoundSQL();
ImporteComplementaria = ImporteComplementaria.RoundSQL();
if (tCveMoneda != 1)
{
@@ -825,7 +825,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
}
else
{
ImporteMNBanco = ImporteBanco * TC;
ImporteMNBanco = (ImporteBanco * TC).RoundSQL();
ImporteComplementaria = 0;
}
}