-- columna de descuento, sino está vacío
This commit is contained in:
@@ -271,6 +271,14 @@
|
|||||||
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" Visible="false">
|
||||||
|
<HeaderTemplate>
|
||||||
|
<asp:Label Text="Descuento" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlDescuento" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label Text="IVA" runat="server" CausesValidation="false"> </asp:Label>
|
<asp:Label Text="IVA" runat="server" CausesValidation="false"> </asp:Label>
|
||||||
|
|||||||
@@ -5,9 +5,8 @@ Imports System.Data
|
|||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Partial Class RepRemisiones
|
Partial Class RepRemisiones
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
Private Shared missing As Object = System.Reflection.Missing.Value
|
|
||||||
|
|
||||||
#Region "PROPIEDADES"
|
#Region "PROPIEDADES"
|
||||||
Private Property FechaI As String
|
Private Property FechaI As String
|
||||||
Get
|
Get
|
||||||
@@ -96,6 +95,7 @@ Partial Class RepRemisiones
|
|||||||
GvDatos.DataSource = ObjVentas.DtResultados
|
GvDatos.DataSource = ObjVentas.DtResultados
|
||||||
DtVentas = ObjVentas.DtResultados
|
DtVentas = ObjVentas.DtResultados
|
||||||
End If
|
End If
|
||||||
|
GvDatos.Columns(7).Visible = ObjVentas.DtResultados.SUMD("Descuento") > 0
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
|
|
||||||
GvDatos.DataBind()
|
GvDatos.DataBind()
|
||||||
@@ -131,17 +131,17 @@ Partial Class RepRemisiones
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "CARGA COMBOS FILTRO"
|
#Region "CARGA COMBOS FILTRO"
|
||||||
Private Sub CargaCliente()
|
Private Sub CargaCliente()
|
||||||
'CargaClientes
|
'CargaClientes
|
||||||
Dim EsWS = If(UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1", True, False)
|
'Dim EsWS = If(UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1", True, False)
|
||||||
If EsWS Then
|
'If EsWS Then
|
||||||
DdlClientes.setEsWebService(True)
|
DdlClientes.setEsWebService(True)
|
||||||
Else
|
' Else
|
||||||
DdlClientes.setEsWebService(False)
|
'DdlClientes.setEsWebService(False)
|
||||||
DdlClientes.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa, -1)
|
'DdlClientes.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa, -1)
|
||||||
DdlClientes.DataBind()
|
'DdlClientes.DataBind()
|
||||||
DdlClientes.ddl.Items.Insert(0, New ListItem("Todos", "-1"))
|
'DdlClientes.ddl.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaSucursales()
|
Private Sub CargaSucursales()
|
||||||
|
|||||||
Reference in New Issue
Block a user