diff --git a/Bancos/PopIECompras.aspx b/Bancos/PopIECompras.aspx
index 420c6e20b..f76cdd80c 100644
--- a/Bancos/PopIECompras.aspx
+++ b/Bancos/PopIECompras.aspx
@@ -523,7 +523,7 @@
-
+
diff --git a/Bancos/PopIECompras.aspx.vb b/Bancos/PopIECompras.aspx.vb
index f487fadc2..31560b162 100644
--- a/Bancos/PopIECompras.aspx.vb
+++ b/Bancos/PopIECompras.aspx.vb
@@ -2562,7 +2562,7 @@ 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)("IdCtaContable").ToString.ToEntero
+ IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaIVAxAcreditar").ToString.ToEntero
End If
End If
@@ -2703,7 +2703,7 @@ 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)("IdCtaContable").ToString.ToEntero
+ IdCtaContable = ObjMov.DtResultados.Rows(0)("IdCuentaIVAAcreditable").ToString.ToEntero
End If
End If
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index 6906df883..f6c248137 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -4090,11 +4090,15 @@ Partial Class Compras_Compras
'DF - 10/04/2017
If UsuarioActual.TienePermisoProceso(187) Then
If TxtSerie.Text <> SerieVieja Then
- Dim SerieNueva As String = GlobalDTProveedorSucursales(CveProveedor, UsuarioActual.CveEmpresa).FiltroPrimeroValor("Serie", $"Serie = '{TxtSerie.Text}'").ToString
- If SerieNueva = "" Then
- Alert("La Serie no es válida, por favor revise que se encuentre dentro de la lista de las sucursales del proveedor.", TipoMensaje.MsgAdvertencia)
- Exit Sub
+ Dim dtt As DataTable = GlobalDTProveedorSucursales(CveProveedor, UsuarioActual.CveEmpresa)
+ If dtt IsNot Nothing AndAlso dtt.Rows.Count > 0 Then
+ Dim SerieNueva As String = dtt.FiltroPrimeroValor("Serie", $"Serie = '{TxtSerie.Text}'").ToString
+ If SerieNueva = "" Then
+ Alert("La Serie no es válida, por favor revise que se encuentre dentro de la lista de las sucursales del proveedor.", TipoMensaje.MsgAdvertencia)
+ Exit Sub
+ End If
End If
+
End If
End If
@@ -4637,20 +4641,7 @@ Partial Class Compras_Compras
If RBLPago.SelectedValue.ToEntero = 4 And EstatusCredito.Contiene(1, 101) Then
CveEstatusFactura = 6
End If
- 'hay amortización directa como descuento. RMF Temporal
- If UsuarioActual.CveEmpresa = 119 Then
- 'If LblAmortizacion.Text.ToDouble > 0 AndAlso TxtDescuento.Text.ToDouble = 0 Then
- ' TxtDescuento.Text = LblAmortizacion.Text
- ' LblAmortizacion.Text = "0.00"
- 'End If
- 'o si el descuento es igual a la amortizacion
- 'If LblAmortizacion.Text.ToDouble = TxtDescuento.Text.ToDouble Then
- ' TxtDescuento.Text = LblAmortizacion.Text
- ' LblAmortizacion.Text = "0.00"
- 'End If
-
- End If
'Compra
Dim CveFactura As Integer = -1
@@ -6702,7 +6693,7 @@ Partial Class Compras_Compras
CveMovimientoAlmacen = ObjOC.DtResultados.FiltroPrimeroValor("CveMovimientoAlmacen").ToEntero
Dim TCAjuste As Decimal = ObjOC.DtResultados.FiltroPrimeroValor("TipoCambioAjuste").ToDecimal
'RMF. falta verificar el costo indirecto de la OC
- If DdlMoneda.SelectedValue.ToEntero <> 1 And UsuarioActual.CveEmpresa.Contiene(119) Then
+ If DdlMoneda.SelectedValue.ToEntero <> 1 Then
TCO = TxtTC.Text.ToDecimal
ImporteCI176 = ObjOC.DtResultados.FiltroPrimeroValor("ImporteCI228").ToDecimal
CostoIndirectoAcum176 += ImporteCI176
@@ -6909,8 +6900,6 @@ Partial Class Compras_Compras
End If
-
- ' adfasdasd
'ChkNCInvNC
If Not RegistroCuentaPuente AndAlso Not ChkNCInvNC.Checked Then
@@ -6972,9 +6961,11 @@ Partial Class Compras_Compras
DTDistinct.Clear()
End If
+ Dim tTipoMovimiento As Boolean = TipoMovimiento
If DTDistinct.Rows.Count > 0 Then
For Each Row2 As DataRow In DTDistinct.Rows
+ tTipoMovimiento = TipoMovimiento
'DETERMINA IMPORTE
If UsuarioActual.Empresa.Funcionalidad(126) = "1" Then
importeMovimiento = DT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), String.Format("ISNULL(TipoAF,0) <> 2 And CveClasificacion = {0} And CveSubProyecto = {1} And ISNULL(CveTipoGasto,0) = {2}", Row2("CveClasificacion").ToString.ToEntero, Row2("CveSubProyecto").ToString.ToEntero, Row2("CveTipoGasto").ToString.ToEntero)).ToString.ToDecimal
@@ -6999,8 +6990,6 @@ Partial Class Compras_Compras
End If
-
-
'SEGMENTO DE NEGOCIO
Dim IdSegmentoNegocio As Integer = -1
Dim drT As DataRow = GlobalDTSubProyectos(-1, CveSubProyecto:=Row2("CveSubProyecto").ToString.ToEntero).FiltroPrimero(String.Format("CveSubProyecto = {0} ", Row2("CveSubProyecto").ToString.ToEntero))
@@ -7010,12 +6999,6 @@ Partial Class Compras_Compras
'AGREGA MOVIMIENTO
If importeMovimiento.RoundSQL <> 0 Then
- 'Conta ContPAQ
- ' If IdCtaContable = 0 Then
- ' CuentasContablesInvalidas.Append("
" & GlobalDTContaConceptosContables(-1).FiltroPrimero(String.Format("CveConceptoContable = {0}", 6))("ConceptoContable").ToString)
- ' idCuentaContabilizacion = 0
- 'End If
-
Dim tcvecon As Integer = 6
Dim tidctacon As Integer = 6
@@ -7031,17 +7014,23 @@ Partial Class Compras_Compras
tcvecon = 259
tidctacon = UsuarioActual.Empresa.Funcionalidad(405).ToEntero
+ ElseIf UsuarioActual.CveEmpresa = 119 AndAlso Row2("CveClasificacion").ToString = "20473" Then
+ 'CODIGO FIJO, SI ES LA CLASIFICACION DE "SEGURO/SERVICIO COSTO", SE ABONARÁ
+ tTipoMovimiento = True
+ importeMovimiento = -importeMovimiento
+ importeMN = -importeMN
End If
+
Dim usacomplementariaProveedor As Boolean = False
- usacomplementariaProveedor = If(tipoCambioActual > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119, 158), True, False)
+ usacomplementariaProveedor = If(tipoCambioActual > 1, True, False)
If usacomplementariaProveedor AndAlso DdlTipoComprobante.SelectedValue = "Ant" Then
'importeMovimiento
Concepto = $"{NombreProveedor} {TxtSerie.Text} - {TxtFolio.Text}"
importeMN = tipoCambioActual * importeMovimiento - importeMovimiento
- If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, 266, Concepto, FechaMovimiento, tidctacon, IdSegmentoNegocio, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, CveClasificacion:=Row2("CveClasificacion").ToString.ToEntero, CveSubProyecto:=Row2("CveSubProyecto").ToString.ToEntero, ImporteMX:=importeMN, ImporteME:=importeMovimiento, CveTipoGasto:=Row2("CveTipoGasto").ToString.ToEntero, TipoCambio:=tipoCambioActual, Contabilizable:=SeContabiliza) Then
+ If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, tTipoMovimiento, importeMovimiento, Referencia, 266, Concepto, FechaMovimiento, tidctacon, IdSegmentoNegocio, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, CveClasificacion:=Row2("CveClasificacion").ToString.ToEntero, CveSubProyecto:=Row2("CveSubProyecto").ToString.ToEntero, ImporteMX:=importeMN, ImporteME:=importeMovimiento, CveTipoGasto:=Row2("CveTipoGasto").ToString.ToEntero, TipoCambio:=tipoCambioActual, Contabilizable:=SeContabiliza) Then
ErrorPrepoliza = True
End If
importeMN = importeMovimiento
@@ -7051,7 +7040,7 @@ Partial Class Compras_Compras
If Not Insertado205 Then
- If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, tcvecon, Concepto, FechaMovimiento, tidctacon, IdSegmentoNegocio, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, CveClasificacion:=Row2("CveClasificacion").ToString.ToEntero, CveSubProyecto:=Row2("CveSubProyecto").ToString.ToEntero, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveTipoGasto:=Row2("CveTipoGasto").ToString.ToEntero, TipoCambio:=tipoCambioActual, Contabilizable:=SeContabiliza) Then
+ If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, tTipoMovimiento, importeMovimiento, Referencia, tcvecon, Concepto, FechaMovimiento, tidctacon, IdSegmentoNegocio, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, CveClasificacion:=Row2("CveClasificacion").ToString.ToEntero, CveSubProyecto:=Row2("CveSubProyecto").ToString.ToEntero, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveTipoGasto:=Row2("CveTipoGasto").ToString.ToEntero, TipoCambio:=tipoCambioActual, Contabilizable:=SeContabiliza) Then
ErrorPrepoliza = True
End If
@@ -7072,7 +7061,7 @@ Partial Class Compras_Compras
End If
Case 5 'Proveedores
If CveTipoConcepto = 2 Then ConceptoContable = 305 'cuando es acreedor
- Dim UsaComplementaria As Boolean = UsuarioActual.CveEmpresa.Contiene(119, 158)
+ Dim UsaComplementaria As Boolean = True
If tipoCambioActual <> 1 Then
Select Case ConceptoContable
Case 5
@@ -7378,7 +7367,7 @@ Partial Class Compras_Compras
End If
'AMORTIZACIÓN NC ESPECIAL COMPLEMENTARIA
- If ConceptoContableAnticipo.Contiene(60) And DdlMoneda.SelectedValue.ToEntero <> 1 And UsuarioActual.CveEmpresa.Contiene(119) Then
+ If ConceptoContableAnticipo.Contiene(60) And DdlMoneda.SelectedValue.ToEntero <> 1 Then
Dim importeMovimientoNC = Ant.Importe
Dim importeMNNC = 0.0D
Dim TipoCambioNC = Ant.TCCompra
@@ -7439,7 +7428,7 @@ Partial Class Compras_Compras
End If
End If
- ElseIf ConceptoContableAnticipo.Contiene(265) And DdlMoneda.SelectedValue.ToEntero <> 1 And UsuarioActual.CveEmpresa.Contiene(119) Then
+ ElseIf ConceptoContableAnticipo.Contiene(265) And DdlMoneda.SelectedValue.ToEntero <> 1 Then
Dim importeMovimientoNC = Ant.Importe
Dim importeMNNC = 0.0D
Dim TipoCambioNC = Ant.TCCompra
@@ -7534,7 +7523,7 @@ Partial Class Compras_Compras
Dim usacomplementariaAnticipo As Boolean = False
- usacomplementariaAnticipo = If(Ant.TCCompra > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119), True, False)
+ usacomplementariaAnticipo = If(Ant.TCCompra > 1, True, False)
Dim TipoCambioAnt As Decimal = Ant.TCCompra
@@ -7564,7 +7553,7 @@ Partial Class Compras_Compras
If CveTipoConcepto = 2 Then CveConceptoContableComplementaria = 307
Dim IdCtaContablePago As Integer = CtaProveedor
Dim usacomplementariaProveedor As Boolean = False
- usacomplementariaProveedor = If(tipoCambioActual > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119), True, False)
+ usacomplementariaProveedor = If(tipoCambioActual > 1, True, False)
If usacomplementariaProveedor Then
Concepto = $"{NombreProveedor} {TxtSerie.Text} - {TxtFolio.Text}"
importeMN = tipoCambioActual * importeMovimiento - importeMovimiento
@@ -8925,13 +8914,13 @@ Partial Class Compras_Compras
If DdlMoneda.SelectedValue.ToEntero <> 1 Then
IdCtaContable = CtaProveedorAnticiposExtranjera
If ObjConta.AddPrePolizasDetalle(CvePrePolizaNueva, TipoMovimiento, ImporteMovimiento, "", ConceptoContable, "", Fecha, IdCtaContable, -1, CveCompra:=CveCompraNC, CveProveedor:=CveProveedor, CveIE:=CveIE, ImporteMX:=ImporteMovimiento, CvePrePolizaOriginal:=CvePrePoliza, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioNC, CveCompraAmortizacion:=CveCompra) Then
- If UsuarioActual.CveEmpresa.Contiene(119) Then
- IdCtaContable = CtaProveedorAnticiposComplementaria
- If Not ObjConta.AddPrePolizasDetalle(CvePrePolizaNueva, TipoMovimiento, importeMN - ImporteMovimiento, "", 266, "", Fecha, IdCtaContable, -1, CveCompra:=CveCompraNC, CveProveedor:=CveProveedor, CveIE:=CveIE, ImporteMX:=importeMN - ImporteMovimiento, CvePrePolizaOriginal:=CvePrePoliza, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioNC, CveCompraAmortizacion:=CveCompra) Then
- ErrorMovtosCxP = 1
- Exit Select
- End If
+
+ IdCtaContable = CtaProveedorAnticiposComplementaria
+ If Not ObjConta.AddPrePolizasDetalle(CvePrePolizaNueva, TipoMovimiento, importeMN - ImporteMovimiento, "", 266, "", Fecha, IdCtaContable, -1, CveCompra:=CveCompraNC, CveProveedor:=CveProveedor, CveIE:=CveIE, ImporteMX:=importeMN - ImporteMovimiento, CvePrePolizaOriginal:=CvePrePoliza, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioNC, CveCompraAmortizacion:=CveCompra) Then
+ ErrorMovtosCxP = 1
+ Exit Select
End If
+
Else
ErrorMovtosCxP = 1
Exit Select
@@ -8962,7 +8951,7 @@ Partial Class Compras_Compras
ImporteMovimiento = ImporteMovimiento / gvr.DataKey("TCCompra").ToDecimal
End If
- If DdlMoneda.SelectedValue.ToEntero <> 1 And UsuarioActual.CveEmpresa.Contiene(119) Then
+ If DdlMoneda.SelectedValue.ToEntero <> 1 Then
IdCtaContable = CtaProveedorExtranjera
If ObjConta.AddPrePolizasDetalle(CvePrePolizaNueva, TipoMovimiento, ImporteMovimiento, ConceptoPartida, ConceptoContable, ConceptoPartida, Fecha, IdCtaContable, -1, CveCompra:=CveCompraNC, CveProveedor:=CveProveedor, CveIE:=CveIE, ImporteMX:=ImporteMovimiento, CvePrePolizaOriginal:=CvePrePoliza, ImporteME:=ImporteMovimiento, TipoCambio:=tipoCambioNC, CveCompraAmortizacion:=CveCompra) Then
IdCtaContable = CtaProveedorComplementaria
@@ -9008,7 +8997,7 @@ Partial Class Compras_Compras
Dim TipoCambioAnt = gvr.DataKey("TCCompra").ToDecimal
Dim usacomplementariaAnticipo As Boolean = False
- usacomplementariaAnticipo = If(TipoCambioAnt > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119), True, False)
+ usacomplementariaAnticipo = If(TipoCambioAnt > 1, True, False)
Dim ImporteAnt As Decimal = ImporteMovimiento
@@ -9107,7 +9096,7 @@ Partial Class Compras_Compras
ImporteMovimiento = sumaAmortizacion
importeMN = ImporteMovimiento * TipoCambio17
- If DdlMoneda.SelectedValue.ToEntero <> 1 And UsuarioActual.CveEmpresa.Contiene(119) Then
+ If DdlMoneda.SelectedValue.ToEntero <> 1 Then
IdCtaContable = CtaProveedorExtranjera
If ObjConta.AddPrePolizasDetalle(CvePrePolizaNueva, TipoMovimiento, ImporteMovimiento, Concepto, ConceptoContable, Concepto, Fecha, IdCtaContable, -1, CveCompra:=CveCompra, CveCompraAmortizacion:=CveCompraNC, CveProveedor:=CveProveedor, CveIE:=CveIE, ImporteMX:=ImporteMovimiento, CvePrePolizaOriginal:=CvePrePoliza, ImporteME:=ImporteMovimiento, TipoCambio:=TipoCambio17) Then
@@ -11041,18 +11030,6 @@ Partial Class Compras_Compras
If Not (e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5) Then
If e.Row.RowIndex = 0 Then
- 'e.Row.Cells(0).Width = Unit.Pixel(15)
- 'e.Row.Cells(1).Width = Unit.Pixel(45)
- 'e.Row.Cells(2).Width = Unit.Pixel(70)
- 'e.Row.Cells(3).Width = Unit.Pixel(230)
- 'e.Row.Cells(4).Width = Unit.Pixel(202)
- 'e.Row.Cells(5).Width = Unit.Pixel(155)
- 'e.Row.Cells(6).Width = Unit.Pixel(155)
- 'e.Row.Cells(7).Width = Unit.Pixel(50)
- 'e.Row.Cells(8).Width = Unit.Pixel(80)
- 'e.Row.Cells(9).Width = Unit.Pixel(80)
- 'e.Row.Cells(10).Width = Unit.Pixel(43)
- 'e.Row.Cells(11).Width = Unit.Pixel(43)
If UsuarioActual.Empresa.UsaAC Then 'AndAlso (CveFactura > 0 Or CveCompra > 0)
e.Row.Cells(13).Width = Unit.Pixel(150)
@@ -11243,10 +11220,6 @@ Partial Class Compras_Compras
GvPS.DataSource = TmpDT
GvPS.DataBind()
- 'GVAF.DataSource = TmpDT
- 'GVAF.DataBind()
- ''UpnAF.Update()
-
CalculaTotales(True)
CargaGvInv()
CargaGVsAF()
@@ -11278,17 +11251,7 @@ Partial Class Compras_Compras
Private Sub GeneraGlobalDT(data As Object)
GlobalDTPSSimplificado(UsuarioActual.CveEmpresa) = Nothing
GlobalDTProductosServiciosEquivalencias(-1, -1, UsuarioActual.CveEmpresa) = Nothing
- 'Dim ObjPS As New ClsProductosServicios
- 'If (ObjPS.GetPSSimplificado(-1)) Then
- ' Application("GlobalDTPSSimplificado") = ObjPS.DtResultados.AsEnumerable
- 'End If
-
- 'If ObjPS.GetPSEquivalencias(-1, -1) Then
- ' GlobalDTProductosServiciosEquivalencias(-1, -1, UsuarioActual.CveEmpresa) = ObjPS.DtResultados
- 'End If
-
- 'ObjPS.Dispose()
End Sub
Private Function notienepresupuesto() As Boolean
Dim notienerecursos = False
@@ -11361,21 +11324,7 @@ Partial Class Compras_Compras
DTConceptos.Columns.Add("Total", GetType(Double))
DTConceptos.Columns.Add("Amortizacion", GetType(Double))
End Sub
- 'Private Sub AddPS(Cantidad As Double, UM As String, PS As String, PU As Double, IVA As Double, Descuento As Double, Optional Total As Double = 0)
- ' Dim Row As DataRow = Nothing
- ' Row = DTConceptos.NewRow()
- ' Row("Consec") = DTConceptos.Rows.Count + 1
- ' Row("Cantidad") = Cantidad
- ' Row("UM") = UM
- ' Row("CveClasificacion") = -1
- ' Row("PS") = PS
- ' Row("PU") = PU
- ' Row("IVA") = IVA
- ' Row("Total") = If(Total > 0, Total, Cantidad * PU)
- ' Row("Descuento") = Descuento
- ' DTConceptos.Rows.Add(Row)
- 'End Sub
Private Sub CreaDTCompras()
TmpDT = New DataTable
@@ -11603,26 +11552,6 @@ Partial Class Compras_Compras
End Sub
- 'Private Sub AddDTEnvio(Cantidad As Double, UM As String, CveUM As Integer, CvePS As Integer, PS As String, PU As Double, CveAlmacen As Integer, CveEq As Integer)
-
- ' Dim dr As DataRow = DtInv.NewRow
-
- ' dr("Cantidad") = Cantidad
- ' dr("UM") = UM
- ' dr("CveUM") = CveUM
- ' dr("CvePS") = CvePS
- ' dr("PS") = PS
- ' dr("PU") = PU
- ' dr("CveAlmacen") = CveAlmacen
- ' dr("CveEq") = CveEq
-
- ' DtInv.Rows.InsertAt(dr, hdnIndexInv.Value.ToEntero + 1)
-
- ' GvInv.DataSource = DtInv
- ' GvInv.DataBind()
-
-
- 'End Sub
Protected Sub RecargaMaximum_Click(sender As Object, e As System.EventArgs)
@@ -11723,62 +11652,6 @@ Partial Class Compras_Compras
#End Region
#Region " ALGO DE AF QUE NUNCA SE USABA "
- 'Protected Sub GVAF_RowCreated(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVAF.RowCreated
- ' If e.Row.RowType = DataControlRowType.DataRow AndAlso (e.Row.RowState = DataControlRowState.Alternate OrElse e.Row.RowState = DataControlRowState.Normal) Then
- ' e.Row.FCDropDownList("DdlTipoActivoFijo").DataSource = TmpDTTiposAF
- ' e.Row.FCDropDownList("DdlTipoActivoFijo").DataBind()
-
- ' e.Row.FCDropDownList("DdlSubTipoActivoFijo").DataSource = Nothing
- ' e.Row.FCDropDownList("DdlSubTipoActivoFijo").DataBind()
- ' e.Row.FCDropDownList("DdlSubTipoActivoFijo").Items.Insert(0, New ListItem("Seleccione", "-1"))
-
-
- ' e.Row.FCDropDownList("DdlAF").DataSource = Nothing
- ' e.Row.FCDropDownList("DdlAF").DataBind()
- ' e.Row.FCDropDownList("DdlAF").Items.Insert(0, New ListItem("Seleccione", "-1"))
-
- ' End If
- 'End Sub
-
- 'Protected Sub GVAF_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVAF.RowDataBound
- ' If e.Row.RowType = DataControlRowType.DataRow Then
- ' If e.Row.RowIndex = 0 Then
- ' e.Row.Cells(0).Width = Unit.Pixel(20)
- ' e.Row.Cells(1).Width = Unit.Pixel(140)
- ' e.Row.Cells(2).Width = Unit.Pixel(250)
- ' End If
-
- ' e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Right
- ' e.Row.Cells(1).HorizontalAlign = HorizontalAlign.Left
- ' e.Row.Cells(2).HorizontalAlign = HorizontalAlign.Left
- ' End If
- 'End Sub
-
- 'Protected Sub DdlTipoActivoFijo_SelectedIndexChanged(sender As Object, e As System.EventArgs)
- ' Dim Array() As String = Nothing
- ' Dim DdlGVSubTipoAF As DropDownList = Nothing
-
- ' Array = DirectCast(sender, DropDownList).ClientID.Split("_"c)
- ' If Array.Length > 0 Then
- ' DdlGVSubTipoAF = DirectCast(GVAF.Rows(Array(3).ToEntero).Controls(4).Controls(1), DropDownList)
- ' End If
-
- ' If DdlGVSubTipoAF IsNot Nothing Then CargaSubTipoAF(DirectCast(sender, DropDownList), DdlGVSubTipoAF)
- 'End Sub
-
- 'Protected Sub GvOCC2_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvOCC2.RowDataBound
- ' If e.Row.RowType = DataControlRowType.DataRow Then
-
- ' e.Row.Cells(0).Text = (e.Row.RowIndex + 1).ToString
-
- ' End If
- 'End Sub
-
- 'Protected Sub chkFuncionariosEmpleados_CheckedChanged(sender As Object, e As EventArgs) Handles chkFuncionariosEmpleados.CheckedChanged
- ' PnlPagoContado.Visible = Not chkFuncionariosEmpleados.Checked
- ' PnlFuncionarioEmpleado.Visible = chkFuncionariosEmpleados.Checked
- ' UPCondicionesPago.Update()
- 'End Sub
Protected Sub BtnOCAceptar_Click(sender As Object, e As EventArgs) Handles BtnOCAceptar.Click
'carga la OC
Dim CveOC As Integer = -1
@@ -11808,13 +11681,6 @@ Partial Class Compras_Compras
OC.Dispose()
End If
- 'GvOCC.DataSource = TmpDT
- 'GvOCC.DataBind()
- 'GvOCC2.DataSource = dt
- 'GvOCC2.DataBind()
-
- 'UpnAF.Update()
-
End Sub
#End Region
@@ -12881,12 +12747,6 @@ Partial Class Compras_Compras
Dim dr As DataRow
dr = DtAcreedores.FiltroPrimero(String.Format("CveProveedor = {0}", DdlAcreedor.SelectedValue))
- 'If EmpresaPrueba Then
- ' dr = DtAcreedores.FiltroPrimero(String.Format("CveProveedor = {0}", DdlAcreedor.SelectedValue))
- 'Else
- ' dr = DtAcreedores.FiltroPrimero(String.Format("CveProveedor = {0}", DdlDeudor.SelectedValue))
- 'End If
-
If dr IsNot Nothing Then
Dim tSaldo As Double = dr("Saldo").ToString.ToDouble
@@ -12976,12 +12836,6 @@ Partial Class Compras_Compras
UpTabs.Update()
-
-
-
-
-
- 'DdlProveedor.Attributes.Add("onclick", "CargaProveedores();")
End Sub
Protected Sub DdlCuenta_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlCuenta.SelectedIndexChanged
Dim Folio As Long
@@ -13532,12 +13386,6 @@ Partial Class Compras_Compras
For Each gvr As GridViewRow In GvPS.Rows
dr = TmpDT.Rows(gvr.RowIndex)
- 'DtDetalle.Rows(gvr.RowIndex)("CveClasificacionOG") = gvr.FCDropDownList("DdlAC5").SelectedValue.ToEntero
- 'DtDetalle.Rows(gvr.RowIndex)("CveProgramaOperativo") = gvr.FCDropDownList("DdlAC1").SelectedValue.ToEntero
- 'DtDetalle.Rows(gvr.RowIndex)("CveUnidadAdministrativa") = gvr.FCDropDownList("DdlAC2").SelectedValue.ToEntero
- 'DtDetalle.Rows(gvr.RowIndex)("CveFuenteFinanciamiento") = gvr.FCDropDownList("DdlAC3").SelectedValue.ToEntero
- 'DtDetalle.Rows(gvr.RowIndex)("CveTipoGasto") = gvr.FCDropDownList("DdlAC4").SelectedValue.ToEntero
-
dr("CveProgramaOperativo") = gvr.FCDropDownList("DdlAC1").SelectedValue.ToEntero
dr("CveUnidadAdministrativa") = gvr.FCDropDownList("DdlAC2").SelectedValue.ToEntero
dr("CveFuenteFinanciamiento") = gvr.FCDropDownList("DdlAC3").SelectedValue.ToEntero
diff --git a/Compras/RepProductosServiciosDetalle.aspx.vb b/Compras/RepProductosServiciosDetalle.aspx.vb
index d77fcd5c0..9e444510f 100644
--- a/Compras/RepProductosServiciosDetalle.aspx.vb
+++ b/Compras/RepProductosServiciosDetalle.aspx.vb
@@ -149,17 +149,21 @@ Partial Class Compras_RepProductosServiciosDetalle
'DdlCategoria.SelectedValueExist(Categoria)
DdlClasificacion.SelectedValueExist(Clasificacion)
- If PS <> "-1" Then
+ If PS.ToEntero > 1 Then
DdlPS.SelectedValue = PS
- DdlPS.SelectedText = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=PS.ToEntero)(0)("PSCodigo").ToString
+ DdlPS.SelectedText = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=PS.ToEntero).FiltroPrimeroValor("PSCodigo")
End If
'DdlSubProyecto.SelectedValueExist(SubProyecto)
DdlFamilia.SelectedValueExist(Familia)
DdlSubFamilia.SelectedValueExist(SubFamilia)
- DdlProveedor.SelectedValue = Proveedor
+
If Proveedor.ToEntero > 0 Then
- DdlProveedor.SelectedText = GlobalDTCompProveedores(UsuarioActual.CveEmpresa).FiltraParametros($"CveProveedor = {Proveedor}").Rows(0)("RazonSocial").ToString
+ Dim Dr As DataRow = GlobalDTCompProveedores(UsuarioActual.CveEmpresa, Proveedor.ToEntero).FiltroPrimero("")
+ If Dr IsNot Nothing Then
+ DdlProveedor.SelectedText = Dr("RazonSocial").ToString
+ DdlProveedor.SelectedValue = Proveedor
+ End If
Else
DdlProveedor.SelectedText = "Todos"
End If
@@ -200,8 +204,10 @@ Partial Class Compras_RepProductosServiciosDetalle
DdlClasificacion.DataBind()
'CargaProveedor
- DdlProveedor.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa)
- DdlProveedor.DataBind()
+ DdlProveedor.setEsWebService(True)
+ DdlProveedor.Attributes.Add("data-metodo", "getproveedores")
+ DdlProveedor.SelectedText = "Todos"
+ DdlProveedor.SelectedValue = "-1"
'CargaUsuarios
DdlUsuario.DataSource = GlobalDTUsuarios.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
diff --git a/Contabilidad/RegPrePoliza.aspx.vb b/Contabilidad/RegPrePoliza.aspx.vb
index 8630e7aa5..6f47d8baa 100644
--- a/Contabilidad/RegPrePoliza.aspx.vb
+++ b/Contabilidad/RegPrePoliza.aspx.vb
@@ -371,6 +371,7 @@ Partial Class ContabilidadC_RegPrePoliza
.Add("ContadoImporte", Type.GetType("System.Double"))
.Add("ContadoBeneficiario", Type.GetType("System.String"))
.Add("ContadoObservaciones", Type.GetType("System.String"))
+ .Add("FolioPoliza", Type.GetType("System.Int32"))
End With
End Sub
diff --git a/Contratos/ContratoObra.aspx.vb b/Contratos/ContratoObra.aspx.vb
index ffd027ab3..14edb0b72 100644
--- a/Contratos/ContratoObra.aspx.vb
+++ b/Contratos/ContratoObra.aspx.vb
@@ -4387,7 +4387,7 @@ Partial Class Contratos_ContratoObra
DTCargaPresupuesto = CargaPresupuestoExcel("Presupuesto")
If DTCargaPresupuesto.Rows.Count > 0 Then
- ProcesaDatosCargaPresupuesto(DTCargaPresupuesto, Nothing, Nothing, Nothing)
+ ProcesaDatosCargaPresupuesto(EnumTipoCargaPresupuesto.Ventas, DTCargaPresupuesto, Nothing, Nothing, Nothing)
Else
Alert("No se encintraron partidas en el documento", TipoMensaje.MsgAdvertencia)
End If
@@ -4399,7 +4399,7 @@ Partial Class Contratos_ContratoObra
DTCargaPresupuestoFlotillas = CargaPresupuestoExcel("Maquinaria")
DTCargaPresupuestoIndirectos = CargaPresupuestoExcel("Indirectos")
- ProcesaDatosCargaPresupuesto(DTCargaPresupuesto, DTCargaPresupuestoManoObra, DTCargaPresupuestoFlotillas, DTCargaPresupuestoIndirectos)
+ ProcesaDatosCargaPresupuesto(EnumTipoCargaPresupuesto.Control, DTCargaPresupuesto, DTCargaPresupuestoManoObra, DTCargaPresupuestoFlotillas, DTCargaPresupuestoIndirectos)
End If
@@ -4551,15 +4551,20 @@ Partial Class Contratos_ContratoObra
'si el presupuesto es de ventas. solo valida con el codigo del producto
'si es presupuesto es de control, valida por ambos
- If CvePS = -1 AndAlso TipoPresupuesto = EnumTipoCargaPresupuesto.Control Then
+ If CvePS = -1 Then
- StrArray = GetPS("PS", DrowPS("Producto").ToString).Split("|"c)
- If StrArray.Length > 0 Then
- If CBool(StrArray(0)) = True Then
- CvePS = StrArray(1).ToEntero
+ 'si es presup ventas, busca por producto,
+ If TipoPresupuesto = EnumTipoCargaPresupuesto.Control Then
+
+ StrArray = GetPS("PS", DrowPS("Producto").ToString).Split("|"c)
+ If StrArray.Length > 0 Then
+ If CBool(StrArray(0)) = True Then
+ CvePS = StrArray(1).ToEntero
+ End If
End If
End If
+
If CvePS = -1 Then
Dim ObjPS As New ClsProductosServicios
@@ -4586,8 +4591,7 @@ Partial Class Contratos_ContratoObra
End If
ObjPS.Dispose()
- Else
- RowNoEncontrados &= "Producto: " & StrArray(1) & "<\BR>"
+
End If
End If
diff --git a/Empresas/146/Formatos/Cotizacion.rdlc b/Empresas/146/Formatos/Cotizacion.rdlc
index 83c342287..309844edc 100644
--- a/Empresas/146/Formatos/Cotizacion.rdlc
+++ b/Empresas/146/Formatos/Cotizacion.rdlc
@@ -1245,25 +1245,7 @@
2pt
-
-
- Embedded
- VISTAPREVIA22
- FitProportional
- 0.01389in
- 7.40306in
- 6.34944in
- 0.09753in
- 20
-
- =IIf(Parameters!CveVenta.Value > 0, True,False)
-
-
-
-
-
+
6.36333in
diff --git a/Empresas/158/Formatos/Factura.rdlc b/Empresas/158/Formatos/Factura.rdlc
index 12ee27d56..03a985ccb 100644
--- a/Empresas/158/Formatos/Factura.rdlc
+++ b/Empresas/158/Formatos/Factura.rdlc
@@ -1,5 +1,5 @@
-
+
0
@@ -4892,434 +4892,7 @@
ReportParameter1
-
-
- 2
- 42
-
-
- 0
- 0
- ClienteCodigo
-
-
- 1
- 0
- ClienteNombre
-
-
- 0
- 1
- ClienteDireccion
-
-
- 1
- 1
- ClienteLugar
-
-
- 0
- 2
- ClienteTelefono
-
-
- 1
- 2
- ClienteContacto
-
-
- 0
- 3
- ClienteContactoMail
-
-
- 1
- 3
- ClienteCalle
-
-
- 0
- 4
- ClienteColonia
-
-
- 1
- 4
- ClienteCiudad
-
-
- 0
- 5
- ClienteMunicipio
-
-
- 1
- 5
- ClienteEstado
-
-
- 0
- 6
- ClienteCP
-
-
- 1
- 6
- ClientePais
-
-
- 0
- 7
- ClienteNoInt
-
-
- 1
- 7
- ClienteNoExt
-
-
- 0
- 8
- ClienteRFC
-
-
- 1
- 8
- ImporteLetra
-
-
- 0
- 9
- Observaciones
-
-
- 1
- 9
- CveVendedor
-
-
- 0
- 10
- Status
-
-
- 1
- 10
- FechaSolicitud
-
-
- 0
- 11
- Folio
-
-
- 1
- 11
- Descuento
-
-
- 0
- 12
- SubTotal
-
-
- 1
- 12
- IVA
-
-
- 0
- 13
- Total
-
-
- 1
- 13
- Fecha
-
-
- 0
- 14
- DomicilioSucursal
-
-
- 1
- 14
- MetodoPago
-
-
- 0
- 15
- Vencimiento
-
-
- 1
- 15
- FolioFiscal
-
-
- 0
- 16
- FechaCertificacion
-
-
- 1
- 16
- SelloCFDI
-
-
- 0
- 17
- CadenaSAT
-
-
- 1
- 17
- SelloSAT
-
-
- 0
- 18
- CiudadSucursal
-
-
- 1
- 18
- Serie
-
-
- 0
- 19
- QR
-
-
- 1
- 19
- FormaPago
-
-
- 0
- 20
- LogoPath
-
-
- 1
- 20
- VendedorNombre
-
-
- 0
- 21
- VendedorCelular
-
-
- 1
- 21
- VendedorMail
-
-
- 0
- 22
- VendedorTelefono
-
-
- 1
- 22
- Moneda
-
-
- 0
- 23
- TipoCambio
-
-
- 1
- 23
- CondicionPago
-
-
- 0
- 24
- CadenaOriginal
-
-
- 1
- 24
- SerieCertificadoSAT
-
-
- 0
- 25
- Tipo
-
-
- 1
- 25
- NumCta
-
-
- 0
- 26
- CertificadoContribuyente
-
-
- 1
- 26
- Amortizacion
-
-
- 0
- 27
- SubTotal2
-
-
- 1
- 27
- RetIVA
-
-
- 0
- 28
- RetISR
-
-
- 1
- 28
- TipoDocumento
-
-
- 0
- 29
- AplicaPagare
-
-
- 1
- 29
- Ref
-
-
- 0
- 30
- Sucursal
-
-
- 1
- 30
- ClienteDiasCredito
-
-
- 0
- 31
- OC
-
-
- 1
- 31
- MonedaAbreviatura
-
-
- 0
- 32
- UsuarioImprimio
-
-
- 1
- 32
- FechaImpresion
-
-
- 0
- 33
- EnvioDireccion
-
-
- 1
- 33
- EnvioColonia
-
-
- 0
- 34
- EnvioCiudad
-
-
- 1
- 34
- EnvioEstado
-
-
- 0
- 35
- EnvioCP
-
-
- 1
- 35
- EnvioNoExt
-
-
- 0
- 36
- EnvioNoInt
-
-
- 1
- 36
- EnvioContacto
-
-
- 0
- 37
- EnvioDepartamento
-
-
- 1
- 37
- EstatusFactura
-
-
- 0
- 38
- EstatusEntrega
-
-
- 1
- 38
- PedidoContrato
-
-
- 0
- 39
- DescripcionContrato
-
-
- 1
- 39
- OrdenCompra
-
-
- 0
- 40
- UsoCFDI
-
-
- 1
- 40
- TipoRelacionTexto
-
-
- 0
- 41
- FolioFiscalRelacionado
-
-
- 1
- 41
- Contrato
-
-
-
-
+
image/png
diff --git a/vwd.webinfo b/vwd.webinfo
index d3ade46a8..dd3b12836 100644
--- a/vwd.webinfo
+++ b/vwd.webinfo
@@ -280,6 +280,14 @@
+
+
+
+
+
+
+
+