Empresas Zona Horaria
This commit is contained in:
@@ -797,11 +797,11 @@ Public Class E141 : Implements IHttpHandler
|
||||
ObjFactura.TipoDocto = TipoDocto
|
||||
ObjFactura.RefDocto = ""
|
||||
'ObjFactura.CveMesa = -1
|
||||
ObjFactura.Fecha = Now
|
||||
ObjFactura.Fecha = ClsPaginas.NowADS()
|
||||
ObjFactura.CvePrePoliza = -1
|
||||
ObjFactura.FechaPago = Now
|
||||
ObjFactura.FechaPago = ClsPaginas.NowADS()
|
||||
ObjFactura.MotivoDescuento = ""
|
||||
ObjFactura.FechaEjecucion = Now
|
||||
ObjFactura.FechaEjecucion = ClsPaginas.NowADS()
|
||||
ObjFactura.UsuarioCreo = UsuarioActual.Usuario
|
||||
ObjFactura.CveCondicionEntrega = -1
|
||||
ObjFactura.CondicionEntrega = ""
|
||||
@@ -1236,7 +1236,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
TmpDT.Columns.Add("TotalImporte", GetType(Decimal))
|
||||
TmpDT.Columns.Add("Total", GetType(Decimal))
|
||||
'Para uso del módulo contable
|
||||
TmpDT.Columns.Add("AsientoContableVentas", GetType(Integer))
|
||||
TmpDT.Columns.Add("AsientoContableVentas", GetType(Integer))
|
||||
TmpDT.Columns.Add("AplicaParaConcepto", GetType(Boolean))
|
||||
TmpDT.Columns.Add("CveProyecto", GetType(Integer))
|
||||
TmpDT.Columns.Add("Proyecto", GetType(String))
|
||||
@@ -1780,9 +1780,9 @@ Public Class E141 : Implements IHttpHandler
|
||||
Dim msg As String = ""
|
||||
|
||||
If sb.Length > 0 Then
|
||||
msg = $"Se enviaron los siguientes productos: <br/> {sb.ToString()} <br/> Fecha y hora: {Now.ToString("dd/MM/yyyy hh:mm:ss tt")}"
|
||||
msg = $"Se enviaron los siguientes productos: <br/> {sb.ToString()} <br/> Fecha y hora: {ClsPaginas.NowADS().ToString("dd/MM/yyyy hh:mm:ss tt")}"
|
||||
Else
|
||||
msg = $"No se enviaron productos esta semana <br/> Fecha y hora: {Now.ToString("dd/MM/yyyy hh:mm:ss tt")}"
|
||||
msg = $"No se enviaron productos esta semana <br/> Fecha y hora: {ClsPaginas.NowADS().ToString("dd/MM/yyyy hh:mm:ss tt")}"
|
||||
End If
|
||||
|
||||
EnviarCorreoNotificacion("SIG - Productos enviados en la semana", msg)
|
||||
@@ -1873,7 +1873,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
End While
|
||||
End If
|
||||
If DtPS.Rows.Count > 0 Then
|
||||
EnviarCorreoNotificacion("SIG - Actualización de productos", $"Se ejecuto la tarea de actualización de productos. <br/> Fecha y hora: {Now.ToString("dd/MM/yyyy hh:mm:ss tt")}")
|
||||
EnviarCorreoNotificacion("SIG - Actualización de productos", $"Se ejecuto la tarea de actualización de productos. <br/> Fecha y hora: {ClsPaginas.NowADS().ToString("dd/MM/yyyy hh:mm:ss tt")}")
|
||||
End If
|
||||
End If
|
||||
|
||||
@@ -1957,7 +1957,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
Private Function ActualizarPrecios(Todos As Boolean) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
'ENVIAR PRECIOS SOLO DE 8am a 7pm
|
||||
If Now.Hour < 7 OrElse Now.Hour > 21 Then
|
||||
If ClsPaginas.NowADS().Hour < 7 OrElse ClsPaginas.NowADS().Hour > 21 Then
|
||||
Retorno = True
|
||||
Return Retorno
|
||||
End If
|
||||
@@ -2040,7 +2040,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
End If
|
||||
|
||||
If DtPS.Rows.Count > 0 Then
|
||||
EnviarCorreoNotificacion("SIG - Actualización de precios", $"Se ejecuto la tarea de actualización de precios. <br/> Fecha y hora: {Now.ToString("dd/MM/yyyy hh:mm:ss tt")}")
|
||||
EnviarCorreoNotificacion("SIG - Actualización de precios", $"Se ejecuto la tarea de actualización de precios. <br/> Fecha y hora: {ClsPaginas.NowADS().ToString("dd/MM/yyyy hh:mm:ss tt")}")
|
||||
End If
|
||||
|
||||
End If
|
||||
@@ -2097,7 +2097,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
Dim CountPeticiones As Integer = 0, CountPeticionesExitosas As Integer = 0
|
||||
|
||||
'ENVIAR SOLO DE 8am a 8pm
|
||||
If Now.Hour < 7 OrElse Now.Hour > 21 Then
|
||||
If ClsPaginas.NowADS().Hour < 7 OrElse ClsPaginas.NowADS().Hour > 21 Then
|
||||
Retorno = True
|
||||
Return Retorno
|
||||
End If
|
||||
@@ -2176,7 +2176,7 @@ Public Class E141 : Implements IHttpHandler
|
||||
End If
|
||||
|
||||
If DtPS.Rows.Count > 0 Then
|
||||
EnviarCorreoNotificacion("SIG - Actualización de existencias", $"Se ejecuto la tarea de actualización de existencias. <br/> Fecha y hora: {Now.ToString("dd/MM/yyyy hh:mm:ss tt")}")
|
||||
EnviarCorreoNotificacion("SIG - Actualización de existencias", $"Se ejecuto la tarea de actualización de existencias. <br/> Fecha y hora: {ClsPaginas.NowADS().ToString("dd/MM/yyyy hh:mm:ss tt")}")
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
Reference in New Issue
Block a user