diff --git a/Sistemas/CatSesiones.aspx b/Sistemas/CatSesiones.aspx
index 4481f93b4..1bb7ae18c 100644
--- a/Sistemas/CatSesiones.aspx
+++ b/Sistemas/CatSesiones.aspx
@@ -66,7 +66,8 @@
-
+
+
diff --git a/Sistemas/CatSesiones.aspx.vb b/Sistemas/CatSesiones.aspx.vb
index ef6bbf838..3211d4219 100644
--- a/Sistemas/CatSesiones.aspx.vb
+++ b/Sistemas/CatSesiones.aspx.vb
@@ -109,7 +109,8 @@ Partial Class Sistemas_CatSesiones
cargaAC()
ElseIf DdlVariable.SelectedItem.Value = "GlobalDTSATUsosCFDI" Then
CargaUsosCFDI()
-
+ ElseIf DdlVariable.SelectedItem.Value = "GlobalDTVtaCondicionesEntrega" Then
+ CargaCondicionesEntrega()
End If
@@ -289,7 +290,9 @@ Partial Class Sistemas_CatSesiones
'Fin Carga Usuarios
End Sub
-
+ Private Sub CargaCondicionesEntrega()
+ GlobalDTVtaCondicionesEntrega(UsuarioActual.CveEmpresa) = Nothing
+ End Sub
Private Sub CargaProductosServiciosSimplificado()
GlobalDTPSSimplificado(UsuarioActual.CveEmpresa) = Nothing
diff --git a/Ventas/PVCobranza.aspx b/Ventas/PVCobranza.aspx
index c6e6fc216..b24ece4b9 100644
--- a/Ventas/PVCobranza.aspx
+++ b/Ventas/PVCobranza.aspx
@@ -300,6 +300,10 @@
+
+
diff --git a/Ventas/PVCobranza.aspx.vb b/Ventas/PVCobranza.aspx.vb
index 6ac82a56e..0b963feab 100644
--- a/Ventas/PVCobranza.aspx.vb
+++ b/Ventas/PVCobranza.aspx.vb
@@ -220,8 +220,13 @@ Partial Class Ventas_PVCobranza
If e.Row.RowType = DataControlRowType.DataRow Then
If e.Row.DBCampo("CveUsuarioCobranza") <> "" Then
- e.Row.BackColor = Drawing.ColorTranslator.FromHtml("#3598dc")
- 'e.Row.CssClass = "blue-madison"
+ e.Row.BackColor = Drawing.ColorTranslator.FromHtml("#3598dc")
+ 'e.Row.CssClass = "blue-madison"
+ End If
+
+ If e.Row.DBCampo("CveCondicionEntrega").ToEntero() = 9 Then
+ e.Row.FCLinkButton("LnkImprimir").Visible = True
+ ScriptManager.GetCurrent(Me).RegisterPostBackControl(e.Row.FCLinkButton("LnkImprimir"))
End If
End If
End Sub
@@ -598,4 +603,14 @@ Partial Class Ventas_PVCobranza
End If
ObjVentas.Dispose()
End Sub
+ Protected Sub LnkImprimir_Click(sender As Object, e As EventArgs)
+ Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
+
+ Dim CveVenta As Integer = GvRow.DataKey("CveVenta").ToEntero()
+
+ If CveVenta > 0 Then
+ ImpresionDirectaPDF(CveVenta)
+ End If
+
+ End Sub
End Class
diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index d027951b0..1e86749e0 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -2644,7 +2644,10 @@ Partial Class Ventas
CargaMonedas()
CargaVendedores()
CargarAlmacenes()
- 'CargaFormaEntrega()
+ If UsuarioActual.Empresa.Funcionalidad(109) = "1" Then
+ CargaFormaEntrega()
+ End If
+
CargaCuentasTerminal()
'CargaDdlNCPS()
'CargarCamiones()
@@ -4972,6 +4975,11 @@ Partial Class Ventas
ViewState("CveSubProyectoVenta") = DbRowVenta("CveSubProyecto").ToString().ToEntero()
+ If DbRowVenta("CveCondicionEntrega").ToString().ToEntero() > 0 Then
+ DdlFormaEntrega.SelectedValueExist(DbRowVenta("CveCondicionEntrega").ToString())
+ DdlFormaEntrega.Enabled = False
+ End If
+
Me.CveEstatusFacturaPadre = DbRowVenta("CveEstatusFacturaPadre").ToString().ToEntero()
If UsuarioActual.Empresa.Funcionalidad(705) = "1" Then
@@ -10914,6 +10922,12 @@ Partial Class Ventas
MensajeAlert.Clear()
Try
+ If UsuarioActual.Empresa.Funcionalidad(109) = "1" Then
+ If ObjFactura.TipoDocto.Contiene("Ing", "Cot") AndAlso ObjFactura.CondicionesPago = 1 Then
+ ImpresionDirectaPDF()
+ End If
+ End If
+
'LIMPIA CONDICIONES DE PAGO - CONTADO
RBLPago.SelectedValue = "1"
LimpiaEscondeContado()
@@ -10923,10 +10937,6 @@ Partial Class Ventas
OnError("Ocurrió un error al limpiar los datos", ex)
End Try
- 'If UsuarioActual.Empresa.Funcionalidad(109) = "1" Then
- ' ImpresionDirectaPDF()
- 'End If
-
Else
ObjVentas.RollBack()