Emd RepOC, Emd valida no registra Compras de 2024 dede 28 de Diciembre

This commit is contained in:
rakcsle
2024-12-14 11:28:53 -07:00
parent 125dd5ce09
commit 1654873fc7
10 changed files with 356 additions and 229 deletions

View File

@@ -4253,7 +4253,18 @@ Partial Class Compras_Compras
'------------------ INICIA VALIDACIONES ------------------
If Not ValidaPresupuesto(2) 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 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
End If