diff --git a/Ventas/CatPreciosLista.aspx b/Ventas/CatPreciosLista.aspx index 585fa41ad..69c10043b 100644 --- a/Ventas/CatPreciosLista.aspx +++ b/Ventas/CatPreciosLista.aspx @@ -30,6 +30,11 @@ + + + + + diff --git a/Ventas/Clientes.aspx b/Ventas/Clientes.aspx index ad9e6ab65..4e2a0de30 100644 --- a/Ventas/Clientes.aspx +++ b/Ventas/Clientes.aspx @@ -798,7 +798,7 @@ -
+
diff --git a/Ventas/Clientes.aspx.vb b/Ventas/Clientes.aspx.vb index 9d0883c9f..c8e37072f 100644 --- a/Ventas/Clientes.aspx.vb +++ b/Ventas/Clientes.aspx.vb @@ -9807,7 +9807,7 @@ Partial Class Clientes Try Dim Url As Uri = New Uri(String.Format("{0}ashx/SIGWeb.ashx?metodo=GetTokenAngular", "http://localhost:85/")) - Dim response = cliente.GetAsync(Url).Result + Dim response As HttpResponseMessage = cliente.GetAsync(Url).Result If response.StatusCode = 200 Then retorno = response.Content.ReadAsStringAsync().Result End If @@ -10275,7 +10275,7 @@ Partial Class Clientes End Sub Protected Sub BtnGuardarPL_Click(sender As Object, e As EventArgs) Dim ObjVentas As New ClsVentas() - Dim CvePrecioListaNuevo = ObjVentas.AddPrecioLista(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, TxtPrecioLista.Text, 0) + Dim CvePrecioListaNuevo As Integer = ObjVentas.AddPrecioLista(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, TxtPrecioLista.Text, False, 0) If CvePrecioListaNuevo > 0 Then Alert("La lista de precio se guardo correctamente") RegistraScript("$('#DivAgregarPrecioLista').modal('hide');") diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index 06b52e552..651b1fbea 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -3447,12 +3447,13 @@ Partial Class Ventas Using ObjVta As New ClsVentas If ObjVta.GetPrecioListas(UsuarioActual.CveEmpresa) Then - DdlPrecioLista.DataSource = ObjVta.DtResultados.Copy() + DdlPrecioLista.DataSource = ObjVta.DtResultados + DdlPrecioLista.SelectedValue = ObjVta.DtResultados.FiltroPrimeroValor("CvePrecioLista", "Predeterminada = 'True'") End If End Using DdlPrecioLista.DataBind() - DdlPrecioLista.Items.Insert(0, New ListItem("Seleccione", "-1")) + 'DdlPrecioLista.Items.Insert(0, New ListItem("Seleccione", "-1")) UpPS.Update() End Sub