From fc1c925eecabbf44d078453cc58388c21efa0faf Mon Sep 17 00:00:00 2001 From: rrene Date: Wed, 11 Mar 2020 13:35:37 -0700 Subject: [PATCH] -ambios validacion de fechas entre pago XML y pago IE --- Compras/eFacturas.aspx | 6 ++---- Compras/eFacturas.aspx.vb | 11 ++++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Compras/eFacturas.aspx b/Compras/eFacturas.aspx index dea3762d5..f6675b947 100644 --- a/Compras/eFacturas.aspx +++ b/Compras/eFacturas.aspx @@ -550,11 +550,9 @@
- - - + diff --git a/Compras/eFacturas.aspx.vb b/Compras/eFacturas.aspx.vb index f68fe8254..9b8cfecce 100644 --- a/Compras/eFacturas.aspx.vb +++ b/Compras/eFacturas.aspx.vb @@ -2838,24 +2838,21 @@ Partial Class Compras_eFacturas BtnVincularPago.Visible = False End If + For Each GvRowF As GridViewRow In GVPDocumentosRelacionadosPagos.Rows - - - For Each drow As DataRow In ObjCompras.DtResultados.FiltraParametros("CveIE > 0 AND FechaDocumento IS NOT NULL", "", {"FechaDocumento"}).Rows - - Dim FechaDocumento As Date = drow("FechaDocumento").ToString.ToDate + Dim FechaDocumento As Date = GvRowF.DataKey("FechaPago").ToString.ToDate + Dim FechaDoRecibo As Date = GvRowF.DataKey("Fecha").ToString.ToDate Dim FT1 As Date = FechaDocumento.AddDays(-6) Dim FT2 As Date = FechaDocumento.AddDays(7) - If Not (FechaPago >= FT1 And FechaPago < FT2) Then + If Not (FechaDoRecibo >= FT1 And FechaDoRecibo < FT2) Then BtnVincularPago.Visible = False MSGComplemento = MSGComplemento & " Existen mas de 3 días de diferencia entre la fecha del documento y la fecha de complemento. " Exit For End If - Next If MSGComplemento.Trim.Length > 0 Then