-- se quitaron lineas comentadas
This commit is contained in:
@@ -7782,24 +7782,6 @@ Public Class ClsPaginas
|
|||||||
Ret.CveConceptoAcreditable = 328
|
Ret.CveConceptoAcreditable = 328
|
||||||
Ret.CveConceptoxAcreditar = 327
|
Ret.CveConceptoxAcreditar = 327
|
||||||
End If
|
End If
|
||||||
'If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
|
||||||
' Dim ObjConta As New ClsContabilidad
|
|
||||||
' If UsuarioActual.Empresa.Funcionalidad(FuncionalidadxAcred).ToEntero > 0 Then
|
|
||||||
' Ret.IdCtaContablexAcreditar = UsuarioActual.Empresa.Funcionalidad(FuncionalidadxAcred).ToEntero
|
|
||||||
' Else
|
|
||||||
' If ObjConta.GetRetCuenta(Ret.CveConceptoxAcreditar, UsuarioActual.CveEmpresa) Then
|
|
||||||
' If ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContablexAcreditar = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
|
||||||
' End If
|
|
||||||
' End If
|
|
||||||
' If UsuarioActual.Empresa.Funcionalidad(Funcionalidad).ToEntero > 0 Then
|
|
||||||
' Ret.IdCtaContableAcreditable = UsuarioActual.Empresa.Funcionalidad(Funcionalidad).ToEntero
|
|
||||||
' Else
|
|
||||||
' If ObjConta.GetRetCuenta(Ret.CveConceptoAcreditable, UsuarioActual.CveEmpresa) Then
|
|
||||||
' If ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContableAcreditable = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
|
||||||
' End If
|
|
||||||
' End If
|
|
||||||
' ObjConta.Dispose()
|
|
||||||
'End If
|
|
||||||
Return Ret
|
Return Ret
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
@@ -8044,10 +8026,6 @@ Public Class ClsPaginas
|
|||||||
ImporteMN = (ImporteMovimiento * VentaActual.TC).RoundSQL
|
ImporteMN = (ImporteMovimiento * VentaActual.TC).RoundSQL
|
||||||
If VentaActual.CveMoneda > 1 Then ImporteME = ImporteMovimiento
|
If VentaActual.CveMoneda > 1 Then ImporteME = ImporteMovimiento
|
||||||
Dim Ret As New ConceptosRetenciones
|
Dim Ret As New ConceptosRetenciones
|
||||||
'If VentaActual.UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
|
||||||
' If ObjConta.GetRetCuenta(38, VentaActual.UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContablexAcreditar = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSxTrasladar").ToString.ToEntero
|
|
||||||
' If ObjConta.GetRetCuenta(39, VentaActual.UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContableAcreditable = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSTrasladado").ToString.ToEntero
|
|
||||||
'End If
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, ImporteMN, 38, VentaActual.SerieFolio, Concepto, CveVenta:=VentaActual.CveVenta, CveCliente:=VentaActual.CveCliente, CveIE:=Pago.CveIE, CvePersonal:=Pago.CvePersonal, TipoCambio:=VentaActual.TC, TipoCambioPago:=Pago.TCPago, ImporteME:=ImporteME, CveSubProyecto:=VentaActual.CveSubProyecto, CveCompra:=Pago.CveCompraRelacionada) Then ErrorMovtos = True
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, ImporteMN, 38, VentaActual.SerieFolio, Concepto, CveVenta:=VentaActual.CveVenta, CveCliente:=VentaActual.CveCliente, CveIE:=Pago.CveIE, CvePersonal:=Pago.CvePersonal, TipoCambio:=VentaActual.TC, TipoCambioPago:=Pago.TCPago, ImporteME:=ImporteME, CveSubProyecto:=VentaActual.CveSubProyecto, CveCompra:=Pago.CveCompraRelacionada) Then ErrorMovtos = True
|
||||||
'si tiene funcionalidad para tomar el TC de pago. se recalcula el importe
|
'si tiene funcionalidad para tomar el TC de pago. se recalcula el importe
|
||||||
If FuncionalidadFluctuacionImpuestos Then ImporteMN = (ImporteMovimiento * Pago.TCPago).RoundSQL
|
If FuncionalidadFluctuacionImpuestos Then ImporteMN = (ImporteMovimiento * Pago.TCPago).RoundSQL
|
||||||
@@ -8100,7 +8078,6 @@ Public Class ClsPaginas
|
|||||||
Concepto = String.Format("{0} IxC:{1}", VentaActual.ClienteNombre, Pago.Referencia)
|
Concepto = String.Format("{0} IxC:{1}", VentaActual.ClienteNombre, Pago.Referencia)
|
||||||
Dim Ret As New ConceptosRetenciones
|
Dim Ret As New ConceptosRetenciones
|
||||||
If VentaActual.UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
If VentaActual.UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||||
'If ObjConta.GetRetCuenta(66, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContableAcreditable = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSAcreditable").ToString.ToEntero
|
|
||||||
'If Pago.CveMonedaPago > 1 AndAlso ObjConta.GetRetCuenta(207, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContablexAcreditar = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSxAcreditar").ToString.ToEntero
|
'If Pago.CveMonedaPago > 1 AndAlso ObjConta.GetRetCuenta(207, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then Ret.IdCtaContablexAcreditar = ObjConta.DtResultados.Rows(0)("IdCuentaIEPSxAcreditar").ToString.ToEntero
|
||||||
If VentaActual.UsuarioActual.CveEmpresa.Contiene(119) Then
|
If VentaActual.UsuarioActual.CveEmpresa.Contiene(119) Then
|
||||||
If Pago.FechaDocumentoRelacionado.Year <= 2017 Then
|
If Pago.FechaDocumentoRelacionado.Year <= 2017 Then
|
||||||
|
|||||||
Reference in New Issue
Block a user