Empresas Zona Horaria
This commit is contained in:
@@ -582,7 +582,7 @@ Partial Class Bancos_IE
|
||||
Folio = ""
|
||||
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
|
||||
TxtImporte.Attributes.Add("onblur", "upIE(this);FncImporteCuenta(this);")
|
||||
'Calendario.StartDate = Now.AddMonths(-2).FirstDayOfMonth()
|
||||
'Calendario.StartDate = NowADS().AddMonths(-2).FirstDayOfMonth()
|
||||
ViewState("IDPoliza") = "-1"
|
||||
CveIEDeposito = -1
|
||||
CveIEDeposito2 = -1
|
||||
@@ -591,8 +591,8 @@ Partial Class Bancos_IE
|
||||
CvePrePoliza = -1
|
||||
CveSolicitudViatico = -1
|
||||
ComplementoSerieFolio = ""
|
||||
'TxtFechaDevuelto.Text = Now.ToShortDateString
|
||||
TxtFechaCancelacion.Text = Now.ToShortDateString
|
||||
'TxtFechaDevuelto.Text = NowADS().ToShortDateString
|
||||
TxtFechaCancelacion.Text = NowADS().ToShortDateString
|
||||
CveCompraDeCDin = -1
|
||||
'If UsuarioActual.CveEmpresa.Contiene(66) Then trNotificar.Visible = True
|
||||
|
||||
@@ -736,7 +736,7 @@ Partial Class Bancos_IE
|
||||
'Configuración de Modalidad Insert
|
||||
ImgAddObs.Visible = False
|
||||
CveIE = -1
|
||||
TxtFechaDocumento.Text = Now.ToShortDateString
|
||||
TxtFechaDocumento.Text = NowADS().ToShortDateString
|
||||
ImgUpdateCuentaDeposito.Visible = False
|
||||
TxtFechaDocumento.Attributes.Add("onchange", "CambiaTC(this);")
|
||||
End If
|
||||
@@ -2102,7 +2102,7 @@ Partial Class Bancos_IE
|
||||
If CveCliente > 0 AndAlso Not DivIvaIxC.Visible AndAlso TxtIvaIxC.Text.ToDouble = 0 Then
|
||||
'RMF- CASO DONDE HAY UNA DEVOLUCION Y TENGO QUE AFECTAR LAS FACTURAS QUE SE HABIAN MARCADO COMO PAGADAS TENGO QUE REGRESARLAS A PENDIENTES
|
||||
Dim Mov As New ClsMovimientos
|
||||
If Mov.GetMovimientosIE(2, DdlIEDevolucion.SelectedValue.ToEntero, -1, Now, Now, 1, 0, UsuarioActual.CveEmpresa) Then
|
||||
If Mov.GetMovimientosIE(2, DdlIEDevolucion.SelectedValue.ToEntero, -1, NowADS(), NowADS(), 1, 0, UsuarioActual.CveEmpresa) Then
|
||||
Dim DtIE As DataTable = Mov.DtResultados
|
||||
For Each dr As DataRow In DtIE.Rows
|
||||
|
||||
@@ -2148,7 +2148,7 @@ Partial Class Bancos_IE
|
||||
Dim ConceptoContable As Integer
|
||||
Dim TipoMovimiento As Boolean
|
||||
Dim importeMovimiento As Decimal
|
||||
Dim FechaMovimiento As Date = Now
|
||||
Dim FechaMovimiento As Date = NowADS()
|
||||
Dim Concepto As String = ""
|
||||
Dim Referencia As String = PagueseA
|
||||
|
||||
@@ -2715,7 +2715,7 @@ Partial Class Bancos_IE
|
||||
Dim ConceptoContable As Integer
|
||||
Dim TipoMovimiento As Boolean
|
||||
Dim importeMovimiento As Decimal = TxtImporte.Text.ToDecimal
|
||||
Dim FechaMovimiento As Date = Now
|
||||
Dim FechaMovimiento As Date = NowADS()
|
||||
Dim Concepto As String = ""
|
||||
Dim Referencia As String = PagueseA
|
||||
Dim CveCredito As Integer
|
||||
@@ -3541,7 +3541,7 @@ Partial Class Bancos_IE
|
||||
Dim ObjCancelacion As New Timbrado
|
||||
If EstatusSATCancelado(FolioFiscalCancelar, UsuarioActual.Empresa.RFC, RFCReceptorCancelar) Then
|
||||
|
||||
If Banc.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, Date.Now, "", 1) Then
|
||||
If Banc.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, NowADS(), "", 1) Then
|
||||
CargaComplementosPago()
|
||||
RegistraScript("$('#ModalCancelarComplemetno').modal('hide');")
|
||||
ErrorCancelarComplemento = False
|
||||
@@ -4031,7 +4031,7 @@ Partial Class Bancos_IE
|
||||
If HdnCveCliente.Value.ToEntero > 0 Then
|
||||
trIEDevolucion.Visible = True
|
||||
|
||||
If ObjMov.GetMovimientosIE(1, HdnCveCliente.Value.ToEntero, DdlCuenta.SelectedValue.ToEntero, Now.AddMonths(-24), Now, CveMoneda, -1, UsuarioActual.CveEmpresa) Then
|
||||
If ObjMov.GetMovimientosIE(1, HdnCveCliente.Value.ToEntero, DdlCuenta.SelectedValue.ToEntero, NowADS().AddMonths(-24), NowADS(), CveMoneda, -1, UsuarioActual.CveEmpresa) Then
|
||||
DtIEDevolucion = ObjMov.DtResultados.FiltraParametros("Saldo > 0 ")
|
||||
Else
|
||||
Alert("Ocurrió un error al cargar los Egresos del Proveedor seleccionado. Por favor vuelva a intetar.", TipoMensaje.MsgError)
|
||||
@@ -4867,7 +4867,7 @@ Partial Class Bancos_IE
|
||||
|
||||
Protected Sub LnkCancelar_Click(sender As Object, e As EventArgs)
|
||||
If ChkConciliado.Checked AndAlso UsuarioActual.CveEmpresa = 119 Then
|
||||
'TxtFechaDesconciliado.Text = Now.ToShortDateString
|
||||
'TxtFechaDesconciliado.Text = NowADS().ToShortDateString
|
||||
'UpDesconciliar.Update()
|
||||
'RegistraScript("$('#DModalDesconciliar').modal()")
|
||||
Dim fechaCancelacion As String = TxtFechaAplicado.Text.ToDate.AddMonths(1).FirstDayOfMonth.ToShortDateString
|
||||
@@ -4916,7 +4916,7 @@ Partial Class Bancos_IE
|
||||
|
||||
Dim Banco As New ClsBancos
|
||||
|
||||
If Banco.GetComplementoPagosRep(-1, Now.AddYears(-2), Now, CveIE, -1, 1, UsuarioActual.CveEmpresa, -1) Then
|
||||
If Banco.GetComplementoPagosRep(-1, NowADS().AddYears(-2), NowADS(), CveIE, -1, 1, UsuarioActual.CveEmpresa, -1) Then
|
||||
If Not Banco.DtResultados.Rows.Count > 0 Then
|
||||
Banco.Dispose()
|
||||
Alert("No se generaron complementos de pago porque no hay facturas con método de pago PPD", TipoMensaje.MsgAdvertencia)
|
||||
@@ -5381,7 +5381,7 @@ Partial Class Bancos_IE
|
||||
|
||||
If EstatusSATCancelado(FolioFiscalCancelar, UsuarioActual.Empresa.RFC, RFCReceptorCancelar) Then
|
||||
|
||||
If ObjBanco.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, Date.Now, "", 1) Then
|
||||
If ObjBanco.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, NowADS(), "", 1) Then
|
||||
CargaComplementosPago()
|
||||
Alert("El complemento se cancelo correctamente.")
|
||||
End If
|
||||
@@ -5612,8 +5612,8 @@ Partial Class Bancos_IE
|
||||
UpEliminarCotizacion.Update()
|
||||
End Sub
|
||||
Private Sub RVTxtFechaDocumento_Init(sender As Object, e As EventArgs) Handles RVTxtFechaDocumento.Init
|
||||
RVTxtFechaDocumento.MaximumValue = DateTime.Now.ToShortDateString
|
||||
Calendario.EndDate = DateTime.Now
|
||||
RVTxtFechaDocumento.MaximumValue = NowADS().ToShortDateString
|
||||
Calendario.EndDate = NowADS()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaOCRelacionadas()
|
||||
|
||||
Reference in New Issue
Block a user