From 802f450ea00c5c4667438ad9adbb782195f3fddd Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Sun, 16 Apr 2023 12:14:31 -0700 Subject: [PATCH] Parametros de cliente regimen fiscal para stimulsoft,productos relacionados web service E141, cambios visuales en prestamo personal, correciones en ventas, precio de usados en devolucion en base al documento original, permiso para regenerar pdf --- App_Code/ClsPaginas.vb | 4 ++++ Ashx/E141.ashx | 3 ++- Bancos/PrestamoPersonal.aspx | 16 ++++++++-------- Ventas/Ventas.aspx.vb | 14 ++++++++++---- 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb index 83cb1872b..d66ba6161 100644 --- a/App_Code/ClsPaginas.vb +++ b/App_Code/ClsPaginas.vb @@ -6326,6 +6326,10 @@ Public Class ClsPaginas Dim rds4 As New ReportDataSource With {.Name = "DataSet4", .Value = If(Vta.DtDocumentosRelacionados IsNot Nothing, Vta.DtDocumentosRelacionados, New DataTable)} ' sino esta creado el objeto, lo creamos, para que no truene el reporte lrds.Add(rds4) If UsuarioActual.Empresa.Funcionalidad(707) = "1" OrElse UsarStimulsoft Then + If Vta.Cliente.CodigoRegimenFiscal.ToString.Length > 0 Then + params.Add(New ReportParameter("ClienteRegimenFiscal", $"{Vta.Cliente.CodigoRegimenFiscal}-{Vta.Cliente.RegimenFiscal}")) + End If + If Vta.DtDocumentosRelacionados IsNot Nothing AndAlso Vta.DtDocumentosRelacionados.Rows.Count > 0 Then params.Add(New ReportParameter("TieneDocumentosRelacionados", "True")) Else diff --git a/Ashx/E141.ashx b/Ashx/E141.ashx index 0bfb003be..7f6bf47cb 100644 --- a/Ashx/E141.ashx +++ b/Ashx/E141.ashx @@ -1851,7 +1851,8 @@ Public Class E141 : Implements IHttpHandler New JProperty("short_description", ""), New JProperty("description", ""), New JProperty("currency", 1), - New JProperty("promo_price", RowPS("PrecioPromocion")) + New JProperty("promo_price", RowPS("PrecioPromocion")), + New JProperty("product_related", RowPS("CodigosRelacionados")) ) ArrayPS.Add(producto) diff --git a/Bancos/PrestamoPersonal.aspx b/Bancos/PrestamoPersonal.aspx index 332b6e4ad..10daa5b36 100644 --- a/Bancos/PrestamoPersonal.aspx +++ b/Bancos/PrestamoPersonal.aspx @@ -115,18 +115,18 @@
-
+
-
+
-
+
-
+
<%-- @@ -137,18 +137,18 @@
-
+
-
+
-
+
-
+
0 Then HplDownPDF.Visible = True HplDownPDF.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=VTA&CVEVENTA={0}&PAG=1&GUARDAR=1", CveVenta))) - If UsuarioActual.CveRol = 1 Then + + If UsuarioActual.TienePermisoProceso(359) Then HplRenerarPDF.Visible = True HplRenerarPDF.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=VTA&CVEVENTA={0}&PAG=1&GUARDAR=1®ENERAR=1", CveVenta))) + End If + If UsuarioActual.CveRol = 1 Then HplImprimirPDFStimulsoft.Visible = True HplImprimirPDFStimulsoft.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=VTA&CVEVENTA={0}&PAG=1&GUARDAR=0&STIMULSOFT=1", CveVenta))) End If @@ -25278,9 +25281,9 @@ Partial Class Ventas ObjFacturaCancelacion.CveAlmacenDevolucion = CveAlmacenDevolucion - 'If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso ObjFacturaCancelacion.TipoDocto.Contiene("Rem", "Dev") Then - ' ChkDevAlm.Checked = True - 'End If + If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso ObjFacturaCancelacion.TipoDocto.Contiene("Rem", "Dev") Then + ChkDevAlm.Checked = True + End If If UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso ObjFacturaCancelacion.TipoDocto = "Rem" Then ChkDevAlm.Checked = True @@ -33429,6 +33432,9 @@ Partial Class Ventas Dim Cargo As Decimal = DTTamanios.FiltroPrimeroValor("Cargo", $" CveTamaƱo = { CveTamanioTemp }").ToDecimal + If DtUsadosDevolucion IsNot Nothing Then + Cargo = DtUsadosDevolucion.FiltroPrimeroValor("PU", $"CvePS = {CvePsTemp}").ToString().ToDecimal() + End If If DTPSTemp.FiltraParametros($"CvePs = { CvePsTemp }").Rows.Count > 0 Then