Validacion IF ClsconpaQi Tipo conta 2, Ventas
This commit is contained in:
@@ -3440,7 +3440,7 @@ Partial Class PV
|
|||||||
Dim ObjAcum As New ClsAcumuladores
|
Dim ObjAcum As New ClsAcumuladores
|
||||||
Dim ObjVentas As New ClsVentas(ObjAcum.IniciaTransacSQL())
|
Dim ObjVentas As New ClsVentas(ObjAcum.IniciaTransacSQL())
|
||||||
Dim ObjContPaq As ClsContPAQi = Nothing
|
Dim ObjContPaq As ClsContPAQi = Nothing
|
||||||
If UsuarioActual.Empresa.UsaAC OrElse UsuarioActual.Empresa.Funcionalidad(200) = "1" Then
|
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC OrElse UsuarioActual.Empresa.Funcionalidad(200) = "1" Then
|
||||||
ObjContPaq = New ClsContPAQi(UsuarioActual.Empresa)
|
ObjContPaq = New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -8808,7 +8808,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
|
|
||||||
'CONTABILIDAD AUTOMATICA Y AC
|
'CONTABILIDAD AUTOMATICA Y AC
|
||||||
If UsuarioActual.Empresa.UsaAC AndAlso UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
||||||
ObjContPaq = New ClsContPAQi(UsuarioActual.Empresa)
|
ObjContPaq = New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
ObjContPaq.IniciaTransacSQL()
|
ObjContPaq.IniciaTransacSQL()
|
||||||
End If
|
End If
|
||||||
@@ -19715,6 +19715,9 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub EliminaPoliza()
|
Private Sub EliminaPoliza()
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||||
|
|
||||||
Dim ObjAC As New ClsContPAQi(UsuarioActual.Empresa)
|
Dim ObjAC As New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
ObjAC.IniciaTransacSQL()
|
ObjAC.IniciaTransacSQL()
|
||||||
Dim ObjConta As New ClsContabilidad
|
Dim ObjConta As New ClsContabilidad
|
||||||
@@ -19756,6 +19759,10 @@ Partial Class Ventas
|
|||||||
ObjAC.Dispose()
|
ObjAC.Dispose()
|
||||||
ObjConta.Dispose()
|
ObjConta.Dispose()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub DdlPS_SelectedIndexChanged1(sender As Object, e As EventArgs)
|
Protected Sub DdlPS_SelectedIndexChanged1(sender As Object, e As EventArgs)
|
||||||
Dim Ddl As DropDownList = CType(sender, DropDownList)
|
Dim Ddl As DropDownList = CType(sender, DropDownList)
|
||||||
@@ -22654,7 +22661,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
CreaObjetosVenta()
|
CreaObjetosVenta()
|
||||||
|
|
||||||
If UsuarioActual.Empresa.UsaAC Then
|
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso UsuarioActual.Empresa.UsaAC Then
|
||||||
ObjAC = New ClsContPAQi(UsuarioActual.Empresa) : ObjAC.IniciaTransacSQL()
|
ObjAC = New ClsContPAQi(UsuarioActual.Empresa) : ObjAC.IniciaTransacSQL()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -34455,6 +34462,9 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Protected Sub BtnGenerarPoliza_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnGenerarPoliza_Click(sender As Object, e As EventArgs)
|
||||||
CreaObjetosVenta()
|
CreaObjetosVenta()
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||||
|
|
||||||
Dim ObjAC As New ClsContPAQi(UsuarioActual.Empresa)
|
Dim ObjAC As New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
Dim Msgok As New StringBuilder
|
Dim Msgok As New StringBuilder
|
||||||
If ObjFactura.TipoDocto.Contiene("Ing", "Egs", "OP", "Com") Then
|
If ObjFactura.TipoDocto.Contiene("Ing", "Egs", "OP", "Com") Then
|
||||||
@@ -34483,7 +34493,11 @@ Partial Class Ventas
|
|||||||
Else
|
Else
|
||||||
Msgok.Append("Movimiento Registrado Correctamente.<br/><br/> ")
|
Msgok.Append("Movimiento Registrado Correctamente.<br/><br/> ")
|
||||||
End If
|
End If
|
||||||
ObjAC.dispose
|
ObjAC.Dispose()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user