diff --git a/Acumuladores/EntradasUsadosResumenRep.aspx b/Acumuladores/EntradasUsadosResumenRep.aspx
index 5ed52d568..fd6a6e5f5 100644
--- a/Acumuladores/EntradasUsadosResumenRep.aspx
+++ b/Acumuladores/EntradasUsadosResumenRep.aspx
@@ -165,7 +165,7 @@
-
+
diff --git a/App_Code/ClsCompProveedores.vb b/App_Code/ClsCompProveedores.vb
index b92dc28d8..4594ff303 100644
--- a/App_Code/ClsCompProveedores.vb
+++ b/App_Code/ClsCompProveedores.vb
@@ -44,71 +44,51 @@ Public Class ClsCompProveedores
Public Property RetISR As Double
Public Property CP As Integer
Public Property IdCtaContProveedores As Integer
- Public Property CveCuentaProveedores As Integer
Public Property CtaContProveedores As String
Public Property IdCtaContProveedoresExtranjera As Integer
- Public Property CveCuentaProveedoresExtranjera As Integer
Public Property CtaContProveedoresExtranjera As String
Public Property IdCtaContProveedoresComplementaria As Integer
- Public Property CveCuentaProveedoresComplementaria As Integer
Public Property CtaContProveedoresComplementaria As String
Public Property IdCtaContAcreedor As Integer
- Public Property CveCuentaAcreedor As Integer
Public Property CtaContAcreedor As String
Public Property IdCtaContAcreedorExtranjera As Integer
- Public Property CveCuentaAcreedorExtranjera As Integer
Public Property CtaContAcreedorExtranjera As String
Public Property IdCtaContAcreedorComplementaria As Integer
- Public Property CveCuentaAcreedorComplementaria As Integer
Public Property CtaContAcreedorComplementaria As String
Public Property IdCtaContAnticipos As Integer
- Public Property CveCuentaAnticipos As Integer
Public Property CtaContAnticipos As String
Public Property IdCtaContAnticiposExtranjera As Integer
- Public Property CveCuentaAnticiposExtranjera As Integer
Public Property CtaContAnticiposExtranjera As String
Public Property IdCtaContAnticiposComplementaria As Integer
- Public Property CveCuentaAnticiposComplementaria As Integer
Public Property CtaContAnticiposComplementaria As String
Public Property IdCtaContDeudor As Integer
- Public Property CveCuentaDeudor As Integer
Public Property CtaContDeudor As String
Public Property IdCtaContDeudorExtranjera As Integer
- Public Property CveCuentaDeudorExtranjera As Integer
Public Property CtaContDeudorExtranjera As String
Public Property IdCtaContDeudorComplementaria As Integer
- Public Property CveCuentaDeudorComplementaria As Integer
Public Property CtaContDeudorComplementaria As String
Public Property IdCtaContDocsXPagar As Integer
- Public Property CveCuentaDocsXPagar As Integer
Public Property CtaContDocsXPagar As String
Public Property IdCtaContDocsXPagarExtranjera As Integer
- Public Property CveCuentaDocsXPagarExtranjera As Integer
Public Property CtaContDocsXPagarExtranjera As String
Public Property IdCtaContDocsXPagarComplementaria As Integer
- Public Property CveCuentaDocsXPagarComplementaria As Integer
Public Property CtaContDocsXPagarComplementaria As String
Public Property IdCtaContFondoGarantia As Integer
- Public Property CveCuentaFondoGarantia As Integer
Public Property CtaContFondoGarantia As String
Public Property IdCtaContRetIVA As Integer
- Public Property CveCuentaRetIVA As Integer
Public Property CtaContRetIVA As String
Public Property IdCtaContRetISR As Integer
- Public Property CveCuentaRetISR As Integer
Public Property CtaContRetISR As String
Public Property IdCtaContRetISRAcreditable As Integer
- Public Property CveCuentaRetISRAcreditable As Integer
Public Property CtaContRetISRAcreditable As String
Public Property IdCtaContRetIVAAcreditable As Integer
- Public Property CveCuentaRetIVAAcreditable As Integer
Public Property CtaContRetIVAAcreditable As String
Public Property Estatus As String
@@ -346,57 +326,42 @@ Public Class ClsCompProveedores
'Proveedores
Me.IdCtaContProveedores = Data.Rows(0)("IdCtaContProveedores").ToString.ToEntero
- Me.CveCuentaProveedores = Data.Rows(0)("IdCtaContProveedoresSIG").ToString.ToEntero
Me.CtaContProveedores = Data.Rows(0)("CtaContProveedores").ToString
Me.IdCtaContProveedoresExtranjera = Data.Rows(0)("IdCtaContExtranjera").ToString.ToEntero
- Me.CveCuentaProveedoresExtranjera = Data.Rows(0)("IdCtaContExtranjeraSIG").ToString.ToEntero
Me.CtaContProveedoresExtranjera = Data.Rows(0)("CtaContExtranjera").ToString
Me.IdCtaContProveedoresComplementaria = Data.Rows(0)("IdCtaContComplementaria").ToString.ToEntero
- Me.CveCuentaProveedoresComplementaria = Data.Rows(0)("IdCtaContComplementariaSIG").ToString.ToEntero
Me.CtaContProveedoresComplementaria = Data.Rows(0)("CtaContComplementaria").ToString
'Acreedores
Me.IdCtaContAcreedor = Data.Rows(0)("IdCtaContAcreedor").ToString.ToEntero
- Me.CveCuentaAcreedor = Data.Rows(0)("IdCtaContAcreedorSIG").ToString.ToEntero
Me.CtaContAcreedor = Data.Rows(0)("CtaContAcreedor").ToString
Me.IdCtaContAcreedorExtranjera = Data.Rows(0)("IdCtaContAcreedorExtranjera").ToString.ToEntero
- Me.CveCuentaAcreedorExtranjera = Data.Rows(0)("IdCtaContAcreedorExtranjeraSIG").ToString.ToEntero
Me.CtaContAcreedorExtranjera = Data.Rows(0)("CtaContAcreedorExtranjera").ToString
Me.IdCtaContAcreedorComplementaria = Data.Rows(0)("IdCtaContAcreedorComplementaria").ToString.ToEntero
- Me.CveCuentaAcreedorComplementaria = Data.Rows(0)("IdCtaContAcreedorComplementariaSIG").ToString.ToEntero
Me.CtaContAcreedorComplementaria = Data.Rows(0)("CtaContAcreedorComplementaria").ToString
'Anticipos
Me.IdCtaContAnticipos = Data.Rows(0)("IdCtaContAnticipos").ToString.ToEntero
- Me.CveCuentaAnticipos = Data.Rows(0)("IdCtaContAnticiposSIG").ToString.ToEntero
Me.CtaContAnticipos = Data.Rows(0)("CtaContAnticipos").ToString
Me.IdCtaContAnticiposExtranjera = Data.Rows(0)("IdCtaContAnticiposExtranjera").ToString.ToEntero
- Me.CveCuentaAnticiposExtranjera = Data.Rows(0)("IdCtaContAnticiposExtranjeraSIG").ToString.ToEntero
Me.CtaContAnticiposExtranjera = Data.Rows(0)("CtaContAnticiposExtranjera").ToString
Me.IdCtaContAnticiposComplementaria = Data.Rows(0)("IdCtaContAnticiposComplementaria").ToString.ToEntero
- Me.CveCuentaAnticiposComplementaria = Data.Rows(0)("IdCtaContAnticiposComplementariaSIG").ToString.ToEntero
Me.CtaContAnticiposComplementaria = Data.Rows(0)("CtaContAnticiposComplementaria").ToString
'Deudor
Me.IdCtaContDeudor = Data.Rows(0)("IdCtaContDeudor").ToString.ToEntero
- Me.CveCuentaDeudor = Data.Rows(0)("IdCtaContDeudorSIG").ToString.ToEntero
Me.CtaContDeudor = Data.Rows(0)("CtaContDeudor").ToString
Me.IdCtaContDeudorExtranjera = Data.Rows(0)("IdCtaContDeudorExtranjera").ToString.ToEntero
- Me.CveCuentaDeudorExtranjera = Data.Rows(0)("IdCtaContDeudorExtranjeraSIG").ToString.ToEntero
Me.CtaContDeudorExtranjera = Data.Rows(0)("CtaContDeudorExtranjera").ToString
Me.IdCtaContDeudorComplementaria = Data.Rows(0)("IdCtaContDeudorComplementaria").ToString.ToEntero
- Me.CveCuentaDeudorComplementaria = Data.Rows(0)("IdCtaContDeudorComplementariaSIG").ToString.ToEntero
Me.CtaContDeudorComplementaria = Data.Rows(0)("CtaContDeudorComplementaria").ToString
'DocsXPagar
Me.IdCtaContDocsXPagar = Data.Rows(0)("IdCtaContDocsXPagar").ToString.ToEntero
- Me.CveCuentaDocsXPagar = Data.Rows(0)("IdCtaContDocsXPagarSIG").ToString.ToEntero
Me.CtaContDocsXPagar = Data.Rows(0)("CtaContDocsXPagar").ToString
Me.IdCtaContDocsXPagarExtranjera = Data.Rows(0)("IdCtaContDocsXPagarExtranjera").ToString.ToEntero
- Me.CveCuentaDocsXPagarExtranjera = Data.Rows(0)("IdCtaContDocsXPagarExtranjeraSIG").ToString.ToEntero
Me.CtaContDocsXPagarExtranjera = Data.Rows(0)("CtaContDocsXPagarExtranjera").ToString
Me.IdCtaContDocsXPagarComplementaria = Data.Rows(0)("IdCtaContDocsXPagarComplementaria").ToString.ToEntero
- Me.CveCuentaDocsXPagarComplementaria = Data.Rows(0)("IdCtaContDocsXPagarComplementariaSIG").ToString.ToEntero
Me.CtaContDocsXPagarComplementaria = Data.Rows(0)("CtaContDocsXPagarComplementaria").ToString
'Otros
@@ -405,11 +370,7 @@ Public Class ClsCompProveedores
Me.IdCtaContRetIVAAcreditable = Data.Rows(0)("IdCtaContRetIVAAcreditable").ToString.ToEntero
Me.IdCtaContRetISR = Data.Rows(0)("IdCtaContRetISR").ToString.ToEntero
Me.IdCtaContRetISRAcreditable = Data.Rows(0)("IdCtaContRetISRAcreditable").ToString.ToEntero
- Me.CveCuentaFondoGarantia = Data.Rows(0)("IdCtaContFondoGarantiaSIG").ToString.ToEntero
- Me.CveCuentaRetIVA = Data.Rows(0)("IdCtaContRetIVASIG").ToString.ToEntero
- Me.CveCuentaRetISR = Data.Rows(0)("IdCtaContRetISRSIG").ToString.ToEntero
- Me.CveCuentaRetISRAcreditable = Data.Rows(0)("IdCtaContRetISRAcreditableSIG").ToString.ToEntero
- Me.CveCuentaRetIVAAcreditable = Data.Rows(0)("IdCtaContRetIVAAcreditableSIG").ToString.ToEntero
+
Me.CtaContFondoGarantia = Data.Rows(0)("CtaContFondoGarantia").ToString
Me.CtaContRetIVA = Data.Rows(0)("CtaContRetIVA").ToString
Me.CtaContRetISR = Data.Rows(0)("CtaContRetISR").ToString
diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index 996adb595..ffb068e14 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -2115,7 +2115,7 @@ Public Class ClsVentas
Return Retorno
End Function
Public Function UpdatePromociones(Promocion As String, FechaInicio As Date, FechaFin As Date, CveVendedor As Integer, CveCliente As Integer, Estatus As Boolean,
- CveMoneda As Integer, CveUsuario As Integer, CvePromocion As Integer, CveSubProyecto As Integer, Optional CveMarca As Integer = -1) As Boolean
+ CveMoneda As Integer, CveUsuario As Integer, CvePromocion As Integer, CveSubProyecto As Integer, TipoAplicacion As Integer, CveEmpresa As Integer, Optional CveMarca As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_PromocionesUpdate")
@@ -2131,7 +2131,9 @@ Public Class ClsVentas
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
.Add("@CvePromocion", SqlDbType.Float).Value = CvePromocion
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
+ .Add("@TipoAplicacion", SqlDbType.Int).Value = TipoAplicacion
.Add("@CveMarca", SqlDbType.Int).Value = CveMarca
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
End With
Try
diff --git a/Bancos/IE.aspx.vb b/Bancos/IE.aspx.vb
index 59af58c78..26461a676 100644
--- a/Bancos/IE.aspx.vb
+++ b/Bancos/IE.aspx.vb
@@ -249,22 +249,6 @@ Partial Class Bancos_IE
ViewState("IDCtaBeneficiarioComplementaria") = value
End Set
End Property
- Private Property CveCuentaConta As Integer
- Get
- Return ViewState("CveCuentaConta").ToString.ToEntero
- End Get
- Set(value As Integer)
- ViewState("CveCuentaConta") = value
- End Set
- End Property
- Private Property CveCuentaBeneficiario As Integer
- Get
- Return ViewState("CveCuentaBeneficiario").ToString.ToEntero
- End Get
- Set(value As Integer)
- ViewState("CveCuentaBeneficiario") = value
- End Set
- End Property
Private Property CvePrePoliza As Integer
Get
Return ViewState("CvePrePoliza").ToString.ToEntero
@@ -611,8 +595,6 @@ Partial Class Bancos_IE
IDCtaContable = 0
IdCtaAnticipoComplementaria = 0
IdCtaAnticipoExtranjera = 0
- CveCuentaBeneficiario = 0
- CveCuentaConta = 0
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
TxtImporte.Attributes.Add("onblur", "upIE(this);FncImporteCuenta(this);")
'Calendario.StartDate = Now.AddMonths(-2).FirstDayOfMonth()
@@ -970,7 +952,6 @@ Partial Class Bancos_IE
IDPoliza = ObjIE.IDPoliza
IDCtaContable = ObjIE.IdCtaContable
- CveCuentaConta = ObjIE.CveCuentaConta
If ObjIE.IDPoliza > 0 Then
@@ -1329,24 +1310,22 @@ Partial Class Bancos_IE
Select Case RBL.SelectedValue
Case "P"
- IDCtaBeneficiario = ObjProveedor.IdCtaContAnticipos : CveCuentaBeneficiario = ObjProveedor.CveCuentaAnticipos
+ IDCtaBeneficiario = ObjProveedor.IdCtaContAnticipos
IdCtaAnticipoExtranjera = ObjProveedor.IdCtaContAnticiposExtranjera : IdCtaAnticipoComplementaria = ObjProveedor.IdCtaContAnticiposComplementaria
If EsDevolucion Then
- IDCtaBeneficiario = ObjProveedor.IdCtaContProveedores : CveCuentaBeneficiario = ObjProveedor.CveCuentaProveedores
+ IDCtaBeneficiario = ObjProveedor.IdCtaContProveedores
End If
- Case "DD" : IDCtaBeneficiario = ObjProveedor.IdCtaContDeudor : CveCuentaBeneficiario = ObjProveedor.CveCuentaDeudor
- Case "AC" : IDCtaBeneficiario = ObjProveedor.IdCtaContAcreedor : CveCuentaBeneficiario = ObjProveedor.CveCuentaAcreedor
- Case "DP" : IDCtaBeneficiario = ObjProveedor.IdCtaContDocsXPagar : CveCuentaBeneficiario = ObjProveedor.CveCuentaDocsXPagar
+ Case "DD" : IDCtaBeneficiario = ObjProveedor.IdCtaContDeudor
+ Case "AC" : IDCtaBeneficiario = ObjProveedor.IdCtaContAcreedor
+ Case "DP" : IDCtaBeneficiario = ObjProveedor.IdCtaContDocsXPagar
Case Else
IDCtaBeneficiario = ObjProveedor.IdCtaContProveedores
- CveCuentaBeneficiario = ObjProveedor.CveCuentaProveedores
End Select
If Request("Opcion") IsNot Nothing AndAlso Request("Opcion").ToString.Contiene("EGSCREDITO") Then
IDCtaBeneficiario = ObjProveedor.IdCtaContAcreedor
- CveCuentaBeneficiario = ObjProveedor.CveCuentaAcreedor
If Not IDCtaBeneficiario > 0 Then
Alert("No se pudo cargar IDCtaBeneficiario", TipoMensaje.MsgAdvertencia)
@@ -1359,9 +1338,6 @@ Partial Class Bancos_IE
If IDCtaBeneficiario = 0 AndAlso UsuarioActual.Empresa.Funcionalidad(200) = "1" Then
Alert("El Beneficiario no tiene cuenta contable vinculada. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
BtnGuardar.Enabled = False
- ElseIf CveCuentaBeneficiario = 0 AndAlso UsuarioActual.Empresa.UsaContabilidadSIG Then
- Alert("El Beneficiario no tiene cuenta contable vinculada en SIG. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
- BtnGuardar.Enabled = False
Else
BtnGuardar.Enabled = True
End If
@@ -1470,7 +1446,6 @@ Partial Class Bancos_IE
HdnProvPorRetISR.Value = "0" 'ObjProveedor.RetISR.ToString
IDCtaBeneficiario = ObjCliente.IdCtaContAnticipos
IDCtaBeneficiarioComplementaria = ObjCliente.IdCtaContCompAnticipos
- CveCuentaBeneficiario = ObjCliente.CveCuentaAnticipos
CorreoCobranzaCliente = ObjCliente.CobranzaCorreo
If Request("Opcion") IsNot Nothing AndAlso Request("Opcion") = "DevDinV" Then
@@ -1484,10 +1459,7 @@ Partial Class Bancos_IE
If UsuarioActual.Empresa.UsaAC OrElse UsuarioActual.Empresa.Funcionalidad(200) = "1" Then
If IDCtaBeneficiario = 0 AndAlso UsuarioActual.Empresa.Funcionalidad(200).ToString = "1" Then
Alert("El Beneficiario no tiene cuenta contable vinculada. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
- BtnGuardar.Enabled = False
- ElseIf CveCuentaBeneficiario = 0 AndAlso UsuarioActual.Empresa.UsaContabilidadSIG Then
- Alert("El Beneficiario no tiene cuenta contable vinculada en SIG. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
- BtnGuardar.Enabled = False
+ BtnGuardar.Enabled = False
Else
BtnGuardar.Enabled = True
End If
@@ -1539,15 +1511,11 @@ Partial Class Bancos_IE
HdnProvPorRetIVA.Value = "0" 'ObjProveedor.RetIVA.ToString
HdnProvPorRetISR.Value = "0" 'ObjProveedor.RetISR.ToString
IDCtaBeneficiario = ObjPersonal.IdCtaContPersonal
- CveCuentaBeneficiario = ObjPersonal.CveCuentaPersonal
If UsuarioActual.Empresa.UsaAC OrElse UsuarioActual.Empresa.Funcionalidad(200) = "1" Then
If IDCtaBeneficiario = 0 AndAlso UsuarioActual.Empresa.Funcionalidad(200).ToString = "1" Then
Alert("El Beneficiario no tiene cuenta contable vinculada. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
BtnGuardar.Enabled = False
- ElseIf CveCuentaBeneficiario = 0 AndAlso UsuarioActual.Empresa.UsaContabilidadSIG Then
- Alert("El Beneficiario no tiene cuenta contable vinculada en SIG. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
- BtnGuardar.Enabled = False
Else
BtnGuardar.Enabled = True
End If
@@ -1624,8 +1592,7 @@ Partial Class Bancos_IE
DdlMoneda.SelectedValue = dr("CveMoneda").ToString
IDCtaContable = dr("IdCtaContable").ToString.ToEntero
- IDCtaContableComplementaria = dr("IDCtaContableComplementaria").ToString.ToEntero
- CveCuentaConta = dr("IdCtaContableSIG").ToString.ToEntero
+ IDCtaContableComplementaria = dr("IDCtaContableComplementaria").ToString.ToEntero
CambiaTipoMoneda()
If Opcion IsNot Nothing AndAlso Opcion.Contiene("EGSSINFACT") Then
@@ -1663,9 +1630,6 @@ Partial Class Bancos_IE
Alert("La Cuenta Bancaria no tiene asignada una cuenta contable", TipoMensaje.MsgAdvertencia)
End If
- If Not CveCuentaConta > 0 AndAlso UsuarioActual.Empresa.UsaContabilidadSIG Then
- Alert("La Cuenta Bancaria no tiene asignada una cuenta contable en SIG", TipoMensaje.MsgAdvertencia)
- End If
End If
If trIEDevolucion.Visible And RBL.SelectedValue <> "C" Then
@@ -2708,8 +2672,8 @@ Partial Class Bancos_IE
MsgError = "No se pudo insertar la póliza de saldo inicial."
End If
End If
- Dim UsaComplementariaBancos As Boolean = False
- If UsuarioActual.CveEmpresa = 119 Then UsaComplementariaBancos = True
+ Dim UsaComplementariaBancos As Boolean = False
+ UsaComplementariaBancos = True
If MsgError = "" Then
@@ -2773,11 +2737,11 @@ Partial Class Bancos_IE
Dim DtIE As DataTable = Mov.DtResultados
For Each dr As DataRow In DtIE.Rows
- If MsgError = "" AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, If(dr("TipoMovto").ToString.ToEntero = 1, False, True), If(dr("CveConceptoContable").ToString.ToEntero.Contiene(66), -TxtImporte.Text.ToDecimal, dr("Importe").ToString.ToDecimal), "", dr("CveConceptoContable").ToString.ToEntero, "", Now, IDCtaBeneficiario, -1, CveIE, CveCliente:=dr("CveCliente").ToString.ToEntero, CveVenta:=dr("CveVenta").ToString.ToEntero, ImporteMX:=If(dr("CveConceptoContable").ToString.ToEntero.Contiene(66), -TxtImporte.Text.ToDecimal, -dr("Importe").ToString.ToDecimal), ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario) Then
+ If MsgError = "" AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, If(dr("TipoMovto").ToString.ToEntero = 1, False, True), If(dr("CveConceptoContable").ToString.ToEntero.Contiene(66), -TxtImporte.Text.ToDecimal, dr("Importe").ToString.ToDecimal), "", dr("CveConceptoContable").ToString.ToEntero, "", Now, IDCtaBeneficiario, -1, CveIE, CveCliente:=dr("CveCliente").ToString.ToEntero, CveVenta:=dr("CveVenta").ToString.ToEntero, ImporteMX:=If(dr("CveConceptoContable").ToString.ToEntero.Contiene(66), -TxtImporte.Text.ToDecimal, -dr("Importe").ToString.ToDecimal), ImporteME:=tImporteMonedaExtranjera) Then
MsgError = "no se pudo insertar el detalle de la póliza 2"
End If
Next
- ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, TxtImporte.Text.ToDecimal, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta)
+ ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, TxtImporte.Text.ToDecimal, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera)
End If
Mov.Dispose()
@@ -2787,20 +2751,20 @@ Partial Class Bancos_IE
Dim Mov As New ClsMovimientos
'INGxC
- ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -(TxtImporte.Text.ToDecimal - TxtIvaIxC.Text.ToDecimal), Ref, 66, Conc, Now, IDCtaContable, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-(TxtImporte.Text.ToDecimal - TxtIvaIxC.Text.ToDecimal), ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta)
+ ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -(TxtImporte.Text.ToDecimal - TxtIvaIxC.Text.ToDecimal), Ref, 66, Conc, Now, IDCtaContable, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-(TxtImporte.Text.ToDecimal - TxtIvaIxC.Text.ToDecimal), ImporteME:=tImporteMonedaExtranjera)
If TxtIvaIxC.Text.ToDouble > 0 Then
'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, CveCuenta:=UsuarioActual.Empresa.CveCuentaIVAxTrasladar)
+ 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)
End If
'Bancos
- ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -TxtImporte.Text.ToDecimal, Ref, 30, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario)
+ ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -TxtImporte.Text.ToDecimal, Ref, 30, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera)
Mov.Dispose()
Else
- If ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta) Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, TxtImporte.Text.ToDecimal, Ref, CveConceptoCompra, Conc, Now, IDCtaBeneficiario, -1, CveIE:=If(CveIEOtro < 0, CveIE, CveIEOtro), CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=tImporteMonedaExtranjera, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario) Then
+ If ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, TxtImporte.Text.ToDecimal, Ref, CveConceptoCompra, Conc, Now, IDCtaBeneficiario, -1, CveIE:=If(CveIEOtro < 0, CveIE, CveIEOtro), CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=tImporteMonedaExtranjera, ImporteME:=tImporteMonedaExtranjera) Then
MsgError = "no se pudo insertar el detalle de la póliza 2"
End If
Else
@@ -2885,7 +2849,7 @@ Partial Class Bancos_IE
MsgError = "Ocurrió un error al registrar el asiento del ingreso."
End If
End If
- If tCveMoneda > 1 AndAlso UsuarioActual.CveEmpresa = 119 Then
+ If tCveMoneda > 1 Then
'Agregamos complementaria
Dim TC As Decimal = TxtTipoCambio.Text.ToDecimal
@@ -2918,7 +2882,7 @@ Partial Class Bancos_IE
End Select
If importeMovimiento <> 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Concepto, ConceptoContable, Concepto, FechaMovimiento, If(ConceptoContable = 30, IDCtaContable, IDCtaBeneficiario), -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=importeMovimiento, ImporteME:=tImporteMonedaExtranjera, TipoCambio:=TxtTipoCambio.Text.ToDecimal, CveCuenta:=If(ConceptoContable = 30, CveCuentaConta, CveCuentaBeneficiario)) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Concepto, ConceptoContable, Concepto, FechaMovimiento, If(ConceptoContable = 30, IDCtaContable, IDCtaBeneficiario), -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=importeMovimiento, ImporteME:=tImporteMonedaExtranjera, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
MsgError = "Ocurrió un error al registrar el asiento del ingreso."
End If
End If
@@ -2940,7 +2904,7 @@ Partial Class Bancos_IE
ImporteAplicarME = ImporteAplicar
'CONSIDERA COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ImporteAplicar
Else
ImporteAplicarMN = (ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
@@ -2948,15 +2912,15 @@ Partial Class Bancos_IE
'BANCOS
IdCtaContableAplicar = If(IDCtaContable > 0, IDCtaContable, 0)
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, ImporteAplicar, ReferenciaAplicar, 30, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveVenta:=CveVentaDevDin, CveCliente:=CveCliente, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, CveCuenta:=CveCuentaConta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, ImporteAplicar, ReferenciaAplicar, 30, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveVenta:=CveVentaDevDin, CveCliente:=CveCliente, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME) Then
MsgError = "Ocurrió un error al registrar el asiento de bancos de devolución"
Exit Select
End If
'BANCOS COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)) - ImporteAplicar).RoundSQL()
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveVenta:=CveVentaDevDin, CveCliente:=CveCliente, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, CveCuenta:=CveCuentaConta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveVenta:=CveVentaDevDin, CveCliente:=CveCliente, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME) Then
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
End If
End If
@@ -3048,7 +3012,7 @@ Partial Class Bancos_IE
'CONSIDERA COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ImporteAplicar
Else
ImporteAplicarMN = (ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
@@ -3060,7 +3024,7 @@ Partial Class Bancos_IE
'BANCOS
IdCtaContableAplicar = If(IDCtaContable > 0, IDCtaContable, 0)
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 30, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, CveCuenta:=CveCuentaConta, TipoCambio:=TCDocumento) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 30, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, TipoCambio:=TCDocumento) Then
MsgError = "Ocurrió un error al registrar el asiento de bancos de devolución"
Exit Select
End If
@@ -3074,7 +3038,7 @@ Partial Class Bancos_IE
Dim FechaCompraNota As Date = GvRow.DataKey("Fecha").ToDate
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
TCCompra = GlobalTipoCambio(FechaCompraNota).ToDecimal
TCDocumento = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).ToDecimal
@@ -3096,14 +3060,14 @@ Partial Class Bancos_IE
'CONSIDERA COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ImporteAplicar
Else
ImporteAplicarMN = (ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
End If
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
TCCompra = GlobalTipoCambio(GvRow.DataKey("Fecha").ToDate).ToDecimal
TCDocumento = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).ToDecimal
@@ -3125,9 +3089,9 @@ Partial Class Bancos_IE
''
'BANCOS COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCDocumento)) - ImporteAplicar).RoundSQL()
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, CveCuenta:=CveCuentaConta, TipoCambio:=TCDocumento) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, TipoCambio:=TCDocumento) Then
MsgError = "Ocurrió un error al registrara el asiento de bancos complementaria de devolución"
End If
End If
@@ -3150,7 +3114,7 @@ Partial Class Bancos_IE
' End If
- ' If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoIE, Impo, ReferenciaAplicar, CveConcIE, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=Impo, ImporteME:=0, CveCuenta:=CveCuentaConta, TipoCambio:=TCDocumento) Then
+ ' If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoIE, Impo, ReferenciaAplicar, CveConcIE, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=Impo, ImporteME:=0, TipoCambio:=TCDocumento) Then
' MsgError = "Ocurrió un error al registrar el asiento de pago de devolución"
' Exit Select
' End If
@@ -3171,11 +3135,11 @@ Partial Class Bancos_IE
'NC COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCCompra)) - ImporteAplicar).RoundSQL()
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -(ImporteAplicar), ReferenciaAplicar, 201, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-(ImporteAplicarMN), ImporteME:=-(ImporteAplicarME), CveCuenta:=CveCuentaConta, TipoCambio:=TCCompra) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -(ImporteAplicar), ReferenciaAplicar, 201, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-(ImporteAplicarMN), ImporteME:=-(ImporteAplicarME), TipoCambio:=TCCompra) Then
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
End If
@@ -3189,14 +3153,14 @@ Partial Class Bancos_IE
If DiferenciaTC < 0 Then
'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, CveCuenta:=CveCuentaConta, TipoCambio:=TCCompra) Then
+ 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
MsgError = "Ocurrió un error al registrar el asiento de ganancia cambiaria"
Exit Select
End If
Else
'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, CveCuenta:=CveCuentaConta, TipoCambio:=TCCompra) Then
+ 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
MsgError = "Ocurrió un error al registrar el asiento de perdidada cfambiaria"
Exit Select
End If
@@ -3247,7 +3211,7 @@ Partial Class Bancos_IE
Dim IdCtaIVADevolucionIMPUESTOS As Integer = -1
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
IVADevMN = IVADev
IEPSDevMN = IEPSDev
Else
@@ -3335,7 +3299,7 @@ Partial Class Bancos_IE
Else
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
TCCompra = GlobalTipoCambio(FechaCompra).ToDecimal
TCDocumento = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).ToDecimal
@@ -3352,9 +3316,9 @@ Partial Class Bancos_IE
'BANCOS COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCDocumento)) - ImporteAplicar).RoundSQL()
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, CveCuenta:=CveCuentaConta, TipoCambio:=TCDocumento) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, TipoCambio:=TCDocumento) Then
MsgError = "Ocurrió un error al registrara el asiento de bancos complementaria de devolución"
End If
End If
@@ -3377,7 +3341,7 @@ Partial Class Bancos_IE
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoIE, Impo, ReferenciaAplicar, CveConcIE, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=Impo, ImporteME:=0, CveCuenta:=CveCuentaConta, TipoCambio:=TCDocumento) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoIE, Impo, ReferenciaAplicar, CveConcIE, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=Impo, ImporteME:=0, TipoCambio:=TCDocumento) Then
MsgError = "Ocurrió un error al registrar el asiento de pago de devolución"
Exit Select
End If
@@ -3398,11 +3362,11 @@ Partial Class Bancos_IE
'NC COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCCompra)) - ImporteAplicar).RoundSQL()
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -(ImporteAplicar), ReferenciaAplicar, 201, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-(ImporteAplicarMN), ImporteME:=-(ImporteAplicarME), CveCuenta:=CveCuentaConta, TipoCambio:=TCCompra) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -(ImporteAplicar), ReferenciaAplicar, 201, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-(ImporteAplicarMN), ImporteME:=-(ImporteAplicarME), TipoCambio:=TCCompra) Then
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
End If
@@ -3416,14 +3380,14 @@ Partial Class Bancos_IE
If DiferenciaTC < 0 Then
'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, CveCuenta:=CveCuentaConta, TipoCambio:=TCCompra) Then
+ 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
MsgError = "Ocurrió un error al registrar el asiento de ganancia cambiaria"
Exit Select
End If
Else
'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, CveCuenta:=CveCuentaConta, TipoCambio:=TCCompra) Then
+ 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
MsgError = "Ocurrió un error al registrar el asiento de perdidada cfambiaria"
Exit Select
End If
@@ -3481,7 +3445,7 @@ Partial Class Bancos_IE
Dim IdCtaIVADevolucionIMPUESTOS As Integer = -1
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
IVADevMN = IVADev
IEPSDevMN = IEPSDev
Else
@@ -3593,7 +3557,7 @@ Partial Class Bancos_IE
Case 30
importeMovimiento = TxtImporte.Text.ToDecimal
importeMX = importeMovimiento
- If tCveMoneda > 1 AndAlso UsuarioActual.CveEmpresa = 119 Then
+ If tCveMoneda > 1 Then
'Agregamos complementaria
Dim TC As Decimal = TxtTipoCambio.Text.ToDecimal
@@ -3627,7 +3591,7 @@ Partial Class Bancos_IE
End Select
If importeMovimiento <> 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Concepto, ConceptoContable, Concepto, FechaMovimiento, If(ConceptoContable = 30, IDCtaContable, IDCtaBeneficiario), -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=importeMovimiento, ImporteME:=tImporteMonedaExtranjera, TipoCambio:=TxtTipoCambio.Text.ToDecimal, CveCuenta:=If(ConceptoContable = 30, CveCuentaConta, CveCuentaBeneficiario)) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Concepto, ConceptoContable, Concepto, FechaMovimiento, If(ConceptoContable = 30, IDCtaContable, IDCtaBeneficiario), -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=importeMovimiento, ImporteME:=tImporteMonedaExtranjera, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
MsgError = "Ocurrió un error al registrar el asiento del ingreso."
End If
End If
@@ -3643,19 +3607,18 @@ Partial Class Bancos_IE
End If
If CveConceptoCompra = 10 AndAlso DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsaComplementariaBancos Then
- IDCtaBeneficiario = IdCtaAnticipoExtranjera
- CveCuentaConta = 0
+ IDCtaBeneficiario = IdCtaAnticipoExtranjera
End If
'MOVIMIENTOS EGRESOS
- If ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, TxtImporte.Text.ToDecimal, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
+ If ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, TxtImporte.Text.ToDecimal, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
Dim IVA As Decimal = 0 ' TxtImporte.Text.ToDouble * HdnProvPorIVA.Value.ToDouble
- If ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, TxtImporte.Text.ToDecimal - IVA - CIF, Ref, CveConceptoCompra, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=If(UsaComplementariaBancos, TxtImporte.Text.ToDecimal, tImporteMonedaExtranjera), ImporteME:=TxtImporte.Text.ToDecimal, CveCuenta:=CveCuentaBeneficiario, CveIEDevolucion:=DdlIEAcreedor.SelectedValue.ToEntero) Then
- If IVA > 0 AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, IVA, Ref, 19, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
+ If ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, TxtImporte.Text.ToDecimal - IVA - CIF, Ref, CveConceptoCompra, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=If(UsaComplementariaBancos, TxtImporte.Text.ToDecimal, tImporteMonedaExtranjera), ImporteME:=TxtImporte.Text.ToDecimal, CveIEDevolucion:=DdlIEAcreedor.SelectedValue.ToEntero) Then
+ If IVA > 0 AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, IVA, Ref, 19, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
MsgError = "Detalle"
End If
'intereses pagados
- If CIF > 0 AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, CIF, Ref, 46, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=CIF, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
+ If CIF > 0 AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, CIF, Ref, 46, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=CIF, ImporteME:=tImporteMonedaExtranjera, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
MsgError = "Detalle"
End If
Else
@@ -3666,15 +3629,15 @@ Partial Class Bancos_IE
End If
'BANCOS COMPLEMENTARIA
- If DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119) Then
+ If DdlMoneda.SelectedValue.ToEntero > 1 Then
Dim ImporteAplicar As Decimal = TxtImporte.Text.ToDecimal
Dim ImporteAplicarMN = (ImporteAplicar * TxtTipoCambio.Text.ToDecimal - ImporteAplicar).RoundSQL()
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteAplicar, Ref, 204, Conc, Now, IDCtaContableComplementaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicar, CveCuenta:=CveCuentaConta, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteAplicar, Ref, 204, Conc, Now, IDCtaContableComplementaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicar, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
End If
If CveConceptoCompra = 10 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, ImporteAplicar, Ref, 266, Conc, Now, IdCtaAnticipoComplementaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicar, CveCuenta:=0, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, ImporteAplicar, Ref, 266, Conc, Now, IdCtaAnticipoComplementaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicar, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
End If
End If
@@ -5463,11 +5426,13 @@ Partial Class Bancos_IE
If Borrar = True Then
Dim ErrorCompra = False
+ Dim MsgEliminar As String = ""
'VERIFICA SI EL IES ESTA VINCULADO A UNA SOLICITUD VIATICO
If Banc.GetSolicitudesViaticos(-1, UsuarioActual.CveEmpresa, CveIE:=CveIE) AndAlso Banc.DtResultados.Rows.Count > 0 Then
If Not Banc.UpdateSolicitudesViaticosIE(Banc.DtResultados.FiltroPrimeroValor("CveSolicitudViatico").ToEntero(), -1) Then
ErrorCompra = True
+ MsgEliminar = "Documento con solicitud de viáticos solicitado"
End If
End If
@@ -5476,12 +5441,14 @@ Partial Class Bancos_IE
ObjAC.IniciaTransacSQL()
If Not ObjAC.RemovePoliza(IDPoliza) Then
ErrorCompra = True
+ MsgEliminar = "- No se pudo eliminar la póliza"
End If
End If
If Not ErrorCompra Then
If Not ObjConta.UpdatePrePolizasDetalleBloquear(CvePrePoliza, False) Then
ErrorCompra = True
+ MsgEliminar += "- No se pudo desbloquear la prepóliza"
End If
End If
@@ -5489,6 +5456,7 @@ Partial Class Bancos_IE
If Not ErrorCompra Then
If Not Banc.EliminarBancos_IE(UsuarioActual.CveUsuario, CveIE) Then
ErrorCompra = True
+ MsgEliminar = "- No se pudo eliminar el movimiento bancario"
End If
End If
diff --git a/Bancos/PopIECompras.aspx.vb b/Bancos/PopIECompras.aspx.vb
index a25f96907..ae9c29298 100644
--- a/Bancos/PopIECompras.aspx.vb
+++ b/Bancos/PopIECompras.aspx.vb
@@ -96,24 +96,8 @@ Partial Class Bancos_PopIECompras
Get
Return ViewState("CtaProveedorAcreedores").ToString.ToEntero
End Get
- End Property
- Private ReadOnly Property CveCuentaProveedorAcreedores As Integer
- Get
- Return ViewState("CveCuentaProveedorAcreedores").ToString.ToEntero
- End Get
- End Property
-
- Private ReadOnly Property CveCuentaProveedor As Integer
- Get
- Return ViewState("CveCuentaProveedor").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaProveedorDeudores As Integer
- Get
- Return ViewState("CveCuentaProveedorDeudores").ToString.ToEntero
- End Get
- End Property
-
+ End Property
+
Private Property IdCuentaBancaria As Integer
Get
Return ViewState("IdCuentaBancaria").ToString.ToEntero
@@ -184,33 +168,8 @@ Partial Class Bancos_PopIECompras
Set(value As Integer)
ViewState("CveCuentaBancaria") = value
End Set
- End Property
-
- Private ReadOnly Property CveCuentaMonedaExtranjera As Integer
- Get
- Return ViewState("CveCuentaMonedaExtranjera").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaComplementaria As Integer
- Get
- Return ViewState("CveCuentaComplementaria").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaRetIVA As Integer
- Get
- Return ViewState("CveCuentaRetIVA").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaRetISR As Integer
- Get
- Return ViewState("CveCuentaRetISR").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaAnticipo As Integer
- Get
- Return ViewState("CveCuentaAnticipo").ToString.ToEntero
- End Get
- End Property
+ End Property
+
Private Property CveMoneda As Integer
Get
Return ViewState("CveMoneda").ToString.ToEntero
@@ -393,28 +352,7 @@ Partial Class Bancos_PopIECompras
Set(value As Integer)
ViewState("CveCuentaCliente") = value
End Set
- End Property
- Private ReadOnly Property CveCuentaRetIVACliente As Integer
- Get
- Return ViewState("CveCuentaRetIVACliente").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaRetISRCliente As Integer
- Get
- Return ViewState("CveCuentaRetISRCliente").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaComplementariaCliente As Integer
- Get
- Return ViewState("CveCuentaComplementariaCliente").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaMonedaExtranjeraCliente As Integer
- Get
- Return ViewState("CveCuentaMonedaExtranjeraCliente").ToString.ToEntero
- End Get
End Property
-
Private Property OriReferenciaCIE As String
Get
If ViewState("OriReferenciaCIE") Is Nothing Then
@@ -505,15 +443,8 @@ Partial Class Bancos_PopIECompras
ViewState("IdCtaContRetISR") = 0
ViewState("IdCuentaBancaria") = 0
ViewState("IdCuentaBancariaComplementaria") = 0
- ViewState("IdCtaAnticipo") = 0
-
- ViewState("CveCuentaMonedaExtranjera") = 0
- ViewState("CveCuentaComplementaria") = 0
- ViewState("CveCuentaRetIVA") = 0
- ViewState("CveCuentaRetISR") = 0
- ViewState("CveCuentaBancaria") = 0
- ViewState("CveCuentaAnticipo") = 0
-
+ ViewState("IdCtaAnticipo") = 0
+
ViewState("CtaProveedorDeudores") = 0
ViewState("CtaProveedorAcreedores") = 0
ViewState("CveCuentaProveedorDeudores") = 0
@@ -762,9 +693,9 @@ Partial Class Bancos_PopIECompras
If ObjProveedor.GetProveedores(ClsCompProveedores.TipoConsulta.ParaUsoEnEmpresa, CveProveedor, "-1", "-1", "-1", "-1", RFC, "-1", "-1", -1, UsuarioActual.CveEmpresa) Then
If ObjProveedor.DtResultados.Rows.Count > 0 Then
TxtPagueseA.Text = ObjProveedor.RazonSocial
- RFCProveedor = ObjProveedor.RFC
-
- 'Conta SIG
+ RFCProveedor = ObjProveedor.RFC
+
+ 'Conta ContPAQ
ViewState("CtaProveedor") = ObjProveedor.IdCtaContProveedores
ViewState("CtaProveedorDeudores") = ObjProveedor.IdCtaContDeudor
ViewState("CtaProveedorAcreedores") = ObjProveedor.IdCtaContAcreedor
@@ -773,19 +704,7 @@ Partial Class Bancos_PopIECompras
ViewState("IdCtaContRetIVA") = ObjProveedor.IdCtaContRetIVA
ViewState("IdCtaContRetIVAAcreditable") = ObjProveedor.IdCtaContRetIVAAcreditable
ViewState("IdCtaProveedorExtranjera") = ObjProveedor.IdCtaContProveedoresExtranjera
- ViewState("IdCtaContComplementaria") = ObjProveedor.IdCtaContProveedoresComplementaria
-
- 'Conta ContPAQ
- ViewState("CveCuentaProveedor") = ObjProveedor.CveCuentaProveedores
- ViewState("CveCuentaProveedorDeudores") = ObjProveedor.CveCuentaDeudor
- ViewState("CveCuentaProveedorAcreedores") = ObjProveedor.CveCuentaAcreedor
- ViewState("CveCuentaRetISR") = ObjProveedor.CveCuentaRetISR
- ViewState("CveCuentaRetIVA") = ObjProveedor.CveCuentaRetIVA
- ViewState("CveCuentaProveedorExtranjera") = ObjProveedor.CveCuentaProveedoresExtranjera
- ViewState("CveCuentaComplementaria") = ObjProveedor.CveCuentaProveedoresComplementaria
- ViewState("NotificarA") = ObjProveedor.NotificarA.Trim()
-
-
+ ViewState("IdCtaContComplementaria") = ObjProveedor.IdCtaContProveedoresComplementaria
Else
Alert("El Proveedor solicitado no existe, por favor intente de nuevo.", TipoMensaje.MsgAdvertencia)
@@ -933,13 +852,8 @@ Partial Class Bancos_PopIECompras
ViewState("IdCtaContRetIVACliente") = ObjCliente.IdCtaContRetIVA
ViewState("IdCtaContRetISRCliente") = ObjCliente.IdCtaContRetISR
ViewState("IdCtaContComplementariaCliente") = ObjCliente.IdCtaContComplementaria
- ViewState("IdCtaContMonedaExtranjeraCliente") = ObjCliente.IdCtaContMonedaExtranjera
-
- ViewState("CveCuentaCliente") = ObjCliente.CveCuentaClientes
- ViewState("CveCuentaRetIVACliente") = ObjCliente.CveCuentaRetIVA
- ViewState("CveCuentaRetISRCliente") = ObjCliente.CveCuentaRetISR
- ViewState("CveCuentaComplementariaCliente") = ObjCliente.CveCuentaComplementaria
- ViewState("CveCuentaMonedaExtranjeraCliente") = ObjCliente.CveCuentaMonedaExtranjera
+ ViewState("IdCtaContMonedaExtranjeraCliente") = ObjCliente.IdCtaContMonedaExtranjera
+
End If
End If
@@ -1674,28 +1588,24 @@ Partial Class Bancos_PopIECompras
ImporteMX = ImporteMovimiento
End If
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
Else
IdCtaContable = CtaProveedor
- CveCuenta = CveCuentaProveedor
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioCompra) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
If CveMonedaCompra <> 1 AndAlso (IdCtaContComplementaria > 0 Or UsuarioActual.CveEmpresa = 119) Then
IdCtaContable = IdCtaContComplementaria
- CveCuenta = CveCuentaComplementaria
If ImporteMovimiento <> 0 Then
Dim ImporteMN As Decimal = (ImporteMovimiento * tipoCambioCompra - ImporteMovimiento).RoundSQL
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMN, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra, CveCuenta:=CveCuenta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMN, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
ImporteMX = ImporteMovimiento
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
End If
End If
Next
@@ -1726,27 +1636,23 @@ Partial Class Bancos_PopIECompras
ImporteMX = ImporteMovimiento
End If
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
Else
IdCtaContable = CtaProveedor
- CveCuenta = CveCuentaProveedor
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioCompra) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
If CveMonedaCompra <> 1 AndAlso (IdCtaContComplementaria > 0 Or UsuarioActual.CveEmpresa = 119) Then
IdCtaContable = IdCtaContComplementaria
- CveCuenta = CveCuentaComplementaria
If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra, CveCuenta:=CveCuenta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
ImporteMX = ImporteMovimiento
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
End If
End If
Next
@@ -1776,27 +1682,23 @@ Partial Class Bancos_PopIECompras
ImporteMX = ImporteMovimiento
End If
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
Else
IdCtaContable = CtaProveedor
- CveCuenta = CveCuentaProveedor
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioCompra) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
If CveMonedaCompra <> 1 AndAlso (IdCtaContComplementaria > 0 Or UsuarioActual.CveEmpresa = 119) Then
IdCtaContable = IdCtaContComplementaria
- CveCuenta = CveCuentaComplementaria
If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra, CveCuenta:=CveCuenta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
ImporteMX = ImporteMovimiento
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
End If
End If
Next
@@ -1825,27 +1727,23 @@ Partial Class Bancos_PopIECompras
ImporteMX = ImporteMovimiento
End If
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
Else
IdCtaContable = CtaProveedor
- CveCuenta = CveCuentaProveedor
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, 275, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, rw.DataKey("CveVenta").ToEntero, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioCompra) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, 275, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, rw.DataKey("CveVenta").ToEntero, CveCompra, -1, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
If CveMonedaCompra = 2 Then
IdCtaContable = IdCtaContComplementaria
- CveCuenta = CveCuentaComplementaria
If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, rw.DataKey("CveVenta").ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra, CveCuenta:=CveCuenta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, rw.DataKey("CveVenta").ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
ImporteMX = ImporteMovimiento
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
End If
End If
Next
@@ -1872,17 +1770,14 @@ Partial Class Bancos_PopIECompras
If CveMonedaCompra = 1 Then
IdCtaContable = CtaProveedor
- CveCuenta = CveCuentaProveedor
Else
IdCtaContable = IdCtaContComplementaria
- CveCuenta = CveCuentaComplementaria
If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra, CveCuenta:=CveCuenta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, CveConceptoContableComplementaria, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioCompra - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioCompra) Then
MsgError = "No se pudo insertar la póliza"
End If
ImporteMX = ImporteMovimiento
IdCtaContable = IdCtaProveedorExtranjera
- CveCuenta = CveCuentaMonedaExtranjera
End If
End If
Case 15 'Ret IVA X Acreditar Honorarios/Serv. Prof.
@@ -1916,18 +1811,8 @@ Partial Class Bancos_PopIECompras
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
End If
End If
- End If
-
- 'Conta SIG
- If CveCuentaRetIVA <> 0 Then
- CveCuenta = CveCuentaRetIVA
- Else
- If ImporteMovimiento <> 0 AndAlso ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
+ End If
+
End If
Case 22 'Ret IVA Acreditable Honorarios/Serv. Prof.
If MovimientoPagar.ConceptoRetIVA = 1 Then
@@ -1995,18 +1880,8 @@ Partial Class Bancos_PopIECompras
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
End If
End If
- End If
-
- 'Conta SIG
- If CveCuentaRetIVA <> 0 Then
- CveCuenta = CveCuentaRetIVA
- Else
- If ImporteMovimiento <> 0 AndAlso ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
+ End If
+
End If
Case 184 'Ret IVA Acreditable Fletes P.F.
If MovimientoPagar.ConceptoRetIVA = 2 Then
@@ -2073,18 +1948,7 @@ Partial Class Bancos_PopIECompras
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
End If
End If
- End If
-
- 'Conta SIG
- If CveCuentaRetIVA <> 0 Then
- CveCuenta = CveCuentaRetIVA
- Else
- If ImporteMovimiento <> 0 AndAlso ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
+ End If
End If
Case 186 'Ret IVA Acreditable Fletes P.M.
If MovimientoPagar.ConceptoRetIVA = 3 Then
@@ -2510,7 +2374,6 @@ Partial Class Bancos_PopIECompras
If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) And Not IdCtaContable > 0 Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaIVAxAcreditar").ToString.ToEntero
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaIVAxAcreditarSIG").ToString.ToEntero
End If
End If
@@ -2657,7 +2520,7 @@ Partial Class Bancos_PopIECompras
End If
If MovimientoPagar.IVANoDeducible > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, If(ConceptoContable = 30, TxtFolio.Text.Trim, TxtObservaciones.Text), 280, ConceptoMovimiento, Fecha, IdCtaContableNoIVA, -1, CveIE, -1, CveCompra, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMXNoDeducible, CveCuenta:=CveCuenta, TipoCambio:=TimpocambioGeneral, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, If(ConceptoContable = 30, TxtFolio.Text.Trim, TxtObservaciones.Text), 280, ConceptoMovimiento, Fecha, IdCtaContableNoIVA, -1, CveIE, -1, CveCompra, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMXNoDeducible, TipoCambio:=TimpocambioGeneral, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
MsgError = "No se pudo insertar la póliza"
Else
ImporteMovimiento = 0
@@ -2885,7 +2748,7 @@ Partial Class Bancos_PopIECompras
End If
If MovimientoPagar.IVANoDeducible > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, If(ConceptoContable = 30, TxtFolio.Text.Trim, TxtObservaciones.Text), 280, ConceptoMovimiento, Fecha, IdCtaContableNoIVA, -1, CveIE, -1, CveCompra, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMXNoDeducible, CveCuenta:=CveCuenta, TipoCambio:=TimpocambioGeneral, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, If(ConceptoContable = 30, TxtFolio.Text.Trim, TxtObservaciones.Text), 280, ConceptoMovimiento, Fecha, IdCtaContableNoIVA, -1, CveIE, -1, CveCompra, -1, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMXNoDeducible, TipoCambio:=TimpocambioGeneral, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
MsgError = "No se pudo insertar la póliza"
End If
@@ -2987,7 +2850,6 @@ Partial Class Bancos_PopIECompras
If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaIEPSxAcreditar").ToString.ToEntero
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaIEPSxAcreditarSIG").ToString.ToEntero
End If
End If
Case 26 'IEPS Acreditable
@@ -3011,7 +2873,6 @@ Partial Class Bancos_PopIECompras
If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaIEPSAcreditable").ToString.ToEntero
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaIEPSAcreditableSIG").ToString.ToEntero
End If
End If
Case 64 'Ganancia
@@ -3091,20 +2952,17 @@ Partial Class Bancos_PopIECompras
ObjCreditos.GetTarjetasCreditos(DdlCuenta.SelectedValue.ToEntero, DdlTarjeta.SelectedValue.ToEntero)
If ObjCreditos.DtResultados.Rows.Count > 0 AndAlso (ObjCreditos.DtResultados.Rows(0)("IdCtaContableTarjeta").ToString.ToEntero > 0 Or ObjCreditos.DtResultados.Rows(0)("IdCtaContableTarjetaSIG").ToString.ToEntero > 0) Then
IdCtaContable = ObjCreditos.DtResultados.Rows(0)("IdCtaContableTarjeta").ToString.ToEntero
- CveCuenta = ObjCreditos.DtResultados.Rows(0)("IdCtaContableTarjetaSIG").ToString.ToEntero
Else
IdCtaContable = CtaProveedor
- CveCuenta = CveCuentaProveedor
End If
ObjCreditos.Dispose()
Else
IdCtaContable = IdCuentaBancaria
- CveCuenta = CveCuentaCliente
End If
Else
IdCtaContable = IdCuentaBancariaComplementaria
If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, 204, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioPago - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioPago, CveCuenta:=CveCuenta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, 204, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, -1, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMovimiento * tipoCambioPago - ImporteMovimiento, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
ImporteMX = ImporteMovimiento
@@ -3136,7 +2994,7 @@ Partial Class Bancos_PopIECompras
CveIE = rw.DataKey("CveIE").ToString.ToEntero
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, CveCliente:=rw.DataKey("CveProveedor").ToString.ToEntero, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, -1, CveCliente:=rw.DataKey("CveProveedor").ToString.ToEntero, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3166,8 +3024,7 @@ Partial Class Bancos_PopIECompras
CveIE = rw.DataKey("CveIE").ToString.ToEntero
IdCtaContable = CtaProveedorAcreedores
- CveCuenta = CveCuentaProveedorAcreedores
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3219,8 +3076,7 @@ Partial Class Bancos_PopIECompras
CveIE = rw.DataKey("CveIE").ToString.ToEntero
IdCtaContable = CtaProveedorDeudores
- CveCuenta = CveCuentaProveedorDeudores
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, CveProveedor:=CveProveedor2, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3249,22 +3105,19 @@ Partial Class Bancos_PopIECompras
If rw.DataKey("CveMoneda").ToEntero = 1 Then
IdCtaContable = IdCuentaCliente
- CveCuenta = CveCuentaCliente
Else
ConceptoMovimiento += $" TC:{tipoCambioPago} ${ImporteMovimiento.FormatoNumero(2)}"
IdCtaContable = IdCtaContComplementariaCliente
- CveCuenta = CveCuentaComplementariaCliente
If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
ImporteMX = ImporteMovimiento
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, 207, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, rw.DataKey("CveVenta").ToString.ToEntero, CveCompra, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, ImporteMX:=Math.Round(ImporteMovimiento * tipoCambioPago - ImporteMovimiento, 2, MidpointRounding.AwayFromZero), ImporteME:=ImporteMovimiento, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, 207, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, rw.DataKey("CveVenta").ToString.ToEntero, CveCompra, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, ImporteMX:=Math.Round(ImporteMovimiento * tipoCambioPago - ImporteMovimiento, 2, MidpointRounding.AwayFromZero), ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
IdCtaContable = IdCtaContMonedaExtranjeraCliente
- CveCuenta = CveCuentaMonedaExtranjeraCliente
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3302,21 +3155,9 @@ Partial Class Bancos_PopIECompras
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
End If
End If
- End If
-
- 'Conta SIG
- If CveCuentaRetIVACliente <> 0 Then
- CveCuenta = CveCuentaRetIVACliente
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
-
+ End If
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3355,21 +3196,10 @@ Partial Class Bancos_PopIECompras
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
End If
End If
- End If
-
- 'Conta SIG
- If CveCuentaRetISR <> 0 Then
- CveCuenta = CveCuentaRetISR
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
-
+ End If
+
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3409,10 +3239,9 @@ Partial Class Bancos_PopIECompras
End If
IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
- CveCuenta = UsuarioActual.Empresa.CveCuentaIVAxTrasladar
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3453,10 +3282,9 @@ Partial Class Bancos_PopIECompras
End If
IdCtaContable = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
- CveCuenta = UsuarioActual.Empresa.CveCuentaIVATrasladado
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=If(FuncionalidadFluctuacionImpuestos, tipoCambioPago, rw.DataKey("TipoCambio").ToString.ToDecimal), PorcentajeImpuesto:=PorcentajeImpuesto) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=If(FuncionalidadFluctuacionImpuestos, tipoCambioPago, rw.DataKey("TipoCambio").ToString.ToDecimal), PorcentajeImpuesto:=PorcentajeImpuesto) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3487,10 +3315,9 @@ Partial Class Bancos_PopIECompras
ImporteMX = Math.Round(ImporteMX, 2)
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSxTrasladar
- CveCuenta = UsuarioActual.Empresa.CveCuentaIEPSxTrasladar
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3521,10 +3348,9 @@ Partial Class Bancos_PopIECompras
ImporteMX = Math.Round(ImporteMX, 2)
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSTrasladado
- CveCuenta = UsuarioActual.Empresa.CveCuentaIEPSTrasladado
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3563,21 +3389,11 @@ Partial Class Bancos_PopIECompras
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
End If
End If
- End If
-
- 'Conta SIG
- If CveCuentaRetIVA <> 0 Then
- CveCuenta = CveCuentaRetIVA
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
-
+ End If
+
+
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3616,21 +3432,10 @@ Partial Class Bancos_PopIECompras
IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
End If
End If
- End If
-
- 'Conta SIG
- If CveCuentaRetISR <> 0 Then
- CveCuenta = CveCuentaRetISR
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
-
+ End If
+
If ImporteMovimiento > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, TxtObservaciones.Text, ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, -1, CveCompra:=CveCompra, CveVenta:=rw.DataKey("CveVenta").ToString.ToEntero, CveCliente:=rw.DataKey("CveCliente").ToString.ToEntero, CvePersonal:=CvePersonal, ImporteMX:=ImporteMX, TipoCambio:=rw.DataKey("TipoCambio").ToString.ToDecimal) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3659,7 +3464,7 @@ Partial Class Bancos_PopIECompras
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, If(ConceptoContable = 30, TxtFolio.Text.Trim, TxtObservaciones.Text), ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, CveSubProyecto:=CveSubProyectoInsertar, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, CveCuenta:=CveCuenta, TipoCambio:=TimpocambioGeneral, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, If(ConceptoContable = 30, TxtFolio.Text.Trim, TxtObservaciones.Text), ConceptoContable, ConceptoMovimiento, Fecha, IdCtaContable, -1, CveIE, -1, CveCompra, CveSubProyecto:=CveSubProyectoInsertar, CveProveedor:=CveProveedor2, ImporteMX:=ImporteMX, TipoCambio:=TimpocambioGeneral, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeImpuesto) Then
MsgError = "No se pudo insertar la póliza"
End If
diff --git a/Bancos/PopIEVentas.aspx.vb b/Bancos/PopIEVentas.aspx.vb
index 9be734101..e267668e4 100644
--- a/Bancos/PopIEVentas.aspx.vb
+++ b/Bancos/PopIEVentas.aspx.vb
@@ -942,7 +942,7 @@ Partial Class Bancos_PopIEVentas
If CveProveedor > 0 Then
If ObjProveedor.GetProveedores(ClsCompProveedores.TipoConsulta.ParaUsoEnEmpresa, CveProveedor, "-1", "-1", "-1", "-1", RFCCliente, "-1", "-1", -1, UsuarioActual.CveEmpresa) Then
- 'Conta SIG
+ 'Conta ContPAQ
ViewState("CtaProveedor") = ObjProveedor.IdCtaContProveedores
ViewState("CtaProveedorDeudores") = ObjProveedor.IdCtaContDeudor
ViewState("CtaProveedorAcreedores") = ObjProveedor.IdCtaContAcreedor
@@ -951,16 +951,8 @@ Partial Class Bancos_PopIEVentas
ViewState("IdCtaContRetIVAProveedor") = ObjProveedor.IdCtaContRetIVA
ViewState("IdCtaContRetIVAAcreditableProveedor") = ObjProveedor.IdCtaContRetIVAAcreditable
ViewState("IdCtaProveedorExtranjera") = ObjProveedor.IdCtaContProveedoresExtranjera
- ViewState("IdCtaContComplementariaProveedor") = ObjProveedor.IdCtaContProveedoresComplementaria
-
- 'Conta ContPAQ
- ViewState("CveCuentaProveedor") = ObjProveedor.CveCuentaProveedores
- ViewState("CveCuentaProveedorDeudores") = ObjProveedor.CveCuentaDeudor
- ViewState("CveCuentaProveedorAcreedores") = ObjProveedor.CveCuentaAcreedor
- ViewState("CveCuentaRetISRProveedor") = ObjProveedor.CveCuentaRetISR
- ViewState("CveCuentaRetIVAProveedor") = ObjProveedor.CveCuentaRetIVA
- ViewState("CveCuentaProveedorExtranjera") = ObjProveedor.CveCuentaProveedoresExtranjera
- ViewState("CveCuentaComplementariaProveedor") = ObjProveedor.CveCuentaProveedoresComplementaria
+ ViewState("IdCtaContComplementariaProveedor") = ObjProveedor.IdCtaContProveedoresComplementaria
+
End If
End If
diff --git a/Bancos/ProveedoresAbonar.aspx.vb b/Bancos/ProveedoresAbonar.aspx.vb
index 9aebbf918..1e309b319 100644
--- a/Bancos/ProveedoresAbonar.aspx.vb
+++ b/Bancos/ProveedoresAbonar.aspx.vb
@@ -528,9 +528,6 @@ Partial Class Bancos_ProveedoresAbonar
ViewState("IdCtaContRetISR") = ObjProveedor.IdCtaContRetISR
ViewState("IdCtaContRetISRAcreditable") = ObjProveedor.IdCtaContRetISRAcreditable
- ViewState("CveCuentaRetIVA") = ObjProveedor.CveCuentaRetIVA
- ViewState("CveCuentaRetISR") = ObjProveedor.CveCuentaRetISR
-
'Sección de pago a proveedor
LtlNombreProveedor.Text = ObjProveedor.RazonSocial
LtlRFCProveedor.Text = ObjProveedor.RFC
@@ -542,10 +539,6 @@ Partial Class Bancos_ProveedoresAbonar
ViewState("IdCtaContComplementaria") = ObjProveedor.IdCtaContProveedoresComplementaria
ViewState("IdCtaAcreedorComplementaria") = ObjProveedor.IdCtaContAcreedorComplementaria
- ViewState("CveCuentaProveedor") = ObjProveedor.CveCuentaProveedores
- ViewState("CveCuentaProveedorExtranjera") = ObjProveedor.CveCuentaProveedoresExtranjera
- ViewState("CveCuentaComplementaria") = ObjProveedor.CveCuentaProveedoresComplementaria
-
If Serie <> "" AndAlso Serie <> "-1" Then
Dim dr As DataRow = GlobalDTProveedorSucursales(CveProveedor, UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("Serie = '{0}'", Serie))
If dr IsNot Nothing Then
diff --git a/Bin/ClosedXML.dll b/Bin/ClosedXML.dll
index 4065a321f..0bdfccd36 100644
Binary files a/Bin/ClosedXML.dll and b/Bin/ClosedXML.dll differ
diff --git a/Bin/DocumentFormat.OpenXml.dll b/Bin/DocumentFormat.OpenXml.dll
index 1698758e5..7978b0462 100644
Binary files a/Bin/DocumentFormat.OpenXml.dll and b/Bin/DocumentFormat.OpenXml.dll differ
diff --git a/Bin/Microsoft.AspNet.SignalR.Core.xml b/Bin/Microsoft.AspNet.SignalR.Core.xml
index 1fd189758..421b8482c 100644
--- a/Bin/Microsoft.AspNet.SignalR.Core.xml
+++ b/Bin/Microsoft.AspNet.SignalR.Core.xml
@@ -4,6 +4,52 @@
Microsoft.AspNet.SignalR.Core
+
+
+ Apply to Hubs and Hub methods to authorize client connections to Hubs and authorize client invocations of Hub methods.
+
+
+
+
+ Set to false to apply authorization only to the invocations of any of the Hub's server-side methods.
+ This property only affects attributes applied to the Hub class.
+ This property cannot be read.
+
+
+
+
+ Gets or sets the user roles.
+
+
+
+
+ Gets or sets the authorized users.
+
+
+
+
+ Determines whether client is authorized to connect to .
+
+ Description of the hub client is attempting to connect to.
+ The (re)connect request from the client.
+ true if the caller is authorized to connect to the hub; otherwise, false.
+
+
+
+ Determines whether client is authorized to invoke the method.
+
+ An providing details regarding the method invocation.
+ Indicates whether the interface instance is an attribute applied directly to a method.
+ true if the caller is authorized to invoke the method; otherwise, false.
+
+
+
+ When overridden, provides an entry point for custom authorization checks.
+ Called by and .
+
+ The for the client being authorize
+ true if the user is authorized, otherwise, false
+
The amount of time the client should wait without seeing a keep alive before trying to reconnect.
@@ -21,301 +67,6 @@
-
-
- The dependency resolver to use for the hub connection.
-
-
-
-
- Gets of sets a boolean that determines if JSONP is enabled.
-
-
-
-
- Represents a connection to the client.
-
-
-
-
- Writes buffered data.
-
- The data to write to the buffer.
-
-
-
- Flushes the buffered response to the client.
-
- A task that represents when the data has been flushed.
-
-
-
- Gets a cancellation token that represents the client's lifetime.
-
-
-
-
- Gets or sets the status code of the response.
-
-
-
-
- Gets or sets the content type of the response.
-
-
-
-
- Encapsulates all information about a SignalR connection for an .
-
-
-
-
- Encapsulates all information about an individual SignalR connection for an .
-
-
-
-
- Provides access to information about a .
-
-
-
-
- Encapsulates all information about a SignalR connection for an .
-
-
-
-
- Gets the the hub.
-
-
-
-
- Provides methods that communicate with SignalR connections that connected to a .
-
-
-
-
- Provides methods that communicate with SignalR connections that connected to a .
-
-
-
-
- This marker interface can be used in lieu of IDisposable in order to indicate to the dependency resolver that
- it should not retain/track references nor invoke Dispose on instances of the resolved type.
- This is useful for transient types that are created by the dependency resolver, but are short-lived and will
- be Disposed by some other means outside of the resolver.
-
-
-
-
- Called when a new connection is made to the .
-
-
-
-
- Called when a connection reconnects to the after a timeout.
-
-
-
-
- Called when a connection disconnects from the gracefully or due to a timeout.
-
-
- true, if stop was called on the client closing the connection gracefully;
- false, if the connection has been lost for longer than the
- .
- Timeouts can be caused by clients reconnecting to another SignalR server in scaleout.
-
-
-
-
- Gets a . Which contains information about the calling client.
-
-
-
-
- Gets a dynamic object that represents all clients connected to this hub (not hub instance).
-
-
-
-
- Gets the the hub instance.
-
-
-
-
- Called when a connection disconnects from this hub gracefully or due to a timeout.
-
-
- true, if stop was called on the client closing the connection gracefully;
- false, if the connection has been lost for longer than the
- .
- Timeouts can be caused by clients reconnecting to another SignalR server in scaleout.
-
- A
-
-
-
- Called when the connection connects to this hub instance.
-
- A
-
-
-
- Called when the connection reconnects to this hub instance.
-
- A
-
-
-
- Gets a dynamic object that represents all clients connected to this hub (not hub instance).
-
-
-
-
- Provides information about the calling client.
-
-
-
-
- The group manager for this hub instance.
-
-
-
-
- Gets a dynamic object that represents all clients connected to this hub (not hub instance).
-
-
-
-
- Determines whether JavaScript proxies for the server-side hubs should be auto generated at {Path}/hubs or {Path}/js.
- Defaults to true.
-
-
-
-
- Determines whether detailed exceptions thrown in Hub methods get reported back the invoking client.
- Defaults to false.
-
-
-
-
- A server side proxy for the client side hub.
-
-
-
-
- Invokes a method on the connection(s) represented by the instance.
-
- name of the method to invoke
- argumetns to pass to the client
- A task that represents when the data has been sent to the client.
-
-
-
- Returns a dynamic representation of all clients except the calling client ones specified.
-
- The list of connection ids to exclude
- A dynamic representation of all clients except the calling client ones specified.
-
-
-
- Returns a dynamic representation of the connection with the specified connectionid.
-
- The connection id
- A dynamic representation of the specified client.
-
-
-
- Returns a dynamic representation of the connections with the specified connectionids.
-
- The connection ids.
- A dynamic representation of the specified clients.
-
-
-
- Returns a dynamic representation of the specified group.
-
- The name of the group
- The list of connection ids to exclude
- A dynamic representation of the specified group.
-
-
-
- Returns a dynamic representation of the specified groups.
-
- The names of the groups.
- The list of connection ids to exclude
- A dynamic representation of the specified groups.
-
-
-
- Holds information about a single hub method.
-
-
-
-
- Name of Descriptor.
-
-
-
-
- Flags whether the name was specified.
-
-
-
-
- The return type of this method.
-
-
-
-
- Hub descriptor object, target to this method.
-
-
-
-
- Available method parameters.
-
-
-
-
- Method invocation delegate.
- Takes a target hub and an array of invocation arguments as it's arguments.
-
-
-
-
- Attributes attached to this method.
-
-
-
-
- The exception to be sent to the calling client.
- This will be overridden by a generic Exception unless Error is a
- or is set to true.
-
-
-
-
- The value to return in lieu of throwing Error. Whenever Result is set, Error will be set to null.
-
-
-
-
- Provides access to information about a .
-
-
-
-
- Encapsulates all information about a SignalR connection for an .
-
-
-
-
- Gets the the hub.
-
-
Provides access to server configuration.
@@ -363,137 +114,60 @@
Gets or sets a representing tell the client to wait before restablishing a
- long poll connection after data is sent from the server.
+ long poll connection after data is sent from the server.
The default value is 0.
-
+
- A buffering text writer that supports writing binary directly as well
+ Gets or sets the maximum number of scaleout mappings per scaleout stream stored on the server.
+ The default value is 65535
-
+
- TextWriter implementation over a write delegate optimized for writing in small chunks
- we don't need to write to a long lived buffer. This saves massive amounts of memory
- as the number of connections grows.
+ The dependency resolver to use for the hub connection.
-
+
- Implemented on anything that has the ability to write raw binary data
+ Gets of sets a boolean that determines if JSONP is enabled.
-
+
- Default implementation.
+ Sends a message to all connections subscribed to the specified signal. An example of signal may be a
+ specific connection id.
+ The connection
+ The connectionId to send to.
+ The value to publish.
+ A task that represents when the broadcast is complete.
-
+
- Provides access to hubs and persistent connections references.
+ Sends a message to all connections subscribed to the specified signal. An example of signal may be a
+ specific connection id.
+ The connection
+ The connection ids to send to.
+ The value to publish.
+ A task that represents when the broadcast is complete.
-
+
- Returns a for the specified .
+ Broadcasts a value to all connections, excluding the connection ids specified.
- Type of the
- a for the specified
-
-
-
- Returns a for the specified hub.
-
- Name of the hub
- a for the specified hub
-
-
-
- Returns a for the specified .
-
- Type of the
- Interface implemented by the client proxy
- a for the specified
-
-
-
- Returns a for the specified hub.
-
- Name of the hub
- Interface implemented by the client proxy
- a for the specified hub
-
-
-
- Returns a for the .
-
- Type of the
- A for the .
-
-
-
- Initializes a new instance of the class.
-
- The .
-
-
-
- Returns a for the .
-
- Type of the
- A for the .
-
-
-
- Returns a for the .
-
- Type of the
- A for the .
-
-
-
- Returns a for the specified .
-
- Type of the
- a for the specified
-
-
-
- Returns a for the specified hub.
-
- Name of the hub
- a for the specified hub
-
-
-
- Returns a for the specified .
-
- Type of the
- Interface implemented by the client proxy
- a for the specified
-
-
-
- Returns a for the specified hub.
-
- Name of the hub
- Interface implemented by the client proxy
- a for the specified hub
+ The connection
+ The value to broadcast.
+ The list of connection ids to exclude
+ A task that represents when the broadcast is complete.
A message sent to one more connections.
-
-
- Initializes a new instance of the class.
-
- The signal
- The payload of the message
- The signals to exclude.
-
The signal to this message should be sent to. Connections subscribed to this signal
@@ -517,6 +191,14 @@
receive this message.
+
+
+ Initializes a new instance of the class.
+
+ The signal
+ The payload of the message
+ The signals to exclude.
+
Provides access to default host information.
@@ -547,82 +229,89 @@
-
+
- Represents a SignalR request
+ The default implementation.
-
+
- Reads the form of the http request
+ Initializes a new instance of the class.
-
+ The this group resides on.
+ The prefix for this group. Either a name or type name.
-
+
- Gets the url for this request.
+ Sends a value to the specified group.
+
+ The name of the group.
+ The value to send.
+ The list of connection ids to exclude
+ A task that represents when send is complete.
+
+
+
+ Sends a value to the specified group.
+
+ The names of the groups.
+ The value to send.
+ The list of connection ids to exclude
+ A task that represents when send is complete.
+
+
+
+ Adds a connection to the specified group.
+
+ The connection id to add to the group.
+ The name of the group
+ A task that represents the connection id being added to the group.
+
+
+
+ Removes a connection from the specified group.
+
+ The connection id to remove from the group.
+ The name of the group
+ A task that represents the connection id being removed from the group.
+
+
+
+ Represents a connection to the client.
-
+
- The local path part of the url
+ Gets a cancellation token that represents the client's lifetime.
-
+
- Gets the querystring for this request.
+ Gets or sets the status code of the response.
-
+
- Gets the headers for this request.
+ Gets or sets the content type of the response.
-
+
- Gets the cookies for this request.
+ Writes buffered data.
+ The data to write to the buffer.
-
+
- Gets security information for the current HTTP request.
-
-
-
-
- Gets the owin enviornment
-
-
-
-
- A converter for dictionaries that uses a SipHash comparer
+ Flushes the buffered response to the client.
+ A task that represents when the data has been flushed.
Represents a web socket.
-
-
- Sends data over the websocket.
-
- The value to send.
- A that represents the send is complete.
-
-
-
- Sends a chunk of data over the websocket ("endOfMessage" flag set to false.)
-
-
- A that represents the send is complete.
-
-
-
- Sends a zero byte data chunk with the "endOfMessage" flag set to true.
-
- A that represents the flush is complete.
-
Invoked when data is sent over the websocket
@@ -638,6 +327,31 @@
Invoked when there is an error
+
+
+ Sends data over the websocket.
+
+ The value to send.
+ A that represents the send is complete.
+
+
+
+ Responsible for creating instances.
+
+
+
+
+ Creates a new instance of the class.
+
+ The dependency resolver to use for when creating the .
+
+
+
+ Creates an instance of the specified type using the dependency resolver or the type's default constructor.
+
+ The type of to create.
+ An instance of a .
+
Extension methods for .
@@ -651,6 +365,129 @@
The data to write to the connection.
A task that represents when the connection is closed.
+
+
+ Provides methods that communicate with SignalR connections that connected to a .
+
+
+
+
+ Determines whether JavaScript proxies for the server-side hubs should be auto generated at {Path}/hubs or {Path}/js.
+ Defaults to true.
+
+
+
+
+ Determines whether detailed exceptions thrown in Hub methods get reported back the invoking client.
+ Defaults to false.
+
+
+
+
+ A description of a client-side hub method invocation.
+
+
+
+
+ The name of the hub that the method being invoked belongs to.
+
+
+
+
+ The name of the client-side hub method be invoked.
+
+
+
+
+ The argument list the client-side hub method will be called with.
+
+
+
+
+ A key-value store representing the hub state on the server that has changed since the last time the hub
+ state was sent to the client.
+
+
+
+
+ Provides methods that communicate with SignalR connections that connected to a .
+
+
+
+
+ Gets a dynamic object that represents all clients connected to this hub (not hub instance).
+
+
+
+
+ Provides information about the calling client.
+
+
+
+
+ The group manager for this hub instance.
+
+
+
+
+ Called when a connection disconnects from this hub gracefully or due to a timeout.
+
+
+ true, if stop was called on the client closing the connection gracefully;
+ false, if the connection has been lost for longer than the
+ .
+ Timeouts can be caused by clients reconnecting to another SignalR server in scaleout.
+
+ A
+
+
+
+ Called when the connection connects to this hub instance.
+
+ A
+
+
+
+ Called when the connection reconnects to this hub instance.
+
+ A
+
+
+
+ Gets the connection id of the calling client.
+
+
+
+
+ Gets the cookies for the request.
+
+
+
+
+ Gets the headers for the request.
+
+
+
+
+ Gets the querystring for the request.
+
+
+
+
+ Gets the for the request.
+
+
+
+
+ Gets the for the current HTTP request.
+
+
+
+
+ This constructor is only intended to enable mocking of the class. Use of this constructor
+ for other purposes may result in unexpected behavior.
+
+
Encapsulates all information about an individual SignalR connection for an .
@@ -671,20 +508,6 @@
The connection id.
The connection hub state.
-
-
- Returns a dynamic representation of all clients in a group except the calling client.
-
- The name of the group
- A dynamic representation of all clients in a group except the calling client.
-
-
-
- Returns a dynamic representation of all clients in the specified groups except the calling client.
-
- The name of the groups
- A dynamic representation of all clients in a group except the calling client.
-
All connected clients except the calling client.
@@ -701,6 +524,405 @@
via the property (such as in VB.NET or in typed Hubs).
+
+
+ Returns a dynamic representation of all clients in a group except the calling client.
+
+ The name of the group
+ A dynamic representation of all clients in a group except the calling client.
+
+
+
+ Returns a dynamic representation of all clients in the specified groups except the calling client.
+
+ The name of the groups
+ A dynamic representation of all clients in a group except the calling client.
+
+
+
+ Returns a dynamic representation of all clients except the calling client ones specified.
+
+ The list of connection ids to exclude
+ A dynamic representation of all clients except the calling client ones specified.
+
+
+
+ Returns a dynamic representation of the connection with the specified connectionid.
+
+ The connection id
+ A dynamic representation of the specified client.
+
+
+
+ Returns a dynamic representation of the connections with the specified connectionids.
+
+ The connection ids.
+ A dynamic representation of the specified clients.
+
+
+
+ Returns a dynamic representation of the specified group.
+
+ The name of the group
+ The list of connection ids to exclude
+ A dynamic representation of the specified group.
+
+
+
+ Returns a dynamic representation of the specified groups.
+
+ The names of the groups.
+ The list of connection ids to exclude
+ A dynamic representation of the specified groups.
+
+
+
+ Handles all communication over the hubs persistent connection.
+
+
+
+
+ Initializes an instance of the class.
+
+ Configuration settings determining whether to enable JS proxies and provide clients with detailed hub errors.
+
+
+
+ Processes the hub's incoming method calls.
+
+
+
+
+ The response returned from an incoming hub request.
+
+
+
+
+ The changes made the the round tripped state.
+
+
+
+
+ The result of the invocation.
+
+
+
+
+ The id of the operation.
+
+
+
+
+ The progress update of the invocation.
+
+
+
+
+ Indicates whether the Error is a see .
+
+
+
+
+ The exception that occurs as a result of invoking the hub method.
+
+
+
+
+ The stack trace of the exception that occurs as a result of invoking the hub method.
+
+
+
+
+ Extra error data contained in the
+
+
+
+
+ A server side proxy for the client side hub.
+
+
+
+
+ Invokes a method on the connection(s) represented by the instance.
+
+ name of the method to invoke
+ arguments to pass to the client
+ A task that represents when the data has been sent to the client.
+
+
+
+ Gets a . Which contains information about the calling client.
+
+
+
+
+ Gets a dynamic object that represents all clients connected to this hub (not hub instance).
+
+
+
+
+ Gets the the hub instance.
+
+
+
+
+ Called when a new connection is made to the .
+
+
+
+
+ Called when a connection reconnects to the after a timeout.
+
+
+
+
+ Called when a connection disconnects from the gracefully or due to a timeout.
+
+
+ true, if stop was called on the client closing the connection gracefully;
+ false, if the connection has been lost for longer than the
+ .
+ Timeouts can be caused by clients reconnecting to another SignalR server in scaleout.
+
+
+
+
+ Encapsulates all information about an individual SignalR connection for an .
+
+
+
+
+ Encapsulates all information about a SignalR connection for an .
+
+
+
+
+ Handles parsing incoming requests through the .
+
+
+
+
+ Parses the incoming hub payload into a .
+
+ The raw hub payload.
+ The JsonSerializer used to parse the data.
+ The resulting .
+
+
+
+ Resolves a parameter value based on the provided object.
+
+ Parameter descriptor.
+ Value to resolve the parameter value from.
+ The parameter value.
+
+
+
+ Resolves method parameter values based on provided objects.
+
+ Method descriptor.
+ List of values to resolve parameter values from.
+ Array of parameter values.
+
+
+
+ Name of Descriptor.
+
+
+
+
+ Flags whether the name was specified.
+
+
+
+
+ Holds information about a single hub.
+
+
+
+
+ Hub type.
+
+
+
+
+ Holds information about a single hub method.
+
+
+
+
+ The return type of this method.
+
+
+
+
+ Hub descriptor object, target to this method.
+
+
+
+
+ Available method parameters.
+
+
+
+
+ Method invocation delegate.
+ Takes a target hub and an array of invocation arguments as it's arguments.
+
+
+
+
+ Attributes attached to this method.
+
+
+
+
+ Holds information about a single hub method parameter.
+
+
+
+
+ Parameter name.
+
+
+
+
+ Parameter type.
+
+
+
+
+ Describes hub descriptor provider, which provides information about available hubs.
+
+
+
+
+ Retrieve all avaiable hubs.
+
+ Collection of hub descriptors.
+
+
+
+ Tries to retrieve hub with a given name.
+
+ Name of the hub.
+ Retrieved descriptor object.
+ True, if hub has been found
+
+
+
+ Describes a hub manager - main point in the whole hub and method lookup process.
+
+
+
+
+ Retrieves a single hub descriptor.
+
+ Name of the hub.
+ Hub descriptor, if found. Null, otherwise.
+
+
+
+ Retrieves all available hubs matching the given predicate.
+
+ List of hub descriptors.
+
+
+
+ Resolves a given hub name to a concrete object.
+
+ Name of the hub.
+ Hub implementation instance, if found. Null otherwise.
+
+
+
+ Resolves all available hubs to their concrete objects.
+
+ List of hub instances.
+
+
+
+ Retrieves a method with a given name on a given hub.
+
+ Name of the hub.
+ Name of the method to find.
+ Method parameters to match.
+ Descriptor of the method, if found. Null otherwise.
+
+
+
+ Gets all methods available to call on a given hub.
+
+ Name of the hub,
+ Optional predicate for filtering results.
+ List of available methods.
+
+
+
+ Describes a hub method provider that builds a collection of available methods on a given hub.
+
+
+
+
+ Retrieve all methods on a given hub.
+
+ Hub descriptor object.
+ Available methods.
+
+
+
+ Tries to retrieve a method.
+
+ Hub descriptor object
+ Name of the method.
+ Descriptor of the method, if found. Null otherwise.
+ Method parameters to match.
+ True, if a method has been found.
+
+
+
+ Describes a parameter resolver for resolving parameter-matching values based on provided information.
+
+
+
+
+ Resolves method parameter values based on provided objects.
+
+ Method descriptor.
+ List of values to resolve parameter values from.
+ Array of parameter values.
+
+
+
+ Retrieves an existing dictionary of all available methods for a given hub from cache.
+ If cache entry does not exist - it is created automatically by BuildMethodCacheFor.
+
+
+
+
+
+
+ Builds a dictionary of all possible methods on a given hub.
+ Single entry contains a collection of available overloads for a given method name (key).
+ This dictionary is being cached afterwards.
+
+ Hub to build cache for
+ Dictionary of available methods
+
+
+
+ Searches the specified Hub for the specified .
+
+
+ In the case that there are multiple overloads of the specified , the parameter set helps determine exactly which instance of the overload should be resolved.
+ If there are multiple overloads found with the same number of matching parameters, none of the methods will be returned because it is not possible to determine which overload of the method was intended to be resolved.
+
+ Hub to search for the specified on.
+ The method name to search for.
+ If successful, the that was resolved.
+ The set of parameters that will be used to help locate a specific overload of the specified .
+ True if the method matching the name/parameter set is found on the hub, otherwise false.
+
This module is added the the HubPipeline by default.
@@ -717,100 +939,54 @@
authorizers that will be applied globally to all hubs and hub methods.
+
+
+ Interface to be implemented by s that can authorize client to connect to a .
+
+
+
+
+ Given a , determine whether client is authorized to connect to .
+
+ Description of the hub client is attempting to connect to.
+ The connection request from the client.
+ true if the caller is authorized to connect to the hub; otherwise, false.
+
+
+
+ Interface to be implemented by s that can authorize the invocation of methods.
+
+
+
+
+ Given a , determine whether client is authorized to invoke the method.
+
+ An providing details regarding the method invocation.
+ Indicates whether the interface instance is an attribute applied directly to a method.
+ true if the caller is authorized to invoke the method; otherwise, false.
+
+
+
+ The exception to be sent to the calling client.
+ This will be overridden by a generic Exception unless Error is a
+ or is set to true.
+
+
+
+
+ The value to return in lieu of throwing Error. Whenever Result is set, Error will be set to null.
+
+
Common base class to simplify the implementation of IHubPipelineModules.
A module can intercept and customize various stages of hub processing such as connecting, reconnecting, disconnecting,
invoking server-side hub methods, invoking client-side hub methods, authorizing hub clients and rejoining hub groups.
A module can be activated by calling .
- The combined modules added to the are invoked via the
+ The combined modules added to the are invoked via the
interface.
-
-
- An can intercept and customize various stages of hub processing such as connecting,
- reconnecting, disconnecting, invoking server-side hub methods, invoking client-side hub methods, authorizing hub
- clients and rejoining hub groups.
- Modules can be be activated by calling .
- The combined modules added to the are invoked via the
- interface.
-
-
-
-
- Wraps a function that invokes a server-side hub method. Even if a client has not been authorized to connect
- to a hub, it will still be authorized to invoke server-side methods on that hub unless it is prevented in
- by not executing the invoke parameter.
-
- A function that invokes a server-side hub method.
- A wrapped function that invokes a server-side hub method.
-
-
-
- Wraps a function that invokes a client-side hub method.
-
- A function that invokes a client-side hub method.
- A wrapped function that invokes a client-side hub method.
-
-
-
- Wraps a function that is called when a client connects to the for each
- the client connects to. By default, this results in the 's
- OnConnected method being invoked.
-
- A function to be called when a client connects to a hub.
- A wrapped function to be called when a client connects to a hub.
-
-
-
- Wraps a function that is called when a client reconnects to the for each
- the client connects to. By default, this results in the 's
- OnReconnected method being invoked.
-
- A function to be called when a client reconnects to a hub.
- A wrapped function to be called when a client reconnects to a hub.
-
-
-
- Wraps a function that is called when a client disconnects from the for each
- the client was connected to. By default, this results in the 's
- OnDisconnected method being invoked.
-
-
- A task-returning function to be called when a client disconnects from a hub.
- This function takes two parameters:
- 1. The is being disconnected from.
- 2. A boolean, stopCalled, that is true if stop was called on the client and false if the client timed out.
- Timeouts can be caused by clients reconnecting to another SignalR server in scaleout.
-
- A wrapped function to be called when a client disconnects from a hub.
-
-
-
- Wraps a function to be called before a client subscribes to signals belonging to the hub described by the
- . By default, the will look for attributes on the
- to help determine if the client is authorized to subscribe to method invocations for the
- described hub.
- The function returns true if the client is authorized to subscribe to client-side hub method
- invocations; false, otherwise.
-
-
- A function that dictates whether or not the client is authorized to connect to the described Hub.
-
-
- A wrapped function that dictates whether or not the client is authorized to connect to the described Hub.
-
-
-
-
- Wraps a function that determines which of the groups belonging to the hub described by the
- the client should be allowed to rejoin.
- By default, clients will rejoin all the groups they were in prior to reconnecting.
-
- A function that determines which groups the client should be allowed to rejoin.
- A wrapped function that determines which groups the client should be allowed to rejoin.
-
Wraps a function that invokes a server-side hub method. Even if a client has not been authorized to connect
@@ -1015,76 +1191,29 @@
A description of the server-side hub method invocation.
-
+
- Apply to Hubs and Hub methods to authorize client connections to Hubs and authorize client invocations of Hub methods.
+ A description of a server-side hub method invocation originating from a client.
-
+
- Interface to be implemented by s that can authorize client to connect to a .
+ A hub instance that contains the invoked method as a member.
-
+
- Given a , determine whether client is authorized to connect to .
-
- Description of the hub client is attempting to connect to.
- The connection request from the client.
- true if the caller is authorized to connect to the hub; otherwise, false.
-
-
-
- Interface to be implemented by s that can authorize the invocation of methods.
+ A description of the method being invoked by the client.
-
+
- Given a , determine whether client is authorized to invoke the method.
-
- An providing details regarding the method invocation.
- Indicates whether the interface instance is an attribute applied directly to a method.
- true if the caller is authorized to invoke the method; otherwise, false.
-
-
-
- Determines whether client is authorized to connect to .
-
- Description of the hub client is attempting to connect to.
- The (re)connect request from the client.
- true if the caller is authorized to connect to the hub; otherwise, false.
-
-
-
- Determines whether client is authorized to invoke the method.
-
- An providing details regarding the method invocation.
- Indicates whether the interface instance is an attribute applied directly to a method.
- true if the caller is authorized to invoke the method; otherwise, false.
-
-
-
- When overridden, provides an entry point for custom authorization checks.
- Called by and .
-
- The for the client being authorize
- true if the user is authorized, otherwise, false
-
-
-
- Set to false to apply authorization only to the invocations of any of the Hub's server-side methods.
- This property only affects attributes applied to the Hub class.
- This property cannot be read.
+ The arguments to be passed to the invoked method.
-
+
- Gets or sets the user roles.
-
-
-
-
- Gets or sets the authorized users.
+ A key-value store representing the hub state on the client at the time of the invocation.
@@ -1121,40 +1250,29 @@
not receive the method invocation regardless of the .
-
+
- A description of a client-side hub method invocation.
+ A collection of modules that can intercept and customize various stages of hub processing such as connecting,
+ reconnecting, disconnecting, invoking server-side hub methods, invoking client-side hub methods, authorizing
+ hub clients and rejoining hub groups.
-
+
- The name of the hub that the method being invoked belongs to.
+ Adds an to the hub pipeline. Modules added to the pipeline first will wrap
+ modules that are added to the pipeline later. All modules must be added to the pipeline before any methods
+ on the are invoked.
-
-
-
- The name of the client-side hub method be invoked.
-
-
-
-
- The argument list the client-side hub method will be called with.
-
-
-
-
- A key-value store representing the hub state on the server that has changed since the last time the hub
- state was sent to the client.
-
-
-
-
- Requiring Authentication adds an to the with
- and authorizers that will be applied globally to all hubs and hub methods.
- These authorizers require that the 's
- IsAuthenticated for any clients that invoke server-side hub methods or receive client-side hub method invocations.
-
- The to which the will be added.
+
+ A module that may intercept and customize various stages of hub processing such as connecting,
+ reconnecting, disconnecting, invoking server-side hub methods, invoking client-side hub methods, authorizing
+ hub clients and rejoining hub groups.
+
+
+ The itself with the newly added module allowing
+ calls to be chained.
+ This method mutates the pipeline it is invoked on so it is not necessary to store its result.
+
@@ -1228,123 +1346,154 @@
A list of groups the client is allowed to rejoin.
-
+
- A description of a server-side hub method invocation originating from a client.
+ An can intercept and customize various stages of hub processing such as connecting,
+ reconnecting, disconnecting, invoking server-side hub methods, invoking client-side hub methods, authorizing hub
+ clients and rejoining hub groups.
+ Modules can be be activated by calling .
+ The combined modules added to the are invoked via the
+ interface.
-
+
- A hub instance that contains the invoked method as a member.
+ Wraps a function that invokes a server-side hub method. Even if a client has not been authorized to connect
+ to a hub, it will still be authorized to invoke server-side methods on that hub unless it is prevented in
+ by not executing the invoke parameter.
+ A function that invokes a server-side hub method.
+ A wrapped function that invokes a server-side hub method.
-
+
- A description of the method being invoked by the client.
+ Wraps a function that invokes a client-side hub method.
+ A function that invokes a client-side hub method.
+ A wrapped function that invokes a client-side hub method.
-
+
- The arguments to be passed to the invoked method.
+ Wraps a function that is called when a client connects to the for each
+ the client connects to. By default, this results in the 's
+ OnConnected method being invoked.
+ A function to be called when a client connects to a hub.
+ A wrapped function to be called when a client connects to a hub.
-
+
- A key-value store representing the hub state on the client at the time of the invocation.
+ Wraps a function that is called when a client reconnects to the for each
+ the client connects to. By default, this results in the 's
+ OnReconnected method being invoked.
+ A function to be called when a client reconnects to a hub.
+ A wrapped function to be called when a client reconnects to a hub.
-
+
- Handles parsing incoming requests through the .
+ Wraps a function that is called when a client disconnects from the for each
+ the client was connected to. By default, this results in the 's
+ OnDisconnected method being invoked.
+
+ A task-returning function to be called when a client disconnects from a hub.
+ This function takes two parameters:
+ 1. The is being disconnected from.
+ 2. A boolean, stopCalled, that is true if stop was called on the client and false if the client timed out.
+ Timeouts can be caused by clients reconnecting to another SignalR server in scaleout.
+
+ A wrapped function to be called when a client disconnects from a hub.
-
+
- Parses the incoming hub payload into a .
+ Wraps a function to be called before a client subscribes to signals belonging to the hub described by the
+ . By default, the will look for attributes on the
+ to help determine if the client is authorized to subscribe to method invocations for the
+ described hub.
+ The function returns true if the client is authorized to subscribe to client-side hub method
+ invocations; false, otherwise.
- The raw hub payload.
- The JsonSerializer used to parse the data.
- The resulting .
+
+ A function that dictates whether or not the client is authorized to connect to the described Hub.
+
+
+ A wrapped function that dictates whether or not the client is authorized to connect to the described Hub.
+
-
+
- The response returned from an incoming hub request.
-
-
-
-
- The changes made the the round tripped state.
-
-
-
-
- The result of the invocation.
-
-
-
-
- The id of the operation.
-
-
-
-
- The progress update of the invocation.
-
-
-
-
- Indicates whether the Error is a see .
-
-
-
-
- The exception that occurs as a result of invoking the hub method.
-
-
-
-
- The stack trace of the exception that occurs as a result of invoking the hub method.
-
-
-
-
- Extra error data contained in the
+ Wraps a function that determines which of the groups belonging to the hub described by the
+ the client should be allowed to rejoin.
+ By default, clients will rejoin all the groups they were in prior to reconnecting.
+ A function that determines which groups the client should be allowed to rejoin.
+ A wrapped function that determines which groups the client should be allowed to rejoin.
A change tracking dictionary.
-
+
- A collection of modules that can intercept and customize various stages of hub processing such as connecting,
- reconnecting, disconnecting, invoking server-side hub methods, invoking client-side hub methods, authorizing
- hub clients and rejoining hub groups.
+ Requiring Authentication adds an to the with
+ and authorizers that will be applied globally to all hubs and hub methods.
+ These authorizers require that the 's
+ IsAuthenticated for any clients that invoke server-side hub methods or receive client-side hub method invocations.
+
+ The to which the will be added.
+
+
+
+ Provides methods that communicate with SignalR connections that connected to a .
-
+
- Adds an to the hub pipeline. Modules added to the pipeline first will wrap
- modules that are added to the pipeline later. All modules must be added to the pipeline before any methods
- on the are invoked.
+ Gets a dynamic object that represents all clients connected to this hub (not hub instance).
-
- A module that may intercept and customize various stages of hub processing such as connecting,
- reconnecting, disconnecting, invoking server-side hub methods, invoking client-side hub methods, authorizing
- hub clients and rejoining hub groups.
-
-
- The itself with the newly added module allowing
- calls to be chained.
- This method mutates the pipeline it is invoked on so it is not necessary to store its result.
-
+
+
+
+ A communication channel for a and its connections.
+
+
+
+
+ The main signal for this connection. This is the main signalr for a .
+
+
+
+
+ Sends a message to connections subscribed to the signal.
+
+ The message to send.
+ A task that returns when the message has be sent.
Manages groups for a connection and allows sending messages to the group.
+
+
+ Sends a value to the specified group.
+
+ The name of the group.
+ The value to send.
+ The list of connection ids to exclude
+ A task that represents when send is complete.
+
+
+
+ Sends a value to the specified groups.
+
+ The names of the groups.
+ The value to send.
+ The list of connection ids to exclude
+ A task that represents when send is complete.
+
Manages groups for a connection.
@@ -1366,23 +1515,166 @@
The name of the group
A task that represents the connection id being removed from the group.
-
+
- Sends a value to the specified group.
+ Provides access to information about a .
- The name of the group.
- The value to send.
- The list of connection ids to exclude
- A task that represents when send is complete.
-
+
- Sends a value to the specified groups.
+ Encapsulates all information about a SignalR connection for an .
- The names of the groups.
- The value to send.
- The list of connection ids to exclude
- A task that represents when send is complete.
+
+
+
+ Gets the the hub.
+
+
+
+
+ Provides access to information about a .
+
+
+
+
+ Encapsulates all information about a SignalR connection for an .
+
+
+
+
+ Gets the the hub.
+
+
+
+
+ A singleton that subscribes to all ACKs sent over the
+ and
+ triggers any corresponding ACKs on the .
+
+
+
+
+ Default implementation.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The .
+
+
+
+ Returns a for the .
+
+ Type of the
+ A for the .
+
+
+
+ Returns a for the .
+
+ Type of the
+ A for the .
+
+
+
+ Returns a for the specified .
+
+ Type of the
+ a for the specified
+
+
+
+ Returns a for the specified hub.
+
+ Name of the hub
+ a for the specified hub
+
+
+
+ Returns a for the specified .
+
+ Type of the
+ Interface implemented by the client proxy
+ a for the specified
+
+
+
+ Returns a for the specified hub.
+
+ Name of the hub
+ Interface implemented by the client proxy
+ a for the specified hub
+
+
+
+ Helper class to manage disposing a resource at an arbirtary time
+
+
+
+
+ Implemented on anything that has the ability to write raw binary data
+
+
+
+
+ Provides access to hubs and persistent connections references.
+
+
+
+
+ Returns a for the specified .
+
+ Type of the
+ a for the specified
+
+
+
+ Returns a for the specified hub.
+
+ Name of the hub
+ a for the specified hub
+
+
+
+ Returns a for the specified .
+
+ Type of the
+ Interface implemented by the client proxy
+ a for the specified
+
+
+
+ Returns a for the specified hub.
+
+ Name of the hub
+ Interface implemented by the client proxy
+ a for the specified hub
+
+
+
+ Returns a for the .
+
+ Type of the
+ A for the .
+
+
+
+ Acquires a sub-segment of a larger memory allocation. Used for async sends of write-behind
+ buffers to reduce number of array segments pinned
+
+ The smallest length of the ArraySegment.Count that may be returned
+ An array segment which is a sub-block of a larger allocation
+
+
+
+ Frees a sub-segment of a larger memory allocation produced by AllocSegment. The original ArraySegment
+ must be frees exactly once and must have the same offset and count that was returned by the Alloc.
+ If a segment is not freed it won't be re-used and has the same effect as a memory leak, so callers must be
+ implemented exactly correctly.
+
+ The sub-block that was originally returned by a call to AllocSegment.
@@ -1590,6 +1882,38 @@
Gets the performance counter representing the current scaleout send queue length.
+
+
+ Minifies a string in a way that can be reversed by this instance of .
+
+ The string to be minified
+ A minified representation of the without the following characters:,|\
+
+
+
+ Reverses a call that was executed at least once previously on this instance of
+ without any subsequent calls to sharing the
+ same argument as the call that returned .
+
+
+ A minified string that was returned by a previous call to .
+
+
+ The argument of all previous calls to that returned .
+ If every call to on this instance of has never
+ returned or if the most recent call to that did
+ return was followed by a call to sharing
+ the same argument, may return null but must not throw.
+
+
+
+
+ A call to this function indicates that any future attempt to unminify strings that were previously minified
+ from may be met with a null return value. This provides an opportunity clean up
+ any internal data structures that reference .
+
+ The string that may have previously have been minified.
+
Manages performance counters using Windows performance counters.
@@ -1605,13 +1929,6 @@
Creates a new instance.
-
-
- Initializes the performance counters.
-
- The host instance name.
- The CancellationToken representing the host shutdown.
-
Gets the performance counter representing the total number of connection Connect events since the application was started.
@@ -1797,10 +2114,12 @@
Gets the performance counter representing the current scaleout send queue length.
-
+
- Helper class to manage disposing a resource at an arbirtary time
+ Initializes the performance counters.
+ The host instance name.
+ The CancellationToken representing the host shutdown.
@@ -1809,6 +2128,80 @@
- Dispose may be called after Cancel.
+
+
+ Helpers for decoding URI query components.
+
+
+
+
+ Provides access to information about a .
+
+
+
+
+ Gets the for the .
+
+
+
+
+ Gets the for the .
+
+
+
+
+ Represents a SignalR request
+
+
+
+
+ Gets the url for this request.
+
+
+
+
+ The local path part of the url
+
+
+
+
+ Gets the querystring for this request.
+
+
+
+
+ Gets the headers for this request.
+
+
+
+
+ Gets the cookies for this request.
+
+
+
+
+ Gets security information for the current HTTP request.
+
+
+
+
+ Gets the owin environment
+
+
+
+
+ Reads the form of the http request
+
+
+
+
+
+ This marker interface can be used in lieu of IDisposable in order to indicate to the dependency resolver that
+ it should not retain/track references nor invoke Dispose on instances of the resolved type.
+ This is useful for transient types that are created by the dependency resolver, but are short-lived and will
+ be Disposed by some other means outside of the resolver.
+
+
Represents a JSON value.
@@ -1844,205 +2237,6 @@
An implementation of IJsonValue over JSON.NET
-
-
- Sends a message to all connections subscribed to the specified signal. An example of signal may be a
- specific connection id.
-
- The connection
- The connectionId to send to.
- The value to publish.
- A task that represents when the broadcast is complete.
-
-
-
- Sends a message to all connections subscribed to the specified signal. An example of signal may be a
- specific connection id.
-
- The connection
- The connection ids to send to.
- The value to publish.
- A task that represents when the broadcast is complete.
-
-
-
- Broadcasts a value to all connections, excluding the connection ids specified.
-
- The connection
- The value to broadcast.
- The list of connection ids to exclude
- A task that represents when the broadcast is complete.
-
-
-
- Describes a parameter resolver for resolving parameter-matching values based on provided information.
-
-
-
-
- Resolves method parameter values based on provided objects.
-
- Method descriptor.
- List of values to resolve parameter values from.
- Array of parameter values.
-
-
-
- Resolves a parameter value based on the provided object.
-
- Parameter descriptor.
- Value to resolve the parameter value from.
- The parameter value.
-
-
-
- Resolves method parameter values based on provided objects.
-
- Method descriptor.
- List of values to resolve parameter values from.
- Array of parameter values.
-
-
-
- Holds information about a single hub method parameter.
-
-
-
-
- Parameter name.
-
-
-
-
- Parameter type.
-
-
-
-
- Describes a hub method provider that builds a collection of available methods on a given hub.
-
-
-
-
- Retrieve all methods on a given hub.
-
- Hub descriptor object.
- Available methods.
-
-
-
- Tries to retrieve a method.
-
- Hub descriptor object
- Name of the method.
- Descriptor of the method, if found. Null otherwise.
- Method parameters to match.
- True, if a method has been found.
-
-
-
- Retrieves an existing dictionary of all available methods for a given hub from cache.
- If cache entry does not exist - it is created automatically by BuildMethodCacheFor.
-
-
-
-
-
-
- Builds a dictionary of all possible methods on a given hub.
- Single entry contains a collection of available overloads for a given method name (key).
- This dictionary is being cached afterwards.
-
- Hub to build cache for
- Dictionary of available methods
-
-
-
- Searches the specified Hub for the specified .
-
-
- In the case that there are multiple overloads of the specified , the parameter set helps determine exactly which instance of the overload should be resolved.
- If there are multiple overloads found with the same number of matching parameters, none of the methods will be returned because it is not possible to determine which overload of the method was intended to be resolved.
-
- Hub to search for the specified on.
- The method name to search for.
- If successful, the that was resolved.
- The set of parameters that will be used to help locate a specific overload of the specified .
- True if the method matching the name/parameter set is found on the hub, otherwise false.
-
-
-
- Holds information about a single hub.
-
-
-
-
- Hub type.
-
-
-
-
- Describes a hub manager - main point in the whole hub and method lookup process.
-
-
-
-
- Retrieves a single hub descriptor.
-
- Name of the hub.
- Hub descriptor, if found. Null, otherwise.
-
-
-
- Retrieves all available hubs matching the given predicate.
-
- List of hub descriptors.
-
-
-
- Resolves a given hub name to a concrete object.
-
- Name of the hub.
- Hub implementation instance, if found. Null otherwise.
-
-
-
- Resolves all available hubs to their concrete objects.
-
- List of hub instances.
-
-
-
- Retrieves a method with a given name on a given hub.
-
- Name of the hub.
- Name of the method to find.
- Method parameters to match.
- Descriptor of the method, if found. Null otherwise.
-
-
-
- Gets all methods available to call on a given hub.
-
- Name of the hub,
- Optional predicate for filtering results.
- List of available methods.
-
-
-
- Provides access to information about a .
-
-
-
-
- Gets the for the .
-
-
-
-
- Gets the for the .
-
-
Extensions for .
@@ -2083,67 +2277,43 @@
The object to serailize.
A JSON string representation of the object.
-
+
- Minifies a string in a way that can be reversed by this instance of .
-
- The string to be minified
- A minified representation of the without the following characters:,|\
-
-
-
- Reverses a call that was executed at least once previously on this instance of
- without any subsequent calls to sharing the
- same argument as the call that returned .
-
-
- A minified string that was returned by a previous call to .
-
-
- The argument of all previous calls to that returned .
- If every call to on this instance of has never
- returned or if the most recent call to that did
- return was followed by a call to sharing
- the same argument, may return null but must not throw.
-
-
-
-
- A call to this function indicates that any future attempt to unminify strings that were previously minified
- from may be met with a null return value. This provides an opportunity clean up
- any internal data structures that reference .
-
- The string that may have previously have been minified.
-
-
-
- This class is the main coordinator.
- It schedules work to be done for a particular subscription.
+ Helper class for common JSON operations.
-
+
- Represents a message to the scaleout backplane
+ Converts the specified name to camel case.
+
+ The name to convert.
+ A camel cased version of the specified name.
+
+
+
+ Gets a string that returns JSON mime type "application/json; charset=UTF-8".
-
+
- The messages from SignalR
+ Gets a string that returns JSONP mime type "application/javascript; charset=UTF-8".
-
+
- The time the message was created on the origin server
+ Creates a default instance.
+ The newly created .
-
+
- Common base class for scaleout message bus implementations.
+ Creates a instance with the default setting.
+ The newly created .
-
+
-
+ A converter for dictionaries that uses a SipHash comparer
@@ -2164,6 +2334,67 @@
+
+
+ Which connection the message originated from
+
+
+
+
+ The signal for the message (connection id, group, etc)
+
+
+
+
+ The message payload
+
+
+
+
+ The command id if this message is a command
+
+
+
+
+ Determines if the caller should wait for acknowledgement for this message
+
+
+
+
+ Determines if this message is itself an ACK
+
+
+
+
+ A list of connection ids to filter out
+
+
+
+
+ The encoding of the message
+
+
+
+
+ The payload id. Only used in scaleout scenarios
+
+
+
+
+ The stream index this message came from. Only used the scaleout scenarios.
+
+
+
+
+ This class is the main coordinator.
+ It schedules work to be done for a particular subscription.
+
+
+
+
+
+
+
@@ -2204,6 +2435,65 @@
The key to create the topic for.
A for the specified key.
+
+
+
+
+
+
+
+ Gets an associated with the result.
+
+
+
+
+ Initializes a new instance of the struct.
+
+ The array of messages associated with this .
+ The amount of messages populated in the messages array.
+
+
+
+ Common settings for scale-out message bus implementations.
+
+
+
+
+ Gets or sets a value that represents the queuing behavior for scale-out messages.
+ Defaults to QueuingBehavior.InitialOnly
+
+
+
+
+ The maximum length of the outgoing send queue. Messages being sent to the backplane are queued
+ up to this length. After the max length is reached, further sends will throw an InvalidOperationException.
+
+
+
+
+ Represents a message to the scaleout backplane
+
+
+
+
+ The messages from SignalR
+
+
+
+
+ The time the message was created on the origin server
+
+
+
+
+ Common base class for scaleout message bus implementations.
+
+
+
+
+ The number of streams can't change for the lifetime of this instance.
+
+
Opens the specified queue for sending messages.
@@ -2239,227 +2529,26 @@
The scaleout message.
-
-
- The number of streams can't change for the lifetime of this instance.
-
-
-
-
-
-
-
-
-
- Initializes a new instance of the struct.
-
- The array of messages associated with this .
- The amount of messages populated in the messages array.
-
-
-
- Gets an associated with the result.
-
-
-
-
- Common settings for scale-out message bus implementations.
-
-
-
-
- Gets or sets a value that represents the queuing behavior for scale-out messages.
- Defaults to QueuingBehavior.InitialOnly
-
-
-
-
- The maximum length of the outgoing send queue. Messages being sent to the backplane are queued
- up to this length. After the max length is reached, further sends will throw an InvalidOperationException.
-
-
-
-
- Responsible for creating instances.
-
-
-
-
- Creates a new instance of the class.
-
- The dependency resolver to use for when creating the .
-
-
-
- Creates an instance of the specified type using the dependency resolver or the type's default constructor.
-
- The type of to create.
- An instance of a .
-
-
-
- Helpers for decoding URI query components.
-
-
Standard keys and values for use within the OWIN interfaces
-
-
- Maps SignalR hubs to the app builder pipeline at "/signalr".
-
- The app builder
-
-
-
- Maps SignalR hubs to the app builder pipeline at "/signalr".
-
- The app builder
- The to use
-
-
-
- Maps SignalR hubs to the app builder pipeline at the specified path.
-
- The app builder
- The path to map signalr hubs
- The to use
-
-
-
- Adds SignalR hubs to the app builder pipeline.
-
- The app builder
-
-
-
- Adds SignalR hubs to the app builder pipeline.
-
- The app builder
- The to use
-
-
-
- Maps the specified SignalR to the app builder pipeline at
- the specified path.
-
- The type of
- The app builder
- The path to map the
-
-
-
- Maps the specified SignalR to the app builder pipeline at
- the specified path.
-
- The type of
- The app builder
- The path to map the persistent connection
- The to use
-
-
-
-
- Maps the specified SignalR to the app builder pipeline at
- the specified path.
-
- The app builder
- The path to map the persistent connection
- The type of
- The to use
-
-
-
- Adds the specified SignalR to the app builder.
-
- The type of
- The app builder
-
-
-
- Adds the specified SignalR to the app builder.
-
- The type of
- The app builder
- The to use
-
-
-
-
- Adds the specified SignalR to the app builder.
-
- The app builder
- The type of
- The to use
-
-
-
-
- Describes hub descriptor provider, which provides information about available hubs.
-
-
-
-
- Retrieve all avaiable hubs.
-
- Collection of hub descriptors.
-
-
-
- Tries to retrieve hub with a given name.
-
- Name of the hub.
- Retrieved descriptor object.
- True, if hub has been found
-
-
-
- This constructor is only intended to enable mocking of the class. Use of this constructor
- for other purposes may result in unexpected behavior.
-
-
-
-
- Gets the connection id of the calling client.
-
-
-
-
- Gets the cookies for the request.
-
-
-
-
- Gets the headers for the request.
-
-
-
-
- Gets the querystring for the request.
-
-
-
-
- Gets the for the request.
-
-
-
-
- Gets the for the current HTTP request.
-
-
-
-
- Handles all communication over the hubs persistent connection.
-
-
Represents a connection between client and server.
+
+
+ Gets the for the .
+
+
+
+
+ Gets the for the .
+
+
OWIN entry point.
@@ -2479,6 +2568,17 @@
Thrown if the connection id wasn't specified.
+
+
+ Validates the connection token and extracts the connection ID from it.
+
+ The representing the request.
+ The connection token to validate.
+ If this method returns true, this output parameter receives the connection ID contained within the token.
+ If this method returns false, this output parameter receives an error message to report.
+ If this method returns false, this output parameter receives an HTTP status code to report.
+ A boolean indicating if the connection token was valid.
+
Returns the signals used in the .
@@ -2542,114 +2642,6 @@
A that completes when the disconnect operation is complete.
-
-
- Gets the for the .
-
-
-
-
- Gets the for the .
-
-
-
-
- Initializes an instance of the class.
-
- Configuration settings determining whether to enable JS proxies and provide clients with detailed hub errors.
-
-
-
- Processes the hub's incoming method calls.
-
-
-
-
- Helper class for common JSON operations.
-
-
-
-
- Converts the specified name to camel case.
-
- The name to convert.
- A camel cased version of the specified name.
-
-
-
- Creates a default instance.
-
- The newly created .
-
-
-
- Creates a instance with the default setting.
-
- The newly created .
-
-
-
- Gets a string that returns JSON mime type "application/json; charset=UTF-8".
-
-
-
-
- Gets a string that returns JSONP mime type "application/javascript; charset=UTF-8".
-
-
-
-
- The default implementation.
-
-
-
-
- Initializes a new instance of the class.
-
- The this group resides on.
- The prefix for this group. Either a name or type name.
-
-
-
- Sends a value to the specified group.
-
- The name of the group.
- The value to send.
- The list of connection ids to exclude
- A task that represents when send is complete.
-
-
-
- Sends a value to the specified group.
-
- The names of the groups.
- The value to send.
- The list of connection ids to exclude
- A task that represents when send is complete.
-
-
-
- Adds a connection to the specified group.
-
- The connection id to add to the group.
- The name of the group
- A task that represents the connection id being added to the group.
-
-
-
- Removes a connection from the specified group.
-
- The connection id to remove from the group.
- The name of the group
- A task that represents the connection id being removed from the group.
-
-
-
- A singleton that subscribes to all ACKs sent over the
- and
- triggers any corresponding ACKs on the .
-
-
A strongly-typed resource class, for looking up localized strings, etc.
@@ -2786,6 +2778,11 @@
Looks up a localized string similar to KeepAlive value must be no more than a third of the DisconnectTimeout..
+
+
+ Looks up a localized string similar to The value of the MaxScaleoutMappingsPerStream property must be greater or equal to zero..
+
+
Looks up a localized string similar to '{0}' method could not be resolved. No method found with that name..
@@ -2916,46 +2913,16 @@
Looks up a localized string similar to Forbidden: JSONP is disabled..
+
+
+ Looks up a localized string similar to The hub name '{0}' is invalid..
+
+
Represents a connection that can be tracked by an .
-
-
- Applies a new state to the connection.
-
-
-
-
- Causes the connection to disconnect.
-
-
-
-
- Causes the connection to timeout.
-
-
-
-
- Sends a keep alive ping over the connection.
-
-
-
-
- Increments performance counter for current connections.
-
-
-
-
- Decrements performance counter for current connections.
-
-
-
-
- Kills the connection.
-
-
Gets the id of the connection.
@@ -3001,31 +2968,46 @@
Gets the uri of the connection.
+
+
+ Applies a new state to the connection.
+
+
+
+
+ Causes the connection to disconnect.
+
+
+
+
+ Causes the connection to timeout.
+
+
+
+
+ Sends a keep alive ping over the connection.
+
+
+
+
+ Increments performance counter for current connections.
+
+
+
+
+ Decrements performance counter for current connections.
+
+
+
+
+ Kills the connection.
+
+
Represents a transport that communicates
-
-
- Get groupsToken in request over the transport.
-
- groupsToken in request
-
-
-
- Processes the specified for this transport.
-
- The to process.
- A that completes when the transport has finished processing the connection.
-
-
-
- Sends data over the transport.
-
- The value to be sent.
- A that completes when the send is complete.
-
Gets or sets a callback that is invoked when the transport receives data.
@@ -3051,10 +3033,25 @@
Gets or sets the connection id for the transport.
-
+
- Pointed to the HTMLOutputWriter to wrap output stream with an HTML friendly one
+ Get groupsToken in request over the transport.
+ groupsToken in request
+
+
+
+ Processes the specified for this transport.
+
+ The to process.
+ A that completes when the transport has finished processing the connection.
+
+
+
+ Sends data over the transport.
+
+ The value to be sent.
+ A that completes when the send is complete.
@@ -3105,35 +3102,6 @@
The name of the transport to test.
True if the transport is supported, otherwise False.
-
-
- Default implementation of .
-
-
-
-
- Initializes and instance of the class.
-
- The .
-
-
-
- Adds a new connection to the list of tracked connections.
-
- The connection to be added.
-
-
-
- Removes a connection from the list of tracked connections.
-
- The connection to remove.
-
-
-
- Marks an existing connection as active.
-
- The connection to mark.
-
Represents a response to a connection.
@@ -3146,13 +3114,6 @@
A filter that determines whether messages should be written to the client.
The cursor writer.
-
-
- Serializes only the necessary components of the to JSON
- using Json.NET's JsonTextWriter to improve performance.
-
- The that receives the JSON serialization.
-
The list of messages to be sent to the receiving connection.
@@ -3188,72 +3149,41 @@
The time the long polling client should wait before reestablishing a connection if no data is received.
-
+
- A communication channel for a and its connections.
+ Serializes only the necessary components of the to JSON
+ using Json.NET's JsonTextWriter to improve performance.
+
+ The that receives the JSON serialization.
+
+
+
+ Default implementation of .
-
+
- Sends a message to connections subscribed to the signal.
+ Initializes and instance of the class.
- The message to send.
- A task that returns when the message has be sent.
+ The .
-
+
- The main signal for this connection. This is the main signalr for a .
+ Adds a new connection to the list of tracked connections.
+ The connection to be added.
-
+
- Which connection the message originated from
+ Removes a connection from the list of tracked connections.
+ The connection to remove.
-
+
- The signal for the message (connection id, group, etc)
-
-
-
-
- The message payload
-
-
-
-
- The command id if this message is a command
-
-
-
-
- Determines if the caller should wait for acknowledgement for this message
-
-
-
-
- Determines if this message is itself an ACK
-
-
-
-
- A list of connection ids to filter out
-
-
-
-
- The encoding of the message
-
-
-
-
- The payload id. Only used in scaleout scenarios
-
-
-
-
- The stream index this message came from. Only used the scaleout scenarios.
+ Marks an existing connection as active.
+ The connection to mark.
@@ -3293,5 +3223,94 @@
The name of the transport to test.
True if the transport is supported, otherwise False.
+
+
+ Maps SignalR hubs to the app builder pipeline at "/signalr".
+
+ The app builder
+
+
+
+ Maps SignalR hubs to the app builder pipeline at "/signalr".
+
+ The app builder
+ The to use
+
+
+
+ Maps SignalR hubs to the app builder pipeline at the specified path.
+
+ The app builder
+ The path to map signalr hubs
+ The to use
+
+
+
+ Adds SignalR hubs to the app builder pipeline.
+
+ The app builder
+
+
+
+ Adds SignalR hubs to the app builder pipeline.
+
+ The app builder
+ The to use
+
+
+
+ Maps the specified SignalR to the app builder pipeline at
+ the specified path.
+
+ The type of
+ The app builder
+ The path to map the
+
+
+
+ Maps the specified SignalR to the app builder pipeline at
+ the specified path.
+
+ The type of
+ The app builder
+ The path to map the persistent connection
+ The to use
+
+
+
+
+ Maps the specified SignalR to the app builder pipeline at
+ the specified path.
+
+ The app builder
+ The path to map the persistent connection
+ The type of
+ The to use
+
+
+
+ Adds the specified SignalR to the app builder.
+
+ The type of
+ The app builder
+
+
+
+ Adds the specified SignalR to the app builder.
+
+ The type of
+ The app builder
+ The to use
+
+
+
+
+ Adds the specified SignalR to the app builder.
+
+ The app builder
+ The type of
+ The to use
+
+
diff --git a/Bin/Microsoft.IdentityModel.JsonWebTokens.dll b/Bin/Microsoft.IdentityModel.JsonWebTokens.dll
index 1c17c5a22..3706dc751 100644
Binary files a/Bin/Microsoft.IdentityModel.JsonWebTokens.dll and b/Bin/Microsoft.IdentityModel.JsonWebTokens.dll differ
diff --git a/Bin/Microsoft.IdentityModel.Logging.dll b/Bin/Microsoft.IdentityModel.Logging.dll
index 60646a6da..bd5ad3a26 100644
Binary files a/Bin/Microsoft.IdentityModel.Logging.dll and b/Bin/Microsoft.IdentityModel.Logging.dll differ
diff --git a/Bin/Microsoft.IdentityModel.Tokens.dll b/Bin/Microsoft.IdentityModel.Tokens.dll
index 67cef9cb9..df612ddfe 100644
Binary files a/Bin/Microsoft.IdentityModel.Tokens.dll and b/Bin/Microsoft.IdentityModel.Tokens.dll differ
diff --git a/Bin/Microsoft.Owin.Security.OAuth.dll b/Bin/Microsoft.Owin.Security.OAuth.dll
index 8f95e3053..650eb379b 100644
Binary files a/Bin/Microsoft.Owin.Security.OAuth.dll and b/Bin/Microsoft.Owin.Security.OAuth.dll differ
diff --git a/Bin/Microsoft.Owin.Security.dll b/Bin/Microsoft.Owin.Security.dll
index e162f2d25..3bf4f0a88 100644
Binary files a/Bin/Microsoft.Owin.Security.dll and b/Bin/Microsoft.Owin.Security.dll differ
diff --git a/Bin/Microsoft.Owin.dll b/Bin/Microsoft.Owin.dll
index 3b7a0ffe8..0e19530d5 100644
Binary files a/Bin/Microsoft.Owin.dll and b/Bin/Microsoft.Owin.dll differ
diff --git a/Bin/Microsoft.SqlServer.Types.dll b/Bin/Microsoft.SqlServer.Types.dll
index d4dd78993..1ccde4ab4 100644
Binary files a/Bin/Microsoft.SqlServer.Types.dll and b/Bin/Microsoft.SqlServer.Types.dll differ
diff --git a/Bin/System.IdentityModel.Tokens.Jwt.dll b/Bin/System.IdentityModel.Tokens.Jwt.dll
index bb9aec487..d48bf0826 100644
Binary files a/Bin/System.IdentityModel.Tokens.Jwt.dll and b/Bin/System.IdentityModel.Tokens.Jwt.dll differ
diff --git a/Bin/System.IdentityModel.Tokens.Jwt.dll.refresh b/Bin/System.IdentityModel.Tokens.Jwt.dll.refresh
index c2fd62bfd..bc64f028c 100644
Binary files a/Bin/System.IdentityModel.Tokens.Jwt.dll.refresh and b/Bin/System.IdentityModel.Tokens.Jwt.dll.refresh differ
diff --git a/Bin/WebGrease.dll b/Bin/WebGrease.dll
index 1d308f8ed..a6a80d37f 100644
Binary files a/Bin/WebGrease.dll and b/Bin/WebGrease.dll differ
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index 10a5803fd..0fe63b649 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -253,26 +253,13 @@ Partial Class Compras_Compras
Return ViewState("CtaProveedor").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedor As Integer
- Get
- Return ViewState("CveCuentaProveedor").ToString.ToEntero
- End Get
- End Property
+
Private ReadOnly Property CtaProveedorDeudores As Integer
Get
Return ViewState("CtaProveedorDeudores").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorDeudores As Integer
- Get
- Return ViewState("CveCuentaProveedorDeudores").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaProveedorAcreedores As Integer
- Get
- Return ViewState("CveCuentaProveedorAcreedores").ToString.ToEntero
- End Get
- End Property
+
Private ReadOnly Property CtaProveedorAcreedores As Integer
Get
Return ViewState("CtaProveedorAcreedores").ToString.ToEntero
@@ -283,79 +270,43 @@ Partial Class Compras_Compras
Return ViewState("CtaProveedorAnticipos").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorAnticipos As Integer
- Get
- Return ViewState("CveCuentaProveedorAnticipos").ToString.ToEntero
- End Get
- End Property
+
Private ReadOnly Property CtaProveedorAnticiposExtranjera As Integer
Get
Return ViewState("CtaProveedorAnticiposExtranjera").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorAnticiposExtranjera As Integer
- Get
- Return ViewState("CveCuentaProveedorAnticiposExtranjera").ToString.ToEntero
- End Get
- End Property
+
Private ReadOnly Property CtaProveedorAnticiposComplementaria As Integer
Get
Return ViewState("CtaProveedorAnticiposComplementaria").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorAnticiposComplementaria As Integer
- Get
- Return ViewState("CveCuentaProveedorAnticiposComplementaria").ToString.ToEntero
- End Get
- End Property
Private ReadOnly Property CtaProveedorRetIVA As Integer
Get
Return ViewState("CtaProveedorRetIVA").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorRetIVA As Integer
- Get
- Return ViewState("CveCuentaProveedorRetIVA").ToString.ToEntero
- End Get
- End Property
+
Private ReadOnly Property CtaProveedorRetISR As Integer
Get
Return ViewState("CtaProveedorRetISR").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorRetISR As Integer
- Get
- Return ViewState("CveCuentaProveedorRetISR").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaIEPS As Integer
- Get
- Return ViewState("CveCuentaIEPS").ToString.ToEntero
- End Get
- End Property
Private ReadOnly Property CtaProveedorExtranjera As Integer
Get
Return ViewState("CtaProveedorExtranjera").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorExtranjera As Integer
- Get
- Return ViewState("CveCuentaProveedorExtranjera").ToString.ToEntero
- End Get
- End Property
Private ReadOnly Property CtaProveedorComplementaria As Integer
Get
Return ViewState("CtaProveedorComplementaria").ToString.ToEntero
End Get
End Property
- Private ReadOnly Property CveCuentaProveedorComplementaria As Integer
- Get
- Return ViewState("CveCuentaProveedorComplementaria").ToString.ToEntero
- End Get
- End Property
+
Private ReadOnly Property NombreProveedor As String
Get
Return ViewState("NombreProveedor").ToString
@@ -3289,18 +3240,6 @@ Partial Class Compras_Compras
ViewState("CtaProveedorComplementaria") = ObjProveedor.IdCtaContProveedoresComplementaria
ViewState("IdCtaContDocsXPagar") = ObjProveedor.IdCtaContDocsXPagar
- 'Conta SIG
- ViewState("CveCuentaProveedor") = ObjProveedor.CveCuentaProveedores
- ViewState("CveCuentaProveedorAnticipos") = ObjProveedor.CveCuentaAnticipos
- ViewState("CveCuentaProveedorAnticiposExtranjera") = ObjProveedor.CveCuentaAnticiposExtranjera
- ViewState("CveCuentaProveedorAnticiposComplementaria") = ObjProveedor.CveCuentaAnticiposComplementaria
- ViewState("CveCuentaProveedorDeudores") = ObjProveedor.CveCuentaDeudor
- ViewState("CveCuentaProveedorAcreedores") = ObjProveedor.CveCuentaAcreedor
- ViewState("CveCuentaProveedorRetISR") = ObjProveedor.CveCuentaRetISR
- ViewState("CveCuentaProveedorRetIVA") = ObjProveedor.CveCuentaRetIVA
- ViewState("CveCuentaProveedorExtranjera") = ObjProveedor.CveCuentaProveedoresExtranjera
- ViewState("CveCuentaProveedorComplementaria") = ObjProveedor.CveCuentaProveedoresComplementaria
-
ViewState("NombreProveedor") = ObjProveedor.RazonSocial
@@ -12876,7 +12815,6 @@ Partial Class Compras_Compras
If ObjProveedor.GetProveedores(ClsCompProveedores.TipoConsulta.ParaUsoEnEmpresa, DdlAcreedor.SelectedValue.ToEntero, "-1", "-1", "-1", "-1", "-1", "-1", "-1", 1, UsuarioActual.CveEmpresa) Then
ViewState("CtaProveedorAcreedores") = ObjProveedor.IdCtaContAcreedor
- ViewState("CveCuentaProveedorAcreedores") = ObjProveedor.CveCuentaAcreedor
End If
diff --git a/Compras/ReembolsosComprobaciones.aspx.vb b/Compras/ReembolsosComprobaciones.aspx.vb
index dc1c9f30e..d1e293610 100644
--- a/Compras/ReembolsosComprobaciones.aspx.vb
+++ b/Compras/ReembolsosComprobaciones.aspx.vb
@@ -639,11 +639,6 @@ Partial Class Compras_ReembolsosComprobaciones
'Conta SIG
Dim CveCuentaProveedor As Integer = 0
Dim CveCuentaPersonal As Integer = 0
- Dim CveCuentaIVAxAcreditar As Integer = 0
- Dim CveCuentaIVAAcreditable As Integer = 0
- Dim CveCuentaRetIVA As Integer = 0
- Dim CveCuentaRetISR As Integer = 0
- Dim CveCuentaOtrosProductos As Integer = 0
Dim SeUnifico = False
'Obtenemos la cuenta del Personal o Caja Chica
@@ -667,7 +662,6 @@ Partial Class Compras_ReembolsosComprobaciones
If ObjMov.GetRetCuenta(14, UsuarioActual.CveEmpresa) Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaIVAxAcreditar = ObjMov.DtResultados.Rows(0)("IdCuentaIVAxAcreditar").ToString.ToEntero
- CveCuentaIVAxAcreditar = ObjMov.DtResultados.Rows(0)("IdCuentaIVAxAcreditarSIG").ToString.ToEntero
End If
End If
@@ -675,7 +669,6 @@ Partial Class Compras_ReembolsosComprobaciones
If ObjMov.GetRetCuenta(19, UsuarioActual.CveEmpresa) Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaIVAAcreditable = ObjMov.DtResultados.Rows(0)("IdCuentaIVAAcreditable").ToString.ToEntero
- CveCuentaIVAAcreditable = ObjMov.DtResultados.Rows(0)("IdCuentaIVAAcreditableSIG").ToString.ToEntero
End If
End If
@@ -683,7 +676,6 @@ Partial Class Compras_ReembolsosComprobaciones
If ObjMov.GetRetCuenta(15, UsuarioActual.CveEmpresa) Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaRetIVA = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacion").ToString.ToEntero
- CveCuentaRetIVA = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
End If
End If
@@ -691,7 +683,6 @@ Partial Class Compras_ReembolsosComprobaciones
If ObjMov.GetRetCuenta(16, UsuarioActual.CveEmpresa) Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaRetISR = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
- CveCuentaRetISR = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
End If
End If
@@ -699,7 +690,6 @@ Partial Class Compras_ReembolsosComprobaciones
If ObjMov.GetRetCuenta(132, UsuarioActual.CveEmpresa) Then
If ObjMov.DtResultados.Rows.Count > 0 Then
IdCtaOtrosProductos = ObjMov.DtResultados.Rows(0)("IdCtaOtrosProductos").ToString.ToEntero
- CveCuentaOtrosProductos = ObjMov.DtResultados.Rows(0)("IdCtaOtrosProductosSIG").ToString.ToEntero
End If
End If
@@ -707,7 +697,6 @@ Partial Class Compras_ReembolsosComprobaciones
For Each gvr As GridViewRow In GvCxP.Rows
-
If gvr.FCCheckBox("Chk").Checked Then
ConceptoMovimiento = $"{gvr.DataKey("Proveedor")} F:{gvr.DataKey("SerieFolio")} {If(DdlPersonal.Visible, DdlPersonal.SelectedItem.Text, DdlCajaChica.SelectedItem.Text)}"
Referencia = gvr.DataKey("SerieFolio").ToString
@@ -797,26 +786,26 @@ Partial Class Compras_ReembolsosComprobaciones
If UsuarioActual.Empresa.Funcionalidad(521) = "1" Then
If ImporteMovto = gvr.FCLiteral("LtlSaldo").Text.ToDouble Then
'Agrego el IVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("IVA").ToDecimal, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal), ImporteMX:=(gvr.DataKey("IVA").ToDecimal) * tipoCambio, CveCuenta:=CveCuentaIVAxAcreditar, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("IVA").ToDecimal, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal), ImporteMX:=(gvr.DataKey("IVA").ToDecimal) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
'Agrego el IVA
If gvr.DataKey("IVADeducible").ToDecimal > 0 Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, gvr.DataKey("IVADeducible").ToDecimal, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVADeducible").ToDecimal), ImporteMX:=(gvr.DataKey("IVADeducible").ToDecimal) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, gvr.DataKey("IVADeducible").ToDecimal, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVADeducible").ToDecimal), ImporteMX:=(gvr.DataKey("IVADeducible").ToDecimal) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
End If
End If
Else
'Agrego el IVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("IVADeducible").ToDecimal * PorcentajePago, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("IVA").ToDecimal * PorcentajePago) * tipoCambio, CveCuenta:=CveCuentaIVAxAcreditar, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("IVADeducible").ToDecimal * PorcentajePago, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("IVA").ToDecimal * PorcentajePago) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
'Agrego el IVA
If gvr.DataKey("IVADeducible").ToDecimal > 0 Then
Dim ImporteIVA As Decimal = gvr.DataKey("IVADeducible").ToDecimal * PorcentajePago
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, ImporteIVA, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, ImporteIVA), ImporteMX:=(ImporteIVA) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, ImporteIVA, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, ImporteIVA), ImporteMX:=(ImporteIVA) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
End If
@@ -826,7 +815,7 @@ Partial Class Compras_ReembolsosComprobaciones
Dim ImporteNOIVA As Decimal = gvr.DataKey("IVANoDeducible").ToDecimal * PorcentajePago
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, ImporteNOIVA, Referencia, 280, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVANoAcreditable > 0, IdCtaContIVANoAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, ImporteNOIVA), ImporteMX:=(ImporteNOIVA) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, ImporteNOIVA, Referencia, 280, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVANoAcreditable > 0, IdCtaContIVANoAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, ImporteNOIVA), ImporteMX:=(ImporteNOIVA) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
End If
@@ -939,23 +928,23 @@ Partial Class Compras_ReembolsosComprobaciones
If UsuarioActual.Empresa.Funcionalidad(521) = "1" Then
If ImporteMovto = gvr.FCLiteral("LtlSaldo").Text.ToDouble Then
'Agrego el RetIVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, gvr.DataKey("RetIVA").ToDecimal, Referencia, ConceptoContableRetIVAXAcreditar, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAXAcreditar, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal) * tipoCambio, CveCuenta:=CveCuentaIVAxAcreditar, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, gvr.DataKey("RetIVA").ToDecimal, Referencia, ConceptoContableRetIVAXAcreditar, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAXAcreditar, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
MsgError = "Detalle"
End If
'Agrego el RetIVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("RetIVA").ToDecimal, Referencia, ConceptoContableRetIVAAcreditable, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAAcreditable, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("RetIVA").ToDecimal, Referencia, ConceptoContableRetIVAAcreditable, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAAcreditable, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
MsgError = "Detalle"
End If
End If
Else
'Agrego el RetIVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAXAcreditar, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAXAcreditar, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CveCuenta:=CveCuentaIVAxAcreditar, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAXAcreditar, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAXAcreditar, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
MsgError = "Detalle"
End If
'Agrego el RetIVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAAcreditable, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAAcreditable, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAAcreditable, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAAcreditable, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, CvePersonal:=CvePersonal) Then
MsgError = "Detalle"
End If
End If
@@ -1047,7 +1036,7 @@ Partial Class Compras_ReembolsosComprobaciones
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, SaldoExcedente, Referencia, CveConceptoContablePago, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaProveedor, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, SaldoExcedente), ImporteMX:=(SaldoExcedente) * tipoCambio, CvePersonal:=CvePersonal, CveCuenta:=CveCuentaProveedor, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal) Then
MsgError = "Detalle Reembolso Personal"
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, SaldoExcedente, Referencia, 132, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaOtrosProductos, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, SaldoExcedente), ImporteMX:=SaldoExcedente * tipoCambio, CvePersonal:=CvePersonal, CveCuenta:=CveCuentaOtrosProductos, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, SaldoExcedente, Referencia, 132, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaOtrosProductos, -1, CveIE:=CveIEPago, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, SaldoExcedente), ImporteMX:=SaldoExcedente * tipoCambio, CvePersonal:=CvePersonal, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal) Then
MsgError = "Detalle Reembolso Personal"
End If
@@ -1093,7 +1082,7 @@ Partial Class Compras_ReembolsosComprobaciones
If CveCajaChica > 0 Then
CveIEPago = 0
Dim FolioIENew = ObjIE.GetNextFolio(CveCajaChica, 6).ToString
- CveIEPago = ObjIE.AddBancos_IE(CveCajaChica, 6, Now, FolioIENew, gvr.DataKey("Proveedor"), ImporteMovto, CveMoneda, 0.0, $"{gvr.DataKey("Proveedor")} F:{gvr.DataKey("SerieFolio")} {If(DdlPersonal.Visible, DdlPersonal.SelectedItem.Text, DdlCajaChica.SelectedItem.Text)}", "", False, True, -1, CvePrePolizaPago, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked Or CveCajaChica > 0, True, False))
+ CveIEPago = ObjIE.AddBancos_IE(CveCajaChica, 6, TxtFechaPrePoliza.Text.ToDate, FolioIENew, gvr.DataKey("Proveedor"), ImporteMovto, CveMoneda, 0.0, $"{gvr.DataKey("Proveedor")} F:{gvr.DataKey("SerieFolio")} {If(DdlPersonal.Visible, DdlPersonal.SelectedItem.Text, DdlCajaChica.SelectedItem.Text)}", "", False, True, -1, CvePrePolizaPago, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked Or CveCajaChica > 0, True, False))
End If
End If
@@ -1127,23 +1116,23 @@ Partial Class Compras_ReembolsosComprobaciones
If UsuarioActual.Empresa.Funcionalidad(521) = "1" Then
If gvr.FCTextBox("TxtAbonar").Text.ToDecimal = gvr.FCLiteral("LtlSaldo").Text.ToDouble Then
'Agrego el IVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, gvr.DataKey("IVA").ToDecimal, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal), ImporteMX:=(gvr.DataKey("IVA").ToDecimal) * tipoCambio, CveCuenta:=CveCuentaIVAxAcreditar, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, gvr.DataKey("IVA").ToDecimal, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal), ImporteMX:=(gvr.DataKey("IVA").ToDecimal) * tipoCambio, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
'Agrego el IVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, False, gvr.DataKey("IVA").ToDecimal, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal), ImporteMX:=(gvr.DataKey("IVA").ToDecimal) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, False, gvr.DataKey("IVA").ToDecimal, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal), ImporteMX:=(gvr.DataKey("IVA").ToDecimal) * tipoCambio, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
End If
Else
'Agrego el IVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, gvr.DataKey("IVA").ToDecimal * PorcentajePago, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("IVA").ToDecimal * PorcentajePago) * tipoCambio, CveCuenta:=CveCuentaIVAxAcreditar, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, gvr.DataKey("IVA").ToDecimal * PorcentajePago, Referencia, 14, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAXAcreditar > 0, IdCtaContIVAXAcreditar, IdCtaIVAxAcreditar), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("IVA").ToDecimal * PorcentajePago) * tipoCambio, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
'Agrego el IVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, False, gvr.DataKey("IVA").ToDecimal * PorcentajePago, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("IVA").ToDecimal * PorcentajePago) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, False, gvr.DataKey("IVA").ToDecimal * PorcentajePago, Referencia, 19, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(IdCtaContIVAAcreditable > 0, IdCtaContIVAAcreditable, IdCtaIVAAcreditable), -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("IVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("IVA").ToDecimal * PorcentajePago) * tipoCambio, CvePersonal:=CvePersonal, PorcentajeImpuesto:=PorcentajeIVA) Then
MsgError = "Detalle"
End If
End If
@@ -1255,12 +1244,12 @@ Partial Class Compras_ReembolsosComprobaciones
End Select
'Agrego el RetIVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, False, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAXAcreditar, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAXAcreditar, -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CveCuenta:=CveCuentaIVAxAcreditar, CvePrePolizaOriginal:=CvePrePolizaExcedente, CvePersonal:=CvePersonal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, False, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAXAcreditar, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAXAcreditar, -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaExcedente, CvePersonal:=CvePersonal) Then
MsgError = "Detalle"
End If
'Agrego el RetIVA
- If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAAcreditable, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAAcreditable, -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CveCuenta:=CveCuentaIVAAcreditable, CvePrePolizaOriginal:=CvePrePolizaExcedente, CvePersonal:=CvePersonal) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago, Referencia, ConceptoContableRetIVAAcreditable, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaContableRetIVAAcreditable, -1, CveIE:=CveIEExcedente, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.DataKey("RetIVA").ToDecimal * PorcentajePago), ImporteMX:=(gvr.DataKey("RetIVA").ToDecimal * PorcentajePago) * tipoCambio, CvePrePolizaOriginal:=CvePrePolizaExcedente, CvePersonal:=CvePersonal) Then
MsgError = "Detalle"
End If
End If
@@ -1395,15 +1384,7 @@ Partial Class Compras_ReembolsosComprobaciones
If CvePrePolizaIERegistrado > 0 Then
If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaPersonal > 0 Then
If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaProveedor > 0 Then
- If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaIVAxAcreditar > 0 Then
- If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaIVAAcreditable > 0 Then
- Else
- MsgError = "No tiene cuenta contable SIG IVA Acreditable"
- End If
- Else
- MsgError = "No tiene cuenta contable SIG IVA x Acreditar"
- End If
Else
MsgError = "No tiene cuenta contable SIG de proveedor"
End If
@@ -1415,23 +1396,7 @@ Partial Class Compras_ReembolsosComprobaciones
If ChkChequeExcedente.Checked Then
If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaBancaria > 0 Then
If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaProveedor > 0 Then
- If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaIVAxAcreditar > 0 Then
- If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaIVAAcreditable > 0 Then
- If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaRetIVA > 0 Then
- If UsuarioActual.Empresa.UsaContabilidadSIG AndAlso CveCuentaRetISR > 0 Then
- Else
- MsgError = "No tiene cuenta contable SIG Ret ISR"
- End If
- Else
- MsgError = "No tiene cuenta contable SIG Ret IVA"
- End If
- Else
- MsgError = "No tiene cuenta contable SIG IVA Acreditable"
- End If
- Else
- MsgError = "No tiene cuenta contable SIG IVA x Acreditar"
- End If
Else
MsgError = "No tiene cuenta contable SIG de proveedor"
End If
diff --git a/Contabilidad/RegPrePoliza.aspx.vb b/Contabilidad/RegPrePoliza.aspx.vb
index 259ae97cc..899efff6b 100644
--- a/Contabilidad/RegPrePoliza.aspx.vb
+++ b/Contabilidad/RegPrePoliza.aspx.vb
@@ -289,23 +289,23 @@ Partial Class ContabilidadC_RegPrePoliza
CargaCuentas()
- If Request("CvePeriodo") IsNot Nothing AndAlso IsNumeric(Request("CvePeriodo")) AndAlso Request("CvePeriodo").ToEntero() > 0 Then
- ViewState("CvePeriodo") = Request("CvePeriodo").ToEntero()
- ViewState("CveProyecto") = Request("CveProyecto").ToEntero()
- ViewState("CveSubProyecto") = Request("CveSubProyecto").ToEntero()
- ViewState("CveTurno") = Request("CveTurno").ToEntero()
+ 'If Request("CvePeriodo") IsNot Nothing AndAlso IsNumeric(Request("CvePeriodo")) AndAlso Request("CvePeriodo").ToEntero() > 0 Then
+ ' ViewState("CvePeriodo") = Request("CvePeriodo").ToEntero()
+ ' ViewState("CveProyecto") = Request("CveProyecto").ToEntero()
+ ' ViewState("CveSubProyecto") = Request("CveSubProyecto").ToEntero()
+ ' ViewState("CveTurno") = Request("CveTurno").ToEntero()
- 'DdlPlantilla.Items.Add(New ListItem("Pago Nomina", "61"))
- 'DdlPlantilla.SelectedValue = "61"
- DdlPlantilla.Enabled = False
- DivAgregarConceptos.Visible = False
+ ' 'DdlPlantilla.Items.Add(New ListItem("Pago Nomina", "61"))
+ ' 'DdlPlantilla.SelectedValue = "61"
+ ' DdlPlantilla.Enabled = False
+ ' DivAgregarConceptos.Visible = False
- CargaNomina()
+ ' CargaNomina()
- RegistraScript("$(document).ready(function () { calculateCargo(); Sys.Application.add_load(function (s, e) { calculateCargo(); }); } );", 1)
- RegistraScript("$(document).ready(function () { calculateAbono(); Sys.Application.add_load(function (s, e) { calculateAbono(); }); } );", 2)
- RegistraScript("$(document).ready(function () { comparar(); Sys.Application.add_load(function (s, e) { comparar(); }); } );", 3)
- End If
+ ' RegistraScript("$(document).ready(function () { calculateCargo(); Sys.Application.add_load(function (s, e) { calculateCargo(); }); } );", 1)
+ ' RegistraScript("$(document).ready(function () { calculateAbono(); Sys.Application.add_load(function (s, e) { calculateAbono(); }); } );", 2)
+ ' RegistraScript("$(document).ready(function () { comparar(); Sys.Application.add_load(function (s, e) { comparar(); }); } );", 3)
+ 'End If
If IfNull(Request("Tipo"), "").ToString() <> "NOMPROV" Then
GvPrePoliza.Columns(3).Visible = False
@@ -360,81 +360,81 @@ Partial Class ContabilidadC_RegPrePoliza
End With
End Sub
- Private Sub CargaNomina()
- Dim CvePlantilla As Integer = DdlPlantilla.SelectedValue.ToEntero()
- Dim ObjNomina As New ClsNominas
- Dim ObjConta As New ClsContabilidad
+ 'Private Sub CargaNomina()
+ ' Dim CvePlantilla As Integer = DdlPlantilla.SelectedValue.ToEntero()
+ ' Dim ObjNomina As New ClsNominas
+ ' Dim ObjConta As New ClsContabilidad
- Dim Dt As DataTable = Nothing
- Dim Cuenta As String = ""
- Dim Concepto As String = ""
- Dim IdCuenta As Integer = 0
- Dim TipoMovto As Integer
- Dim CveConcepto As Integer
- Dim CodigoCuenta As String = ""
- Dim NombreCuenta As String = ""
- Dim Referencia As String = ""
- Dim EsComodin As Integer = 0
- DtMovimientos.Clear()
+ ' Dim Dt As DataTable = Nothing
+ ' Dim Cuenta As String = ""
+ ' Dim Concepto As String = ""
+ ' Dim IdCuenta As Integer = 0
+ ' Dim TipoMovto As Integer
+ ' Dim CveConcepto As Integer
+ ' Dim CodigoCuenta As String = ""
+ ' Dim NombreCuenta As String = ""
+ ' Dim Referencia As String = ""
+ ' Dim EsComodin As Integer = 0
+ ' DtMovimientos.Clear()
- If ObjNomina.GetProvisionNomina(CveProyecto, CveSubProyecto, CveTurno, CvePeriodo, UsuarioActual.CveEmpresa) Then
- Dt = ObjNomina.DtResultados
+ ' If ObjNomina.GetProvisionNomina(CveProyecto, CveSubProyecto, CveTurno, CvePeriodo, UsuarioActual.CveEmpresa) Then
+ ' Dt = ObjNomina.DtResultados
- For Each drt As DataRow In Dt.Rows
- Dim dr As DataRow = DtMovimientos.NewRow
+ ' For Each drt As DataRow In Dt.Rows
+ ' Dim dr As DataRow = DtMovimientos.NewRow
- If drt("NombreCompleto").ToString() = "" AndAlso ObjConta.GetRetCuenta(31, UsuarioActual.CveEmpresa) Then
- CveConcepto = 98
- Cuenta = "Nominas por Pagar"
- IdCuenta = ObjConta.DtResultados(0)("IdCtaContable").ToString().ToEntero()
- Concepto = "Pago Nomina"
- Referencia = "Pago Nomina"
- Else
- Concepto = drt("NombreCompleto")
- Referencia = ""
- CveConcepto = drt("CveConceptoContable").ToString().ToEntero()
- Cuenta = drt("ConceptoContable").ToString()
- IdCuenta = drt("IdCtaContable").ToString().ToEntero()
- End If
+ ' If drt("NombreCompleto").ToString() = "" AndAlso ObjConta.GetRetCuenta(31, UsuarioActual.CveEmpresa) Then
+ ' CveConcepto = 98
+ ' Cuenta = "Nominas por Pagar"
+ ' IdCuenta = ObjConta.DtResultados(0)("IdCtaContable").ToString().ToEntero()
+ ' Concepto = "Pago Nomina"
+ ' Referencia = "Pago Nomina"
+ ' Else
+ ' Concepto = drt("NombreCompleto")
+ ' Referencia = ""
+ ' CveConcepto = drt("CveConceptoContable").ToString().ToEntero()
+ ' Cuenta = drt("ConceptoContable").ToString()
+ ' IdCuenta = drt("IdCtaContable").ToString().ToEntero()
+ ' End If
- Dim drr As DataRow = DtCuentasContables.FiltroPrimero($"Id={IdCuenta}")
- CodigoCuenta = If(drr IsNot Nothing, drr("CuentaFormato").ToString(), "")
- NombreCuenta = If(drr IsNot Nothing, drr("Nombre").ToString(), "")
+ ' Dim drr As DataRow = DtCuentasContables.FiltroPrimero($"Id={IdCuenta}")
+ ' CodigoCuenta = If(drr IsNot Nothing, drr("CuentaFormato").ToString(), "")
+ ' NombreCuenta = If(drr IsNot Nothing, drr("Nombre").ToString(), "")
- TipoMovto = drt("TipoMovto")
+ ' TipoMovto = drt("TipoMovto")
- If TipoMovto = 0 Then
- dr("Cargo") = Math.Abs(drt("Importe").ToString().ToDecimal())
- dr("Abono") = 0
- Else
- dr("Cargo") = 0
- dr("Abono") = Math.Abs(drt("Importe").ToString().ToDecimal())
- End If
+ ' If TipoMovto = 0 Then
+ ' dr("Cargo") = Math.Abs(drt("Importe").ToString().ToDecimal())
+ ' dr("Abono") = 0
+ ' Else
+ ' dr("Cargo") = 0
+ ' dr("Abono") = Math.Abs(drt("Importe").ToString().ToDecimal())
+ ' End If
- dr("IdCuenta") = IdCuenta
- dr("CodigoCuenta") = CodigoCuenta & "
" & NombreCuenta
- dr("Cuenta") = Cuenta
- dr("Concepto") = Concepto
- dr("Descripcion") = Concepto
- dr("Referencia") = Referencia
- dr("TipoMovto") = TipoMovto
- dr("EsComodin") = EsComodin
- dr("CveConcepto") = CveConcepto
- dr("CveProveedor") = "-1"
- dr("CveSubProyecto") = drt("CveSubProyecto")
- dr("CvePersonal") = drt("CvePersonal")
- dr("CveClasificacion") = drt("CveClasificacion")
- dr("CveTipoGasto") = drt("CveTipoGasto")
+ ' dr("IdCuenta") = IdCuenta
+ ' dr("CodigoCuenta") = CodigoCuenta & "
" & NombreCuenta
+ ' dr("Cuenta") = Cuenta
+ ' dr("Concepto") = Concepto
+ ' dr("Descripcion") = Concepto
+ ' dr("Referencia") = Referencia
+ ' dr("TipoMovto") = TipoMovto
+ ' dr("EsComodin") = EsComodin
+ ' dr("CveConcepto") = CveConcepto
+ ' dr("CveProveedor") = "-1"
+ ' dr("CveSubProyecto") = drt("CveSubProyecto")
+ ' dr("CvePersonal") = drt("CvePersonal")
+ ' dr("CveClasificacion") = drt("CveClasificacion")
+ ' dr("CveTipoGasto") = drt("CveTipoGasto")
- DtMovimientos.Rows.Add(dr)
- Next
+ ' DtMovimientos.Rows.Add(dr)
+ ' Next
- GvMov.DataSource = DtMovimientos
- GvMov.DataBind()
- UPMovs.Update()
- End If
+ ' GvMov.DataSource = DtMovimientos
+ ' GvMov.DataBind()
+ ' UPMovs.Update()
+ ' End If
- End Sub
+ 'End Sub
Private Sub CargaPrePoliza()
BtnEliminar.Visible = True
@@ -1072,11 +1072,11 @@ Partial Class ContabilidadC_RegPrePoliza
Next
- If CvePeriodo > 0 Then
- If Not ObjNom.UpdateProvisionNomina(CvePeriodo, CvePrePoliza, UsuarioActual.CveEmpresa) Then
- MsgError = "No se pudo actualizar el periodo de la nómina"
- End If
- End If
+ 'If CvePeriodo > 0 Then
+ ' If Not ObjNom.UpdateProvisionNomina(CvePeriodo, CvePrePoliza, UsuarioActual.CveEmpresa) Then
+ ' MsgError = "No se pudo actualizar el periodo de la nómina"
+ ' End If
+ 'End If
If ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 1) Then
If ObjMov.ValorPolizaDescuadre > 0 Then
diff --git a/Contabilidad/RegPrePolizaS.aspx b/Contabilidad/RegPrePolizaS.aspx
index c626daa83..c59c4a659 100644
--- a/Contabilidad/RegPrePolizaS.aspx
+++ b/Contabilidad/RegPrePolizaS.aspx
@@ -579,10 +579,10 @@
| |
-
- |
-
- |
+
+ |
+
+ |
diff --git a/Inventarios/EntradasSalidas.aspx.vb b/Inventarios/EntradasSalidas.aspx.vb
index 13903b76f..41c8f6873 100644
--- a/Inventarios/EntradasSalidas.aspx.vb
+++ b/Inventarios/EntradasSalidas.aspx.vb
@@ -1679,7 +1679,7 @@ Partial Class Inventarios_EntradasSalidas
'Registro la prepóliza
If ObjInventario.GetMovimientosDetalle(CveMovimiento, UsuarioActual.CveEmpresa) Then
- Dim tValorInventario As Decimal = ObjInventario.DtResultados.SUM("Total", "").ToDecimal.RoundSQL()
+ Dim tValorInventario As Decimal = ObjInventario.DtResultados.SUMD("Total", "").RoundSQL()
Dim tValorOtro As Decimal = tValorInventario
Dim idCtaContable As Integer = 0
Dim IdCtaContableOtro As Integer = UsuarioActual.Empresa.IdCuentaOtrosIngresos
@@ -1762,7 +1762,7 @@ Partial Class Inventarios_EntradasSalidas
If UsuarioActual.Empresa.UsaAC AndAlso (DdlConcepto.SelectedValue = "3") AndAlso EsContabilizable Then
Dim DtII As DataTable = Nothing
Dim TotalDetalle As Double = 0.0
- Dim Importe As Double = DtMovimientos.SUM("Total", "Estatus IN ('','U')")
+ Dim Importe As Decimal = DtMovimientos.SUM("Total", "Estatus IN ('','U')")
'NOTA. CUANDO ES SALIDA, EN AUTOMATICO NO TENEMOS LOS VALORES DE LA SALIDA TODAVIA, Y POR ESO IMPORTE ES CERO, ES RECARGAR CON LOS DATOS YA INSERTADOS
If ObjInventario.GetMovimientosDetalle(CveMovimiento, UsuarioActual.CveEmpresa) Then
@@ -1812,7 +1812,7 @@ Partial Class Inventarios_EntradasSalidas
If IDPoliza > 0 Then
If ObjInventario.GetMovimientosDetalle(CveMovimiento, UsuarioActual.CveEmpresa) Then
Dim DtMovtos = ObjInventario.DtResultados
- Importe = DtMovtos.SUM("Total", "Estatus = ''")
+ Importe = DtMovtos.SUMD("Total", "Estatus = ''")
If Importe > 0 Then
If CuentaCargoCOG > 0 AndAlso CuentaAbonoAlmacen > 0 Then
@@ -4177,7 +4177,7 @@ Partial Class Inventarios_EntradasSalidas
'Obtiene valor salida
If Not ErrorMovInv AndAlso CveMovimientoSalida > 0 Then
If ObjInventario.GetMovimientosDetalle(CveMovimientoSalida, UsuarioActual.CveEmpresa) Then
- Dim tValorInventario As Decimal = ObjInventario.DtResultados.SUM("Total", "").ToDecimal.RoundSQL()
+ Dim tValorInventario As Decimal = ObjInventario.DtResultados.SUMD("Total", "").RoundSQL()
ValorSalida = tValorInventario
Dim drA2 As DataRow = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveAlmacen = {0}", DdlAlmacenInventarioFisico.SelectedValue))
If drA2 IsNot Nothing Then
diff --git a/Inventarios/EntregaAlmacen.aspx.vb b/Inventarios/EntregaAlmacen.aspx.vb
index a64e7c2db..1c4ce6bbf 100644
--- a/Inventarios/EntregaAlmacen.aspx.vb
+++ b/Inventarios/EntregaAlmacen.aspx.vb
@@ -644,8 +644,14 @@ Partial Class Inventarios_EntregaAlmacen
End If
End If
- If UsuarioActual.CveEmpresa = 119 AndAlso CveSubProyecto = 10276 Then
- ValidaLoteCaducidad = True
+ If UsuarioActual.CveEmpresa = 119 Then
+ Dim CveSubProyectoAlmacen As Integer = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveAlmacen:=CveAlmacen).FiltroPrimeroValor("CveSubProyecto", "").ToEntero
+ If CveSubProyectoAlmacen = 10276 Then
+ ValidaLoteCaducidad = True
+ Else
+ ValidaLoteCaducidad = False
+ End If
+
End If
If Not DtDatos.Columns.Contains("Serie") Then DtDatos.Columns.Add("Serie", GetType(String))
@@ -967,6 +973,7 @@ Partial Class Inventarios_EntregaAlmacen
e.Row.FCTextBox("TxtCaducidad").Visible = True
e.Row.FCLinkButton("LnkCaducidad").Visible = True
e.Row.FCTextBox("TxtCaducidad").readonly = True
+ CType(e.row.FindControl("RFVCaducidad"), RequiredFieldValidator).Enabled = False
' e.Row.FCTextBox("TxtCaducidad").enabled = True
Else
e.Row.FCTextBox("TxtCaducidad").Visible = False
@@ -2253,6 +2260,8 @@ Partial Class Inventarios_EntregaAlmacen
Next
If ErrorMovInv Then Exit For
+
+
Else
ErrorMovInv = True
End If
@@ -2300,6 +2309,7 @@ Partial Class Inventarios_EntregaAlmacen
End If
End If
'' TERMINA: APARTADOS
+ Dim TotalGarantia As Decimal = 0
' COMIENZA: GARANTIAS
If Not ErrorMovInv AndAlso TipoDocto.Contiene("Ing", "Rem") AndAlso UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso TipoMovimiento = 1 Then
@@ -2326,6 +2336,7 @@ Partial Class Inventarios_EntregaAlmacen
TextoError.AppendFormat("Ocurrió un error al procesar los conceptos de traspaso de apartado. Por favor vuelva a intentar.")
Exit For
End If
+ TotalGarantia += (RowGarantia("Cantidad").ToString().ToDecimal() * PU)
Next
End If
End If
@@ -2576,6 +2587,7 @@ Partial Class Inventarios_EntregaAlmacen
Dim CveAlmacenApartado = -1
Dim CveAlmacenOrigen = If(CveAlmacenTraspasoDestino > 0, CveAlmacenTraspasoDestino, DdlAlmacen.SelectedValue.ToEntero())
Dim CveSeccionAlmacen As Integer = 0
+ Dim ValorTraspaso As Decimal = 0
For Each Dr As DataRow In DtTempApartados.Rows
If CveMovimientoSalidaApartado = -1 Or CveAlmacenApartado <> Dr("CveAlmacen").ToString().ToEntero() Then
@@ -2613,46 +2625,58 @@ Partial Class Inventarios_EntregaAlmacen
End If
Next
- If Not ErrorMovInv Then
- For Each Dr1 As DataRow In DtTraspasos.Rows
- CveMovimientoSalida = Dr1("CveMovimientoSalida").ToString().ToEntero()
-
- CveMovimientoEntradaApartado = ObjInventario.AddMovimiento(Dr1("CveAlmacen").ToString().ToEntero(), 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
+ If Not ErrorMovInv Then
+
+ Dim CvePrePolizaTraspaso As Integer = ObjConta.AddPrePolizas("EA/Apart", 53, 0, 0, 1, TxtFecha.Text.ToDate, "Traspaso Apartado", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
+ If CvePrePolizaTraspaso > 0 Then
+
+ If Not ObjConta.AddPrePolizasDetalle(CvePrePolizaTraspaso, True, ValorTraspaso, TxtObservaciones.Text, 68, TxtObservaciones.Text, TxtFecha.Text.ToDate, -1, -1, CveMovimientoAlmacen:=CveMovimientoSalidaApartado, Contabilizable:=False, ImporteMX:=ValorTraspaso) Then
+ ErrorMovInv = True
+ End If
+
+ For Each Dr1 As DataRow In DtTraspasos.Rows
+ CveMovimientoSalida = Dr1("CveMovimientoSalida").ToString().ToEntero()
+
+ CveMovimientoEntradaApartado = ObjInventario.AddMovimiento(Dr1("CveAlmacen").ToString().ToEntero(), 9, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
-1, CveVentaSurtir, -1, -1, Observaciones:=TxtObservaciones.Text.Trim, CveAlmacenDestino:=DdlAlmacen.SelectedValue.ToEntero(),
CveMovimientoRelacionado:=CveMovimientoSalida, Guia:=TxtGuia.Text, CveContrato:=CveContrato, CveVendedor:=CveVendedor,
- CveCliente:=CveCliente, Modulo:="RE/G10")
- FolioEntrada = ObjInventario.Folio
-
- If Not CveMovimientoEntradaApartado > 0 Then
- ErrorMovInv = True
- TextoError.AppendFormat("Ocurrió un error al procesar los movimientos de traspaso de apartado. Por favor vuelva a intentar.")
- Exit For
- End If
-
- Dr1("CveMovimientoEntrada") = CveMovimientoEntradaApartado
- Dr1("FolioEntrada") = FolioEntrada
-
- If ObjInventario.GetMovimientosDetalle(CveMovimientoSalida, UsuarioActual.CveEmpresa) Then
- For Each Dr As DataRow In ObjInventario.DtResultados.Rows
- 'If CBool(Dr("AplicaSeccion")) Then
- ' CveSeccionAlmacen = GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, Dr1("CveAlmacen").ToString().ToEntero(), Dr("CvePS").ToString().ToEntero()).FiltroPrimeroValor("CveSeccionAlmacen").ToEntero()
- ' Dim a As String = String.Format("CveAlmacen={0}-CvePS:{1}-CveseccionAlmacen={2}", Dr1("CveAlmacen").ToString().ToEntero(), Dr("CvePS"), CveSeccionAlmacen)
- 'Else
- ' CveSeccionAlmacen = -1
- 'End If
- CveSeccionAlmacen = -3
-
- If Not ObjInventario.AddMovimientoDetalle(CveMovimientoEntradaApartado, Dr("Cantidad").ToString().ToDecimal, Dr("CveUM").ToString().ToEntero(), Dr("CvePS").ToString().ToEntero(), Dr("PU").ToString().ToDecimal, CveAF:=Dr("CveAF").ToString().ToEntero(), Serie:=Dr("Serie").ToString(), CveMovimientoDetalleEntrada:=Dr("CveMovimientoDetalle").ToString().ToEntero(), Lote:=Dr("Lote").ToString(), CveSeccionAlmacen:=CveSeccionAlmacen) Then
- ErrorMovInv = True
- TextoError.AppendFormat("Ocurrió un error al procesar los conceptos de traspaso de apartado. Por favor vuelva a intentar.")
- Exit For
- End If
- Next
- End If
-
- If ErrorMovInv Then Exit For
-
- Next
+ CveCliente:=CveCliente, Modulo:="RE/G10")
+ FolioEntrada = ObjInventario.Folio
+
+ If Not CveMovimientoEntradaApartado > 0 Then
+ ErrorMovInv = True
+ TextoError.AppendFormat("Ocurrió un error al procesar los movimientos de traspaso de apartado. Por favor vuelva a intentar.")
+ Exit For
+ End If
+
+ Dr1("CveMovimientoEntrada") = CveMovimientoEntradaApartado
+ Dr1("FolioEntrada") = FolioEntrada
+
+ If ObjInventario.GetMovimientosDetalle(CveMovimientoSalida, UsuarioActual.CveEmpresa) Then
+ ValorTraspaso = ObjInventario.DtResultados.SUMD("Total").RoundSQL
+ For Each Dr As DataRow In ObjInventario.DtResultados.Rows
+
+ CveSeccionAlmacen = -3
+
+ If Not ObjInventario.AddMovimientoDetalle(CveMovimientoEntradaApartado, Dr("Cantidad").ToString().ToDecimal, Dr("CveUM").ToString().ToEntero(), Dr("CvePS").ToString().ToEntero(), Dr("PU").ToString().ToDecimal, CveAF:=Dr("CveAF").ToString().ToEntero(), Serie:=Dr("Serie").ToString(), CveMovimientoDetalleEntrada:=Dr("CveMovimientoDetalle").ToString().ToEntero(), Lote:=Dr("Lote").ToString(), CveSeccionAlmacen:=CveSeccionAlmacen) Then
+ ErrorMovInv = True
+ TextoError.AppendFormat("Ocurrió un error al procesar los conceptos de traspaso de apartado. Por favor vuelva a intentar.")
+ Exit For
+ End If
+ Next
+ End If
+
+ If ErrorMovInv Then Exit For
+
+ If Not ErrorMovInv AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePolizaTraspaso, False, ValorTraspaso, TxtObservaciones.Text, 68, TxtObservaciones.Text, TxtFecha.Text.ToDate, -1, -1, CveMovimientoAlmacen:=CveMovimientoEntradaApartado, Contabilizable:=False, ImporteMX:=ValorTraspaso) Then
+ ErrorMovInv = True
+ End If
+ Next
+
+
+ Else
+ ErrorMovInv = True
+ End If
End If
End If
@@ -2701,6 +2725,7 @@ Partial Class Inventarios_EntregaAlmacen
ErrorMovInv = True
End If
End If
+ Dim TotalVirtual As Decimal = 0
' COMIENZA: VIRTUAL
If Not ErrorMovInv AndAlso TipoDocto.Contiene("Ing", "Dev") AndAlso UsuarioActual.Empresa.Funcionalidad(573) = "1" AndAlso CveMovimiento > 0 Then
@@ -2758,7 +2783,7 @@ Partial Class Inventarios_EntregaAlmacen
If CveMovimientoVirtual > 0 Then
For Each RowUsado As DataRow In DtPSVirtual.Rows
Dim CvePS = RowUsado("CvePS").ToString().ToEntero()
- Dim CantidadUsado As Double = RowUsado("Cantidad").ToString().ToDouble()
+ Dim CantidadUsado As Decimal = RowUsado("Cantidad").ToString().ToDecimal()
Dim PU As Decimal = RowUsado("Cargo").ToString().ToDecimal()
Dim CveUM As Integer = RowUsado("CveUM").ToString().ToEntero()
@@ -2767,7 +2792,14 @@ Partial Class Inventarios_EntregaAlmacen
TextoError.AppendFormat("Ocurrió un error al procesar los conceptos de traspaso de apartado. Por favor vuelva a intentar.")
Exit For
End If
- Next
+ TotalVirtual += (CantidadUsado * PU)
+ Next
+ 'insertar en prepóliza de la salida virtual
+ If Not ErrorMovInv Then
+ ErrorMovInv = Not GenerarPrePoliza(ObjInventario, ObjVentas, ObjConta, CveMovimientoVirtual, TextoError)
+
+ End If
+
Else
ErrorMovInv = True
End If
@@ -2920,7 +2952,6 @@ Partial Class Inventarios_EntregaAlmacen
Dim IdCtaContableAlmacen As Integer = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContable", $"CveAlmacen = {DdlAlmacen.SelectedValue}").ToEntero()
'Dim CveCuentaAlmacen As Integer = 0 'GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCtaContableSIG", $"CveAlmacen = {DdlAlmacen.SelectedValue}").ToEntero()
Dim IdCtaContable As Integer = 0
- Dim CveCuenta As Integer = 0
If tmpCostos.Rows.Count > 0 Then
@@ -2929,7 +2960,7 @@ Partial Class Inventarios_EntregaAlmacen
Dim CveCliente As Integer = ObjVentas.DtResultados(0)("CveCliente").ToString().ToEntero()
Dim ClienteNombre As String = ObjVentas.DtResultados(0)("ClienteNombre").ToString()
Dim Serie As String = ObjVentas.DtResultados(0)("SerieFolio").ToString()
- Dim TotalCosto As Decimal = DtCostos.SUMD("Total").RoundAD()
+ Dim TotalCosto As Decimal = DtCostos.SUMD("Total").RoundSQL()
Dim TotalCostoAcumulado As Decimal = 0
Dim cont As Integer = 1
@@ -2949,7 +2980,7 @@ Partial Class Inventarios_EntregaAlmacen
If CvePrePoliza > 0 Then
For Each RowInv As DataRow In tmpCostos.Rows
- ValorInventario = DtCostos.SUMD("Total", $"CveClasificacion = {RowInv("CveClasificacion")}").RoundAD()
+ ValorInventario = DtCostos.SUMD("Total", $"CveClasificacion = {RowInv("CveClasificacion")}").RoundSQL()
TotalCostoAcumulado += ValorInventario
'cuando es el último movimiento y hay diferencias en los importes
@@ -2959,10 +2990,9 @@ Partial Class Inventarios_EntregaAlmacen
'Concepto = String.Format("{0} - {1}", Row2("Clasificacion").ToString(), Row2("SubProyecto").ToString())
IdCtaContable = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostos", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
- CveCuenta = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("IdCuentaCostosSIG", $"CveClasificacion = {RowInv("CveClasificacion")}").ToEntero()
If Not ErrorMovInv Then
- If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ValorMultiplicador * ValorInventario, Serie, 69, Serie, Fecha, IdCtaContable, -1, CveVenta:=CveVentaSurtir, CveCliente:=CveCliente, CveMovimientoAlmacen:=CveMovimiento, CveSubProyecto:=CveSubProyecto, ImporteMX:=ValorMultiplicador * ValorInventario, CveCuenta:=CveCuenta, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero()) Then
+ If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ValorMultiplicador * ValorInventario, Serie, 69, Serie, Fecha, IdCtaContable, -1, CveVenta:=CveVentaSurtir, CveCliente:=CveCliente, CveMovimientoAlmacen:=CveMovimiento, CveSubProyecto:=CveSubProyecto, ImporteMX:=ValorMultiplicador * ValorInventario, CveClasificacion:=RowInv("CveClasificacion").ToString().ToEntero()) Then
ErrorMovInv = True
End If
End If
diff --git a/Nomina/Nomina2.aspx.cs b/Nomina/Nomina2.aspx.cs
index 5c0550336..dde8ba866 100644
--- a/Nomina/Nomina2.aspx.cs
+++ b/Nomina/Nomina2.aspx.cs
@@ -367,6 +367,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
dtConceptos = null;
DataTable dtPeriodo = new DataTable();
DataTable dtasistencia = new DataTable();
+ LnkAutorizar.Visible = false;
if (FiltCvePeriodo > 0)
{
@@ -380,7 +381,6 @@ public partial class Nomina_Nomina2 : ClsPaginas
int CvePrePolizaProvision = drow["CvePrePolizaProvision"].ToString().ToEntero();
int CvePrePolizaProvisionAsimilados = drow["CvePrePolizaAsimilables"].ToString().ToEntero();
LnkConceptoEmpleado.Visible = (Estatus == 1);
- LnkAutorizar.Visible = (Estatus == 1);
LnkRegistrarProvision.Visible = (Estatus >= 2) && CvePrePolizaProvision <= 0;
LnkConceptoEmpleado.Visible = (Estatus < 2);
LnkCargaAsistenciaMasiva.Visible = (Estatus < 2);
@@ -819,6 +819,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
}
#endregion
UpDatos.Update();
+ LnkAutorizar.Visible = dtempleados.COUNT("CvePersonal", " CvePersonal > 0 AND NomAutorizado =0")>0 ;
}
private void setGVNominas()
{
diff --git a/RH/CalculoSBC.aspx.cs b/RH/CalculoSBC.aspx.cs
index cddcad81f..0e672cbea 100644
--- a/RH/CalculoSBC.aspx.cs
+++ b/RH/CalculoSBC.aspx.cs
@@ -21,7 +21,16 @@ public partial class RH_CalculoSBC : ClsPaginas
//}
protected void Page_Load(object sender, EventArgs e)
{
+ if (!IsPostBack)
+ {
+ ADSNetLibrary.SIGAPI.Services.Agropecuaria.IAgropecuariaService servicioAgro = new ADSNetLibrary.SIGAPI.Services.Agropecuaria.AgropecuariaService(System.Configuration.ConfigurationManager.ConnectionStrings["Conexion"].ConnectionString);
+ ADSNetLibrary.SIGAPI.Models.Agropecuaria.Request.ActividadGET acmo = new ADSNetLibrary.SIGAPI.Models.Agropecuaria.Request.ActividadGET();
+ acmo.cveEmpresa = UsuarioActual.CveEmpresa; acmo.cveActividad = -1;
+ var obj = servicioAgro.ActividadesGet(acmo);
+ GVDetalleParteVariable.DataSource = obj.Result;
+ GVDetalleParteVariable.DataBind();
+ }
}
protected void LnkCalcular_Click(object sender, EventArgs e)
diff --git a/Ventas/ClientesAbonar.aspx b/Ventas/ClientesAbonar.aspx
index 969aec618..332b5e7ed 100644
--- a/Ventas/ClientesAbonar.aspx
+++ b/Ventas/ClientesAbonar.aspx
@@ -75,6 +75,7 @@
+
diff --git a/Ventas/ClientesAbonar.aspx.vb b/Ventas/ClientesAbonar.aspx.vb
index 5354d2399..194969e9c 100644
--- a/Ventas/ClientesAbonar.aspx.vb
+++ b/Ventas/ClientesAbonar.aspx.vb
@@ -78,22 +78,7 @@ Partial Class Ventas_ClientesAbonar
ViewState("IdCuentaBancariaComplementaria") = value
End Set
End Property
- Private Property CveCuentaBancaria As Integer
- Get
- Return ViewState("CveCuentaBancaria").ToString.ToEntero
- End Get
- Set(value As Integer)
- ViewState("CveCuentaBancaria") = value
- End Set
- End Property
- Private Property CveCuentaBancariaComplementaria As Integer
- Get
- Return ViewState("CveCuentaBancariaComplementaria").ToString.ToEntero
- End Get
- Set(value As Integer)
- ViewState("CveCuentaBancariaComplementaria") = value
- End Set
- End Property
+
Private Property NombreComercial As String
Get
Return ViewState("NombreComercial").ToString
@@ -158,38 +143,6 @@ Partial Class Ventas_ClientesAbonar
End Set
End Property
- Private Property CveCuentaCliente As Integer
- Get
- Return ViewState("CveCuentaCliente").ToString.ToEntero
- End Get
- Set(value As Integer)
- ViewState("CveCuentaCliente") = value
- End Set
- End Property
- Private ReadOnly Property CveCuentaMonedaExtranjera As Integer
- Get
- Return ViewState("CveCuentaMonedaExtranjera").ToString.ToEntero
- End Get
- End Property
-
- Private ReadOnly Property CveCuentaComplementaria As Integer
- Get
- Return ViewState("CveCuentaComplementaria").ToString.ToEntero
- End Get
- End Property
-
- Private ReadOnly Property CveCuentaRetIVA As Integer
- Get
- Return ViewState("CveCuentaRetIVA").ToString.ToEntero
- End Get
- End Property
- Private ReadOnly Property CveCuentaRetISR As Integer
- Get
- Return ViewState("CveCuentaRetISR").ToString.ToEntero
- End Get
- End Property
-
-
Private Property Mail As String
Get
If ViewState("Mail") Is Nothing Then
@@ -301,7 +254,6 @@ Partial Class Ventas_ClientesAbonar
If CargaCliente(CveCliente, CveMonedaFiltro) Then
IdCuentaBancaria = 0
- CveCuentaBancaria = 0
TxtOtrosImportes.Attributes.Add("onKeyUp", String.Format("FnSuma(this,{0},{1});", "TxtTotal", 0))
@@ -397,12 +349,6 @@ Partial Class Ventas_ClientesAbonar
ViewState("IdCtaContRetIVA") = ObjCliente.IdCtaContRetIVA
ViewState("IdCtaContRetISR") = ObjCliente.IdCtaContRetISR
- ViewState("CveCuentaCliente") = ObjCliente.CveCuentaClientes
- ViewState("CveCuentaMonedaExtranjera") = ObjCliente.CveCuentaMonedaExtranjera
- ViewState("CveCuentaComplementaria") = ObjCliente.CveCuentaComplementaria
- ViewState("CveCuentaRetIVA") = ObjCliente.CveCuentaRetIVA
- ViewState("CveCuentaRetISR") = ObjCliente.CveCuentaRetISR
-
ViewState("IdCtaAnticipo") = ObjCliente.IdCtaContAnticipos
ViewState("IdCtaContMonedaExtranjeraAnticipo") = ObjCliente.IdCtaMonedaExtranjeraAnticipos
ViewState("IdCtaContMonedaComplementariaAnticipo") = ObjCliente.IdCtaContCompAnticipos
@@ -483,8 +429,6 @@ Partial Class Ventas_ClientesAbonar
IdCuentaBancaria = dr("IdCtaContable").ToString.ToEntero
IdCuentaBancariaComplementaria = dr("IdCtaContableComplementaria").ToString.ToEntero
- CveCuentaBancaria = dr("IdCtaContableSIG").ToString.ToEntero
- CveCuentaBancariaComplementaria = dr("IdCtaContableComplementariaSIG").ToString.ToEntero
ValidaCuentaDePagoFormaDePago()
End If
@@ -720,6 +664,12 @@ Partial Class Ventas_ClientesAbonar
Exit Sub
End If
+ 'valida que no exceda lo seleccionado. con el valor del ie
+ If (RblTipoPago.SelectedValue = "3" AndAlso HdnIngresoImporte.value.todecimal < txttotal.text.todecimal) Then
+ Alert("Importe excedido para la aplicación", TipoMensaje.MsgAdvertencia)
+ Exit Sub
+ End If
+
Dim Cuenta As String = ""
Dim CuentaDeposito As String = ""
@@ -914,7 +864,6 @@ Partial Class Ventas_ClientesAbonar
Dim importeMX As Decimal
Dim FechaMovimiento As Date = TxtFechaDocumento.Text
Dim IdCtaContable As Integer = 0
- Dim CveCuenta As Integer = 0
Dim ConceptoMovimiento As String = ObjMov.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, ConceptoContable, NombreComercial, gvr.DataKey("SerieFolio").ToString, TxtFolio.Text.Trim)
Dim Referencia As String = gvr.DataKey("SerieFolio").ToString
Dim CveSubProyecto As Integer = gvr.DataKey("CveSubProyecto").ToEntero
@@ -945,25 +894,22 @@ Partial Class Ventas_ClientesAbonar
If gvr.DataKey("CveMoneda").ToEntero = 1 Then
IdCtaContable = If(EsAnticipoEspecial, IdCtaAnticipo, IdCuentaCliente)
ConceptoContable = If(EsAnticipoEspecial, 3, ConceptoContable)
- CveCuenta = If(EsAnticipoEspecial, -1, CveCuentaCliente)
Else
ConceptoMovimiento += $" TC:{tipoCambioVentaValuacion} ${ImporteMovimiento.FormatoNumero(2)}"
IdCtaContable = If(EsAnticipoEspecial, IdCtaContMonedaComplementariaAnticipo, IdCtaContComplementaria)
- CveCuenta = If(EsAnticipoEspecial, -1, CveCuentaComplementaria)
If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
importeMX = ImporteMovimiento
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, Referencia, If(gvr.DataKey("TipoDocto") = "Ant" AndAlso UsuarioActual.CveEmpresa = 119, 226, 207), ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=(ImporteMovimiento * tipoCambioVentaValuacion - ImporteMovimiento).RoundSQL, ImporteME:=ImporteMovimiento, CveCuenta:=CveCuenta, TipoCambio:=tipoCambioVentaValuacion) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, Referencia, If(gvr.DataKey("TipoDocto") = "Ant" AndAlso UsuarioActual.CveEmpresa = 119, 226, 207), ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=(ImporteMovimiento * tipoCambioVentaValuacion - ImporteMovimiento).RoundSQL, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioVentaValuacion) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
IdCtaContable = If(EsAnticipoEspecial, IdCtaContMonedaExtranjeraAnticipo, IdCtaContMonedaExtranjera)
- CveCuenta = If(EsAnticipoEspecial, -1, CveCuentaMonedaExtranjera)
ConceptoContable = If(EsAnticipoEspecial, 3, ConceptoContable)
End If
If EsAnticipoEspecial Then
- If ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, ImporteMovimiento, Referencia, 2, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=importeMX, CveCuenta:=CveCuenta, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=False) Then
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, Referencia, 95, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=importeMX, CveCuenta:=CveCuenta, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=False) Then
+ If ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, ImporteMovimiento, Referencia, 2, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=importeMX, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=False) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, Referencia, 95, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=importeMX, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=False) Then
MsgError = "No se pudo insertar la póliza"
End If
Else
@@ -1010,16 +956,6 @@ Partial Class Ventas_ClientesAbonar
End If
End If
- 'Conta SIG
- If CveCuentaRetIVA <> 0 Then
- CveCuenta = CveCuentaRetIVA
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
Case 313 'Ret Iva Servicios
If EsAnticipoEspecial Then Exit Select
@@ -1092,16 +1028,7 @@ Partial Class Ventas_ClientesAbonar
End If
End If
- 'Conta SIG
- If CveCuentaRetISR <> 0 Then
- CveCuenta = CveCuentaRetISR
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
+
Case 13 'Iva por Trasladar
If EsAnticipoEspecial Then Exit Select
If CveMoneda = 1 AndAlso gvr.DataKey("CveMoneda").ToEntero = 1 Then
@@ -1126,15 +1053,12 @@ Partial Class Ventas_ClientesAbonar
PorcentajeImpuesto = gvr.DataKey("PorcentajeIVA").ToDecimal
Dim IdCtaIVAXTrasladar As Integer = 0
- Dim CveCuentaIVAxTrasladar As Integer = 0
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
IdCtaIVAXTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVAXTrasladar").ToString.ToEntero
- CveCuentaIVAxTrasladar = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("CveCuentaIVAXTrasladar").ToString.ToEntero
End If
IdCtaContable = If(IdCtaIVAXTrasladar > 0, IdCtaIVAXTrasladar, UsuarioActual.Empresa.IdCuentaIVAxTrasladar)
- CveCuenta = If(CveCuentaIVAxTrasladar > 0, CveCuentaIVAxTrasladar, UsuarioActual.Empresa.CveCuentaIVAxTrasladar)
If tipoCambioVenta > 1 Then ConceptoMovimiento += $" TC:{tipoCambioVenta} ${ImporteMovimiento.FormatoNumero(2)}"
Case 62 'Ret IVA Trasladado
If EsAnticipoEspecial Then Exit Select
@@ -1175,16 +1099,6 @@ Partial Class Ventas_ClientesAbonar
End If
End If
- 'Conta SIG
- If CveCuentaRetIVA <> 0 Then
- CveCuenta = CveCuentaRetIVA
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetIVACirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
Case 314 'Ret Iva Servicios Traslado
If EsAnticipoEspecial Then Exit Select
@@ -1257,16 +1171,7 @@ Partial Class Ventas_ClientesAbonar
End If
End If
- 'Conta SIG
- If CveCuentaRetISR <> 0 Then
- CveCuenta = CveCuentaRetISR
- Else
- If ObjMov.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
- If ObjMov.DtResultados.Rows.Count > 0 Then
- CveCuenta = ObjMov.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
- End If
- End If
- End If
+
Case 61 'Iva Trasladado
If EsAnticipoEspecial Then Exit Select
If CveMoneda = 1 AndAlso gvr.DataKey("CveMoneda").ToEntero = 1 Then
@@ -1291,15 +1196,12 @@ Partial Class Ventas_ClientesAbonar
PorcentajeImpuesto = gvr.DataKey("PorcentajeIVA").ToDecimal
Dim IdCtaIVATrasladado As Integer = 0
- Dim CveCuentaIVATrasladado As Integer = 0
If GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows.Count > 0 Then
IdCtaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("IdCtaIVATrasladado").ToString.ToEntero
- CveCuentaIVATrasladado = GlobalDTClasificacionPorcentaje(UsuarioActual.CveEmpresa, PorcentajeIVA:=PorcentajeImpuesto).Rows(0)("CveCuentaIVATrasladado").ToString.ToEntero
End If
IdCtaContable = If(IdCtaIVATrasladado > 0, IdCtaIVATrasladado, UsuarioActual.Empresa.IdCuentaIVATrasladado)
- CveCuenta = If(CveCuentaIVATrasladado > 0, CveCuentaIVATrasladado, UsuarioActual.Empresa.CveCuentaIVATrasladado)
If tipoCambioPago > 1 Then ConceptoMovimiento += $" TC:{tipoCambioPago} ${ImporteMovimiento.FormatoNumero(2)}"
Case 38 'IEPS por trasladar
If EsAnticipoEspecial Then Exit Select
@@ -1324,7 +1226,6 @@ Partial Class Ventas_ClientesAbonar
CveSubProyectoContabilizar = CveSubProyecto
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSxTrasladar
- CveCuenta = UsuarioActual.Empresa.CveCuentaIEPSxTrasladar
Case 39 'IEPS Trasladado
If EsAnticipoEspecial Then Exit Select
If CveMoneda = 1 AndAlso gvr.DataKey("CveMoneda").ToEntero = 1 Then
@@ -1348,7 +1249,6 @@ Partial Class Ventas_ClientesAbonar
CveSubProyectoContabilizar = CveSubProyecto
IdCtaContable = UsuarioActual.Empresa.IdCuentaIEPSTrasladado
- CveCuenta = UsuarioActual.Empresa.CveCuentaIEPSTrasladado
Case 64 'Ganancia
If CveMoneda <> 1 OrElse gvr.DataKey("CveMoneda").ToEntero <> 1 Then
@@ -1530,7 +1430,7 @@ Partial Class Ventas_ClientesAbonar
' CveCuenta = CveCuentaCliente
' End If
- ' If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, Referencia, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE:=DdlIngreso.SelectedValue.ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveCliente:=CveCliente, ImporteMX:=importeMX, CveCuenta:=CveCuenta, CveSubProyecto:=CveSubProyectoContabilizar) Then
+ ' If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, Referencia, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE:=DdlIngreso.SelectedValue.ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveCliente:=CveCliente, ImporteMX:=importeMX, CveSubProyecto:=CveSubProyectoContabilizar) Then
' MsgError = "No se pudo insertar la póliza"
' End If
@@ -1538,7 +1438,7 @@ Partial Class Ventas_ClientesAbonar
' IdCtaContable = IdCtaContComplementaria
' CveCuenta = CveCuentaComplementaria
' If ImporteMovimiento <> 0 AndAlso (IdCtaContable > 0 Or UsuarioActual.CveEmpresa = 119) Then
- ' If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, 227, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE:=DdlIngreso.SelectedValue.ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveCliente:=CveCliente, ImporteMX:=ImporteMovimiento * tipoCambioPago - ImporteMovimiento, CveCuenta:=CveCuenta, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioPago) Then
+ ' If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, TxtObservaciones.Text, 227, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE:=DdlIngreso.SelectedValue.ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveCliente:=CveCliente, ImporteMX:=ImporteMovimiento * tipoCambioPago - ImporteMovimiento, , ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioPago) Then
' MsgError = "No se pudo insertar la póliza"
' End If
' importeMX = ImporteMovimiento
@@ -1557,7 +1457,7 @@ Partial Class Ventas_ClientesAbonar
If tipoCambioVenta > 1 Then ConceptoMovimiento += $" TC:{tipoCambioVenta} ${ImporteMovimiento.FormatoNumero(2)}"
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, ConceptoMovimiento, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, -1, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, CveProveedor:=DdlProveedorPagoInt.SelectedValue.ToEntero, ImporteMX:=importeMX, CveCuenta:=CveCuenta) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, ConceptoMovimiento, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, -1, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, CveProveedor:=DdlProveedorPagoInt.SelectedValue.ToEntero, ImporteMX:=importeMX) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -1575,13 +1475,7 @@ Partial Class Ventas_ClientesAbonar
idCuentaContabilizacion = 0
End If
- 'Conta SIG
- If (CveCuenta < 1 Or CveCuentaBancaria < 1) Then
- CuentasContablesInvalidasSIG.Append("
" & GlobalDTContaConceptosContables(-1).FiltroPrimero(String.Format("CveConceptoContable = {0}", ConceptoContable))("ConceptoContable").ToString)
- CveCuentaContabilizacion = 0
- End If
-
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, Referencia, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=importeMX, CveCuenta:=CveCuenta, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=PorcentajeImpuesto) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteMovimiento, Referencia, ConceptoContable, ConceptoMovimiento, FechaMovimiento, IdCtaContable, -1, CveIE, gvr.FCHyperLink("HplF2").Text.ToEntero, -1, CveSubProyectoContabilizar, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=importeMX, TipoCambio:=TipoCambioGeneral, TipoCambioPago:=tipoCambioPago, PorcentajeImpuesto:=PorcentajeImpuesto) Then
MsgError = "No se pudo insertar la póliza"
Exit For
End If
@@ -1599,18 +1493,18 @@ Partial Class Ventas_ClientesAbonar
If RblTipoPago.SelectedValue = "1" Then
If tipoCambioPago > 1 AndAlso CveMoneda = 2 Then
- If IdCuentaBancariaComplementaria > 0 OrElse CveCuentaBancariaComplementaria > 0 Then
+ If IdCuentaBancariaComplementaria > 0 Then
If CveMoneda = 2 AndAlso CveMonedaFiltro = 1 Then 'Si la venta viene en pesos y se va a pagar en DOLARES
tipoCambioPago = TxtTCDolares.Text.ToDecimal
ElseIf CveMoneda = 2 AndAlso CveMonedaFiltro = 2 Then
tipoCambioPago = TxtTCDolaresDolares.Text.ToDecimal
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, ObjIE.Folio, 30, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=TxtImporte.Text.Trim.ToDecimal, CveCuenta:=CveCuentaBancaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, ObjIE.Folio, 30, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=TxtImporte.Text.Trim.ToDecimal, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
- If MsgError = "" AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, If(CveMoneda = 1 AndAlso TxtTC.Visible, TxtImporte.Text.ToDecimal / TxtTC.Text.ToDecimal, TxtImporte.Text.ToDecimal), TxtObservaciones.Text, 204, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancariaComplementaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, (TxtImporte.Text.Trim.ToDecimal * tipoCambioPago) - TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal, 0), CveCuenta:=CveCuentaBancariaComplementaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If MsgError = "" AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, If(CveMoneda = 1 AndAlso TxtTC.Visible, TxtImporte.Text.ToDecimal / TxtTC.Text.ToDecimal, TxtImporte.Text.ToDecimal), TxtObservaciones.Text, 204, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancariaComplementaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, (TxtImporte.Text.Trim.ToDecimal * tipoCambioPago) - TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal, 0), TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
Else
@@ -1620,7 +1514,7 @@ Partial Class Ventas_ClientesAbonar
tipoCambioPago = TxtTCDolaresDolares.Text.ToDecimal
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, ObjIE.Folio, 30, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), CveCuenta:=CveCuentaBancaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, ObjIE.Folio, 30, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -1631,7 +1525,7 @@ Partial Class Ventas_ClientesAbonar
tipoCambioPago = TxtTCDolaresDolares.Text.ToDecimal
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, ObjIE.Folio, 30, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), CveCuenta:=CveCuentaBancaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, ObjIE.Folio, 30, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCuentaBancaria, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -1647,11 +1541,11 @@ Partial Class Ventas_ClientesAbonar
tipoCambioPago = TxtTCDolaresDolares.Text.ToDecimal
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 92, TxtObservaciones.Text + If(TxtTC.Visible, $" TC:{TxtTC.Text}", If(CveMoneda = 2, $" TC:{tipoCambioVenta}", "")), TxtFechaDocumento.Text, IdCtaContMonedaExtranjeraAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=TxtImporte.Text.Trim.ToDecimal, CveCuenta:=CveCuentaBancaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 92, TxtObservaciones.Text + If(TxtTC.Visible, $" TC:{TxtTC.Text}", If(CveMoneda = 2, $" TC:{tipoCambioVenta}", "")), TxtFechaDocumento.Text, IdCtaContMonedaExtranjeraAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=TxtImporte.Text.Trim.ToDecimal, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, If(CveMoneda = 1 AndAlso TxtTC.Visible, TxtImporte.Text.ToDecimal / TxtTC.Text.ToDecimal, TxtImporte.Text.ToDecimal), TxtObservaciones.Text, 227, TxtObservaciones.Text + If(TxtTC.Visible, $" TC:{TxtTC.Text}", If(CveMoneda = 2, $" TC:{tipoCambioVenta}", "")), TxtFechaDocumento.Text, IdCtaContMonedaComplementariaAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, (TxtImporte.Text.Trim.ToDecimal * tipoCambioPago) - TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal, 0), CveCuenta:=CveCuentaBancariaComplementaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, If(CveMoneda = 1 AndAlso TxtTC.Visible, TxtImporte.Text.ToDecimal / TxtTC.Text.ToDecimal, TxtImporte.Text.ToDecimal), TxtObservaciones.Text, 227, TxtObservaciones.Text + If(TxtTC.Visible, $" TC:{TxtTC.Text}", If(CveMoneda = 2, $" TC:{tipoCambioVenta}", "")), TxtFechaDocumento.Text, IdCtaContMonedaComplementariaAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, (TxtImporte.Text.Trim.ToDecimal * tipoCambioPago) - TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal, 0), TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
Else
@@ -1661,7 +1555,7 @@ Partial Class Ventas_ClientesAbonar
tipoCambioPago = TxtTCDolaresDolares.Text.ToDecimal
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 92, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCtaContMonedaExtranjeraAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), CveCuenta:=CveCuentaBancaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 92, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCtaContMonedaExtranjeraAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -1672,7 +1566,7 @@ Partial Class Ventas_ClientesAbonar
tipoCambioPago = TxtTCDolaresDolares.Text.ToDecimal
End If
- If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 92, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCtaAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), CveCuenta:=CveCuentaBancaria, TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
+ If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 92, TxtObservaciones.Text + If(CveMoneda = 2, $" TC:{tipoCambioPago}", ""), TxtFechaDocumento.Text, IdCtaAnticipo, -1, CveIE, -1, -1, -1, ViewState("CveCliente").ToString.ToEntero, ImporteMX:=If(CveMoneda = 2, TxtImporte.Text.Trim.ToDecimal * tipoCambioPago, TxtImporte.Text.Trim.ToDecimal), ImporteME:=If(CveMoneda = 2, TxtImporte.Text.ToDecimal, 0), TipoCambio:=tipoCambioPago, TipoCambioPago:=tipoCambioPago) Then
MsgError = "No se pudo insertar la póliza"
End If
End If
@@ -3179,15 +3073,19 @@ Partial Class Ventas_ClientesAbonar
Private Sub DdlIngreso_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlIngreso.SelectedIndexChanged
'saco la moneda de la selección
-
+ hdnIngresoImporte.Value = 0
If DdlIngreso.SelectedValue.ToEntero > 0 Then
Dim Banco As New ClsBancos
If Banco.GetBancosIE(DdlIngreso.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
CveMonedaPago = Banco.CveMoneda
+ Dim Deudores As New ClsMovimientos
+ If Deudores.GetIngresosSaldosDetalle(CveCliente, -1, UsuarioActual.CveEmpresa) Then
+ hdnIngresoImporte.Value = Deudores.DtResultados.FiltroPrimeroValor("Saldo", String.Format("CveIE = {0}", DdlIngreso.Selectedvalue))
+ End If
+ Deudores.Dispose()
End If
IdCuentaBancariaComplementaria = 0
- CveCuentaBancariaComplementaria = 0
Banco.Dispose()
Else
CveMonedaPago = -1
diff --git a/Ventas/Promociones.aspx.vb b/Ventas/Promociones.aspx.vb
index 54879aca4..c3a6844b2 100644
--- a/Ventas/Promociones.aspx.vb
+++ b/Ventas/Promociones.aspx.vb
@@ -458,7 +458,9 @@ Partial Class Ventas_Promociones
Dim TieneError = False
ObjVentas.IniciaTransacSQL()
- If ObjVentas.UpdatePromociones(TxtPromocion.Text.Trim, If(IsDate(TxtFechaI.Text), TxtFechaI.Text.ToDate, MinFecha), If(IsDate(TxtFechaF.Text), TxtFechaF.Text.ToDate, MaxFecha), DdlVendedor.SelectedValue.ToEntero, CveCliente, ChkEstatus.Checked, DdlMoneda.SelectedValue.ToEntero, UsuarioActual.CveUsuario, CvePromocion, DdlSubProyecto.SelectedValue.ToEntero, DdlMarca.SelectedValue.ToEntero) Then
+ If ObjVentas.UpdatePromociones(TxtPromocion.Text.Trim, If(IsDate(TxtFechaI.Text), TxtFechaI.Text.ToDate, MinFecha), If(IsDate(TxtFechaF.Text), TxtFechaF.Text.ToDate, MaxFecha),
+ DdlVendedor.SelectedValue.ToEntero, CveCliente, ChkEstatus.Checked, DdlMoneda.SelectedValue.ToEntero, UsuarioActual.CveUsuario,
+ CvePromocion, DdlSubProyecto.SelectedValue.ToEntero, DdlTipoAplicacion.SELECTEDVALUE.TOENTERO, UsuarioActual.CveEmpresa, CveMarca:=DdlMarca.SelectedValue.ToEntero) Then
For Each Dr As DataRow In TempDT.FiltraParametros("Estatus = 0").Rows
If Not ObjVentas.AddPromocionesDetalle(CvePromocion, Dr("CvePS").ToString.ToEntero, Dr("CveTipoPromocion").ToString.ToEntero, Dr("Promocion").ToString.ToDouble, Dr("PUAnterior").ToString.ToDouble, Dr("PUPromocion").ToString.ToDouble,
diff --git a/WEB.rar b/WEB.rar
deleted file mode 100644
index 7c07463c9..000000000
Binary files a/WEB.rar and /dev/null differ
diff --git a/WEB.zip b/WEB.zip
new file mode 100644
index 000000000..8f6967992
Binary files /dev/null and b/WEB.zip differ
diff --git a/packages.config b/packages.config
index f01499a91..53e53fe2e 100644
--- a/packages.config
+++ b/packages.config
@@ -3,6 +3,9 @@
+
+
+
@@ -19,6 +22,7 @@
+
@@ -36,10 +40,9 @@
-
+
-
-
+
@@ -48,6 +51,7 @@
+
@@ -56,8 +60,11 @@
+
-
+
+
+
diff --git a/vwd.webinfo b/vwd.webinfo
index 25dd68416..4f2b5ea5a 100644
--- a/vwd.webinfo
+++ b/vwd.webinfo
@@ -242,6 +242,12 @@
+
+
+
+
+
+