From df8b4b7c2dd51e7ce89ae04f1ea930c894cbd6e2 Mon Sep 17 00:00:00 2001 From: rrene Date: Wed, 9 Jun 2021 07:42:48 -0700 Subject: [PATCH] -- redondeo --- Bancos/PagoDeudor.aspx.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Bancos/PagoDeudor.aspx.cs b/Bancos/PagoDeudor.aspx.cs index c59201a8f..e96343893 100644 --- a/Bancos/PagoDeudor.aspx.cs +++ b/Bancos/PagoDeudor.aspx.cs @@ -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; } }