diff --git a/Ventas/PVCobranza.aspx.vb b/Ventas/PVCobranza.aspx.vb index 9f9cff59e..171bc0dfc 100644 --- a/Ventas/PVCobranza.aspx.vb +++ b/Ventas/PVCobranza.aspx.vb @@ -697,6 +697,7 @@ Partial Class Ventas_PVCobranza If respFactura.Factura.DtAnticiposAplicados IsNot Nothing Then PagoAplicado += respFactura.Factura.DtAnticiposAplicados.SUM("Importe") SaldoPendienteVenta = SaldoPendienteVenta - PagoAplicado + SaldoPendientePagos = SaldoPendientePagos - PagoAplicado For Each RowAnt As DataRow In respFactura.Factura.DtAnticiposAplicados.Rows If Not ActualizaAnticipos(RowAnt("CveIE").ToString().ToEntero(), RowAnt("CveVenta").ToString().ToEntero(), RowAnt("Tipo").ToString(), RowAnt("Folio").ToString(), ObjVentas2, ObjOIEventos) Then @@ -727,6 +728,7 @@ Partial Class Ventas_PVCobranza Else PagoAplicado += respNC.Factura.Total SaldoPendienteVenta = SaldoPendienteVenta - PagoAplicado + SaldoPendientePagos = SaldoPendientePagos - PagoAplicado For Each RowAnt As DataRow In respNC.Factura.DtAnticiposAplicados.Rows If Not ActualizaAnticipos(RowAnt("CveIE").ToString().ToEntero(), RowAnt("CveVenta").ToString().ToEntero(), RowAnt("Tipo").ToString(), RowAnt("Folio").ToString(), ObjVentas2, ObjOIEventos) Then