-- colorea en rojo la dif, en poriva vs el total vendido

This commit is contained in:
2024-06-01 11:10:51 -07:00
parent 7690f1c647
commit e915ede575

View File

@@ -230,6 +230,13 @@ Partial Class Bancos_RepCortes
If UsuarioActual.CveEmpresa.Contiene(190, 192) Then
DivIVA.Visible = True
GvPorIVA.DataSource = DsDatos.Tables(2)
Dim tsum As Decimal = DsDatos.Tables(2).SUMD("IVA16") + DsDatos.Tables(2).SUMD("IVA0")
If Math.Abs(tsum - DtCortesVentasResumen.MAX("Importe").ToDecimal) > 1 Then
GvPorIVA.ForeColor = Drawing.Color.Red
GvPorIVA.ToolTip = (tsum - DtCortesVentasResumen.MAX("Importe").ToDecimal).ToString
Else
GvPorIVA.ForeColor = Drawing.Color.Black
End If
End If
End If