<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Soporte a Usuarios Macri y Asociados : Nueva funcion programable</title>
  <link>https://soporte.macri.com.ar/</link>
  <description>This is an XML content feed of; Soporte a Usuarios Macri y Asociados : Uso : Nueva funcion programable</description>
  <pubDate>Wed, 06 May 2026 01:54:25 +0000</pubDate>
  <lastBuildDate>Wed, 09 Oct 2024 16:15:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 10.03</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://soporte.macri.com.ar/RSS_post_feed.asp?TID=4535</WebWizForums:feedURL>
  <image>
   <title>Soporte a Usuarios Macri y Asociados</title>
   <url>https://soporte.macri.com.ar/forum_images/LogoMacrit.png</url>
   <link>https://soporte.macri.com.ar/</link>
  </image>
  <item>
   <title>Nueva funcion programable : te paso, pense que estaba por...</title>
   <link>https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17927&amp;title=nueva-funcion-programable#17927</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://soporte.macri.com.ar/member_profile.asp?PF=4">pablomacri</a><br /><strong>Asunto:</strong> 4535<br /><strong>Posteo:</strong> 09/Octubre/2024 en 4:15pm<br /><br />te paso, pense que estaba por defecto<div><div><br></div><div><br></div><div>CREATE TYPE crm_CamposType AS TABLE</div><div>(</div><div>&nbsp; &nbsp; campo varchar(200) collate latin1_general_bin not null ,</div><div>&nbsp; &nbsp; valorTexto varchar(8000) collate latin1_general_bin null,</div><div>&nbsp; &nbsp; valorNumerico decimal(18,2) null,</div><div>&nbsp; &nbsp; valorFecha datetime null,</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>valorBit bit null</span></div><div>)</div><div>GO</div><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Wed, 09 Oct 2024 16:15:24 +0000</pubDate>
   <guid isPermaLink="true">https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17927&amp;title=nueva-funcion-programable#17927</guid>
  </item> 
  <item>
   <title>Nueva funcion programable : Gracias Pablo! Podr&#195;&#161;s detallarme...</title>
   <link>https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17926&amp;title=nueva-funcion-programable#17926</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://soporte.macri.com.ar/member_profile.asp?PF=4015">tecveneto</a><br /><strong>Asunto:</strong> 4535<br /><strong>Posteo:</strong> 09/Octubre/2024 en 3:59pm<br /><br />Gracias Pablo! Podrás detallarme cómo sería el tipo&nbsp;<span style=": rgb248, 248, 252;">crm_camposType? No tengo la función ni el tipo en la base. Muchas gracias.</span><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;"><br></span></div>]]>
   </description>
   <pubDate>Wed, 09 Oct 2024 15:59:22 +0000</pubDate>
   <guid isPermaLink="true">https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17926&amp;title=nueva-funcion-programable#17926</guid>
  </item> 
  <item>
   <title>Nueva funcion programable :   Lucas:la funcion de sql es...</title>
   <link>https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17924&amp;title=nueva-funcion-programable#17924</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://soporte.macri.com.ar/member_profile.asp?PF=4">pablomacri</a><br /><strong>Asunto:</strong> 4535<br /><strong>Posteo:</strong> 09/Octubre/2024 en 9:51am<br /><br /><div>Lucas:</div><div>la funcion de sql es fn_crm_getCamposPresupuesto</div><div><br></div><div><div>debajo te copio un ejemplo en el que agregando un campo adicional ListaPrecios en los renglones del presupuesto, te permite cambiar la lista de precios por cada renglon, y te cambia el precio del renglon</div></div><div><br></div><div><div><br></div><div>CREATE function &#091;dbo&#093;.&#091;fn_crm_getCamposPresupuesto&#093; (</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>@campos crm_camposType READONLY,</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>@controlOrigen varchar(200),</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>@id_vendedor int</span></div><div>) returns @camposNuevos table (</div><div>&nbsp; &nbsp; campo varchar(200) collate latin1_general_bin not null,</div><div>&nbsp; &nbsp; valorTexto varchar(8000) collate latin1_general_bin null,</div><div>&nbsp; &nbsp; valorNumerico decimal(18,2) null,</div><div>&nbsp; &nbsp; valorFecha datetime null,</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>valorBit bit null</span></div><div>)</div><div>AS</div><div>BEGIN</div><div>if upper(@controlOrigen) in (upper('GrPresupuestosRenglones.CA_ListaPrecios'))</div><div>begin</div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>declare @listaRenglon int=0, @listaGeneral int=0, @lista int=null, @cod_articu varchar(15)='', @precio decimal(18,2)=null</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>select @listaRenglon=coalesce(valorNumerico,0) from @campos where upper(campo) =upper('GrPresupuestosRenglones.CA_ListaPrecios')</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>select @listaGeneral=coalesce(valortexto,0) from @campos where upper(campo) =upper('TxtNroLista')</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>select @cod_articu=coalesce(valortexto,'') from @campos where upper(campo) =upper('GrPresupuestosRenglones.Cod_articu')</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>insert into @camposNuevos(campo,valorNumerico) values('GrPresupuestosRenglones.Precio',coalesce(@precio,0))</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>if @listaRenglon&gt;0&nbsp;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>begin</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>set @lista=@listarenglon</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>end</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>else</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>begin</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>set @lista=@listaGeneral</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>end</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>if @lista&gt;0 and exists(select * from gva10 where NRO_DE_LIS=@lista) and exists(select * from sta11 where cod_articu=@cod_articu)</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>begin</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>select @precio=coalesce(PRECIO,0) from gva17 where NRO_DE_LIS=@lista and COD_ARTICU=@cod_articu</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>insert into @camposNuevos(campo,valorNumerico) values('GrPresupuestosRenglones.Precio',coalesce(@precio,0))</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>end</span></div><div>end</div><div><br></div><div>return</div><div>END</div><div>GO</div></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 09 Oct 2024 09:51:29 +0000</pubDate>
   <guid isPermaLink="true">https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17924&amp;title=nueva-funcion-programable#17924</guid>
  </item> 
  <item>
   <title>Nueva funcion programable : Buenos dias!En una de las &#195;&#186;ltimas...</title>
   <link>https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17923&amp;title=nueva-funcion-programable#17923</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://soporte.macri.com.ar/member_profile.asp?PF=4015">tecveneto</a><br /><strong>Asunto:</strong> 4535<br /><strong>Posteo:</strong> 09/Octubre/2024 en 8:42am<br /><br />Buenos dias!<div><br></div><div>En una de las últimas actualizaciones del CRM GO se detalla como novedad:</div><div><br></div><div><span style="color: rgb68, 68, 68; font-family: &quot;Source Sans Pro&quot;, Arial, sans-serif;"><font size="2">"Se agrega función programable para que se actualicen datos del presupuesto al cambiar otro campo (del encabezado o de la grilla de renglones)"</font></span></div><div><span style="color: rgb68, 68, 68; font-family: &quot;Source Sans Pro&quot;, Arial, sans-serif;"><font size="2"><br></font></span></div><div><span style="color: rgb68, 68, 68; font-family: &quot;Source Sans Pro&quot;, Arial, sans-serif;"><font size="2">Podrán indicarme el nombre?</font></span></div><div><span style="color: rgb68, 68, 68; font-family: &quot;Source Sans Pro&quot;, Arial, sans-serif;"><font size="2"><br></font></span></div><div><span style="color: rgb68, 68, 68; font-family: &quot;Source Sans Pro&quot;, Arial, sans-serif;"><font size="2">Muchas gracias. Saludos.</font></span></div>]]>
   </description>
   <pubDate>Wed, 09 Oct 2024 08:42:16 +0000</pubDate>
   <guid isPermaLink="true">https://soporte.macri.com.ar/forum_posts.asp?TID=4535&amp;PID=17923&amp;title=nueva-funcion-programable#17923</guid>
  </item> 
 </channel>
</rss>