-- mejora en importación, se quitó el llamada a compras por cada factura.
This commit is contained in:
@@ -369,7 +369,7 @@
|
|||||||
<asp:UpdatePanel ID="UPCompras" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPCompras" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvCxP" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Pagar Pendientes"
|
<asp:GridView ID="GvCxP" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Pagar Pendientes"
|
||||||
DataKeyNames="CveCompra,ImporteProgramo,Saldo,SubTotal,IVA,IVADeducible,IVANoDeducible,IEPS,RetIVA,RetISR,Original,UUID,RFC,CveFactura,SerieFolio,Descripcion,CvePrePoliza,Fecha,EstatusInventario,CveProveedor,TipoCambio, CveMoneda,CveRetIVAConcepto,IVAPorPagar,IVAPorPagarDeducible,IVAPorPagarNoDeducible,IEPSPorPagar,CveRetISRConcepto,PorcentajeIVA,CveTipoConcepto,CveSubProyecto,TotalOriginal"
|
DataKeyNames="CveCompra,ImporteProgramo,Saldo,SubTotal,IVA,IVADeducible,IVANoDeducible,IEPS,RetIVA,RetISR,Original,UUID,RFC,CveFactura,SerieFolio,Descripcion,CvePrePoliza,Fecha,EstatusInventario,CveProveedor,TipoCambio, CveMoneda,CveRetIVAConcepto,IVAPorPagar,IVAPorPagarDeducible,IVAPorPagarNoDeducible,IEPSPorPagar,CveRetISRConcepto,PorcentajeIVA,CveTipoConcepto,CveSubProyecto,TotalOriginal,EsImportacion"
|
||||||
Width="100%" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None">
|
Width="100%" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
|
|||||||
@@ -1043,21 +1043,17 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
Dim PorcentajeImpuesto As Decimal = 0
|
Dim PorcentajeImpuesto As Decimal = 0
|
||||||
|
|
||||||
If ConceptoContable.Contiene(14, 19) AndAlso gvr.DataKey("CveCompra").ToEntero > 0 Then
|
If ConceptoContable.Contiene(14, 19) AndAlso gvr.DataKey("CveCompra").ToEntero > 0 Then
|
||||||
Dim objcompras As New ClsCompras
|
|
||||||
objcompras.GetCompras(gvr.DataKey("CveCompra").ToEntero, "-1", "-1", -1, -1, UsuarioActual.CveEmpresa)
|
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
||||||
If objcompras.DtResultados IsNot Nothing AndAlso objcompras.DtResultados.Rows.Count > 0 Then
|
If gvr.DataKey("EsImportacion").ToString = "1" Then
|
||||||
Dim dr As DataRow = objcompras.DtResultados.Rows(0)
|
EsImportacion = True
|
||||||
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
If ConceptoContable = 14 Then
|
||||||
If dr("EsImportacion").ToString = "True" Then
|
ConceptoContable = 287
|
||||||
EsImportacion = True
|
|
||||||
If ConceptoContable = 14 Then
|
|
||||||
ConceptoContable = 287
|
|
||||||
Else
|
|
||||||
ConceptoContable = 288
|
|
||||||
End If
|
|
||||||
Else
|
Else
|
||||||
EsImportacion = False
|
ConceptoContable = 288
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
EsImportacion = False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user