-- activación de regitro para EMD por el día de hoy
This commit is contained in:
@@ -4313,16 +4313,16 @@ Partial Class Compras_Compras
|
||||
|
||||
'------------------ INICIA VALIDACIONES ------------------
|
||||
|
||||
If UsuarioActual.CveEmpresa.Contiene(13, 83) Then
|
||||
'If UsuarioActual.CveEmpresa.Contiene(13, 83) Then
|
||||
|
||||
|
||||
Dim AnioFactura As Integer = TxtFecha.Text.ToDate.Year
|
||||
Dim Fecha28Dic As Date = New Date(2024, 12, 28)
|
||||
If NowADS() >= Fecha28Dic AndAlso TxtFecha.Text.ToDate.Year < 2025 Then
|
||||
Alert("A partir del 28 de diciembre de 2024 no se pueden registrar facturas de 2024.", TipoMensaje.MsgAdvertencia)
|
||||
Exit Sub
|
||||
End If
|
||||
End If
|
||||
' Dim AnioFactura As Integer = TxtFecha.Text.ToDate.Year
|
||||
' Dim Fecha28Dic As Date = New Date(2024, 12, 28)
|
||||
' If NowADS() >= Fecha28Dic AndAlso TxtFecha.Text.ToDate.Year < 2025 Then
|
||||
' Alert("A partir del 28 de diciembre de 2024 no se pueden registrar facturas de 2024.", TipoMensaje.MsgAdvertencia)
|
||||
' Exit Sub
|
||||
' End If
|
||||
'End If
|
||||
|
||||
If Not ValidaPresupuesto(2) Then
|
||||
Exit Sub
|
||||
|
||||
@@ -1122,13 +1122,13 @@ Partial Class Compras_eFacturas
|
||||
e.Row.FCCheckBox("chkRegistraFactura").Visible = False
|
||||
End If
|
||||
|
||||
If UsuarioActual.CveEmpresa.Contiene(13, 83) Then
|
||||
'If UsuarioActual.CveEmpresa.Contiene(13, 83) Then
|
||||
|
||||
Dim Fecha28Dic As Date = New Date(2024, 12, 28)
|
||||
If NowADS() >= Fecha28Dic AndAlso e.Row.DBCampo("FechaFactura").ToDate.Year < 2025 Then
|
||||
e.Row.FCHyperLink("HplAgregar").Visible = False
|
||||
End If
|
||||
End If
|
||||
' Dim Fecha28Dic As Date = New Date(2024, 12, 28)
|
||||
' If NowADS() >= Fecha28Dic AndAlso e.Row.DBCampo("FechaFactura").ToDate.Year < 2025 Then
|
||||
' e.Row.FCHyperLink("HplAgregar").Visible = False
|
||||
' End If
|
||||
'End If
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user