Merge branch 'master' of http://jperez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -4002,28 +4002,28 @@ Public Class ClsPaginas
|
|||||||
Application(AppNombre) = value
|
Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public Shared Property GlobalDTClasificacionPorcentaje(CveEmpresa As Integer, Optional CveClasicacionPorcentaje As Integer = -1, Optional CveClasicacion As Integer = -1, Optional PorcentajeIVA As Double = -1) As DataTable
|
'Public Shared Property GlobalDTClasificacionPorcentaje2(CveEmpresa As Integer, Optional CveClasicacionPorcentaje As Integer = -1, Optional CveClasicacion As Integer = -1, Optional PorcentajeIVA As Double = -1) As DataTable
|
||||||
Get
|
' Get
|
||||||
Dim AppNombre As String = $"GlobalDTClasificacionPorcentaje-{CveEmpresa}"
|
' Dim AppNombre As String = $"GlobalDTClasificacionPorcentaje-{CveEmpresa}"
|
||||||
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
' If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||||
Using ObjVenta As New ClsGenerales
|
' Using ObjVenta As New ClsGenerales
|
||||||
If ObjVenta.GetClasificacionPorcentaje(CveEmpresa, CveClasificacion:=-1) Then HttpContext.Current.Application(AppNombre) = ObjVenta.DtResultados
|
' If ObjVenta.GetClasificacionPorcentaje(CveEmpresa, CveClasificacion:=-1) Then HttpContext.Current.Application(AppNombre) = ObjVenta.DtResultados
|
||||||
End Using
|
' End Using
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
Dim Str As StringBuilder = New StringBuilder()
|
' Dim Str As StringBuilder = New StringBuilder()
|
||||||
If CveClasicacionPorcentaje <> -1 Then Str.AppendFormat(" {0} CveClasicacionPorcentaje = {1}", If(Str.Length > 0, "AND", ""), CveClasicacionPorcentaje)
|
' If CveClasicacionPorcentaje <> -1 Then Str.AppendFormat(" {0} CveClasicacionPorcentaje = {1}", If(Str.Length > 0, "AND", ""), CveClasicacionPorcentaje)
|
||||||
If CveClasicacion <> -1 Then Str.AppendFormat(" {0} CveClasicacion = {1}", If(Str.Length > 0, "AND", ""), CveClasicacion)
|
' If CveClasicacion <> -1 Then Str.AppendFormat(" {0} CveClasicacion = {1}", If(Str.Length > 0, "AND", ""), CveClasicacion)
|
||||||
If PorcentajeIVA <> -1 Then Str.AppendFormat(" {0} PorcentajeIVA = {1}", If(Str.Length > 0, "AND", ""), PorcentajeIVA)
|
' If PorcentajeIVA <> -1 Then Str.AppendFormat(" {0} PorcentajeIVA = {1}", If(Str.Length > 0, "AND", ""), PorcentajeIVA)
|
||||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
' Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||||
GlobalDTClasificacionPorcentaje = Dv.ToTable
|
' GlobalDTClasificacionPorcentaje2 = Dv.ToTable
|
||||||
Dv.Dispose()
|
' Dv.Dispose()
|
||||||
End Get
|
' End Get
|
||||||
Set(value As DataTable)
|
' Set(value As DataTable)
|
||||||
Dim AppNombre As String = $"GlobalDTClasificacionPorcentaje-{CveEmpresa}"
|
' Dim AppNombre As String = $"GlobalDTClasificacionPorcentaje-{CveEmpresa}"
|
||||||
HttpContext.Current.Application(AppNombre) = value
|
' HttpContext.Current.Application(AppNombre) = value
|
||||||
End Set
|
' End Set
|
||||||
End Property
|
'End Property
|
||||||
Property GlobalDTPaqueterias(CveEmpresa As Integer, Optional TipoPaqueteria As Integer = -1) As DataTable
|
Property GlobalDTPaqueterias(CveEmpresa As Integer, Optional TipoPaqueteria As Integer = -1) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = $"GlobalDTPaqueterias-{CveEmpresa}"
|
Dim AppNombre As String = $"GlobalDTPaqueterias-{CveEmpresa}"
|
||||||
@@ -7846,10 +7846,10 @@ Public Class ClsPaginas
|
|||||||
Dim Diferencia As Decimal = 0
|
Dim Diferencia As Decimal = 0
|
||||||
If tImporteCompra <> tImportePago Then
|
If tImporteCompra <> tImportePago Then
|
||||||
If tImporteCompra > tImportePago Then
|
If tImporteCompra > tImportePago Then
|
||||||
ConceptoContable = 64 : IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
ConceptoContable = 64
|
||||||
TipoMovimiento = True
|
TipoMovimiento = True
|
||||||
Else
|
Else
|
||||||
ConceptoContable = 65 : IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
ConceptoContable = 65
|
||||||
TipoMovimiento = False
|
TipoMovimiento = False
|
||||||
End If
|
End If
|
||||||
Diferencia = (tImporteCompra - tImportePago).Abs.RoundSQL
|
Diferencia = (tImporteCompra - tImportePago).Abs.RoundSQL
|
||||||
@@ -7925,18 +7925,18 @@ Public Class ClsPaginas
|
|||||||
Ret.CveConceptoAcreditable = 19
|
Ret.CveConceptoAcreditable = 19
|
||||||
Ret.CveConceptoxAcreditar = 14
|
Ret.CveConceptoxAcreditar = 14
|
||||||
End If
|
End If
|
||||||
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
'If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||||
Dim IdCtaIVAXAcreditar, IdCtaIVAAcreditable, IdCtaIVANOAcreditable As Integer
|
' Dim IdCtaIVAXAcreditar, IdCtaIVAAcreditable, IdCtaIVANOAcreditable As Integer
|
||||||
Dim dt As DataTable = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA)
|
' Dim dt As DataTable = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA)
|
||||||
If dt.Rows.Count > 0 Then
|
' If dt.Rows.Count > 0 Then
|
||||||
IdCtaIVAXAcreditar = dt.Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
' IdCtaIVAXAcreditar = dt.Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
||||||
IdCtaIVAAcreditable = dt.Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
' IdCtaIVAAcreditable = dt.Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
||||||
IdCtaIVANOAcreditable = dt.Rows(0)("IdCtaIVANoAcreditable").ToString.ToEntero
|
' IdCtaIVANOAcreditable = dt.Rows(0)("IdCtaIVANoAcreditable").ToString.ToEntero
|
||||||
End If
|
' End If
|
||||||
Ret.IdCtaContableAcreditable = IdCtaIVAAcreditable
|
' Ret.IdCtaContableAcreditable = IdCtaIVAAcreditable
|
||||||
Ret.IdCtaContablexAcreditar = IdCtaIVAXAcreditar
|
' Ret.IdCtaContablexAcreditar = IdCtaIVAXAcreditar
|
||||||
Ret.IdCtaContIVANoAcreditable = IdCtaIVANOAcreditable
|
' Ret.IdCtaContIVANoAcreditable = IdCtaIVANOAcreditable
|
||||||
End If
|
'End If
|
||||||
Return Ret
|
Return Ret
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
@@ -8313,10 +8313,10 @@ Public Class ClsPaginas
|
|||||||
tImportePago += Pago.ImporteFluctuacionAdicional 'para los casos de aplicación de
|
tImportePago += Pago.ImporteFluctuacionAdicional 'para los casos de aplicación de
|
||||||
If tImporteVenta <> tImportePago Then
|
If tImporteVenta <> tImportePago Then
|
||||||
If tImporteVenta < tImportePago Then
|
If tImporteVenta < tImportePago Then
|
||||||
ConceptoContable = 64 : IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
ConceptoContable = 64
|
||||||
TipoMovimiento = True
|
TipoMovimiento = True
|
||||||
Else
|
Else
|
||||||
ConceptoContable = 65 : IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
ConceptoContable = 65
|
||||||
TipoMovimiento = False
|
TipoMovimiento = False
|
||||||
End If
|
End If
|
||||||
Diferencia = (tImporteVenta - tImportePago).Abs.RoundSQL
|
Diferencia = (tImporteVenta - tImportePago).Abs.RoundSQL
|
||||||
|
|||||||
@@ -404,18 +404,18 @@ Public Class ClsSisEmpresas
|
|||||||
|
|
||||||
'Nuevos Datos
|
'Nuevos Datos
|
||||||
_Empresa.AreaGeografica = Data.Rows(0)("AreaGeografica").ToString
|
_Empresa.AreaGeografica = Data.Rows(0)("AreaGeografica").ToString
|
||||||
_Empresa.IdCuentaIVAxAcreditar = Data.Rows(0)("IdCuentaIVAxAcreditar").ToString.ToEntero
|
'_Empresa.IdCuentaIVAxAcreditar = Data.Rows(0)("IdCuentaIVAxAcreditar").ToString.ToEntero
|
||||||
_Empresa.IdCuentaIVAAcreditable = Data.Rows(0)("IdCuentaIVAAcreditable").ToString.ToEntero
|
'_Empresa.IdCuentaIVAAcreditable = Data.Rows(0)("IdCuentaIVAAcreditable").ToString.ToEntero
|
||||||
_Empresa.IdCuentaIVAxTrasladar = Data.Rows(0)("IdCuentaIVAxTrasladar").ToString.ToEntero
|
'_Empresa.IdCuentaIVAxTrasladar = Data.Rows(0)("IdCuentaIVAxTrasladar").ToString.ToEntero
|
||||||
_Empresa.IdCuentaIVATrasladado = Data.Rows(0)("IdCuentaIVATrasladado").ToString.ToEntero
|
'_Empresa.IdCuentaIVATrasladado = Data.Rows(0)("IdCuentaIVATrasladado").ToString.ToEntero
|
||||||
_Empresa.IdCuentaRetIVACirculacion = Data.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
|
'_Empresa.IdCuentaRetIVACirculacion = Data.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
|
||||||
_Empresa.IdCuentaRetISRCirculacion = Data.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
'_Empresa.IdCuentaRetISRCirculacion = Data.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
||||||
_Empresa.IdCuentaDSV = Data.Rows(0)("Conta_IdCuentaDescuentoVenta").ToString.ToEntero
|
'_Empresa.IdCuentaDSV = Data.Rows(0)("Conta_IdCuentaDescuentoVenta").ToString.ToEntero
|
||||||
_Empresa.IdCuentaImpuestosLocales = Data.Rows(0)("Conta_IdCuentaImpuestosLocales").ToString.ToEntero
|
'_Empresa.IdCuentaImpuestosLocales = Data.Rows(0)("Conta_IdCuentaImpuestosLocales").ToString.ToEntero
|
||||||
_Empresa.IdCuentaIEPSxAcreditar = Data.Rows(0)("IdCuentaIEPSxAcreditar").ToString.ToEntero
|
'_Empresa.IdCuentaIEPSxAcreditar = Data.Rows(0)("IdCuentaIEPSxAcreditar").ToString.ToEntero
|
||||||
_Empresa.IdCuentaIEPSAcreditable = Data.Rows(0)("IdCuentaIEPSAcreditable").ToString.ToEntero
|
'_Empresa.IdCuentaIEPSAcreditable = Data.Rows(0)("IdCuentaIEPSAcreditable").ToString.ToEntero
|
||||||
_Empresa.IdCuentaIEPSxTrasladar = Data.Rows(0)("IdCuentaIEPSxTrasladar").ToString.ToEntero
|
'_Empresa.IdCuentaIEPSxTrasladar = Data.Rows(0)("IdCuentaIEPSxTrasladar").ToString.ToEntero
|
||||||
_Empresa.IdCuentaIEPSTrasladado = Data.Rows(0)("IdCuentaIEPSTrasladado").ToString.ToEntero
|
'_Empresa.IdCuentaIEPSTrasladado = Data.Rows(0)("IdCuentaIEPSTrasladado").ToString.ToEntero
|
||||||
_Empresa.IdCuentaOtrosIngresos = Data.Rows(0)("Conta_IdCuentaOtrosIngresos").ToString.ToEntero
|
_Empresa.IdCuentaOtrosIngresos = Data.Rows(0)("Conta_IdCuentaOtrosIngresos").ToString.ToEntero
|
||||||
|
|
||||||
'_Empresa.IdCtaProveedor = Data.Rows(0)("IdCtaProveedor").ToString.ToEntero
|
'_Empresa.IdCtaProveedor = Data.Rows(0)("IdCtaProveedor").ToString.ToEntero
|
||||||
@@ -428,7 +428,7 @@ Public Class ClsSisEmpresas
|
|||||||
'_Empresa.IdCtaAnticipoProveedores = Data.Rows(0)("IdCtaAnticipoProveedores").ToString.ToEntero
|
'_Empresa.IdCtaAnticipoProveedores = Data.Rows(0)("IdCtaAnticipoProveedores").ToString.ToEntero
|
||||||
|
|
||||||
_Empresa.Buzon_Tipo = Data.Rows(0)("Buzon_Tipo").ToString
|
_Empresa.Buzon_Tipo = Data.Rows(0)("Buzon_Tipo").ToString
|
||||||
_Empresa.ContaContabilizacionNC = Data.Rows(0)("Conta_ContabilizacionNC").ToString.ToEntero
|
'_Empresa.ContaContabilizacionNC = Data.Rows(0)("Conta_ContabilizacionNC").ToString.ToEntero
|
||||||
'_Empresa.Ruta = String.Format("{0}Empresas\{1}\", ModExtensiones.DirectorioBaseEmpresas, _Empresa.CveEmpresa)
|
'_Empresa.Ruta = String.Format("{0}Empresas\{1}\", ModExtensiones.DirectorioBaseEmpresas, _Empresa.CveEmpresa)
|
||||||
_Empresa.PV_TerminalTipo = Data.Rows(0)("PV_TerminalTipo").ToString.ToEntero
|
_Empresa.PV_TerminalTipo = Data.Rows(0)("PV_TerminalTipo").ToString.ToEntero
|
||||||
_Empresa.EjercicioActual = Data.Rows(0)("EjercicioActual").ToString.ToEntero
|
_Empresa.EjercicioActual = Data.Rows(0)("EjercicioActual").ToString.ToEntero
|
||||||
@@ -437,8 +437,8 @@ Public Class ClsSisEmpresas
|
|||||||
_Empresa.MetodoOC = Data.Rows(0)("MetodoOC").ToString.ToEntero
|
_Empresa.MetodoOC = Data.Rows(0)("MetodoOC").ToString.ToEntero
|
||||||
_Empresa.CveMetodoInventario = Data.Rows(0)("Inv_CveMetodoInventario").ToString.ToEntero
|
_Empresa.CveMetodoInventario = Data.Rows(0)("Inv_CveMetodoInventario").ToString.ToEntero
|
||||||
_Empresa.RequiereCentroCostos = Data.Rows(0)("RequiereCentroCostos").ToString <> "No"
|
_Empresa.RequiereCentroCostos = Data.Rows(0)("RequiereCentroCostos").ToString <> "No"
|
||||||
_Empresa.IdCuentaPerdidaCambiaria = Data.Rows(0)("IdCuentaPerdidaCambiaria").ToString.ToEntero
|
'_Empresa.IdCuentaPerdidaCambiaria = Data.Rows(0)("IdCuentaPerdidaCambiaria").ToString.ToEntero
|
||||||
_Empresa.IdCuentaGananciaCambiaria = Data.Rows(0)("IdCuentaGananciaCambiaria").ToString.ToEntero
|
'_Empresa.IdCuentaGananciaCambiaria = Data.Rows(0)("IdCuentaGananciaCambiaria").ToString.ToEntero
|
||||||
_Empresa.Tipo_CentroCosto = Data.Rows(0)("Tipo_CentroCosto").ToString.ToEntero
|
_Empresa.Tipo_CentroCosto = Data.Rows(0)("Tipo_CentroCosto").ToString.ToEntero
|
||||||
_Empresa.GrupoEmpresa = Data.Rows(0)("GrupoEmpresa").ToString.ToEntero
|
_Empresa.GrupoEmpresa = Data.Rows(0)("GrupoEmpresa").ToString.ToEntero
|
||||||
_Empresa.PlantillaMailVenta = Data.Rows(0)("PlantillaMailVenta").ToString
|
_Empresa.PlantillaMailVenta = Data.Rows(0)("PlantillaMailVenta").ToString
|
||||||
@@ -467,7 +467,6 @@ Public Class ClsSisEmpresas
|
|||||||
|
|
||||||
_Empresa.RutaArchivos = Data.Rows(0)("RutaArchivos").ToString
|
_Empresa.RutaArchivos = Data.Rows(0)("RutaArchivos").ToString
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
'Alert("No se encontró la Empresa solicitada.", TipoMensaje.MsgAdvertencia)
|
'Alert("No se encontró la Empresa solicitada.", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ Public Class Empresa
|
|||||||
|
|
||||||
Public CvePAC As Integer
|
Public CvePAC As Integer
|
||||||
Public CveRegimenFiscal As Integer
|
Public CveRegimenFiscal As Integer
|
||||||
|
|
||||||
Public Property Tipo_CentroCosto As Integer
|
Public Property Tipo_CentroCosto As Integer
|
||||||
Public Property MostrarRetISR As Boolean
|
Public Property MostrarRetISR As Boolean
|
||||||
Public Property Regimen As String
|
Public Property Regimen As String
|
||||||
@@ -63,7 +62,6 @@ Public Class Empresa
|
|||||||
Public Property RegistroCompleto As Integer
|
Public Property RegistroCompleto As Integer
|
||||||
Public Property Importe As Decimal
|
Public Property Importe As Decimal
|
||||||
Public Property CveMetodoPago As Integer
|
Public Property CveMetodoPago As Integer
|
||||||
|
|
||||||
Public Property CodigoRegimenFiscal As String
|
Public Property CodigoRegimenFiscal As String
|
||||||
Public Property RegimenFiscal As String
|
Public Property RegimenFiscal As String
|
||||||
Public Property EstatusFacturacion As Boolean
|
Public Property EstatusFacturacion As Boolean
|
||||||
@@ -109,22 +107,22 @@ Public Class Empresa
|
|||||||
End If
|
End If
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public Property IdCuentaIVAxTrasladar As Integer
|
'Public Property IdCuentaIVAxTrasladar As Integer
|
||||||
Public Property IdCuentaIVATrasladado As Integer
|
'Public Property IdCuentaIVATrasladado As Integer
|
||||||
Public Property IdCuentaPerdidaCambiaria As Integer
|
'Public Property IdCuentaPerdidaCambiaria As Integer
|
||||||
Public Property IdCuentaGananciaCambiaria As Integer
|
'Public Property IdCuentaGananciaCambiaria As Integer
|
||||||
Public Property ContaContabilizacionNC As Integer
|
' Public Property ContaContabilizacionNC As Integer
|
||||||
Public Property PV_TerminalTipo As Integer
|
Public Property PV_TerminalTipo As Integer
|
||||||
Public Property PlantillaMailVenta As String
|
Public Property PlantillaMailVenta As String
|
||||||
Public Property AsuntoPlantillaMailVenta As String
|
Public Property AsuntoPlantillaMailVenta As String
|
||||||
|
|
||||||
'Nuevas
|
'Nuevas
|
||||||
Public Property IdCuentaIVAxAcreditar As Integer
|
'Public Property IdCuentaIVAxAcreditar As Integer
|
||||||
Public Property IdCuentaIVAAcreditable As Integer
|
'Public Property IdCuentaIVAAcreditable As Integer
|
||||||
Public Property IdCuentaRetIVACirculacion As Integer
|
'Public Property IdCuentaRetIVACirculacion As Integer
|
||||||
Public Property IdCuentaRetISRCirculacion As Integer
|
'Public Property IdCuentaRetISRCirculacion As Integer
|
||||||
Public Property IdCuentaDSV As Integer
|
'Public Property IdCuentaDSV As Integer
|
||||||
Public Property IdCuentaImpuestosLocales As Integer
|
'Public Property IdCuentaImpuestosLocales As Integer
|
||||||
Public Property IdCtaProveedor As Integer
|
Public Property IdCtaProveedor As Integer
|
||||||
Public Property IdCtaCliente As Integer
|
Public Property IdCtaCliente As Integer
|
||||||
Public Property IdCtaDeudores As Integer
|
Public Property IdCtaDeudores As Integer
|
||||||
@@ -134,10 +132,6 @@ Public Class Empresa
|
|||||||
Public Property IdCtaAnticipoProveedores As Integer
|
Public Property IdCtaAnticipoProveedores As Integer
|
||||||
|
|
||||||
'Nuevos Datos
|
'Nuevos Datos
|
||||||
Public Property IdCuentaIEPSxAcreditar As Integer
|
|
||||||
Public Property IdCuentaIEPSAcreditable As Integer
|
|
||||||
Public Property IdCuentaIEPSxTrasladar As Integer
|
|
||||||
Public Property IdCuentaIEPSTrasladado As Integer
|
|
||||||
Public Property PorDepreciacion As Decimal
|
Public Property PorDepreciacion As Decimal
|
||||||
Public Property CvePlataforma As Integer
|
Public Property CvePlataforma As Integer
|
||||||
Public Property CveDistribuidor As Integer
|
Public Property CveDistribuidor As Integer
|
||||||
|
|||||||
@@ -158,8 +158,13 @@ Public Class LogicNominas
|
|||||||
Dim drow As DataRow = objNomina.DtResultados.Rows(0)
|
Dim drow As DataRow = objNomina.DtResultados.Rows(0)
|
||||||
CvePersonal = drow("CvePersonal").ToString().ToEntero()
|
CvePersonal = drow("CvePersonal").ToString().ToEntero()
|
||||||
CvePeriodo = drow("CvePeriodo").ToString().ToEntero()
|
CvePeriodo = drow("CvePeriodo").ToString().ToEntero()
|
||||||
totalDb = drow("Total").ToString().ToDecimal()
|
If TimbreIndemnizacion Then
|
||||||
subTotalDb = drow("SubTotal").ToString().ToDecimal()
|
totalDb = drow("TotalFin").ToString().ToDecimal()
|
||||||
|
subTotalDb = drow("SubTotalFin").ToString().ToDecimal()
|
||||||
|
Else
|
||||||
|
totalDb = drow("Total").ToString().ToDecimal()
|
||||||
|
subTotalDb = drow("SubTotal").ToString().ToDecimal()
|
||||||
|
End If
|
||||||
cfdi.Nomina.Antiguedad = drow("Antiguedad").ToString().ToEntero()
|
cfdi.Nomina.Antiguedad = drow("Antiguedad").ToString().ToEntero()
|
||||||
cfdi.Nomina.UltimoSueldoOrdinario = drow("UltimoSueldoOrdinario").ToString().ToDecimal()
|
cfdi.Nomina.UltimoSueldoOrdinario = drow("UltimoSueldoOrdinario").ToString().ToDecimal()
|
||||||
Serie = objNomina.Serie
|
Serie = objNomina.Serie
|
||||||
|
|||||||
@@ -2421,10 +2421,10 @@ Namespace Modelos
|
|||||||
SeContabiliza = False
|
SeContabiliza = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=ObjFactura.DtDetalle.MAX("PorcentajeIVA").ToDouble).Rows.Count > 0 Then
|
'If ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=ObjFactura.DtDetalle.MAX("PorcentajeIVA").ToDouble).Rows.Count > 0 Then
|
||||||
IdCtaIVAXTrasladar = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=DtDetalle.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVAXTrasladar").ToString.ToEntero
|
' IdCtaIVAXTrasladar = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=DtDetalle.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVAXTrasladar").ToString.ToEntero
|
||||||
IdCtaIVATrasladado = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=DtDetalle.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVATrasladado").ToString.ToEntero
|
' IdCtaIVATrasladado = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=DtDetalle.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVATrasladado").ToString.ToEntero
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Dim UsaComplementariaClientes As Boolean = True
|
Dim UsaComplementariaClientes As Boolean = True
|
||||||
'If UsuarioActual.CveEmpresa.Contiene(1, 119) Then UsaComplementariaClientes = True
|
'If UsuarioActual.CveEmpresa.Contiene(1, 119) Then UsaComplementariaClientes = True
|
||||||
@@ -2491,11 +2491,9 @@ Namespace Modelos
|
|||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((importeMovimiento * difFluctuacion).RoundSQL)
|
Dim ImporteFluctuacion As Decimal = Math.Abs((importeMovimiento * difFluctuacion).RoundSQL)
|
||||||
|
|
||||||
@@ -2798,11 +2796,9 @@ Namespace Modelos
|
|||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe251 * difFluctuacion).RoundSQL) * ValorMultiplicador
|
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe251 * difFluctuacion).RoundSQL) * ValorMultiplicador
|
||||||
|
|
||||||
@@ -2889,11 +2885,9 @@ Namespace Modelos
|
|||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((importeMovimientoDev * difFluctuacion).RoundSQL) * ValorMultiplicador
|
Dim ImporteFluctuacion As Decimal = Math.Abs((importeMovimientoDev * difFluctuacion).RoundSQL) * ValorMultiplicador
|
||||||
|
|
||||||
@@ -3183,11 +3177,9 @@ Namespace Modelos
|
|||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe251 * difFluctuacion).RoundSQL) * ValorMultiplicador
|
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe251 * difFluctuacion).RoundSQL) * ValorMultiplicador
|
||||||
|
|
||||||
@@ -3332,20 +3324,20 @@ Namespace Modelos
|
|||||||
CveVentaAmortizacionAplicar = ObjFactura.CveVenta
|
CveVentaAmortizacionAplicar = ObjFactura.CveVenta
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
''código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
||||||
For i = 0 To TmpDTDetalle.Rows.Count - 1
|
'For i = 0 To TmpDTDetalle.Rows.Count - 1
|
||||||
|
|
||||||
'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
' 'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
||||||
If Not TmpDTDetalle(i)("CveClasificacion").ToString.Contiene("19958", "19933") Then
|
' If Not TmpDTDetalle(i)("CveClasificacion").ToString.Contiene("19958", "19933") Then
|
||||||
|
|
||||||
'reclasifica la clasificación del producto, por la del ingreso correspondiente a su iva
|
' 'reclasifica la clasificación del producto, por la del ingreso correspondiente a su iva
|
||||||
If ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString.ToDecimal).Rows.Count > 0 Then
|
' If ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString.ToDecimal).Rows.Count > 0 Then
|
||||||
TmpDTDetalle(i)("CveClasificacion") = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString.ToDecimal).Rows(0)("CveClasificacion").ToString
|
' TmpDTDetalle(i)("CveClasificacion") = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString.ToDecimal).Rows(0)("CveClasificacion").ToString
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
Next
|
'Next
|
||||||
|
|
||||||
DT = TmpDTDetalle.FiltraParametros($"CvePS <> {ObjFactura.CvePSAmortizacion}", "", {"CveClasificacion", "CveSubProyecto", "PorcentajeIVA"})
|
DT = TmpDTDetalle.FiltraParametros($"CvePS <> {ObjFactura.CvePSAmortizacion}", "", {"CveClasificacion", "CveSubProyecto", "PorcentajeIVA"})
|
||||||
|
|
||||||
@@ -3396,23 +3388,23 @@ Namespace Modelos
|
|||||||
CveVentaAmortizacionAplicar = ObjFactura.CveVenta
|
CveVentaAmortizacionAplicar = ObjFactura.CveVenta
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 119 Then
|
'If UsuarioActual.CveEmpresa = 119 Then
|
||||||
|
|
||||||
'código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
' 'código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
||||||
For i = 0 To TmpDTDetalle.Rows.Count - 1
|
' For i = 0 To TmpDTDetalle.Rows.Count - 1
|
||||||
|
|
||||||
'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
' 'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
||||||
If Not TmpDTDetalle(i)("CveClasificacion").ToString.Contiene("19958", "19933", "20242") Then
|
' If Not TmpDTDetalle(i)("CveClasificacion").ToString.Contiene("19958", "19933", "20242") Then
|
||||||
|
|
||||||
If ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows.Count > 0 Then
|
' If ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows.Count > 0 Then
|
||||||
TmpDTDetalle(i)("CveClasificacion") = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows(0)("CveClasificacion").ToString
|
' TmpDTDetalle(i)("CveClasificacion") = ClsPaginas.GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows(0)("CveClasificacion").ToString
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
Next
|
' Next
|
||||||
|
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
DT = TmpDTDetalle.FiltraParametros($"CvePS <> {ObjFactura.CvePSAmortizacion}", "", {"CveClasificacion", "CveSubProyecto", "PorcentajeIVA"})
|
DT = TmpDTDetalle.FiltraParametros($"CvePS <> {ObjFactura.CvePSAmortizacion}", "", {"CveClasificacion", "CveSubProyecto", "PorcentajeIVA"})
|
||||||
|
|
||||||
@@ -3583,9 +3575,6 @@ Namespace Modelos
|
|||||||
importeMovimiento = importeMovimiento * -1
|
importeMovimiento = importeMovimiento * -1
|
||||||
importeMX = importeMX * -1
|
importeMX = importeMX * -1
|
||||||
|
|
||||||
IdCtaContable = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
|
|
||||||
Else
|
|
||||||
IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
CveSubProyectoContabilizar = CveSubProyectoVenta
|
CveSubProyectoContabilizar = CveSubProyectoVenta
|
||||||
@@ -3693,7 +3682,6 @@ Namespace Modelos
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'IVA X TRASLADAR
|
'IVA X TRASLADAR
|
||||||
IdCtaIVAXTrasladar = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 13, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 13, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 13, Concepto, Fecha, IdCtaIVAXTrasladar, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 13, Concepto, Fecha, IdCtaIVAXTrasladar, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
@@ -3701,7 +3689,6 @@ Namespace Modelos
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'IVA PAGADO
|
'IVA PAGADO
|
||||||
IdCtaIVATrasladado = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
|
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 61, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 61, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 61, Concepto, Fecha, IdCtaIVATrasladado, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 61, Concepto, Fecha, IdCtaIVATrasladado, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
@@ -3710,14 +3697,14 @@ Namespace Modelos
|
|||||||
|
|
||||||
'IEPS X TRASLADAR
|
'IEPS X TRASLADAR
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 38, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 38, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
||||||
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 38, Concepto, Fecha, UsuarioActual.Empresa.IdCuentaIEPSxTrasladar, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 38, Concepto, Fecha, 0, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'IEPS PAGADO
|
'IEPS PAGADO
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 39, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 39, ObjFactura.Cliente.Nombre, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString)
|
||||||
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 39, Concepto, Fecha, UsuarioActual.Empresa.IdCuentaIEPSTrasladado, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 39, Concepto, Fecha, 0, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -345,7 +345,6 @@ Partial Class Bancos_DepositoTerminal
|
|||||||
|
|
||||||
ImporteMovimiento = gvr.DataKey("IVA").ToDecimal * PorcentajePago
|
ImporteMovimiento = gvr.DataKey("IVA").ToDecimal * PorcentajePago
|
||||||
importeMX = Math.Round(ImporteMovimiento * tipoCambioVenta, 2)
|
importeMX = Math.Round(ImporteMovimiento * tipoCambioVenta, 2)
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIVAxTrasladar
|
|
||||||
If tipoCambioVenta > 1 Then ConceptoMovimiento += $" TC:{tipoCambioVenta} ${ImporteMovimiento.FormatoNumero(2)}"
|
If tipoCambioVenta > 1 Then ConceptoMovimiento += $" TC:{tipoCambioVenta} ${ImporteMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
Case 62 'Ret IVA Trasladado
|
Case 62 'Ret IVA Trasladado
|
||||||
@@ -387,7 +386,6 @@ Partial Class Bancos_DepositoTerminal
|
|||||||
|
|
||||||
ImporteMovimiento = gvr.DataKey("IVA").ToDecimal * PorcentajePago
|
ImporteMovimiento = gvr.DataKey("IVA").ToDecimal * PorcentajePago
|
||||||
importeMX = Math.Round(ImporteMovimiento * tipoCambioManual, 2)
|
importeMX = Math.Round(ImporteMovimiento * tipoCambioManual, 2)
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIVATrasladado
|
|
||||||
If tipoCambioManual > 1 Then ConceptoMovimiento += $" TC:{tipoCambioManual} ${ImporteMovimiento.FormatoNumero(2)}"
|
If tipoCambioManual > 1 Then ConceptoMovimiento += $" TC:{tipoCambioManual} ${ImporteMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
Case 38 'IEPS por trasladar
|
Case 38 'IEPS por trasladar
|
||||||
@@ -395,14 +393,10 @@ Partial Class Bancos_DepositoTerminal
|
|||||||
ImporteMovimiento = gvr.DataKey("IEPS").ToDecimal * PorcentajePago
|
ImporteMovimiento = gvr.DataKey("IEPS").ToDecimal * PorcentajePago
|
||||||
importeMX = Math.Round(ImporteMovimiento * tipoCambioVenta, 2)
|
importeMX = Math.Round(ImporteMovimiento * tipoCambioVenta, 2)
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSxTrasladar
|
|
||||||
|
|
||||||
Case 39 'IEPS Trasladado
|
Case 39 'IEPS Trasladado
|
||||||
ImporteMovimiento = gvr.DataKey("IEPS").ToDecimal * PorcentajePago
|
ImporteMovimiento = gvr.DataKey("IEPS").ToDecimal * PorcentajePago
|
||||||
importeMX = Math.Round(ImporteMovimiento * tipoCambioManual, 2)
|
importeMX = Math.Round(ImporteMovimiento * tipoCambioManual, 2)
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSTrasladado
|
|
||||||
|
|
||||||
Case 78 'Otros Ingresos
|
Case 78 'Otros Ingresos
|
||||||
If ChkAjusteOI.Checked Then
|
If ChkAjusteOI.Checked Then
|
||||||
ImporteMovimiento = gvr.FCTextBox("TxtComision").Text.ToDecimal
|
ImporteMovimiento = gvr.FCTextBox("TxtComision").Text.ToDecimal
|
||||||
|
|||||||
@@ -540,12 +540,12 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//IVA
|
//IVA
|
||||||
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, false, -gvr.FCTextBox("TxtIVA").Text.ToDecimal(), Ref, 13, Conc, DateTime.Now, UsuarioActual.Empresa.IdCuentaIVAxTrasladar, -1, CveIE, CveIEDevolucion: gvr.DataKey("CveIE").ToEntero(), CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero(), CveCliente: DdlCliente.SelectedValue.ToEntero(), ImporteMX: -gvr.FCTextBox("TxtIVA").Text.ToDecimal()))
|
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, false, -gvr.FCTextBox("TxtIVA").Text.ToDecimal(), Ref, 13, Conc, DateTime.Now, 0, -1, CveIE, CveIEDevolucion: gvr.DataKey("CveIE").ToEntero(), CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero(), CveCliente: DdlCliente.SelectedValue.ToEntero(), ImporteMX: -gvr.FCTextBox("TxtIVA").Text.ToDecimal()))
|
||||||
{
|
{
|
||||||
MsgError = "No se pudo insertar concepto de IVA";
|
MsgError = "No se pudo insertar concepto de IVA";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, true, -gvr.FCTextBox("TxtIVA").Text.ToDecimal(), Ref, 61, Conc, DateTime.Now, UsuarioActual.Empresa.IdCuentaIVAxTrasladar, -1, CveIE, CveIEDevolucion: gvr.DataKey("CveIE").ToEntero(), CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero(), CveCliente: DdlCliente.SelectedValue.ToEntero(), ImporteMX: -gvr.FCTextBox("TxtIVA").Text.ToDecimal()))
|
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, true, -gvr.FCTextBox("TxtIVA").Text.ToDecimal(), Ref, 61, Conc, DateTime.Now,0, -1, CveIE, CveIEDevolucion: gvr.DataKey("CveIE").ToEntero(), CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero(), CveCliente: DdlCliente.SelectedValue.ToEntero(), ImporteMX: -gvr.FCTextBox("TxtIVA").Text.ToDecimal()))
|
||||||
{
|
{
|
||||||
MsgError = "No se pudo insertar concepto de IVA";
|
MsgError = "No se pudo insertar concepto de IVA";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -759,7 +759,59 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|
||||||
<ajax:TabPanel runat="server" ID="TabFilial" HeaderText="Filial">
|
<ajax:TabPanel runat="server" ID="TabAcreedoresDiversos" HeaderText="AcreedoresDiversos">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-5 form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtConceptoAcreedoresDiversos" ClientIDMode="Static" Style="text-transform: uppercase;" runat="server" MaxLength="100" CssClass="form-control " Width="90%"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtConceptoAcreedoresDiversos"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarAcreedoresDiversos"></asp:RequiredFieldValidator>
|
||||||
|
<label for="TxtConceptoAcreedoresDiversos">Concepto:</label>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2 form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlSubProyectoAcreedoresDiversos" ClientIDMode="Static" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me js-referencia-programmatic marginFixRow" Width="90%">
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="DdlSubProyectoAcreedoresDiversos">
|
||||||
|
<asp:Label runat="server" ID="LblSubProyectoAcreedoresDiversos"></asp:Label>
|
||||||
|
</label>
|
||||||
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="help-block errorimput" InitialValue="-1" ControlToValidate="DdlSubProyectoAcreedoresDiversos" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarAcreedoresDiversos"></asp:RequiredFieldValidator>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6" style="text-align: right!important">
|
||||||
|
<asp:HiddenField ID="HdnAcreedoresDiversosCvePrePoliza" runat="server" />
|
||||||
|
<asp:HyperLink ID="HplAcreedoresDiversosPoliza" runat="server" Text="Ver Póliza" CssClass="Texto" Visible="false" />
|
||||||
|
<asp:Button ID="BtnAcreedoresDiversosRemove" runat="server" Text="Eliminar" Visible="false" OnClick="BtnAcreedoresDiversosRemove_Click" class="btn btn-primary" data-toggle="confirmation" data-popout="true" data-original-title="Está seguro de eliminar?" data-btn-ok-label="si" />
|
||||||
|
|
||||||
|
<asp:Button Text="Generar Acreedores Diversos" runat="server" ID="BtnGeneraAcreeedoresDiversos" OnClick="BtnGeneraAcreeedoresDiversos_Click" Style="margin-left: 30px;" class="btn btn-primary" ValidationGroup="GrpGuardarAcreedoresDiversos" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<div style="float: right; margin-right: 50px;">
|
||||||
|
</div>
|
||||||
|
<asp:GridView ID="GvAcreedorDiversos" Width="99%" runat="server" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="TipoCambio,Fluctuacion,RazonSocial,CveProveedor"
|
||||||
|
EmptyDataText="No se Encontraron" ToolTip=""
|
||||||
|
CssClass="table table-hover table-striped ScrollAD mysmallbtn" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Acreedor" DataField="RazonSocial" ItemStyle-Width="250" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Saldo" DataField="Saldo" ItemStyle-Width="100" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="T.C. último ajuste" DataField="TipoCambio" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Fluctuación" DataField="Fluctuacion" DataFormatString="{0:N2}" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
<asp:Label ID="LblTotalAcreedoresDiversos" runat="server" Text=""></asp:Label>
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
|
|
||||||
|
<ajax:TabPanel runat="server" ID="TabFilial" HeaderText="Filial" Visible="false" >
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
@@ -806,17 +858,7 @@
|
|||||||
<asp:BoundField HeaderText="Fluctuación" DataField="Fluctuacion" DataFormatString="{0:N2}" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Fluctuación" DataField="Fluctuacion" DataFormatString="{0:N2}" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
<asp:GridView ID="GvAcreedorDiversos" Width="99%" runat="server" AutoGenerateColumns="False"
|
|
||||||
DataKeyNames="TipoCambio,Fluctuacion,RazonSocial,CveProveedor"
|
|
||||||
EmptyDataText="No se Encontraron" ToolTip=""
|
|
||||||
CssClass="table table-hover table-striped ScrollAD mysmallbtn" GridLines="None">
|
|
||||||
<Columns>
|
|
||||||
<asp:BoundField HeaderText="Acreedor" DataField="RazonSocial" ItemStyle-Width="250" ItemStyle-HorizontalAlign="Left" />
|
|
||||||
<asp:BoundField HeaderText="Saldo" DataField="Saldo" ItemStyle-Width="100" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
||||||
<asp:BoundField HeaderText="T.C. último ajuste" DataField="TipoCambio" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
|
||||||
<asp:BoundField HeaderText="Fluctuación" DataField="Fluctuacion" DataFormatString="{0:N2}" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
|
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
CargarCentrosDeCosto(Nothing, DdlSubProyectoAcreeedoresAnt, Nothing, LblSubProyectoAcreedoresAnt, "")
|
CargarCentrosDeCosto(Nothing, DdlSubProyectoAcreeedoresAnt, Nothing, LblSubProyectoAcreedoresAnt, "")
|
||||||
CargarCentrosDeCosto(Nothing, DdlSubproyectoBancos, Nothing, LblSubProyectoBancos, "")
|
CargarCentrosDeCosto(Nothing, DdlSubproyectoBancos, Nothing, LblSubProyectoBancos, "")
|
||||||
CargarCentrosDeCosto(Nothing, DdlSubProyectoFiliales, Nothing, LblSubProyectoFiliales, "")
|
CargarCentrosDeCosto(Nothing, DdlSubProyectoFiliales, Nothing, LblSubProyectoFiliales, "")
|
||||||
|
CargarCentrosDeCosto(Nothing, DdlSubProyectoAcreedoresDiversos, Nothing, LblSubProyectoAcreedoresDiversos, "")
|
||||||
|
|
||||||
CargarCentrosDeCosto(Nothing, DdlSubProyectoDeudores, Nothing, LblSubProyectoDeudores, "")
|
CargarCentrosDeCosto(Nothing, DdlSubProyectoDeudores, Nothing, LblSubProyectoDeudores, "")
|
||||||
|
|
||||||
CargaUltimaFluctuacion()
|
CargaUltimaFluctuacion()
|
||||||
@@ -66,6 +68,10 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
||||||
|
CargaDatos()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaDatos()
|
||||||
CargaTipoCambio()
|
CargaTipoCambio()
|
||||||
If T.ActiveTabIndex = 0 Then CargaDatosProveedores()
|
If T.ActiveTabIndex = 0 Then CargaDatosProveedores()
|
||||||
If T.ActiveTabIndex = 1 Then CargaDatosProveedoresAnticipos()
|
If T.ActiveTabIndex = 1 Then CargaDatosProveedoresAnticipos()
|
||||||
@@ -288,8 +294,9 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
HdnAcreedorAntCvePrePoliza.Value = ObjBancos.DtResultados.MAX("CvePrePoliza").ToString
|
HdnAcreedorAntCvePrePoliza.Value = ObjBancos.DtResultados.MAX("CvePrePoliza").ToString
|
||||||
BtnAcreedoresAntRemove.Visible = HdnAcreedorAntCvePrePoliza.Value.ToEntero > 0
|
BtnAcreedoresAntRemove.Visible = HdnAcreedorAntCvePrePoliza.Value.ToEntero > 0
|
||||||
BtnGeneraAcreedoresAnt.Visible = Not HdnAcreedorAntCvePrePoliza.Value.ToEntero > 0
|
BtnGeneraAcreedoresAnt.Visible = Not HdnAcreedorAntCvePrePoliza.Value.ToEntero > 0
|
||||||
|
HdnCveFluctuacionBitacora.Value = ObjBancos.DtResultados.MAX("CveFluctuacionBitacora").ToString
|
||||||
|
|
||||||
HplAcreedorAntLiga.Visible = HdnAcreedorCvePrePoliza.Value.ToEntero > 0
|
HplAcreedorAntLiga.Visible = HdnAcreedorAntCvePrePoliza.Value.ToEntero > 0
|
||||||
HplAcreedorAntLiga.NavigateUrl = String.Format("/Contabilidad/RegPrePolizas.aspx?CvePrePoliza={0}", ObjBancos.DtResultados.MAX("CvePrePoliza").ToString)
|
HplAcreedorAntLiga.NavigateUrl = String.Format("/Contabilidad/RegPrePolizas.aspx?CvePrePoliza={0}", ObjBancos.DtResultados.MAX("CvePrePoliza").ToString)
|
||||||
GvAcreedoresAnt.DataSource = ObjBancos.DtResultados
|
GvAcreedoresAnt.DataSource = ObjBancos.DtResultados
|
||||||
LblTotalAcreedoresAnt.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
LblTotalAcreedoresAnt.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
@@ -380,8 +387,16 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
LblTotalAcreedores.Text = "0.00"
|
LblTotalAcreedores.Text = "0.00"
|
||||||
If ObjBancos.GetFluctuaciones(FechaUltimoDiaMes, 88, UsuarioActual.CveEmpresa) Then
|
If ObjBancos.GetFluctuaciones(FechaUltimoDiaMes, 88, UsuarioActual.CveEmpresa) Then
|
||||||
GvAcreedorDiversos.DataSource = ObjBancos.DtResultados.FiltraParametros("Saldo > 0")
|
HdnAcreedoresDiversosCvePrePoliza.Value = ObjBancos.DtResultados.MAX("CvePrePoliza").ToString
|
||||||
LblTotalAcreedores.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
HdnCveFluctuacionBitacora.Value = ObjBancos.DtResultados.MAX("CveFluctuacionBitacora").ToString
|
||||||
|
BtnAcreedoresDiversosRemove.Visible = HdnAcreedoresDiversosCvePrePoliza.Value.ToEntero > 0
|
||||||
|
BtnGeneraAcreeedoresDiversos.Visible = Not HdnAcreedoresDiversosCvePrePoliza.Value.ToEntero > 0
|
||||||
|
|
||||||
|
HplAcreedoresDiversosPoliza.Visible = HdnAcreedoresDiversosCvePrePoliza.Value.ToEntero > 0
|
||||||
|
HplAcreedoresDiversosPoliza.NavigateUrl = String.Format("/Contabilidad/RegPrePolizas.aspx?CvePrePoliza={0}", ObjBancos.DtResultados.MAX("CvePrePoliza").ToString)
|
||||||
|
|
||||||
|
GvAcreedorDiversos.DataSource = ObjBancos.DtResultados
|
||||||
|
LblTotalAcreedoresDiversos.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
Else
|
Else
|
||||||
GvAcreedorDiversos.DataSource = Nothing
|
GvAcreedorDiversos.DataSource = Nothing
|
||||||
Alert("Ocurrio un error al cargar los acreedores", TipoMensaje.MsgAdvertencia)
|
Alert("Ocurrio un error al cargar los acreedores", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -414,8 +429,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
|
|
||||||
Total = LblTotal.ToDecimal
|
Total = LblTotal.ToDecimal
|
||||||
@@ -494,8 +507,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
|
|
||||||
Total = LblTotal.ToDecimal
|
Total = LblTotal.ToDecimal
|
||||||
@@ -578,8 +589,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
|
|
||||||
Dim TCUltimaFluctuacion As Decimal = GlobalTipoCambio(FechaUltimoDiaMes).ToDecimal()
|
Dim TCUltimaFluctuacion As Decimal = GlobalTipoCambio(FechaUltimoDiaMes).ToDecimal()
|
||||||
@@ -675,8 +684,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
|
|
||||||
Dim TCUltimaFluctuacion As Decimal = GlobalTipoCambio(FechaUltimoDiaMes).ToDecimal()
|
Dim TCUltimaFluctuacion As Decimal = GlobalTipoCambio(FechaUltimoDiaMes).ToDecimal()
|
||||||
@@ -781,8 +788,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
|
|
||||||
Total = LblTotalAcreedores.Text.ToDecimal
|
Total = LblTotalAcreedores.Text.ToDecimal
|
||||||
@@ -870,8 +875,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
|
|
||||||
Total = LblTotalAcreedoresAnt.Text.ToDecimal
|
Total = LblTotalAcreedoresAnt.Text.ToDecimal
|
||||||
@@ -953,8 +956,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 ' 55379
|
CveCuentaPerdida = 0 ' 55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
Total = LblTotalBancos.Text.ToDecimal
|
Total = LblTotalBancos.Text.ToDecimal
|
||||||
|
|
||||||
@@ -1039,8 +1040,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
Dim TCCierreFluctuacion As Decimal = LtTipoCambioActual.Text.ToDecimal
|
Dim TCCierreFluctuacion As Decimal = LtTipoCambioActual.Text.ToDecimal
|
||||||
|
|
||||||
@@ -1102,8 +1101,8 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
Dim Total As Decimal = 0
|
Dim Total As Decimal = 0
|
||||||
Dim Conta As New ClsContabilidad
|
Dim Conta As New ClsContabilidad
|
||||||
Dim Banco As New ClsBancos(Conta.IniciaTransacSQL())
|
Dim Banco As New ClsBancos(Conta.IniciaTransacSQL())
|
||||||
Dim ObjContPaq As New ClsContPAQi(UsuarioActual.Empresa)
|
'Dim ObjContPaq As New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
ObjContPaq.IniciaTransacSQL()
|
'ObjContPaq.IniciaTransacSQL()
|
||||||
Dim CvePrePoliza As Integer = Conta.AddPrePolizas("Banc/FluctuaFilial", 1, 0, 0, 1, FechaUltimoDiaMes, TxtConceptoFiliales.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
Dim CvePrePoliza As Integer = Conta.AddPrePolizas("Banc/FluctuaFilial", 1, 0, 0, 1, FechaUltimoDiaMes, TxtConceptoFiliales.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
Dim idCta As Integer = 0
|
Dim idCta As Integer = 0
|
||||||
Dim CveCuenta As Integer = 0
|
Dim CveCuenta As Integer = 0
|
||||||
@@ -1117,8 +1116,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
CveCuentaPerdida = 0 '55379
|
CveCuentaPerdida = 0 '55379
|
||||||
CveCuentaGanancia = 0 ' 55382
|
CveCuentaGanancia = 0 ' 55382
|
||||||
idCtaPerdida = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria '1227
|
|
||||||
IdCtaGanancia = UsuarioActual.Empresa.IdCuentaGananciaCambiaria '1230
|
|
||||||
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
Dim TCCierreFluctuacion As Decimal = LtTipoCambioActual.Text.ToDecimal
|
Dim TCCierreFluctuacion As Decimal = LtTipoCambioActual.Text.ToDecimal
|
||||||
|
|
||||||
@@ -1157,9 +1154,6 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
Banco.UpdateBancosTipoCambioValuacion(TCCierreFluctuacion, gvr.DataKey("CveIE").ToEntero, UsuarioActual.CveEmpresa)
|
Banco.UpdateBancosTipoCambioValuacion(TCCierreFluctuacion, gvr.DataKey("CveIE").ToEntero, UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
If Not ErrorRegistrar Then
|
If Not ErrorRegistrar Then
|
||||||
@@ -1168,28 +1162,96 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
Dim AutoConta As Boolean = UsuarioActual.Empresa.Funcionalidad(200) = "1"
|
Dim AutoConta As Boolean = UsuarioActual.Empresa.Funcionalidad(200) = "1"
|
||||||
If AutoConta Then
|
If AutoConta Then
|
||||||
|
|
||||||
If Conta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjContPaq) Then
|
If Conta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
Else
|
Else
|
||||||
Alert("Ocurrio un Error al contabilizar, pongase en contacto con Soporte Técnico", TipoMensaje.MsgError)
|
Alert("Ocurrio un Error al contabilizar, pongase en contacto con Soporte Técnico", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjContPaq IsNot Nothing Then ObjContPaq.Commit()
|
' If ObjContPaq IsNot Nothing Then ObjContPaq.Commit()
|
||||||
'Fin autoconta
|
'Fin autoconta
|
||||||
Conta.Commit()
|
Conta.Commit()
|
||||||
|
|
||||||
Alert(String.Format("La Fluctuación se ha generado <br/> <a href='/Contabilidad/RegPrePolizas.aspx?CvePrePoliza={0}'>Ver Póliza</a>", CvePrePoliza), TipoMensaje.MsgInformacion)
|
Alert(String.Format("La Fluctuación se ha generado <br/> <a href='/Contabilidad/RegPrePolizas.aspx?CvePrePoliza={0}' class='Texto'>Ver Póliza</a>", CvePrePoliza), TipoMensaje.MsgInformacion)
|
||||||
Else
|
Else
|
||||||
Conta.RollBack()
|
Conta.RollBack()
|
||||||
ObjContPaq.RollBack()
|
'ObjContPaq.RollBack()
|
||||||
End If
|
End If
|
||||||
Conta.Dispose()
|
Conta.Dispose()
|
||||||
Banco.Dispose()
|
Banco.Dispose()
|
||||||
ObjContPaq.Dispose()
|
'ObjContPaq.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
#Region "FLUCTUACION ACREEDORES DIVEROS"
|
||||||
|
Protected Sub BtnGeneraAcreeedoresDiversos_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
Dim Conta As New ClsContabilidad
|
||||||
|
Dim Banco As New ClsBancos(Conta.IniciaTransacSQL())
|
||||||
|
Dim CvePrePoliza As Integer = Conta.AddPrePolizas("Banc/FluctuaAD", 1, 0, 0, 1, FechaUltimoDiaMes, TxtConceptoAcreedoresDiversos.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
|
Dim CveConceptoContable As Integer
|
||||||
|
Dim TipoMovto As Boolean
|
||||||
|
Dim ErrorRegistrar As Boolean = False
|
||||||
|
|
||||||
|
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
|
||||||
|
Dim TCCierreFluctuacion As Decimal = LtTipoCambioActual.Text.ToDecimal
|
||||||
|
Dim TotalAcumulado As Decimal = 0
|
||||||
|
Dim ConceptoFluctuacion As String = String.Format("Fluctuación Acreedores Diversos {0:d} ", FechaUltimoDiaMes)
|
||||||
|
|
||||||
|
|
||||||
|
For Each gvr As GridViewRow In GvAcreedorDiversos.Rows
|
||||||
|
TotalAcumulado += gvr.DataKey("Fluctuacion").ToDecimal
|
||||||
|
Next
|
||||||
|
'TotalAcumulado = GvAcreedorDiversos.Rows.Cast(Of GridViewRow)().Sum(Function(gvr) Convert.ToDecimal(GvAcreedorDiversos.DataKeys(gvr.RowIndex)("Fluctuacion")))
|
||||||
|
|
||||||
|
|
||||||
|
If TotalAcumulado < 0 Then
|
||||||
|
CveConceptoContable = 64 : TipoMovto = True
|
||||||
|
Else
|
||||||
|
CveConceptoContable = 65 : TipoMovto = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'saco las cuentas de pérdida y ganancia
|
||||||
|
For Each gvr As GridViewRow In GvAcreedorDiversos.Rows
|
||||||
|
|
||||||
|
If gvr.DataKey("Fluctuacion").ToDecimal <> 0 Then
|
||||||
|
'movimiento de complementaria
|
||||||
|
If Not Conta.AddPrePolizasDetalle(CvePrePoliza, TipoMovto, gvr.DataKey("Fluctuacion").ToDecimal, ConceptoFluctuacion, 351, ConceptoFluctuacion & gvr.DataKey("RazonSocial"), Now, 0, 0, TipoCambio:=TC, ImporteMX:=gvr.DataKey("Fluctuacion").ToDecimal, ImporteME:=gvr.DataKey("Fluctuacion").ToDecimal, CveProveedor:=gvr.DataKey("CveProveedor").ToEntero, CveSubProyecto:=DdlSubProyectoAcreedoresDiversos.SelectedValue.ToEntero) Then
|
||||||
|
ErrorRegistrar = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Next
|
||||||
|
If Not ErrorRegistrar Then
|
||||||
|
|
||||||
|
If Not Conta.AddPrePolizasDetalle(CvePrePoliza, TipoMovto, Math.Abs(TotalAcumulado), ConceptoFluctuacion, CveConceptoContable, ConceptoFluctuacion, Now, 0, 0, ImporteMX:=Math.Abs(TotalAcumulado), CveSubProyecto:=DdlSubProyectoAcreedoresDiversos.SelectedValue.ToEntero) Then
|
||||||
|
ErrorRegistrar = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not ErrorRegistrar Then
|
||||||
|
|
||||||
|
If Not Banco.UpdateFluctuacionesBitacoraPrePoliza(CvePrePoliza, 9, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
|
ErrorRegistrar = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
Conta.Commit()
|
||||||
|
|
||||||
|
Alert(String.Format("La Fluctuación se ha generado <br/> <a href='/Contabilidad/RegPrePolizas.aspx?CvePrePoliza={0}' class='Texto'>Ver Póliza</a>", CvePrePoliza), TipoMensaje.MsgInformacion)
|
||||||
|
Else
|
||||||
|
Conta.RollBack()
|
||||||
|
'ObjContPaq.RollBack()
|
||||||
|
End If
|
||||||
|
Conta.Dispose()
|
||||||
|
Banco.Dispose()
|
||||||
|
'ObjContPaq.Dispose()
|
||||||
|
End Sub
|
||||||
|
#End Region
|
||||||
#Region "GRIDVIEWS"
|
#Region "GRIDVIEWS"
|
||||||
|
|
||||||
|
|
||||||
@@ -1236,7 +1298,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnProveedorCvePrePoliza.Value.ToEntero, 1, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnProveedorCvePrePoliza.Value.ToEntero, 1, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
Banco.Commit()
|
Banco.Commit()
|
||||||
BtnProveedoresRemove.visible = False
|
BtnProveedoresRemove.visible = False
|
||||||
Alert("Flucturación eliminada.")
|
Alert("Fluctuación eliminada.")
|
||||||
Else
|
Else
|
||||||
Banco.RollBack()
|
Banco.RollBack()
|
||||||
End If
|
End If
|
||||||
@@ -1251,7 +1313,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnProveedorAntCvePrePoliza.Value.ToEntero, 2, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnProveedorAntCvePrePoliza.Value.ToEntero, 2, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
Banco.Commit()
|
Banco.Commit()
|
||||||
BtnProveedoresAntRemove.Visible = False
|
BtnProveedoresAntRemove.Visible = False
|
||||||
Alert("Flucturación eliminada.")
|
Alert("Fluctuación eliminada.")
|
||||||
Else
|
Else
|
||||||
Banco.RollBack()
|
Banco.RollBack()
|
||||||
End If
|
End If
|
||||||
@@ -1265,7 +1327,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnClienteCvePrePoliza.Value.ToEntero, 3, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnClienteCvePrePoliza.Value.ToEntero, 3, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
Banco.Commit()
|
Banco.Commit()
|
||||||
BtnClientesRemove.Visible = False
|
BtnClientesRemove.Visible = False
|
||||||
Alert("Flucturación eliminada.")
|
Alert("Fluctuación eliminada.")
|
||||||
Else
|
Else
|
||||||
Banco.RollBack()
|
Banco.RollBack()
|
||||||
End If
|
End If
|
||||||
@@ -1279,7 +1341,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnClienteAntCvePrePoliza.Value.ToEntero, 4, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnClienteAntCvePrePoliza.Value.ToEntero, 4, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
Banco.Commit()
|
Banco.Commit()
|
||||||
BtnClientesAntRemove.Visible = False
|
BtnClientesAntRemove.Visible = False
|
||||||
Alert("Flucturación eliminada.")
|
Alert("Fluctuación eliminada.")
|
||||||
Else
|
Else
|
||||||
Banco.RollBack()
|
Banco.RollBack()
|
||||||
End If
|
End If
|
||||||
@@ -1293,7 +1355,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnAcreedorCvePrePoliza.Value.ToEntero, 5, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnAcreedorCvePrePoliza.Value.ToEntero, 5, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
Banco.Commit()
|
Banco.Commit()
|
||||||
BtnAcreedoresRemove.Visible = False
|
BtnAcreedoresRemove.Visible = False
|
||||||
Alert("Flucturación eliminada.")
|
Alert("Fluctuación eliminada.")
|
||||||
Else
|
Else
|
||||||
Banco.RollBack()
|
Banco.RollBack()
|
||||||
End If
|
End If
|
||||||
@@ -1307,7 +1369,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnAcreedorAntCvePrePoliza.Value.ToEntero, 6, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnAcreedorAntCvePrePoliza.Value.ToEntero, 6, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
Banco.Commit()
|
Banco.Commit()
|
||||||
BtnAcreedoresAntRemove.Visible = False
|
BtnAcreedoresAntRemove.Visible = False
|
||||||
Alert("Flucturación eliminada.")
|
Alert("Fluctuación eliminada.")
|
||||||
Else
|
Else
|
||||||
Banco.RollBack()
|
Banco.RollBack()
|
||||||
End If
|
End If
|
||||||
@@ -1352,4 +1414,19 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub BtnAcreedoresDiversosRemove_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim Banco As New ClsBancos
|
||||||
|
Banco.IniciaTransacSQL()
|
||||||
|
|
||||||
|
If Banco.FluctuacionesBitacoraPrePolizaRemove(HdnAcreedoresDiversosCvePrePoliza.Value.ToEntero, 9, HdnCveFluctuacionBitacora.Value.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
|
Banco.Commit()
|
||||||
|
BtnAcreedoresDiversosRemove.Visible = False
|
||||||
|
CargaDatos()
|
||||||
|
Alert("Fluctuación eliminada.")
|
||||||
|
Else
|
||||||
|
Banco.RollBack()
|
||||||
|
End If
|
||||||
|
Banco.Dispose()
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -265,6 +265,7 @@
|
|||||||
<asp:ListItem Value="C">Clientes</asp:ListItem>
|
<asp:ListItem Value="C">Clientes</asp:ListItem>
|
||||||
<asp:ListItem Value="P">Proveedor</asp:ListItem>
|
<asp:ListItem Value="P">Proveedor</asp:ListItem>
|
||||||
<asp:ListItem Value="FE">Viáticos</asp:ListItem>
|
<asp:ListItem Value="FE">Viáticos</asp:ListItem>
|
||||||
|
<asp:ListItem Value="AC">Acreedor</asp:ListItem>
|
||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
<asp:HiddenField ID="HdnCveCliente" runat="server" ClientIDMode="Static" Value="-1" />
|
<asp:HiddenField ID="HdnCveCliente" runat="server" ClientIDMode="Static" Value="-1" />
|
||||||
<asp:HiddenField ID="HdnCveProveedor" runat="server" ClientIDMode="Static" Value="-1" />
|
<asp:HiddenField ID="HdnCveProveedor" runat="server" ClientIDMode="Static" Value="-1" />
|
||||||
|
|||||||
@@ -2818,7 +2818,7 @@ Partial Class Bancos_IE
|
|||||||
If TxtIvaIxC.Text.ToDouble > 0 Then
|
If TxtIvaIxC.Text.ToDouble > 0 Then
|
||||||
Dim PorcentajeIVA = (TxtIvaIxC.Text.ToDecimal() / (TxtImporte.Text.ToDecimal() - TxtIvaIxC.Text.ToDecimal())).RoundSQL(2)
|
Dim PorcentajeIVA = (TxtIvaIxC.Text.ToDecimal() / (TxtImporte.Text.ToDecimal() - TxtIvaIxC.Text.ToDecimal())).RoundSQL(2)
|
||||||
'Iva
|
'Iva
|
||||||
ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -TxtIvaIxC.Text.ToDecimal, Ref, 61, Conc, Now, UsuarioActual.Empresa.IdCuentaIVAxTrasladar, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-TxtIvaIxC.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, PorcentajeImpuesto:=If(PorcentajeIVA.ToString().Contiene("0.08", "0.16"), PorcentajeIVA, 0))
|
ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -TxtIvaIxC.Text.ToDecimal, Ref, 61, Conc, Now, 0, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-TxtIvaIxC.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, PorcentajeImpuesto:=If(PorcentajeIVA.ToString().Contiene("0.08", "0.16"), PorcentajeIVA, 0))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Bancos
|
'Bancos
|
||||||
@@ -2935,7 +2935,7 @@ Partial Class Bancos_IE
|
|||||||
Dim CveConIVA As Integer = 61
|
Dim CveConIVA As Integer = 61
|
||||||
If UsuarioActual.CveEmpresa = 70 Then CveConIVA = 299
|
If UsuarioActual.CveEmpresa = 70 Then CveConIVA = 299
|
||||||
Dim PorcentajeIVA = (TxtIvaIxC.Text.ToDecimal() / (TxtImporte.Text.ToDecimal() - TxtIvaIxC.Text.ToDecimal())).RoundSQL(2)
|
Dim PorcentajeIVA = (TxtIvaIxC.Text.ToDecimal() / (TxtImporte.Text.ToDecimal() - TxtIvaIxC.Text.ToDecimal())).RoundSQL(2)
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, TxtIvaIxC.Text.ToDecimal, Concepto, CveConIVA, Concepto, FechaMovimiento, UsuarioActual.Empresa.IdCuentaIVAxTrasladar, -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtIvaIxC.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, PorcentajeImpuesto:=PorcentajeIVA) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, TxtIvaIxC.Text.ToDecimal, Concepto, CveConIVA, Concepto, FechaMovimiento, 0, -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtIvaIxC.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, PorcentajeImpuesto:=PorcentajeIVA) Then
|
||||||
MsgError = "Ocurrió un error al registrar el asiento del ingreso."
|
MsgError = "Ocurrió un error al registrar el asiento del ingreso."
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -3244,14 +3244,14 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
If DiferenciaTC < 0 Then
|
If DiferenciaTC < 0 Then
|
||||||
'64
|
'64
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, DiferenciaImportes, ReferenciaAplicar, 64, ConceptoAplicar, Now, UsuarioActual.Empresa.IdCuentaGananciaCambiaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, DiferenciaImportes, ReferenciaAplicar, 64, ConceptoAplicar, Now, 0, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
||||||
MsgError = "Ocurrió un error al registrar el asiento de ganancia cambiaria"
|
MsgError = "Ocurrió un error al registrar el asiento de ganancia cambiaria"
|
||||||
Exit Select
|
Exit Select
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
'65
|
'65
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, DiferenciaImportes, ReferenciaAplicar, 65, ConceptoAplicar, Now, UsuarioActual.Empresa.IdCuentaPerdidaCambiaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, DiferenciaImportes, ReferenciaAplicar, 65, ConceptoAplicar, Now, 0, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
||||||
MsgError = "Ocurrió un error al registrar el asiento de perdidada cfambiaria"
|
MsgError = "Ocurrió un error al registrar el asiento de perdidada cfambiaria"
|
||||||
Exit Select
|
Exit Select
|
||||||
End If
|
End If
|
||||||
@@ -3282,9 +3282,9 @@ Partial Class Bancos_IE
|
|||||||
Dim IEPSDev As Decimal = dr("IEPS").ToString.ToDecimal
|
Dim IEPSDev As Decimal = dr("IEPS").ToString.ToDecimal
|
||||||
PorcentajeCompraDevDinC = ObjCompras.DtResultados.Rows(0)("PorcentajeIVA").ToString.ToDecimal
|
PorcentajeCompraDevDinC = ObjCompras.DtResultados.Rows(0)("PorcentajeIVA").ToString.ToDecimal
|
||||||
|
|
||||||
Dim DTCuentas As DataTable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeCompraDevDinC)
|
'Dim DTCuentas As DataTable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeCompraDevDinC)
|
||||||
Dim IdCtaIVAXAcreditarDevDinC = DTCuentas.Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
'Dim IdCtaIVAXAcreditarDevDinC = DTCuentas.Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
||||||
Dim IdCtaIVAAcreditableDevDinC = DTCuentas.Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
'Dim IdCtaIVAAcreditableDevDinC = DTCuentas.Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
||||||
Dim IVADevMN As Decimal = 0
|
Dim IVADevMN As Decimal = 0
|
||||||
Dim IEPSDevMN As Decimal = 0
|
Dim IEPSDevMN As Decimal = 0
|
||||||
Dim PorcentajeDevolucion As Decimal = ((ImporteAplicar * 100D / TotalCompraDev) / 100).RoundSQL(2)
|
Dim PorcentajeDevolucion As Decimal = ((ImporteAplicar * 100D / TotalCompraDev) / 100).RoundSQL(2)
|
||||||
@@ -3305,11 +3305,11 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
If IVADev > 0 Then
|
If IVADev > 0 Then
|
||||||
|
|
||||||
IdCtaIVADevolucionIMPUESTOS = IdCtaIVAXAcreditarDevDinC
|
' IdCtaIVADevolucionIMPUESTOS = IdCtaIVAXAcreditarDevDinC
|
||||||
|
|
||||||
If ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -IVADev, ReferenciaAplicar, 14, ConceptoAplicar, Now, IdCtaIVADevolucionIMPUESTOS, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-IVADevMN, ImporteME:=-IVADev, PorcentajeImpuesto:=PorcentajeCompraDevDinC) Then
|
If ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -IVADev, ReferenciaAplicar, 14, ConceptoAplicar, Now, IdCtaIVADevolucionIMPUESTOS, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-IVADevMN, ImporteME:=-IVADev, PorcentajeImpuesto:=PorcentajeCompraDevDinC) Then
|
||||||
|
|
||||||
IdCtaIVADevolucionIMPUESTOS = IdCtaIVAAcreditableDevDinC
|
' IdCtaIVADevolucionIMPUESTOS = IdCtaIVAAcreditableDevDinC
|
||||||
|
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -IVADev, ReferenciaAplicar, 19, ConceptoAplicar, Now, IdCtaIVADevolucionIMPUESTOS, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-IVADevMN, ImporteME:=-IVADev, PorcentajeImpuesto:=PorcentajeCompraDevDinC) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -IVADev, ReferenciaAplicar, 19, ConceptoAplicar, Now, IdCtaIVADevolucionIMPUESTOS, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-IVADevMN, ImporteME:=-IVADev, PorcentajeImpuesto:=PorcentajeCompraDevDinC) Then
|
||||||
MsgError = "Ocurrió un error al registrar el asiento de impuestos de devolución"
|
MsgError = "Ocurrió un error al registrar el asiento de impuestos de devolución"
|
||||||
@@ -3453,14 +3453,14 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
If DiferenciaTC < 0 Then
|
If DiferenciaTC < 0 Then
|
||||||
'64
|
'64
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, DiferenciaImportes, ReferenciaAplicar, 64, ConceptoAplicar, Now, UsuarioActual.Empresa.IdCuentaGananciaCambiaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, DiferenciaImportes, ReferenciaAplicar, 64, ConceptoAplicar, Now, 0, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
||||||
MsgError = "Ocurrió un error al registrar el asiento de ganancia cambiaria"
|
MsgError = "Ocurrió un error al registrar el asiento de ganancia cambiaria"
|
||||||
Exit Select
|
Exit Select
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
'65
|
'65
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, DiferenciaImportes, ReferenciaAplicar, 65, ConceptoAplicar, Now, UsuarioActual.Empresa.IdCuentaPerdidaCambiaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, DiferenciaImportes, ReferenciaAplicar, 65, ConceptoAplicar, Now, 0, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=DiferenciaImportes, ImporteME:=0, TipoCambio:=TCCompra) Then
|
||||||
MsgError = "Ocurrió un error al registrar el asiento de perdidada cfambiaria"
|
MsgError = "Ocurrió un error al registrar el asiento de perdidada cfambiaria"
|
||||||
Exit Select
|
Exit Select
|
||||||
End If
|
End If
|
||||||
@@ -3489,17 +3489,17 @@ Partial Class Bancos_IE
|
|||||||
Dim IEPSDev As Decimal = dr("IEPS").ToString.ToDecimal
|
Dim IEPSDev As Decimal = dr("IEPS").ToString.ToDecimal
|
||||||
PorcentajeCompraDevDinC = ObjCompras.DtResultados.Rows(0)("PorcentajeIVA").ToString.ToDecimal
|
PorcentajeCompraDevDinC = ObjCompras.DtResultados.Rows(0)("PorcentajeIVA").ToString.ToDecimal
|
||||||
|
|
||||||
Dim DTCuentas As DataTable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeCompraDevDinC)
|
'Dim DTCuentas As DataTable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeCompraDevDinC)
|
||||||
|
|
||||||
Dim IdCtaIVAXAcreditarDevDinC As Integer
|
Dim IdCtaIVAXAcreditarDevDinC As Integer
|
||||||
Dim IdCtaIVAAcreditableDevDinC As Integer
|
Dim IdCtaIVAAcreditableDevDinC As Integer
|
||||||
|
|
||||||
If DTCuentas IsNot Nothing AndAlso DTCuentas.Rows.Count > 0 Then
|
'If DTCuentas IsNot Nothing AndAlso DTCuentas.Rows.Count > 0 Then
|
||||||
IdCtaIVAXAcreditarDevDinC = DTCuentas.Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
' IdCtaIVAXAcreditarDevDinC = DTCuentas.Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
||||||
IdCtaIVAAcreditableDevDinC = DTCuentas.Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
' IdCtaIVAAcreditableDevDinC = DTCuentas.Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
||||||
Else
|
'Else
|
||||||
MsgError = "Sin Registros de porcentaje impuesto"
|
' MsgError = "Sin Registros de porcentaje impuesto"
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Dim IVADevMN As Decimal = 0
|
Dim IVADevMN As Decimal = 0
|
||||||
Dim IEPSDevMN As Decimal = 0
|
Dim IEPSDevMN As Decimal = 0
|
||||||
|
|||||||
@@ -409,13 +409,11 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
|
|||||||
if (TCPago > TC)
|
if (TCPago > TC)
|
||||||
{
|
{
|
||||||
CveConceptoDiferenciaCambiaria = 65;
|
CveConceptoDiferenciaCambiaria = 65;
|
||||||
IdCtaContableDiferenciaCambiaria = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria;
|
|
||||||
TipoMovto = false;
|
TipoMovto = false;
|
||||||
}
|
}
|
||||||
else if (TCPago < TC)
|
else if (TCPago < TC)
|
||||||
{
|
{
|
||||||
CveConceptoDiferenciaCambiaria = 64;
|
CveConceptoDiferenciaCambiaria = 64;
|
||||||
IdCtaContableDiferenciaCambiaria = UsuarioActual.Empresa.IdCuentaGananciaCambiaria;
|
|
||||||
TipoMovto = true;
|
TipoMovto = true;
|
||||||
}
|
}
|
||||||
Importe = ((Importe * TCPago) - (Importe * TC)).Abs();
|
Importe = ((Importe * TCPago) - (Importe * TC)).Abs();
|
||||||
|
|||||||
@@ -780,16 +780,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas
|
|||||||
if (TC < TCDoc)
|
if (TC < TCDoc)
|
||||||
{
|
{
|
||||||
CveConceptoDiferenciaCambiaria = 65;
|
CveConceptoDiferenciaCambiaria = 65;
|
||||||
IdCtaContableDiferenciaCambiaria = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria;
|
|
||||||
TipoMovto = false;
|
TipoMovto = false;
|
||||||
Importe = (Importe * gvr.DataKey("TipoCambio").ToDecimal()) - (Importe * TC);
|
Importe = (Importe * gvr.DataKey("TipoCambio").ToDecimal()) - (Importe * TC);
|
||||||
}
|
}
|
||||||
else if (TC > TCDoc)
|
else if (TC > TCDoc)
|
||||||
{
|
{
|
||||||
CveConceptoDiferenciaCambiaria = 64;
|
CveConceptoDiferenciaCambiaria = 64;
|
||||||
IdCtaContableDiferenciaCambiaria = UsuarioActual.Empresa.IdCuentaGananciaCambiaria;
|
|
||||||
TipoMovto = true;
|
TipoMovto = true;
|
||||||
|
|
||||||
Importe = (Importe * TC) - (Importe * gvr.DataKey("TipoCambio").ToDecimal());
|
Importe = (Importe * TC) - (Importe * gvr.DataKey("TipoCambio").ToDecimal());
|
||||||
}
|
}
|
||||||
ImporteMN = Importe;
|
ImporteMN = Importe;
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ Partial Class Bancos_PolizaCheque
|
|||||||
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
|
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
|
||||||
|
|
||||||
Dim dt As DataTable = Nothing
|
Dim dt As DataTable = Nothing
|
||||||
If UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||||
Dim Conta As New ClsContPAQi(UsuarioActual.Empresa)
|
Dim Conta As New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
|
|
||||||
If Conta.GetCuentas(-1, "-1", 1) Then
|
If Conta.GetCuentas(-1, "-1", 1) Then
|
||||||
@@ -118,6 +118,17 @@ Partial Class Bancos_PolizaCheque
|
|||||||
End If
|
End If
|
||||||
Conta.Dispose()
|
Conta.Dispose()
|
||||||
|
|
||||||
|
End If
|
||||||
|
If UsuarioActual.Empresa.TipoContabilidad = 1 Then
|
||||||
|
Dim Conta As New ClsContabilidad
|
||||||
|
|
||||||
|
If Conta.GetCuentas(-1, "-1", 1, UsuarioActual.CveEmpresa) Then
|
||||||
|
dt = Conta.DtResultados
|
||||||
|
DtCuentasContables = Conta.DtResultados
|
||||||
|
Session("DtCuentas") = Conta.DtResultados
|
||||||
|
End If
|
||||||
|
Conta.Dispose()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
TipoPlantilla = 0
|
TipoPlantilla = 0
|
||||||
@@ -405,9 +416,8 @@ Partial Class Bancos_PolizaCheque
|
|||||||
NombreCuenta = ""
|
NombreCuenta = ""
|
||||||
|
|
||||||
If UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.UsaContabilidad Then
|
||||||
If drt("IdCtaContable").ToString.ToEntero > 0 Then 'DtCuentasContables
|
If UsuarioActual.Empresa.TipoContabilidad = 1 AndAlso drt("CveCuenta").ToString.ToEntero > 0 Then
|
||||||
Dim drr As DataRow = DtCuentasContables.FiltroPrimero(String.Format("Id={0}", drt("IdCtaContable").ToString))
|
Dim drr As DataRow = DtCuentasContables.FiltroPrimero(String.Format("CveCuenta={0}", drt("CveCuenta").ToString))
|
||||||
|
|
||||||
|
|
||||||
If drr IsNot Nothing Then
|
If drr IsNot Nothing Then
|
||||||
IdCuenta = drt("IdCtaContable").ToString.ToEntero
|
IdCuenta = drt("IdCtaContable").ToString.ToEntero
|
||||||
@@ -416,41 +426,43 @@ Partial Class Bancos_PolizaCheque
|
|||||||
'Cuenta = drr("Nombre").ToString()
|
'Cuenta = drr("Nombre").ToString()
|
||||||
End If
|
End If
|
||||||
EsComodin = 0
|
EsComodin = 0
|
||||||
|
End If
|
||||||
|
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||||
|
If drt("IdCtaContable").ToString.ToEntero > 0 Then 'DtCuentasContables
|
||||||
|
Dim drr As DataRow = DtCuentasContables.FiltroPrimero(String.Format("Id={0}", drt("IdCtaContable").ToString))
|
||||||
|
|
||||||
|
|
||||||
ElseIf drt("CveConcepto").ToString = "30" Then
|
|
||||||
'saco la clave de la cuenta bancaria seleccionada
|
|
||||||
If DdlCuenta.SelectedValue.ToEntero > 0 And drt("CveConcepto").ToString = "30" Then 'DtCuentasContables
|
|
||||||
Dim drr As DataRow = DtCuentasContables.FiltroPrimero(String.Format("Id={0}", IdCuentaBancos(DdlCuenta.SelectedValue.ToEntero)))
|
|
||||||
If drr IsNot Nothing Then
|
If drr IsNot Nothing Then
|
||||||
IdCuenta = drr("Id").ToString.ToEntero
|
IdCuenta = drt("IdCtaContable").ToString.ToEntero
|
||||||
CodigoCuenta = drr("CuentaFormato").ToString()
|
CodigoCuenta = drr("CuentaFormato").ToString()
|
||||||
NombreCuenta = drr("Nombre").ToString()
|
NombreCuenta = drr("Nombre").ToString()
|
||||||
' Cuenta = drr("Nombre").ToString()
|
'Cuenta = drr("Nombre").ToString()
|
||||||
EsComodin = 1
|
|
||||||
Else
|
|
||||||
|
|
||||||
' Rad.Checked = False
|
|
||||||
If UsuarioActual.CveEmpresa <> 126 Then
|
|
||||||
Alert("La Cuenta Bancaria no se ha vinculado a la cuenta contable", TipoMensaje.MsgAdvertencia)
|
|
||||||
GvMov.DataBind()
|
|
||||||
UPMovs.Update()
|
|
||||||
Exit Sub
|
|
||||||
End If
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
EsComodin = 0
|
||||||
|
|
||||||
|
|
||||||
|
ElseIf drt("CveConcepto").ToString = "30" Then
|
||||||
|
'saco la clave de la cuenta bancaria seleccionada
|
||||||
|
If DdlCuenta.SelectedValue.ToEntero > 0 And drt("CveConcepto").ToString = "30" Then 'DtCuentasContables
|
||||||
|
Dim drr As DataRow = DtCuentasContables.FiltroPrimero(String.Format("Id={0}", IdCuentaBancos(DdlCuenta.SelectedValue.ToEntero)))
|
||||||
|
If drr IsNot Nothing Then
|
||||||
|
IdCuenta = drr("Id").ToString.ToEntero
|
||||||
|
CodigoCuenta = drr("CuentaFormato").ToString()
|
||||||
|
NombreCuenta = drr("Nombre").ToString()
|
||||||
|
' Cuenta = drr("Nombre").ToString()
|
||||||
|
EsComodin = 1
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
ElseIf drt("CveConcepto").ToString.ToEntero = 135 And IdCtaFondoGarantia > 0 Then
|
||||||
|
|
||||||
|
Dim drr As DataRow = DtCuentasContables.FiltroPrimero(String.Format("Id={0}", IdCtaFondoGarantia))
|
||||||
|
|
||||||
|
IdCuenta = IdCtaFondoGarantia
|
||||||
|
CodigoCuenta = drr("CuentaFormato").ToString()
|
||||||
|
NombreCuenta = drr("Nombre").ToString()
|
||||||
|
'Cuenta = drr("Nombre").ToString()
|
||||||
|
|
||||||
|
EsComodin = 0
|
||||||
End If
|
End If
|
||||||
ElseIf drt("CveConcepto").ToString.ToEntero = 135 And IdCtaFondoGarantia > 0 Then
|
|
||||||
|
|
||||||
Dim drr As DataRow = DtCuentasContables.FiltroPrimero(String.Format("Id={0}", IdCtaFondoGarantia))
|
|
||||||
|
|
||||||
IdCuenta = IdCtaFondoGarantia
|
|
||||||
CodigoCuenta = drr("CuentaFormato").ToString()
|
|
||||||
NombreCuenta = drr("Nombre").ToString()
|
|
||||||
'Cuenta = drr("Nombre").ToString()
|
|
||||||
|
|
||||||
EsComodin = 0
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -1122,7 +1122,7 @@ Partial Class Bancos_PopIEVentas
|
|||||||
trCuentaDeposito.Visible = False
|
trCuentaDeposito.Visible = False
|
||||||
|
|
||||||
Dim Dep As New ClsGenerales
|
Dim Dep As New ClsGenerales
|
||||||
If Dep.GetCuentasDepositos(CveCliente:=CveCliente) Then
|
If Dep.GetCuentasDepositos(CveCliente:=CveCliente, CveEmpresa:=UsuarioActual.CveEmpresa) Then
|
||||||
If DdlTipoTransaccion.SelectedValue = "9" Then
|
If DdlTipoTransaccion.SelectedValue = "9" Then
|
||||||
|
|
||||||
DdlCuentaDeposito.DataSource = Dep.DtResultados.FiltraParametros("EstatusPagoElectronico = 'True' AND Estatus ='True'")
|
DdlCuentaDeposito.DataSource = Dep.DtResultados.FiltraParametros("EstatusPagoElectronico = 'True' AND Estatus ='True'")
|
||||||
@@ -1905,13 +1905,6 @@ Partial Class Bancos_PopIEVentas
|
|||||||
|
|
||||||
PorcentajeImpuesto = MovimientoPagar.PorcentajeIVA
|
PorcentajeImpuesto = MovimientoPagar.PorcentajeIVA
|
||||||
|
|
||||||
Dim IdCtaIVAXTrasladar As Integer = 0
|
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
|
||||||
IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
|
|
||||||
IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
|
||||||
|
|
||||||
Case 61 'Iva Trasladado
|
Case 61 'Iva Trasladado
|
||||||
If CveMoneda = 1 AndAlso CveMonedaVenta = 1 Then
|
If CveMoneda = 1 AndAlso CveMonedaVenta = 1 Then
|
||||||
@@ -1937,13 +1930,7 @@ Partial Class Bancos_PopIEVentas
|
|||||||
If tipoCambioPago > 1 Then ConceptoMovimiento += $" TC:{tipoCambioPago} ${ImporteMovimiento.FormatoNumero(2)}"
|
If tipoCambioPago > 1 Then ConceptoMovimiento += $" TC:{tipoCambioPago} ${ImporteMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
PorcentajeImpuesto = MovimientoPagar.PorcentajeIVA
|
PorcentajeImpuesto = MovimientoPagar.PorcentajeIVA
|
||||||
Dim IdCtaIVATrasladado As Integer = 0
|
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
|
||||||
IdCtaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVATrasladado").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
|
|
||||||
IdCtaContable = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
|
|
||||||
|
|
||||||
Case 38 'IEPS por trasladar
|
Case 38 'IEPS por trasladar
|
||||||
If CveMoneda = 1 AndAlso CveMonedaVenta = 1 Then
|
If CveMoneda = 1 AndAlso CveMonedaVenta = 1 Then
|
||||||
@@ -2078,7 +2065,6 @@ Partial Class Bancos_PopIEVentas
|
|||||||
|
|
||||||
Case 64 'Ganancia
|
Case 64 'Ganancia
|
||||||
If CveMoneda <> 1 OrElse CveMonedaVenta <> 1 Then
|
If CveMoneda <> 1 OrElse CveMonedaVenta <> 1 Then
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
|
|
||||||
Dim tImporteVenta, tImportePago, Diferencia As Decimal
|
Dim tImporteVenta, tImportePago, Diferencia As Decimal
|
||||||
ImporteMovimiento = 0
|
ImporteMovimiento = 0
|
||||||
@@ -2100,11 +2086,9 @@ Partial Class Bancos_PopIEVentas
|
|||||||
If tImporteVenta <> tImportePago Then
|
If tImporteVenta <> tImportePago Then
|
||||||
If tImporteVenta < tImportePago Then
|
If tImporteVenta < tImportePago Then
|
||||||
ConceptoContable = 64
|
ConceptoContable = 64
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
TipoMovimiento = True
|
TipoMovimiento = True
|
||||||
Else
|
Else
|
||||||
ConceptoContable = 65
|
ConceptoContable = 65
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
TipoMovimiento = False
|
TipoMovimiento = False
|
||||||
End If
|
End If
|
||||||
Diferencia = Math.Abs(tImporteVenta - tImportePago)
|
Diferencia = Math.Abs(tImporteVenta - tImportePago)
|
||||||
|
|||||||
@@ -1877,10 +1877,10 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
Dim IdCtaIVAXAcreditar As Integer = 0
|
Dim IdCtaIVAXAcreditar As Integer = 0
|
||||||
Dim IdCtaIVAAcreditable As Integer = 0
|
Dim IdCtaIVAAcreditable As Integer = 0
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
'If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
||||||
IdCtaIVAXAcreditar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
' IdCtaIVAXAcreditar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
||||||
IdCtaIVAAcreditable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
' IdCtaIVAAcreditable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Dim IVA As Decimal = PorcentajePago * gr.DataKey("IVA").ToDecimal
|
Dim IVA As Decimal = PorcentajePago * gr.DataKey("IVA").ToDecimal
|
||||||
|
|
||||||
@@ -1930,11 +1930,11 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If TCCompra > TCPago Then
|
If TCCompra > TCPago Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 64, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=UsuarioActual.Empresa.IdCuentaGananciaCambiaria, CveIE:=-1, IdSegmentoNegocio:=-1, CveSubProyecto:=CveSubProyecto, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, CveCompra:=gr.DataKey("CveCompra").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCCompra, TipoCambioPago:=TCPago, Contabilizable:=EsContabilizable) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 64, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=0, CveIE:=-1, IdSegmentoNegocio:=-1, CveSubProyecto:=CveSubProyecto, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, CveCompra:=gr.DataKey("CveCompra").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCCompra, TipoCambioPago:=TCPago, Contabilizable:=EsContabilizable) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 65, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=UsuarioActual.Empresa.IdCuentaPerdidaCambiaria, CveIE:=-1, IdSegmentoNegocio:=-1, CveSubProyecto:=CveSubProyecto, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, CveCompra:=gr.DataKey("CveCompra").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCCompra, TipoCambioPago:=TCPago, Contabilizable:=EsContabilizable) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 65, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=0, CveIE:=-1, IdSegmentoNegocio:=-1, CveSubProyecto:=CveSubProyecto, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, CveCompra:=gr.DataKey("CveCompra").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCCompra, TipoCambioPago:=TCPago, Contabilizable:=EsContabilizable) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -5907,10 +5907,10 @@ Partial Class Compras_Compras
|
|||||||
' Dim IdCtaIVAAcreditable As Integer = 0
|
' Dim IdCtaIVAAcreditable As Integer = 0
|
||||||
Dim GuardoConcepto18 As Boolean = False
|
Dim GuardoConcepto18 As Boolean = False
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA).Rows.Count > 0 Then
|
'If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA).Rows.Count > 0 Then
|
||||||
IdCtaIVAXAcreditar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA).Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
' IdCtaIVAXAcreditar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA).Rows(0)("IdCtaIVAXAcreditar").ToString.ToEntero
|
||||||
' IdCtaIVAAcreditable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA).Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
' ' IdCtaIVAAcreditable = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeIVA).Rows(0)("IdCtaIVAAcreditable").ToString.ToEntero
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
'********************** Variables '**********************
|
'********************** Variables '**********************
|
||||||
|
|
||||||
@@ -6362,11 +6362,9 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If TipoCambioCompra > TCPago Then
|
If TipoCambioCompra > TCPago Then
|
||||||
ConceptoContable = 64
|
ConceptoContable = 64
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
TipoMovimiento = True
|
TipoMovimiento = True
|
||||||
Else
|
Else
|
||||||
ConceptoContable = 65
|
ConceptoContable = 65
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
TipoMovimiento = False
|
TipoMovimiento = False
|
||||||
End If
|
End If
|
||||||
If TCPago <> TipoCambioCompra Then
|
If TCPago <> TipoCambioCompra Then
|
||||||
@@ -6827,10 +6825,8 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If diferenciaTransito <> 0 Then
|
If diferenciaTransito <> 0 Then
|
||||||
Dim tCveCon As Integer = 65
|
Dim tCveCon As Integer = 65
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
If diferenciaTransito < 0 Then
|
If diferenciaTransito < 0 Then
|
||||||
tCveCon = 64
|
tCveCon = 64
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
diferenciaTransito = Math.Abs(diferenciaTransito)
|
diferenciaTransito = Math.Abs(diferenciaTransito)
|
||||||
|
|
||||||
@@ -7367,11 +7363,9 @@ Partial Class Compras_Compras
|
|||||||
If importeMovimiento > 0 Then
|
If importeMovimiento > 0 Then
|
||||||
ConceptoContable = 64
|
ConceptoContable = 64
|
||||||
TipoMovimiento = True
|
TipoMovimiento = True
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
ElseIf importeMovimiento < 0 Then
|
ElseIf importeMovimiento < 0 Then
|
||||||
ConceptoContable = 65
|
ConceptoContable = 65
|
||||||
TipoMovimiento = False
|
TipoMovimiento = False
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
importeMovimiento = importeMovimiento.Abs.RoundSQL()
|
importeMovimiento = importeMovimiento.Abs.RoundSQL()
|
||||||
|
|||||||
@@ -1823,11 +1823,8 @@ Partial Class Compras_Proveedores
|
|||||||
If ObjContaAC IsNot Nothing Then ObjContaAC.Commit()
|
If ObjContaAC IsNot Nothing Then ObjContaAC.Commit()
|
||||||
|
|
||||||
'ACTUALIZAR GLOBAL
|
'ACTUALIZAR GLOBAL
|
||||||
'If ObjProveedores.GetProveedores(ClsCompProveedores.TipoConsulta.ParaGlobalDT, -1, "-1", "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa) Then
|
|
||||||
GlobalDTCompProveedores(UsuarioActual.CveEmpresa) = Nothing
|
GlobalDTCompProveedores(UsuarioActual.CveEmpresa) = Nothing
|
||||||
'Else
|
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
||||||
' ErrorBancos = True
|
|
||||||
'End If
|
|
||||||
|
|
||||||
Alert("El Proveedor se guardó correctamente. " & "<br />" & MsgCuentaContable, TipoMensaje.MsgInformacion, If(Request("CveFactura") Is Nothing, "document.location.href=""/Compras/CatProveedores.aspx""", "window.opener.location.href = window.opener.location.href; window.close();"))
|
Alert("El Proveedor se guardó correctamente. " & "<br />" & MsgCuentaContable, TipoMensaje.MsgInformacion, If(Request("CveFactura") Is Nothing, "document.location.href=""/Compras/CatProveedores.aspx""", "window.opener.location.href = window.opener.location.href; window.close();"))
|
||||||
RecargaGlobalCuentasBancarias()
|
RecargaGlobalCuentasBancarias()
|
||||||
@@ -3416,7 +3413,9 @@ Partial Class Compras_Proveedores
|
|||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
If ObjCuentasBancos.RemoveCuentasDepositos(GvRow.DataKey("CveCuentaDeposito").ToEntero, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
|
If ObjCuentasBancos.RemoveCuentasDepositos(GvRow.DataKey("CveCuentaDeposito").ToEntero, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CveProveedor = {0}", CveProveedor)))
|
'recargar las cuentas
|
||||||
|
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
||||||
|
DTCuentasBancos = GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, CveProveedor)
|
||||||
|
|
||||||
Alert("Cuenta Bancaria borrada con éxito.", TipoMensaje.MsgInformacion)
|
Alert("Cuenta Bancaria borrada con éxito.", TipoMensaje.MsgInformacion)
|
||||||
Else
|
Else
|
||||||
@@ -3430,12 +3429,11 @@ Partial Class Compras_Proveedores
|
|||||||
|
|
||||||
CargaPSGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
CargaPSGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
RecargaGlobalCuentasBancarias()
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub RecargaGlobalCuentasBancarias(Optional ByVal CveCuenta As Integer = -1)
|
Private Sub RecargaGlobalCuentasBancarias(Optional ByVal CveCuenta As Integer = -1)
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
GlobalDTProveedoresCuentas(UsuarioActual.CveEmpresa, -1) = Nothing
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -181,11 +181,9 @@ Partial Class Compras_RepNotasCredito
|
|||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe * difFluctuacion).RoundSQL)
|
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe * difFluctuacion).RoundSQL)
|
||||||
|
|
||||||
|
|||||||
@@ -93,9 +93,9 @@ Partial Class Contabilidad_CatClasificacionPorcentaje
|
|||||||
DdlIdCtaIVAXTrasladar.SelectedValue, DdlIdCtaIVATrasladado.SelectedValue, UsuarioActual.CveEmpresa) Then
|
DdlIdCtaIVAXTrasladar.SelectedValue, DdlIdCtaIVATrasladado.SelectedValue, UsuarioActual.CveEmpresa) Then
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"))
|
||||||
Alert("Clasificación porcentaje agregado correctamente")
|
Alert("Clasificación porcentaje agregado correctamente")
|
||||||
If ObjGenerales.GetClasificacionPorcentaje(-1) Then
|
'If ObjGenerales.GetClasificacionPorcentaje(-1) Then
|
||||||
GlobalDTClasificacionPorcentaje(-1) = ObjGenerales.DtResultados
|
' GlobalDTClasificacionPorcentaje(-1) = ObjGenerales.DtResultados
|
||||||
End If
|
'End If
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
CargaContPaq()
|
CargaContPaq()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
@@ -105,9 +105,9 @@ Partial Class Contabilidad_CatClasificacionPorcentaje
|
|||||||
DdlIdCtaIVAAcreditable.SelectedValue, DdlIdCtaIVAXTrasladar.SelectedValue, DdlIdCtaIVATrasladado.SelectedValue) Then
|
DdlIdCtaIVAAcreditable.SelectedValue, DdlIdCtaIVAXTrasladar.SelectedValue, DdlIdCtaIVATrasladado.SelectedValue) Then
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"))
|
||||||
Alert("Clasificación porcentaje actualizado correctamente")
|
Alert("Clasificación porcentaje actualizado correctamente")
|
||||||
If ObjGenerales.GetClasificacionPorcentaje(-1) Then
|
'If ObjGenerales.GetClasificacionPorcentaje(-1) Then
|
||||||
GlobalDTClasificacionPorcentaje(-1) = ObjGenerales.DtResultados
|
' GlobalDTClasificacionPorcentaje(-1) = ObjGenerales.DtResultados
|
||||||
End If
|
'End If
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
CargaContPaq()
|
CargaContPaq()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
@@ -120,9 +120,9 @@ Partial Class Contabilidad_CatClasificacionPorcentaje
|
|||||||
Dim objgenerales As New ClsGenerales
|
Dim objgenerales As New ClsGenerales
|
||||||
If objgenerales.RemoveClasificacionPorcentaje(GvDatos.DataKeys(e.RowIndex).Value.ToString) Then
|
If objgenerales.RemoveClasificacionPorcentaje(GvDatos.DataKeys(e.RowIndex).Value.ToString) Then
|
||||||
Alert("la clasificación porcentaje se eliminó correctamente")
|
Alert("la clasificación porcentaje se eliminó correctamente")
|
||||||
If objgenerales.GetClasificacionPorcentaje(-1) Then
|
'If objgenerales.GetClasificacionPorcentaje(-1) Then
|
||||||
GlobalDTClasificacionPorcentaje(-1) = objgenerales.DtResultados
|
' GlobalDTClasificacionPorcentaje(-1) = objgenerales.DtResultados
|
||||||
End If
|
'End If
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
CargaContPaq()
|
CargaContPaq()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="DIOTChilo.aspx.vb" Inherits="Contabilidad_DIOTChilo" %>
|
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<asp:TextBox ID="TxtPoliza" runat="server" Width="50%" CssClass="form-control"></asp:TextBox>
|
|
||||||
<asp:Button ID="BtnContabilizar" runat="server" CssClass="form-control btn btn-primary" Text="Fierro Compa!" Width="50%" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
Imports System.Data
|
|
||||||
Imports Extensiones
|
|
||||||
|
|
||||||
Partial Class Contabilidad_DIOTChilo
|
|
||||||
Inherits Page
|
|
||||||
|
|
||||||
Private Sub Contabilidad_DIOTChilo_Load(sender As Object, e As EventArgs) Handles Me.Load
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Private Sub BtnContabilizar_Click(sender As Object, e As EventArgs) Handles BtnContabilizar.Click
|
|
||||||
Dim ObjContabilidad As New ClsContabilidad
|
|
||||||
Dim ObjConta As ClsContPAQi = Nothing
|
|
||||||
Dim ObjEmpres As New Empresa()
|
|
||||||
|
|
||||||
ObjEmpres.Empresa = "EXPLORACIONES MINERAS DEL DESIERTO S.A DE C.V"
|
|
||||||
ObjEmpres.ServerContPAQi = "192.168.0.2\COMPAC,1430"
|
|
||||||
ObjEmpres.BDContPAQi = "ctEMD"
|
|
||||||
ObjEmpres.UsrContPAQi = "sa"
|
|
||||||
ObjEmpres.PwdContPAQi = "AsS151026r37"
|
|
||||||
|
|
||||||
Dim OcurrioError = False
|
|
||||||
Dim Mensaje = ""
|
|
||||||
|
|
||||||
If ObjConta Is Nothing Then
|
|
||||||
ObjConta = New ClsContPAQi(ObjEmpres)
|
|
||||||
ObjConta.IniciaTransacSQL()
|
|
||||||
End If
|
|
||||||
|
|
||||||
Dim tIdPoliza As Integer
|
|
||||||
Dim Fecha As Date
|
|
||||||
Dim ContaFolio As Integer
|
|
||||||
|
|
||||||
If ObjContabilidad.GetPrePoliza(TxtPoliza.Text.ToEntero, 13) Then
|
|
||||||
tIdPoliza = ObjContabilidad.DtResultados(0)("IdPoliza").ToString.ToEntero
|
|
||||||
Fecha = ObjContabilidad.DtResultados(0)("Fecha").ToString.ToDate
|
|
||||||
ContaFolio = ObjContabilidad.DtResultados(0)("FolioPoliza").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
If ObjContabilidad.GetDIOTValores(TxtPoliza.Text.ToEntero) Then
|
|
||||||
|
|
||||||
If ObjContabilidad.DtResultados.Rows.Count.ToEntero > 0 Then
|
|
||||||
Dim IdProveedor As Integer
|
|
||||||
|
|
||||||
Dim RFC As String = ""
|
|
||||||
Dim RazonSocial As String = ""
|
|
||||||
Dim IdCtaContProveedores As Integer
|
|
||||||
|
|
||||||
|
|
||||||
For Each dr As DataRow In ObjContabilidad.DtResultados.Rows
|
|
||||||
RFC = dr("RFC").ToString
|
|
||||||
RazonSocial = dr("RazonSocial").ToString
|
|
||||||
IdCtaContProveedores = dr("IdCtaContProveedores").ToString.ToEntero
|
|
||||||
|
|
||||||
If IdCtaContProveedores > 0 Then
|
|
||||||
|
|
||||||
'busco la clave del proveedor en la contabilidad por su cuenta contable
|
|
||||||
If ObjConta.GetProveedores(IdCuentaContable:=IdCtaContProveedores) Then
|
|
||||||
If ObjConta.DtResultados.Rows.Count > 0 Then
|
|
||||||
Dim drt As DataRow = ObjConta.DtResultados.Rows(0) : IdProveedor = drt("Id").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
'busco la clave del proveedor en la contabilidad por su cuenta contable
|
|
||||||
If ObjConta.GetProveedores(RFC:=RFC) Then
|
|
||||||
If ObjConta.DtResultados.Rows.Count > 0 Then
|
|
||||||
Dim drtt As DataRow = ObjConta.DtResultados.Rows(0) : IdProveedor = drtt("Id").ToString.ToEntero
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
'registro el proveedor generico
|
|
||||||
Select Case 13
|
|
||||||
Case Else : IdProveedor = 0
|
|
||||||
End Select
|
|
||||||
End If
|
|
||||||
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
If IdProveedor <= 0 Then
|
|
||||||
IdProveedor = ObjConta.AddProveedor(IdCtaContProveedores, RFC, RazonSocial, "")
|
|
||||||
If IdProveedor <= 0 Then
|
|
||||||
OcurrioError = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
If Not OcurrioError Then
|
|
||||||
If dr("Total").ToString.ToDecimal <> 0.00 Then
|
|
||||||
If Not ObjConta.AddDevolucionesIVA(tIdPoliza, dr("CuentaBancos").ToString.ToEntero,
|
|
||||||
IdProveedor,
|
|
||||||
16,
|
|
||||||
dr("SubTotal").ToString.ToDecimal,
|
|
||||||
dr("IvaAcreditable").ToString.ToDecimal,
|
|
||||||
dr("IVARetenido").ToString.ToDecimal,
|
|
||||||
dr("ISRRetenido").ToString.ToDecimal,
|
|
||||||
Fecha,
|
|
||||||
ContaFolio,
|
|
||||||
dr("Serie").ToString.ToString,
|
|
||||||
dr("Folio").ToString.StrToNum, dr("FolioFiscal").ToString, 13) Then
|
|
||||||
OcurrioError = True
|
|
||||||
Mensaje = "La Poliza o la Cuenta no son válidas"
|
|
||||||
Exit For
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
|
|
||||||
|
|
||||||
If OcurrioError Then
|
|
||||||
ObjConta.RollBack()
|
|
||||||
Else
|
|
||||||
'Alert(String.Format("<a href='/Contabilidad/RegPoliza.aspx?IdPoliza={0}' class='Texto' target='_blank'>{1}</a><br/>", tIdPoliza, ObjConta.Folio))
|
|
||||||
ObjConta.Commit()
|
|
||||||
End If
|
|
||||||
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
End Class
|
|
||||||
@@ -810,9 +810,9 @@ Partial Class Contabilidad_DiarioAmortizaciones
|
|||||||
|
|
||||||
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
||||||
If FluctuacionCambiariaIVA < 0 Then
|
If FluctuacionCambiariaIVA < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
||||||
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuacion IVA " & ConceptoDetalle, 0, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuacion IVA " & ConceptoDetalle, 0, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
||||||
@@ -823,9 +823,9 @@ Partial Class Contabilidad_DiarioAmortizaciones
|
|||||||
|
|
||||||
|
|
||||||
If Dif < 0 Then
|
If Dif < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
||||||
@@ -858,9 +858,9 @@ Partial Class Contabilidad_DiarioAmortizaciones
|
|||||||
|
|
||||||
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
||||||
If FluctuacionCambiariaIVA < 0 Then
|
If FluctuacionCambiariaIVA < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
||||||
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuacion IVA " & ConceptoDetalle, 0, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuacion IVA " & ConceptoDetalle, 0, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
||||||
@@ -871,9 +871,9 @@ Partial Class Contabilidad_DiarioAmortizaciones
|
|||||||
|
|
||||||
|
|
||||||
If Dif < 0 Then
|
If Dif < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
||||||
@@ -1123,7 +1123,7 @@ Partial Class Contabilidad_DiarioAmortizaciones
|
|||||||
IVAxAcreditar = IVAAcreditable
|
IVAxAcreditar = IVAAcreditable
|
||||||
IVAAcreditable = 0
|
IVAAcreditable = 0
|
||||||
|
|
||||||
If UsuarioActual.Empresa.ContaContabilizacionNC = 1 Then
|
If 1 = 1 Then
|
||||||
TipoCambioCompra = TipoCambioCompra * -1 'cuando el movimiento de las nc, sea <> cero, quiero decir que solo convertimos a negativos los valores
|
TipoCambioCompra = TipoCambioCompra * -1 'cuando el movimiento de las nc, sea <> cero, quiero decir que solo convertimos a negativos los valores
|
||||||
TipoCambioPago = TipoCambioPago * -1
|
TipoCambioPago = TipoCambioPago * -1
|
||||||
TipoCambioFechaCompra = TipoCambioFechaCompra * -1
|
TipoCambioFechaCompra = TipoCambioFechaCompra * -1
|
||||||
@@ -1301,9 +1301,9 @@ Partial Class Contabilidad_DiarioAmortizaciones
|
|||||||
If UsuarioActual.CveEmpresa = 66 Then
|
If UsuarioActual.CveEmpresa = 66 Then
|
||||||
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
||||||
If FluctuacionCambiariaIVA < 0 Then
|
If FluctuacionCambiariaIVA < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
||||||
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuación IVA " & ConceptoDetalle, 0, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuación IVA " & ConceptoDetalle, 0, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
||||||
@@ -1320,9 +1320,9 @@ Partial Class Contabilidad_DiarioAmortizaciones
|
|||||||
|
|
||||||
|
|
||||||
If Dif < 0 Then
|
If Dif < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ Partial Class Contabilidad_DiarioCompras
|
|||||||
|
|
||||||
If gvr.DataKey("TipoDocto") = "NC" Then
|
If gvr.DataKey("TipoDocto") = "NC" Then
|
||||||
|
|
||||||
If UsuarioActual.Empresa.ContaContabilizacionNC <> 0 Then
|
If 1 <> 0 Then
|
||||||
'cuando el movimiento de las nc, sea <> cero, quiero decir que solo convertimos a negativos los valores
|
'cuando el movimiento de las nc, sea <> cero, quiero decir que solo convertimos a negativos los valores
|
||||||
MultNC = -1
|
MultNC = -1
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -697,7 +697,7 @@ Partial Class Contabilidad_DiarioPagos
|
|||||||
|
|
||||||
If gvrc.FCHiddenField("HdnTipoDocto").Value = "NC" Then
|
If gvrc.FCHiddenField("HdnTipoDocto").Value = "NC" Then
|
||||||
|
|
||||||
If UsuarioActual.Empresa.ContaContabilizacionNC = 1 Then
|
If 1 = 1 Then
|
||||||
TipoCambioCompra = TipoCambioCompra * -1 'cuando el movimiento de las nc, sea <> cero, quiero decir que solo convertimos a negativos los valores
|
TipoCambioCompra = TipoCambioCompra * -1 'cuando el movimiento de las nc, sea <> cero, quiero decir que solo convertimos a negativos los valores
|
||||||
TipoCambioPago = TipoCambioPago * -1
|
TipoCambioPago = TipoCambioPago * -1
|
||||||
TipoCambioFechaCompra = TipoCambioFechaCompra * -1
|
TipoCambioFechaCompra = TipoCambioFechaCompra * -1
|
||||||
@@ -1054,9 +1054,9 @@ Partial Class Contabilidad_DiarioPagos
|
|||||||
If UsuarioActual.CveEmpresa = 66 Then
|
If UsuarioActual.CveEmpresa = 66 Then
|
||||||
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
FluctuacionCambiariaIVA = Math.Round((IVAAcreditable * TipoCambioFechaCompra) - (IVAAcreditable * TipoCambioPago), 2) 'FLUCTUACION CAMBIARIA DE IVA
|
||||||
If FluctuacionCambiariaIVA < 0 Then
|
If FluctuacionCambiariaIVA < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
If Math.Abs(FluctuacionCambiariaIVA) <> 0 Then
|
||||||
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuación IVA " & ConceptoDetalle, IdSegNeg, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
If Not Conta.AddMovimiento(IDPoliza, CtaFluctuacion, tempMovto, Math.Abs(FluctuacionCambiariaIVA), gvrc.FCHiddenField("HdnSerieFolio").Value, "Fluctuación IVA " & ConceptoDetalle, IdSegNeg, Fecha, gvr.DataKey("CveProveedor").ContaReferencia(TipoContaReferencia.Proveedor), 0) Then MsgError = "No se pudo insertar movimiento contable" : Exit For ' no lleva moneda extranjera
|
||||||
@@ -1073,9 +1073,9 @@ Partial Class Contabilidad_DiarioPagos
|
|||||||
|
|
||||||
|
|
||||||
If Dif < 0 Then
|
If Dif < 0 Then
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaGananciaCambiaria : tempMovto = True ' ganancia cambiaria
|
tempMovto = True ' ganancia cambiaria
|
||||||
Else
|
Else
|
||||||
CtaFluctuacion = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria : tempMovto = False ' perdida cambiaria
|
tempMovto = False ' perdida cambiaria
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
ConceptoDetalle = String.Format("{0} TC:{1} ${2}", gvr.FCTextBox("TxtDescripcion").Text, TipoCambioPago, Math.Abs(Dif).FormatoNumero)
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
ObjContabilidad.GetContabilizacionDiarioDetalle(CvePrePoliza)
|
ObjContabilidad.GetContabilizacionDiarioDetalle(CvePrePoliza)
|
||||||
DtMovimientos = ObjContabilidad.DtResultados.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
DtMovimientos = ObjContabilidad.DtResultados.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
||||||
|
|
||||||
If dr("Modulo").ToString.Contiene("Banc/FluctuaA", "Banc/FluctuaC", "Banc/FluctuaV", "Banc/FluctuaFilial") Then
|
If dr("Modulo").ToString.Contiene("Banc/FluctuaA", "Banc/FluctuaC", "Banc/FluctuaV", "Banc/FluctuaFilial", "Banc/FluctuaAD") Then
|
||||||
BtnEliminar.Enabled = False
|
BtnEliminar.Enabled = False
|
||||||
BtnEliminar.ToolTip = "No se puede eliminar al prepóliza, eliminarlos desde el módulo"
|
BtnEliminar.ToolTip = "No se puede eliminar al prepóliza, eliminarlos desde el módulo"
|
||||||
End If
|
End If
|
||||||
@@ -1382,7 +1382,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
If CveCliente > 0 Then
|
If CveCliente > 0 Then
|
||||||
DvModalconceptoCliente.Visible = True
|
DvModalconceptoCliente.Visible = True
|
||||||
|
|
||||||
DdlClientesE.SelectedText = GlobalDTCliente(UsuarioActual.CveEmpresa, CveCliente:=CveCliente).FiltroPrimeroValor("NombreComercial", "")
|
'DdlClientesE.SelectedText = GlobalDTCliente(UsuarioActual.CveEmpresa, CveCliente:=CveCliente).FiltroPrimeroValor("NombreComercial", "")
|
||||||
DdlClientesE.ddl.Items.Insert(0, New ListItem(GlobalDTCliente(UsuarioActual.CveEmpresa, CveCliente:=CveCliente).FiltroPrimeroValor("NombreComercial", ""), CveCliente))
|
DdlClientesE.ddl.Items.Insert(0, New ListItem(GlobalDTCliente(UsuarioActual.CveEmpresa, CveCliente:=CveCliente).FiltroPrimeroValor("NombreComercial", ""), CveCliente))
|
||||||
DdlClientesE.SelectedValue = CveCliente
|
DdlClientesE.SelectedValue = CveCliente
|
||||||
|
|
||||||
|
|||||||
@@ -74,19 +74,6 @@ Partial Class RepCuadreContaAdmon
|
|||||||
|
|
||||||
Case 8 'Ant Proveedores
|
Case 8 'Ant Proveedores
|
||||||
Return 204
|
Return 204
|
||||||
|
|
||||||
Case 9 'IVA x Acreditar
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVAxAcreditar
|
|
||||||
|
|
||||||
Case 10 'IVA Acreditado
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVAAcreditable
|
|
||||||
|
|
||||||
Case 11 'IVA x Trasladar
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVAxTrasladar
|
|
||||||
|
|
||||||
Case 12 'IVA Trasladado
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVATrasladado
|
|
||||||
|
|
||||||
Case 13 'Ingresos
|
Case 13 'Ingresos
|
||||||
Return 222
|
Return 222
|
||||||
|
|
||||||
|
|||||||
@@ -83,18 +83,6 @@ Partial Class RepCuadreContaAdmonDetalle
|
|||||||
Case 8 'Ant Proveedores
|
Case 8 'Ant Proveedores
|
||||||
Return 204
|
Return 204
|
||||||
|
|
||||||
Case 9 'IVA x Acreditar
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVAxAcreditar
|
|
||||||
|
|
||||||
Case 10 'IVA Acreditado
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVAAcreditable
|
|
||||||
|
|
||||||
Case 11 'IVA x Trasladar
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVAxTrasladar
|
|
||||||
|
|
||||||
Case 12 'IVA Trasladado
|
|
||||||
Return UsuarioActual.Empresa.IdCuentaIVATrasladado
|
|
||||||
|
|
||||||
Case 13 'Ingresos
|
Case 13 'Ingresos
|
||||||
Return 222
|
Return 222
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,7 @@
|
|||||||
<asp:BoundField DataField="TipoGlobalStr" ItemStyle-Width="50px" HeaderText="Tipo Global" />
|
<asp:BoundField DataField="TipoGlobalStr" ItemStyle-Width="50px" HeaderText="Tipo Global" />
|
||||||
<asp:BoundField DataField="CuentaCodigo" ItemStyle-Width="100px" HeaderText="Código Cuenta" />
|
<asp:BoundField DataField="CuentaCodigo" ItemStyle-Width="100px" HeaderText="Código Cuenta" />
|
||||||
<asp:BoundField DataField="CuentaNombre" HeaderText="Nombre Cuenta" />
|
<asp:BoundField DataField="CuentaNombre" HeaderText="Nombre Cuenta" />
|
||||||
|
<asp:BoundField DataField="PorcentajeImpuesto" HeaderText="%" />
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="49px">
|
<asp:TemplateField ItemStyle-Width="49px">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
|
|||||||
@@ -790,17 +790,12 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
End If
|
End If
|
||||||
importeMovimiento = 0
|
importeMovimiento = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Case 13 'Iva por Trasladar
|
Case 13 'Iva por Trasladar
|
||||||
importeMovimiento = ObjFactura.IVA * ValorMultiplicador
|
importeMovimiento = ObjFactura.IVA * ValorMultiplicador
|
||||||
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador
|
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador
|
||||||
FechaMovimiento = ObjFactura.FechaPago
|
FechaMovimiento = ObjFactura.FechaPago
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIVAxTrasladar
|
|
||||||
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
If importeMovimiento <> 0 Then
|
If importeMovimiento <> 0 Then
|
||||||
|
|||||||
@@ -696,7 +696,8 @@
|
|||||||
<div class="row rowpadding" >
|
<div class="row rowpadding" >
|
||||||
<label class="col-md-3">Cliente:</label>
|
<label class="col-md-3">Cliente:</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<asp:DropDownList ID="DdlClienteCarta" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteCarta_SelectedIndexChanged" AppendDataBoundItems="true" runat="server" CssClass="form-control input-sm select2me" DataTextField="NombreComercial" DataValueField="CveCliente"></asp:DropDownList>
|
<%-- <ads:DropDownLost ID="s" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteCarta_SelectedIndexChanged" AppendDataBoundItems="true" runat="server" CssClass="form-control input-sm select2me" DataTextField="NombreComercial" DataValueField="CveCliente"></ads:DropDownLost>--%>
|
||||||
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlClienteCarta" Width="100%" data-metodo="getcliente" Onselectedindexchange="DdlClienteCarta_SelectedIndexChanged" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row rowpadding" >
|
<div class="row rowpadding" >
|
||||||
|
|||||||
@@ -5955,10 +5955,10 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaClientesCarta()
|
Private Sub CargaClientesCarta()
|
||||||
DdlClienteCarta.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa)
|
'DdlClienteCarta.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa)
|
||||||
DdlClienteCarta.DataBind()
|
'DdlClienteCarta.DataBind()
|
||||||
|
|
||||||
DdlClienteCarta.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
'DdlClienteCarta.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
DdlClienteCarta.SelectedValue = "-1"
|
DdlClienteCarta.SelectedValue = "-1"
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -867,7 +867,6 @@ Partial Class Inventarios_Remanufactura
|
|||||||
importeMovimiento = ObjFactura.IVA * ValorMultiplicador
|
importeMovimiento = ObjFactura.IVA * ValorMultiplicador
|
||||||
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador
|
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador
|
||||||
FechaMovimiento = ObjFactura.FechaPago
|
FechaMovimiento = ObjFactura.FechaPago
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIVAxTrasladar
|
|
||||||
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
Case 38 'IEPS por Trasladar
|
Case 38 'IEPS por Trasladar
|
||||||
|
|||||||
@@ -81,6 +81,11 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField DataField="Concepto" HeaderText="Concepto" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Concepto" HeaderText="Concepto" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="TipoD" HeaderText="Tipo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="TipoD" HeaderText="Tipo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:TemplateField HeaderText="Contabiliza" ItemStyle-Width="5%">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlContab" runat="server" Text='<%# Eval("Contabiliza") %>' ></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:BoundField DataField="Estado" HeaderText="Estado" ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Estado" HeaderText="Estado" ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Left" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|||||||
@@ -888,7 +888,6 @@ Partial Class Ventas_PortalCliente
|
|||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
TCGeneral = TCVenta
|
TCGeneral = TCVenta
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIVAxTrasladar
|
|
||||||
If TCVenta > 1 Then ConceptoMovimiento += $" TC:{TCVenta} ${ImporteMovimiento.FormatoNumero(2)}"
|
If TCVenta > 1 Then ConceptoMovimiento += $" TC:{TCVenta} ${ImporteMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
Case 61 'IVA TRASLADADO
|
Case 61 'IVA TRASLADADO
|
||||||
@@ -905,7 +904,6 @@ Partial Class Ventas_PortalCliente
|
|||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
TCGeneral = TCFluctuacion
|
TCGeneral = TCFluctuacion
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIVATrasladado
|
|
||||||
If TCFluctuacion > 1 Then ConceptoMovimiento += $" TC:{TCFluctuacion} ${ImporteMovimiento.FormatoNumero(2)}"
|
If TCFluctuacion > 1 Then ConceptoMovimiento += $" TC:{TCFluctuacion} ${ImporteMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
Case 8 'RETIVA X TRASLADAR
|
Case 8 'RETIVA X TRASLADAR
|
||||||
@@ -1024,7 +1022,6 @@ Partial Class Ventas_PortalCliente
|
|||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
TCGeneral = TCVenta
|
TCGeneral = TCVenta
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSxTrasladar
|
|
||||||
If TCVenta > 1 Then ConceptoMovimiento += $" TC:{TCVenta} ${ImporteMovimiento.FormatoNumero(2)}"
|
If TCVenta > 1 Then ConceptoMovimiento += $" TC:{TCVenta} ${ImporteMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
Case 39 'IEPS TRASLADADO
|
Case 39 'IEPS TRASLADADO
|
||||||
@@ -1041,13 +1038,11 @@ Partial Class Ventas_PortalCliente
|
|||||||
importeMX = importeMX.RoundSQL()
|
importeMX = importeMX.RoundSQL()
|
||||||
TCGeneral = TCFluctuacion
|
TCGeneral = TCFluctuacion
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSTrasladado
|
|
||||||
If TCFluctuacion > 1 Then ConceptoMovimiento += $" TC:{TCFluctuacion} ${ImporteMovimiento.FormatoNumero(2)}"
|
If TCFluctuacion > 1 Then ConceptoMovimiento += $" TC:{TCFluctuacion} ${ImporteMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
Case 64 'GANANCIA
|
Case 64 'GANANCIA
|
||||||
Continue For 'SKIPEA
|
Continue For 'SKIPEA
|
||||||
If CveMonedaVenta <> 1 Then
|
If CveMonedaVenta <> 1 Then
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
If TCPago > TCVenta AndAlso CveMonedaVenta = 2 Then
|
If TCPago > TCVenta AndAlso CveMonedaVenta = 2 Then
|
||||||
ImporteMovimiento = (ImportePago * TCPago) - (ImportePago * TCVenta)
|
ImporteMovimiento = (ImportePago * TCPago) - (ImportePago * TCVenta)
|
||||||
ImporteMovimiento -= ((IVAVenta * PorcentajePago) * TCFluctuacion) - ((IVAVenta * PorcentajePago) * TCVenta)
|
ImporteMovimiento -= ((IVAVenta * PorcentajePago) * TCFluctuacion) - ((IVAVenta * PorcentajePago) * TCVenta)
|
||||||
@@ -1062,7 +1057,6 @@ Partial Class Ventas_PortalCliente
|
|||||||
Case 65 'PERDIDA
|
Case 65 'PERDIDA
|
||||||
Continue For 'SKIPEA
|
Continue For 'SKIPEA
|
||||||
If CveMonedaVenta <> 1 Then
|
If CveMonedaVenta <> 1 Then
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
If TCPago < TCVenta AndAlso CveMonedaVenta = 2 Then
|
If TCPago < TCVenta AndAlso CveMonedaVenta = 2 Then
|
||||||
ImporteMovimiento = (ImportePago * TCPago) - (ImportePago * TCVenta)
|
ImporteMovimiento = (ImportePago * TCPago) - (ImportePago * TCVenta)
|
||||||
ImporteMovimiento -= ((IVAVenta * PorcentajePago) * TCFluctuacion) - ((IVAVenta * PorcentajePago) * TCVenta)
|
ImporteMovimiento -= ((IVAVenta * PorcentajePago) * TCFluctuacion) - ((IVAVenta * PorcentajePago) * TCVenta)
|
||||||
|
|||||||
@@ -340,93 +340,93 @@ Partial Class Sistemas_Empresa
|
|||||||
CargaCuentasContables()
|
CargaCuentasContables()
|
||||||
CargaDDLs()
|
CargaDDLs()
|
||||||
|
|
||||||
Dim Row As DataRow
|
'Dim Row As DataRow
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAxAcreditar.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAxAcreditar.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIVAxAcreditar.Items.Add(New ListItem(Row("CtaCodigo").ToString, .IdCuentaIVAxAcreditar.ToString))
|
' DdlIVAxAcreditar.Items.Add(New ListItem(Row("CtaCodigo").ToString, .IdCuentaIVAxAcreditar.ToString))
|
||||||
DdlIVAxAcreditar.SelectedValue = .IdCuentaIVAxAcreditar.ToString
|
' DdlIVAxAcreditar.SelectedValue = .IdCuentaIVAxAcreditar.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAAcreditable.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAAcreditable.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIVAAcreditable.Items.Add(New ListItem(Row("CtaCodigo").ToString, .IdCuentaIVAAcreditable.ToString))
|
' DdlIVAAcreditable.Items.Add(New ListItem(Row("CtaCodigo").ToString, .IdCuentaIVAAcreditable.ToString))
|
||||||
DdlIVAAcreditable.SelectedValue = .IdCuentaIVAAcreditable.ToString
|
' ' DdlIVAAcreditable.SelectedValue = .IdCuentaIVAAcreditable.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAxTrasladar.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAxTrasladar.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIVAxTrasladar.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAxTrasladar.ToString))("CtaCodigo").ToString, .IdCuentaIVAxTrasladar.ToString))
|
' DdlIVAxTrasladar.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVAxTrasladar.ToString))("CtaCodigo").ToString, .IdCuentaIVAxTrasladar.ToString))
|
||||||
DdlIVAxTrasladar.SelectedValue = .IdCuentaIVAxTrasladar.ToString
|
' DdlIVAxTrasladar.SelectedValue = .IdCuentaIVAxTrasladar.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVATrasladado.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVATrasladado.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIVATrasladado.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVATrasladado.ToString))("CtaCodigo").ToString, .IdCuentaIVATrasladado.ToString))
|
' DdlIVATrasladado.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIVATrasladado.ToString))("CtaCodigo").ToString, .IdCuentaIVATrasladado.ToString))
|
||||||
DdlIVATrasladado.SelectedValue = .IdCuentaIVATrasladado.ToString
|
' DdlIVATrasladado.SelectedValue = .IdCuentaIVATrasladado.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetIVACirculacion.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetIVACirculacion.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIVARetenciones.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetIVACirculacion.ToString))("CtaCodigo").ToString, .IdCuentaRetIVACirculacion.ToString))
|
' DdlIVARetenciones.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetIVACirculacion.ToString))("CtaCodigo").ToString, .IdCuentaRetIVACirculacion.ToString))
|
||||||
DdlIVARetenciones.SelectedValue = .IdCuentaRetIVACirculacion.ToString
|
' DdlIVARetenciones.SelectedValue = .IdCuentaRetIVACirculacion.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetISRCirculacion.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetISRCirculacion.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlISRCirculacion.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetISRCirculacion.ToString))("CtaCodigo").ToString, .IdCuentaRetISRCirculacion.ToString))
|
' DdlISRCirculacion.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaRetISRCirculacion.ToString))("CtaCodigo").ToString, .IdCuentaRetISRCirculacion.ToString))
|
||||||
DdlISRCirculacion.SelectedValue = .IdCuentaRetISRCirculacion.ToString
|
' DdlISRCirculacion.SelectedValue = .IdCuentaRetISRCirculacion.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaPerdidaCambiaria.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaPerdidaCambiaria.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlCuentaPerdidaCambiaria.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaPerdidaCambiaria.ToString))("CtaCodigo").ToString, .IdCuentaPerdidaCambiaria.ToString))
|
' DdlCuentaPerdidaCambiaria.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaPerdidaCambiaria.ToString))("CtaCodigo").ToString, .IdCuentaPerdidaCambiaria.ToString))
|
||||||
DdlCuentaPerdidaCambiaria.SelectedValue = .IdCuentaPerdidaCambiaria.ToString
|
' DdlCuentaPerdidaCambiaria.SelectedValue = .IdCuentaPerdidaCambiaria.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaGananciaCambiaria.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaGananciaCambiaria.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DddlCuentaGananciaCambiaria.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaGananciaCambiaria.ToString))("CtaCodigo").ToString, .IdCuentaGananciaCambiaria.ToString))
|
' DddlCuentaGananciaCambiaria.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaGananciaCambiaria.ToString))("CtaCodigo").ToString, .IdCuentaGananciaCambiaria.ToString))
|
||||||
DddlCuentaGananciaCambiaria.SelectedValue = .IdCuentaGananciaCambiaria.ToString
|
' DddlCuentaGananciaCambiaria.SelectedValue = .IdCuentaGananciaCambiaria.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaDSV.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaDSV.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlDSV.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaDSV.ToString))("CtaCodigo").ToString, .IdCuentaDSV.ToString))
|
' DdlDSV.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaDSV.ToString))("CtaCodigo").ToString, .IdCuentaDSV.ToString))
|
||||||
DdlDSV.SelectedValue = .IdCuentaDSV.ToString
|
' DdlDSV.SelectedValue = .IdCuentaDSV.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaImpuestosLocales.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaImpuestosLocales.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlImpuestosLocales.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaImpuestosLocales.ToString))("CtaCodigo").ToString, .IdCuentaImpuestosLocales.ToString))
|
' DdlImpuestosLocales.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaImpuestosLocales.ToString))("CtaCodigo").ToString, .IdCuentaImpuestosLocales.ToString))
|
||||||
DdlImpuestosLocales.SelectedValue = .IdCuentaImpuestosLocales.ToString
|
' DdlImpuestosLocales.SelectedValue = .IdCuentaImpuestosLocales.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
|
|
||||||
'NUEVOS DATOS
|
'NUEVOS DATOS
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxAcreditar.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxAcreditar.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIEPSxAcreditar.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxAcreditar.ToString))("CtaCodigo").ToString, .IdCuentaIEPSxAcreditar.ToString))
|
' DdlIEPSxAcreditar.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxAcreditar.ToString))("CtaCodigo").ToString, .IdCuentaIEPSxAcreditar.ToString))
|
||||||
DdlIEPSxAcreditar.SelectedValue = .IdCuentaIEPSxAcreditar.ToString
|
' DdlIEPSxAcreditar.SelectedValue = .IdCuentaIEPSxAcreditar.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSAcreditable.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSAcreditable.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIEPSAcreditable.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSAcreditable.ToString))("CtaCodigo").ToString, .IdCuentaIEPSAcreditable.ToString))
|
' DdlIEPSAcreditable.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSAcreditable.ToString))("CtaCodigo").ToString, .IdCuentaIEPSAcreditable.ToString))
|
||||||
DdlIEPSAcreditable.SelectedValue = .IdCuentaIEPSAcreditable.ToString
|
' DdlIEPSAcreditable.SelectedValue = .IdCuentaIEPSAcreditable.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxTrasladar.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxTrasladar.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIEPSxTrasladar.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxTrasladar.ToString))("CtaCodigo").ToString, .IdCuentaIEPSxTrasladar.ToString))
|
' DdlIEPSxTrasladar.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSxTrasladar.ToString))("CtaCodigo").ToString, .IdCuentaIEPSxTrasladar.ToString))
|
||||||
DdlIEPSxTrasladar.SelectedValue = .IdCuentaIEPSxTrasladar.ToString
|
' DdlIEPSxTrasladar.SelectedValue = .IdCuentaIEPSxTrasladar.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSTrasladado.ToString))
|
'Row = DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSTrasladado.ToString))
|
||||||
If Not IsNothing(Row) Then
|
'If Not IsNothing(Row) Then
|
||||||
DdlIEPSTrasladado.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSTrasladado.ToString))("CtaCodigo").ToString, .IdCuentaIEPSTrasladado.ToString))
|
' DdlIEPSTrasladado.Items.Add(New ListItem(DtCuentasContables.FiltroPrimero(String.Format("Id = {0} ", .IdCuentaIEPSTrasladado.ToString))("CtaCodigo").ToString, .IdCuentaIEPSTrasladado.ToString))
|
||||||
DdlIEPSTrasladado.SelectedValue = .IdCuentaIEPSTrasladado.ToString
|
' DdlIEPSTrasladado.SelectedValue = .IdCuentaIEPSTrasladado.ToString
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -665,7 +665,7 @@ Partial Class Sistemas_Empresa
|
|||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GlobalDTClasificacionPorcentaje(CveEmpresa) = Nothing
|
' GlobalDTClasificacionPorcentaje(CveEmpresa) = Nothing
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ Partial Class CatMetasVendedores
|
|||||||
|
|
||||||
DtExcel.Rows.Add(dr)
|
DtExcel.Rows.Add(dr)
|
||||||
Next
|
Next
|
||||||
|
SpreadsheetInfo.SetLicense(ModExtensiones.SerialGemBoxSpreadsheet)
|
||||||
Dim FileExcel As New ExcelFile()
|
Dim FileExcel As New ExcelFile()
|
||||||
|
|
||||||
Dim worksheet = FileExcel.Worksheets.Add(DtExcel.TableName)
|
Dim worksheet = FileExcel.Worksheets.Add(DtExcel.TableName)
|
||||||
|
|||||||
@@ -378,7 +378,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12" runat="server" id="DivRazonSocial2">
|
<div class="col-md-12" runat="server" id="DivRazonSocial2">
|
||||||
<div runat="server" id="DivRazonSocial" class="form-group form-md-line-input input-iconright">
|
<div runat="server" id="DivRazonSocial" class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtNombre" CssClass="form-control " runat="server" MaxLength="150" onkeyup="fncTxt()" ClientIDMode="Static"></asp:TextBox>
|
<asp:TextBox ID="TxtNombre" CssClass="form-control " runat="server" MaxLength="200" onkeyup="fncTxt()" ClientIDMode="Static"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVNombre" runat="server" ControlToValidate="TxtNombre" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre del Cliente''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVNombre" runat="server" ControlToValidate="TxtNombre" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre del Cliente''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<label for="<%= TxtNombre.ClientID.ToString()%>">Razón Social:</label>
|
<label for="<%= TxtNombre.ClientID.ToString()%>">Razón Social:</label>
|
||||||
<i></i>
|
<i></i>
|
||||||
@@ -419,7 +419,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright ">
|
<div class="form-group form-md-line-input input-iconright ">
|
||||||
<asp:TextBox ID="TxtNombreComercial" CssClass="form-control" runat="server" MaxLength="150" ClientIDMode="Static"></asp:TextBox>
|
<asp:TextBox ID="TxtNombreComercial" CssClass="form-control" runat="server" MaxLength="200" ClientIDMode="Static"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVNombreComercial" runat="server" ControlToValidate="TxtNombreComercial" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre Comercial''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVNombreComercial" runat="server" ControlToValidate="TxtNombreComercial" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Nombre Comercial''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<label for="<%= TxtNombreComercial.ClientID.ToString()%>">Nombre Comercial:</label>
|
<label for="<%= TxtNombreComercial.ClientID.ToString()%>">Nombre Comercial:</label>
|
||||||
<i></i>
|
<i></i>
|
||||||
|
|||||||
@@ -2504,11 +2504,11 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If TCPago > TCVenta Then
|
If TCPago > TCVenta Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 64, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=UsuarioActual.Empresa.IdCuentaGananciaCambiaria, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 64, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=0, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 65, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=UsuarioActual.Empresa.IdCuentaPerdidaCambiaria, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Math.Abs(ImporteFluctuacion), gr.DataKey("SerieFolio").ToString, 65, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable:=0, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -2525,12 +2525,11 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
Dim IdCtaIVAXTrasladar As Integer = 0
|
Dim IdCtaIVAXTrasladar As Integer = 0
|
||||||
Dim CveCuentaIVAxTrasladar As Integer = 0
|
Dim CveCuentaIVAxTrasladar As Integer = 0
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
'If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
||||||
IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString.ToEntero
|
' IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString.ToEntero
|
||||||
CveCuentaIVAxTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("CveCuentaIVAxTrasladar").ToString.ToEntero
|
' CveCuentaIVAxTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("CveCuentaIVAxTrasladar").ToString.ToEntero
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
|
||||||
|
|
||||||
If (IVA > 0 Or UsuarioActual.CveEmpresa.Contiene(4, 7, 11, 12, 122) And IVA < 0) AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IVA, gr.DataKey("SerieFolio").ToString, 13, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable, -1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=If(CveMonedaFiltro = 1, IVA, IVA * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
If (IVA > 0 Or UsuarioActual.CveEmpresa.Contiene(4, 7, 11, 12, 122) And IVA < 0) AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IVA, gr.DataKey("SerieFolio").ToString, 13, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable, -1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=If(CveMonedaFiltro = 1, IVA, IVA * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
@@ -2540,7 +2539,6 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSxTrasladar
|
|
||||||
If IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IEPS, gr.DataKey("SerieFolio").ToString, 38, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable, -1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=If(CveMonedaFiltro = 1, IEPS, IEPS * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
If IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IEPS, gr.DataKey("SerieFolio").ToString, 38, ConceptoPartida, TxtFechaIncobrable.Text.ToDate, IdCtaContable, -1, CveCliente:=gr.DataKey("CveCliente").ToEntero, CveVenta:=gr.DataKey("CveVenta").ToEntero, ImporteMX:=If(CveMonedaFiltro = 1, IEPS, IEPS * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -13866,10 +13866,10 @@ Partial Class Ventas
|
|||||||
SeContabiliza = False
|
SeContabiliza = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDT.MAX("PorcentajeIVA").ToDouble).Rows.Count > 0 Then
|
'If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDT.MAX("PorcentajeIVA").ToDouble).Rows.Count > 0 Then
|
||||||
IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDT.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVAXTrasladar").ToString().ToEntero()
|
' IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDT.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVAXTrasladar").ToString().ToEntero()
|
||||||
IdCtaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDT.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVATrasladado").ToString().ToEntero()
|
' IdCtaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDT.MAX("PorcentajeIVA").ToDouble).Rows(0)("IdCtaIVATrasladado").ToString().ToEntero()
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Dim UsaComplementariaClientes As Boolean = True
|
Dim UsaComplementariaClientes As Boolean = True
|
||||||
|
|
||||||
@@ -14240,14 +14240,12 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If IngresoIVA > 0 Then
|
If IngresoIVA > 0 Then
|
||||||
|
|
||||||
IdCtaIVAXTrasladar = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 13, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 13, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, False, (importeMovimiento * IngresoIVA) / IngresoTotal, Referencia, 13, Concepto, Fecha, IdCtaIVAXTrasladar, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIVA) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, False, (importeMovimiento * IngresoIVA) / IngresoTotal, Referencia, 13, Concepto, Fecha, IdCtaIVAXTrasladar, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIVA) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
'IVA PAGADO
|
'IVA PAGADO
|
||||||
IdCtaIVATrasladado = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
|
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 61, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 61, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, True, (importeMovimiento * IngresoIVA) / IngresoTotal, Referencia, 61, Concepto, Fecha, IdCtaIVATrasladado, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIVA) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, True, (importeMovimiento * IngresoIVA) / IngresoTotal, Referencia, 61, Concepto, Fecha, IdCtaIVATrasladado, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIVA) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
@@ -14259,14 +14257,14 @@ Partial Class Ventas
|
|||||||
If IngresoIEPS > 0 Then
|
If IngresoIEPS > 0 Then
|
||||||
'IEPS X TRASLADAR
|
'IEPS X TRASLADAR
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 38, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 38, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
||||||
If IngresoIEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, False, (importeMovimiento * IngresoIEPS) / IngresoTotal, Referencia, 38, Concepto, Fecha, UsuarioActual.Empresa.IdCuentaIEPSxTrasladar, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIEPS) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
If IngresoIEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, False, (importeMovimiento * IngresoIEPS) / IngresoTotal, Referencia, 38, Concepto, Fecha, 0, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIEPS) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'IEPS PAGADO
|
'IEPS PAGADO
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 39, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 39, NombreCliente, Dr("Folio").ToString, FolioIE.ToString())
|
||||||
If IngresoIEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, True, (importeMovimiento * IngresoIEPS) / IngresoTotal, Referencia, 39, Concepto, Fecha, UsuarioActual.Empresa.IdCuentaIEPSTrasladado, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIEPS) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
If IngresoIEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, True, (importeMovimiento * IngresoIEPS) / IngresoTotal, Referencia, 39, Concepto, Fecha, 0, -1, CveVenta:=Dr("CveVenta").ToString().ToEntero(), CveCliente:=CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=((importeMovimiento * IngresoIEPS) / IngresoTotal) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -14323,11 +14321,9 @@ Partial Class Ventas
|
|||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe251 * difFluctuacion).RoundSQL)
|
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe251 * difFluctuacion).RoundSQL)
|
||||||
|
|
||||||
@@ -14433,11 +14429,9 @@ Partial Class Ventas
|
|||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((importeMovimientoDev * difFluctuacion).RoundSQL)
|
Dim ImporteFluctuacion As Decimal = Math.Abs((importeMovimientoDev * difFluctuacion).RoundSQL)
|
||||||
|
|
||||||
@@ -14794,30 +14788,30 @@ Partial Class Ventas
|
|||||||
' If UsuarioActual.CveEmpresa = 119 Then
|
' If UsuarioActual.CveEmpresa = 119 Then
|
||||||
|
|
||||||
'código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
'código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
||||||
For i = 0 To TmpDTDetalle.Rows.Count - 1
|
'For i = 0 To TmpDTDetalle.Rows.Count - 1
|
||||||
|
|
||||||
'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
' 'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
||||||
If Not TmpDTDetalle(i)("CveClasificacion").ToString().Contiene("19958", "19933", "18097") Then
|
' If Not TmpDTDetalle(i)("CveClasificacion").ToString().Contiene("19958", "19933", "18097", "24479") Then
|
||||||
|
|
||||||
'If TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal > 0 Then
|
' 'If TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal > 0 Then
|
||||||
' If TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal = 0.08 Then
|
' ' If TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal = 0.08 Then
|
||||||
' TmpDTDetalle(i)("CveClasificacion") = 20242 'clasif: ventas tasa 8%
|
' ' TmpDTDetalle(i)("CveClasificacion") = 20242 'clasif: ventas tasa 8%
|
||||||
' Else
|
' ' Else
|
||||||
' TmpDTDetalle(i)("CveClasificacion") = 19929 'clasif: ventas tasa 16%
|
' ' TmpDTDetalle(i)("CveClasificacion") = 19929 'clasif: ventas tasa 16%
|
||||||
' End If
|
' ' End If
|
||||||
|
|
||||||
' Else
|
' ' Else
|
||||||
' TmpDTDetalle(i)("CveClasificacion") = 19930 'clasif: ventas tasa 0%
|
' ' TmpDTDetalle(i)("CveClasificacion") = 19930 'clasif: ventas tasa 0%
|
||||||
' End If
|
' ' End If
|
||||||
|
|
||||||
'reclasifica la clasificación del producto, por la del ingreso correspondiente a su iva
|
' 'reclasifica la clasificación del producto, por la del ingreso correspondiente a su iva
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal).Rows.Count > 0 Then
|
' If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal).Rows.Count > 0 Then
|
||||||
TmpDTDetalle(i)("CveClasificacion") = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal).Rows(0)("CveClasificacion").ToString()
|
' TmpDTDetalle(i)("CveClasificacion") = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDecimal).Rows(0)("CveClasificacion").ToString()
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
Next
|
'Next
|
||||||
|
|
||||||
' End If
|
' End If
|
||||||
|
|
||||||
@@ -14867,23 +14861,23 @@ Partial Class Ventas
|
|||||||
Dim CveVentaAplicar = ObjFactura.CveVenta
|
Dim CveVentaAplicar = ObjFactura.CveVenta
|
||||||
Dim CveVentaAmortizacionAplicar = -1
|
Dim CveVentaAmortizacionAplicar = -1
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 119 Then
|
'If UsuarioActual.CveEmpresa = 119 Then
|
||||||
|
|
||||||
'código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
' 'código fijo en base el porcentaje iva, que se afecten las clasificaciones
|
||||||
For i = 0 To TmpDTDetalle.Rows.Count - 1
|
' For i = 0 To TmpDTDetalle.Rows.Count - 1
|
||||||
|
|
||||||
'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
' 'se excluyen las clasificaciones anteriores para que se asignen las de ingreso
|
||||||
If Not TmpDTDetalle(i)("CveClasificacion").ToString().Contiene("19958", "19933", "18097") Then
|
' If Not TmpDTDetalle(i)("CveClasificacion").ToString().Contiene("19958", "19933", "18097") Then
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows.Count > 0 Then
|
' If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows.Count > 0 Then
|
||||||
TmpDTDetalle(i)("CveClasificacion") = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows(0)("CveClasificacion").ToString()
|
' TmpDTDetalle(i)("CveClasificacion") = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=TmpDTDetalle(i)("PorcentajeIVA").ToString().ToDouble).Rows(0)("CveClasificacion").ToString()
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
Next
|
' Next
|
||||||
|
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
DT = TmpDTDetalle.FiltraParametros($"CvePS <> {CvePSAmortizacion}", "", {"CveClasificacion", "CveSubProyecto", "PorcentajeIVA"})
|
DT = TmpDTDetalle.FiltraParametros($"CvePS <> {CvePSAmortizacion}", "", {"CveClasificacion", "CveSubProyecto", "PorcentajeIVA"})
|
||||||
|
|
||||||
@@ -15094,13 +15088,8 @@ Partial Class Ventas
|
|||||||
ConceptoContable = 61
|
ConceptoContable = 61
|
||||||
importeMovimiento = importeMovimiento * -1
|
importeMovimiento = importeMovimiento * -1
|
||||||
importeMX = importeMX * -1
|
importeMX = importeMX * -1
|
||||||
|
|
||||||
IdCtaContable = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
|
|
||||||
Else
|
|
||||||
IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
CveSubProyectoContabilizar = CveSubProyectoVenta
|
CveSubProyectoContabilizar = CveSubProyectoVenta
|
||||||
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
End If
|
End If
|
||||||
@@ -15249,13 +15238,10 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If ObjFactura.IVA <> 0 Then
|
If ObjFactura.IVA <> 0 Then
|
||||||
Dim PorcentajeImpuestoPago As Decimal = TmpDT.MAX("PorcentajeIVA").ToDecimal
|
Dim PorcentajeImpuestoPago As Decimal = TmpDT.MAX("PorcentajeIVA").ToDecimal
|
||||||
|
|
||||||
'IVA X TRASLADAR
|
'IVA X TRASLADAR
|
||||||
IdCtaIVAXTrasladar = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 13, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 13, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 13, Concepto, Fecha, IdCtaIVAXTrasladar, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 13, Concepto, Fecha, IdCtaIVAXTrasladar, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
@@ -15263,7 +15249,6 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'IVA PAGADO
|
'IVA PAGADO
|
||||||
IdCtaIVATrasladado = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
|
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 61, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 61, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 61, Concepto, Fecha, IdCtaIVATrasladado, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IVA) / ObjFactura.Total, Referencia, 61, Concepto, Fecha, IdCtaIVATrasladado, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IVA) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
@@ -15271,21 +15256,19 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If ObjFactura.IEPS <> 0 Then
|
If ObjFactura.IEPS <> 0 Then
|
||||||
Dim PorcentajeImpuestoPago As Decimal = TmpDT.MAX("PorcentajeIEPS").ToDecimal
|
Dim PorcentajeImpuestoPago As Decimal = TmpDT.MAX("PorcentajeIEPS").ToDecimal
|
||||||
|
|
||||||
'IEPS X TRASLADAR
|
'IEPS X TRASLADAR
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 38, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 38, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
||||||
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 38, Concepto, Fecha, UsuarioActual.Empresa.IdCuentaIEPSxTrasladar, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 38, Concepto, Fecha, 0, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'IEPS PAGADO
|
'IEPS PAGADO
|
||||||
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 39, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
Concepto = ObjConta.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, 39, NombreCliente, $"{ObjFactura.Serie}-{ObjFactura.Folio}", FolioIE.ToString())
|
||||||
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 39, Concepto, Fecha, UsuarioActual.Empresa.IdCuentaIEPSTrasladado, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
If ObjFactura.IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, Not TipoMovimiento, (importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total, Referencia, 39, Concepto, Fecha, 0, -1, CveVenta:=ObjFactura.CveVenta, CveCliente:=CveCliente, CveIE:=CveIEPago, ImporteMX:=((importeMovimiento * ObjFactura.IEPS) / ObjFactura.Total) * tipoCambio * Multiplicador, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, PorcentajeImpuesto:=PorcentajeImpuestoPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -16972,17 +16955,17 @@ Partial Class Ventas
|
|||||||
Dim FechaMovimiento As Date = Now
|
Dim FechaMovimiento As Date = Now
|
||||||
Dim Concepto As String = ViewState("VentaFolio").ToString()
|
Dim Concepto As String = ViewState("VentaFolio").ToString()
|
||||||
Dim PrePolizaCorrecta = True
|
Dim PrePolizaCorrecta = True
|
||||||
Dim PorcentajeImpuesto As Decimal = 0
|
' Dim PorcentajeImpuesto As Decimal = 0
|
||||||
Dim IdCtaIVAXTrasladar As Integer = 0
|
Dim IdCtaIVAXTrasladar As Integer = 0
|
||||||
|
|
||||||
'13 Iva x Trasladar
|
'13 Iva x Trasladar
|
||||||
ImporteMovimiento = Importe13 * PorcentajeAmortizacion
|
ImporteMovimiento = Importe13 * PorcentajeAmortizacion
|
||||||
ImporteMX = Math.Round(ImporteMovimiento, 2) * TipoCambio
|
ImporteMX = Math.Round(ImporteMovimiento, 2) * TipoCambio
|
||||||
PorcentajeImpuesto = TmpDT.MAX("PorcentajeIVA").ToDecimal
|
'PorcentajeImpuesto = TmpDT.MAX("PorcentajeIVA").ToDecimal
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
'If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
||||||
IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString().ToEntero()
|
' IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString().ToEntero()
|
||||||
End If
|
'End If
|
||||||
IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
'IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
|
||||||
' CveCuenta = If(CveCuentaIVAxTrasladar > 0, CveCuentaIVAxTrasladar, UsuarioActual.Empresa.CveCuentaIVAxTrasladar)
|
' CveCuenta = If(CveCuentaIVAxTrasladar > 0, CveCuentaIVAxTrasladar, UsuarioActual.Empresa.CveCuentaIVAxTrasladar)
|
||||||
|
|
||||||
If ImporteMovimiento > 0 Then
|
If ImporteMovimiento > 0 Then
|
||||||
@@ -16992,7 +16975,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, Concepto, 13, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=CveCliente, ImporteMX:=ImporteMX, PorcentajeImpuesto:=PorcentajeImpuesto) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, Concepto, 13, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=CveVenta, CveCliente:=CveCliente, ImporteMX:=ImporteMX) Then
|
||||||
PrePolizaCorrecta = False
|
PrePolizaCorrecta = False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -17069,11 +17052,10 @@ Partial Class Ventas
|
|||||||
ImporteMovimiento = TxtIVA.Text.ToDecimal * PorcentajeAmortizacion
|
ImporteMovimiento = TxtIVA.Text.ToDecimal * PorcentajeAmortizacion
|
||||||
ImporteMX = Math.Round(ImporteMovimiento * TipoCambio, 2)
|
ImporteMX = Math.Round(ImporteMovimiento * TipoCambio, 2)
|
||||||
PorcentajeImpuesto = TmpDT.MAX("PorcentajeIVA").ToDecimal
|
PorcentajeImpuesto = TmpDT.MAX("PorcentajeIVA").ToDecimal
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
'If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
||||||
IdCtaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVATrasladado").ToString().ToEntero()
|
' IdCtaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVATrasladado").ToString().ToEntero()
|
||||||
CveCuentaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("CveCuentaIVATrasladado").ToString().ToEntero()
|
' CveCuentaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("CveCuentaIVATrasladado").ToString().ToEntero()
|
||||||
End If
|
'End If
|
||||||
IdCtaContable = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
|
|
||||||
'CveCuenta = If(CveCuentaIVATrasladado > 0, CveCuentaIVATrasladado, UsuarioActual.Empresa.CveCuentaIVATrasladado)
|
'CveCuenta = If(CveCuentaIVATrasladado > 0, CveCuentaIVATrasladado, UsuarioActual.Empresa.CveCuentaIVATrasladado)
|
||||||
|
|
||||||
If ImporteMovimiento > 0 Then
|
If ImporteMovimiento > 0 Then
|
||||||
@@ -27400,11 +27382,11 @@ Partial Class Ventas
|
|||||||
Dim ImporteFluctuacion As Decimal = 0
|
Dim ImporteFluctuacion As Decimal = 0
|
||||||
ImporteFluctuacion = Saldo * (TCPago - TCVenta)
|
ImporteFluctuacion = Saldo * (TCPago - TCVenta)
|
||||||
If TCPago > TCVenta Then
|
If TCPago > TCVenta Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Math.Abs(ImporteFluctuacion), SerieFolio, 64, ConceptoPartida, FechaPago, IdCtaContable:=UsuarioActual.Empresa.IdCuentaGananciaCambiaria, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Math.Abs(ImporteFluctuacion), SerieFolio, 64, ConceptoPartida, FechaPago, IdCtaContable:=0, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Math.Abs(ImporteFluctuacion), SerieFolio, 65, ConceptoPartida, FechaPago, IdCtaContable:=UsuarioActual.Empresa.IdCuentaPerdidaCambiaria, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Math.Abs(ImporteFluctuacion), SerieFolio, 65, ConceptoPartida, FechaPago, IdCtaContable:=0, CveIE:=-1, IdSegmentoNegocio:=-1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=Math.Abs(ImporteFluctuacion), TipoCambio:=TCVenta, TipoCambioPago:=TCPago, CveSubProyecto:=CveSubProyecto) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -27416,15 +27398,14 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Dim IdCtaIVAXTrasladar As Integer = 0
|
Dim IdCtaIVAXTrasladar As Integer = 0
|
||||||
|
|
||||||
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
'If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
|
||||||
IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString().ToEntero()
|
' IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString().ToEntero()
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If IVA > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IVA, SerieFolio, 13, ConceptoPartida, FechaPago, IdCtaIVAXTrasladar, -1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=If(tCveMoneda = 1, IVA, IVA * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
If IVA > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IVA, SerieFolio, 13, ConceptoPartida, FechaPago, IdCtaIVAXTrasladar, -1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=If(tCveMoneda = 1, IVA, IVA * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSxTrasladar
|
|
||||||
If IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IEPS, SerieFolio, 38, ConceptoPartida, FechaPago, IdCtaContable, -1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=If(tCveMoneda = 1, IEPS, IEPS * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
If IEPS > 0 AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, ImpuestosMovto, IEPS, SerieFolio, 38, ConceptoPartida, FechaPago, IdCtaContable, -1, CveCliente:=CveCliente, CveVenta:=CveVenta, ImporteMX:=If(tCveMoneda = 1, IEPS, IEPS * TCVenta), PorcentajeImpuesto:=PorcentajeImpuesto, TipoCambio:=TCVenta, TipoCambioPago:=TCPago) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user