-- mejoras
This commit is contained in:
@@ -3145,8 +3145,6 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
CargaFletes()
|
|
||||||
|
|
||||||
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyectoHeader, LblSubProyecto, AplicaTodos:="")
|
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyectoHeader, LblSubProyecto, AplicaTodos:="")
|
||||||
DdlSubProyecto.SelectedValueExist(DdlSubProyectoDatos.SelectedValue)
|
DdlSubProyecto.SelectedValueExist(DdlSubProyectoDatos.SelectedValue)
|
||||||
BrSubProyecto.Visible = DdlProyecto.Visible
|
BrSubProyecto.Visible = DdlProyecto.Visible
|
||||||
@@ -3343,7 +3341,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
TxtFecha.Enabled = True
|
TxtFecha.Enabled = True
|
||||||
|
|
||||||
BloqueaCondiconesPago()
|
BloqueaCondicionesPago()
|
||||||
|
|
||||||
BloqueaClasificaciones()
|
BloqueaClasificaciones()
|
||||||
|
|
||||||
@@ -3450,7 +3448,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub BloqueaCondiconesPago()
|
Private Sub BloqueaCondicionesPago()
|
||||||
If UsuarioActual.TienePermisoProceso(289) Then
|
If UsuarioActual.TienePermisoProceso(289) Then
|
||||||
DdlFormaEntrega.Enabled = False
|
DdlFormaEntrega.Enabled = False
|
||||||
DdlUsoCFDI.Enabled = False
|
DdlUsoCFDI.Enabled = False
|
||||||
@@ -6856,7 +6854,7 @@ Partial Class Ventas
|
|||||||
UPObservaciones.Update()
|
UPObservaciones.Update()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
BloqueaCondiconesPago()
|
BloqueaCondicionesPago()
|
||||||
DeshabilitarAplicarNotaDeCredito(LblRFC.Text)
|
DeshabilitarAplicarNotaDeCredito(LblRFC.Text)
|
||||||
|
|
||||||
Dim CveVentaRef As Integer = -1
|
Dim CveVentaRef As Integer = -1
|
||||||
@@ -25152,31 +25150,31 @@ Partial Class Ventas
|
|||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " FLETES "
|
'#Region " FLETES "
|
||||||
|
|
||||||
Private Sub CargaFletes()
|
'Private Sub CargaFletes()
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa <> 125 Or CveVenta > 0 Then
|
' If UsuarioActual.CveEmpresa <> 125 Or CveVenta > 0 Then
|
||||||
Exit Sub
|
' Exit Sub
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
HLModalFletes.Visible = True
|
' HLModalFletes.Visible = True
|
||||||
|
|
||||||
Dim ObjVentas As New ClsVentas
|
' Dim ObjVentas As New ClsVentas
|
||||||
|
|
||||||
If ObjVentas.GetFletes(UsuarioActual.CveEmpresa) Then
|
' If ObjVentas.GetFletes(UsuarioActual.CveEmpresa) Then
|
||||||
GVFletes.DataSource = ObjVentas.DtResultados
|
' GVFletes.DataSource = ObjVentas.DtResultados
|
||||||
GVFletes.DataBind()
|
' GVFletes.DataBind()
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
UpFletes.Update()
|
' UpFletes.Update()
|
||||||
|
|
||||||
ObjVentas.Dispose()
|
' ObjVentas.Dispose()
|
||||||
End Sub
|
'End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
'#End Region
|
||||||
|
|
||||||
#Region "A G R E G A R P S M O D A L"
|
#Region "A G R E G A R P S M O D A L"
|
||||||
Private Sub CargaMetodosPSModal()
|
Private Sub CargaMetodosPSModal()
|
||||||
@@ -29272,7 +29270,7 @@ Partial Class Ventas
|
|||||||
UPCondicionesPago.Update()
|
UPCondicionesPago.Update()
|
||||||
UpDetalle.Update()
|
UpDetalle.Update()
|
||||||
|
|
||||||
BloqueaCondiconesPago()
|
BloqueaCondicionesPago()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub InicializaDTAnticiposAmortizacion()
|
Private Sub InicializaDTAnticiposAmortizacion()
|
||||||
Me.DtAnticipoAmortizacion = New DataTable
|
Me.DtAnticipoAmortizacion = New DataTable
|
||||||
@@ -29630,7 +29628,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
BloqueaCondiconesPago()
|
BloqueaCondicionesPago()
|
||||||
|
|
||||||
UpAnticipos.Update()
|
UpAnticipos.Update()
|
||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
@@ -30204,7 +30202,7 @@ Partial Class Ventas
|
|||||||
DdlIVA.Visible = True
|
DdlIVA.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
BloqueaCondiconesPago()
|
BloqueaCondicionesPago()
|
||||||
|
|
||||||
CargaVendedores()
|
CargaVendedores()
|
||||||
|
|
||||||
@@ -31965,8 +31963,7 @@ Partial Class Ventas
|
|||||||
CargaGVInv(TmpDT.FiltraParametros("CveTipoPS = 2"))
|
CargaGVInv(TmpDT.FiltraParametros("CveTipoPS = 2"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
BloqueaCondiconesPago()
|
BloqueaCondicionesPago()
|
||||||
|
|
||||||
|
|
||||||
DivDdlFacturaRela.Visible = True
|
DivDdlFacturaRela.Visible = True
|
||||||
BtnAgregarFacturasRelaciondas.Visible = True
|
BtnAgregarFacturasRelaciondas.Visible = True
|
||||||
@@ -31988,7 +31985,6 @@ Partial Class Ventas
|
|||||||
HabilitarControlesCartaPorte(True)
|
HabilitarControlesCartaPorte(True)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Dim FolioNuevo As String = TxtFolio.Text
|
Dim FolioNuevo As String = TxtFolio.Text
|
||||||
If FolioNuevo <> FolioOriginal Then
|
If FolioNuevo <> FolioOriginal Then
|
||||||
If Adjunto <> "" Then
|
If Adjunto <> "" Then
|
||||||
|
|||||||
Reference in New Issue
Block a user