Compras refacturacion, Nominas layout Banorte, RegPrepolizas
This commit is contained in:
@@ -2883,7 +2883,7 @@ Partial Class Compras_eFacturas
|
||||
DTDocumentosRelacionados.Columns.Add("Manual", GetType(Boolean))
|
||||
|
||||
|
||||
|
||||
Dim TieneRegistros As Boolean = False
|
||||
If IO.File.Exists(Archivo) Then
|
||||
|
||||
|
||||
@@ -3034,18 +3034,29 @@ Partial Class Compras_eFacturas
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
ObjCompraFolios.Dispose()
|
||||
DTDocumentosRelacionados = DTDocumentosRelacionados.FiltraParametros("CveIE > 0 AND LEN(IdDocumento) > 0")
|
||||
GVPDocumentosRelacionadosPagos.DataSource = DTDocumentosRelacionados
|
||||
GVPDocumentosRelacionadosPagos.DataBind()
|
||||
|
||||
DTGVPagosVinculacion = DTDocumentosRelacionados
|
||||
|
||||
BtnVincularPago.Visible = False
|
||||
If DTDocumentosRelacionados.Rows.Count > 0 Then
|
||||
SerieFolioIE = DTDocumentosRelacionados.Rows(0)("SerieFolio").ToString
|
||||
DivVincularPagoManualmente.Visible = False
|
||||
BtnVincularPago.Visible = True
|
||||
TieneRegistros = True
|
||||
Else
|
||||
DivVincularPagoManualmente.Visible = True
|
||||
BtnVincularPago.Visible = False
|
||||
End If
|
||||
|
||||
ComprasEnComplemento = DTGVPagosVinculacion.COUNT("CveCompra", " CveCompra > 0")
|
||||
|
||||
|
||||
|
||||
|
||||
If DTDocumentosRelacionados.MAX("CveCompra").ToString.ToEntero > 0 Then
|
||||
TieneCompras = True
|
||||
Else
|
||||
@@ -3096,25 +3107,25 @@ Partial Class Compras_eFacturas
|
||||
Dim ObjCompras As New ClsCompras
|
||||
|
||||
|
||||
Dim TieneRegistros As Boolean = False
|
||||
|
||||
If ObjCompras.GetCompararComplementoPago(gvRow.DataKey("CveProveedor").ToEntero, Monto, nodePagos2.InnerXml.Replace("pago10:", "").Replace("pagos10:", ""), UsuarioActual.CveEmpresa) Then
|
||||
GvVincularPago.DataSource = ObjCompras.DtResultados
|
||||
|
||||
If ObjCompras.DtResultados.Rows.Count > 0 Then
|
||||
SerieFolioIE = ObjCompras.DtResultados.Rows(0)("SerieFolio").ToString
|
||||
DivVincularPagoManualmente.Visible = False
|
||||
BtnVincularPago.Visible = True
|
||||
TieneRegistros = True
|
||||
Else
|
||||
DivVincularPagoManualmente.Visible = True
|
||||
BtnVincularPago.Visible = False
|
||||
End If
|
||||
'ImportePago = ObjCompras.DtResultados.SUMD("Monto")
|
||||
Else
|
||||
DivVincularPagoManualmente.Visible = False
|
||||
BtnVincularPago.Visible = False
|
||||
End If
|
||||
'If ObjCompras.GetCompararComplementoPago(gvRow.DataKey("CveProveedor").ToEntero, Monto, nodePagos2.InnerXml.Replace("pago10:", "").Replace("pagos10:", ""), UsuarioActual.CveEmpresa) Then
|
||||
' GvVincularPago.DataSource = ObjCompras.DtResultados
|
||||
|
||||
' If ObjCompras.DtResultados.Rows.Count > 0 Then
|
||||
' SerieFolioIE = ObjCompras.DtResultados.Rows(0)("SerieFolio").ToString
|
||||
' DivVincularPagoManualmente.Visible = False
|
||||
' BtnVincularPago.Visible = True
|
||||
' TieneRegistros = True
|
||||
' Else
|
||||
' DivVincularPagoManualmente.Visible = True
|
||||
' BtnVincularPago.Visible = False
|
||||
' End If
|
||||
' 'ImportePago = ObjCompras.DtResultados.SUMD("Monto")
|
||||
'Else
|
||||
' DivVincularPagoManualmente.Visible = False
|
||||
' BtnVincularPago.Visible = False
|
||||
'End If
|
||||
|
||||
For Each GvRowF As GridViewRow In GVPDocumentosRelacionadosPagos.Rows
|
||||
|
||||
|
||||
Reference in New Issue
Block a user