Cambios en reporte de utilidades
This commit is contained in:
@@ -196,7 +196,14 @@ Partial Class Ventas_RepVentasUtilidadDetalle
|
||||
LblPorUtilidad.Text = ((ObjVentas.Utilidad - ObjVentas.Perdida) / ObjVentas.SubTotalVenta * 100).ToString("N2")
|
||||
LblPerdida.Text = "$" + (ObjVentas.Perdida - ObjVentas.Utilidad).ToString("N2")
|
||||
LblPorPerdida.Text = ((ObjVentas.Perdida - ObjVentas.Utilidad) / ObjVentas.SubTotalVenta * 100).ToString("N2")
|
||||
|
||||
If ObjVentas.GetVentasAntNC(CveVenta, -1) Then
|
||||
GvBonificacion.DataSource = ObjVentas.DtResultados
|
||||
End If
|
||||
|
||||
ObjVentas.Dispose()
|
||||
GvBonificacion.DataBind()
|
||||
|
||||
|
||||
If ObjVentas.SubTotalVenta <> ObjVentas.SubTotalVentaDolares Then
|
||||
LbSubTotalDolares.Visible = True
|
||||
@@ -220,10 +227,12 @@ Partial Class Ventas_RepVentasUtilidadDetalle
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
End Sub
|
||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
If e.Row.RowIndex = 0 Or e.Row.DBCampo("CveVentaDetalle") = "" Then
|
||||
If e.Row.DBCampo("CveVentaDetalle") = "" AndAlso e.Row.DBCampo("CveVenta") = "" Then
|
||||
e.Row.CssClass = "Totales"
|
||||
Else
|
||||
'e.Row.Cells(0).BackColor = ColorTranslator.FromHtml("#e9e9e9")
|
||||
|
||||
Reference in New Issue
Block a user