<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>http://wiki.geosales.com.br:8000/index.php?action=history&amp;feed=atom&amp;title=An%C3%A1lise_de_Tributa%C3%A7%C3%A3o_-_HAFELE</id>
	<title>Análise de Tributação - HAFELE - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.geosales.com.br:8000/index.php?action=history&amp;feed=atom&amp;title=An%C3%A1lise_de_Tributa%C3%A7%C3%A3o_-_HAFELE"/>
	<link rel="alternate" type="text/html" href="http://wiki.geosales.com.br:8000/index.php?title=An%C3%A1lise_de_Tributa%C3%A7%C3%A3o_-_HAFELE&amp;action=history"/>
	<updated>2026-05-05T18:23:41Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.geosales.com.br:8000/index.php?title=An%C3%A1lise_de_Tributa%C3%A7%C3%A3o_-_HAFELE&amp;diff=8183&amp;oldid=prev</id>
		<title>Fabio.jose em 12h43min de 2 de julho de 2018</title>
		<link rel="alternate" type="text/html" href="http://wiki.geosales.com.br:8000/index.php?title=An%C3%A1lise_de_Tributa%C3%A7%C3%A3o_-_HAFELE&amp;diff=8183&amp;oldid=prev"/>
		<updated>2018-07-02T12:43:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 12h43min de 2 de julho de 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Linha 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Segue abaixo SCRIPT para análise de &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;tributração&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:*&lt;/ins&gt;Segue abaixo SCRIPT para análise de &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tributação&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;----&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DECLARE @CD_CLI INT = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;--&amp;lt;inserir cliente&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DECLARE @CD_PRO INT = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;--&amp;lt;inserir produto&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;USE BD_SSM_HAFELE&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DECLARE @CD_CLI INT = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;6702&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DECLARE @CD_PRO INT = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;83374172&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DECLARE @UF_CLI VARCHAR(2) = (SELECT NM_ESTADO FROM CLIENTE WHERE CD_CLIENTE = @CD_CLI)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DECLARE @UF_CLI VARCHAR(2) = (SELECT NM_ESTADO FROM CLIENTE WHERE CD_CLIENTE = @CD_CLI)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Linha 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AND UF = @UF_CLI&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AND UF = @UF_CLI&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AND CD_ORG_VENDA IN (SELECT CD_ORG_VENDA FROM ORG_VENDA_CLIENTE WHERE CD_CLIENTE = @CD_CLI)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AND CD_ORG_VENDA IN (SELECT CD_ORG_VENDA FROM ORG_VENDA_CLIENTE WHERE CD_CLIENTE = @CD_CLI)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;----&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff::1.12:old-8182:rev-8183 --&gt;
&lt;/table&gt;</summary>
		<author><name>Fabio.jose</name></author>
	</entry>
	<entry>
		<id>http://wiki.geosales.com.br:8000/index.php?title=An%C3%A1lise_de_Tributa%C3%A7%C3%A3o_-_HAFELE&amp;diff=8182&amp;oldid=prev</id>
		<title>Fabio.jose: Criou página com 'Segue abaixo SCRIPT para análise de tributração:  ----  USE BD_SSM_HAFELE  DECLARE @CD_CLI INT = 6702 DECLARE @CD_PRO INT = 83374172 DECLARE @UF_CLI VARCHAR(2) = (SELECT NM...'</title>
		<link rel="alternate" type="text/html" href="http://wiki.geosales.com.br:8000/index.php?title=An%C3%A1lise_de_Tributa%C3%A7%C3%A3o_-_HAFELE&amp;diff=8182&amp;oldid=prev"/>
		<updated>2018-07-02T12:38:50Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039;Segue abaixo SCRIPT para análise de tributração:  ----  USE BD_SSM_HAFELE  DECLARE @CD_CLI INT = 6702 DECLARE @CD_PRO INT = 83374172 DECLARE @UF_CLI VARCHAR(2) = (SELECT NM...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Segue abaixo SCRIPT para análise de tributração:&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
USE BD_SSM_HAFELE&lt;br /&gt;
&lt;br /&gt;
DECLARE @CD_CLI INT = 6702&lt;br /&gt;
DECLARE @CD_PRO INT = 83374172&lt;br /&gt;
DECLARE @UF_CLI VARCHAR(2) = (SELECT NM_ESTADO FROM CLIENTE WHERE CD_CLIENTE = @CD_CLI)&lt;br /&gt;
&lt;br /&gt;
SELECT&lt;br /&gt;
	CD_ORG_VENDA,&lt;br /&gt;
	UF,&lt;br /&gt;
	CD_GRUPO_CLIENTE,&lt;br /&gt;
	CD_GRUPO_PRODUTO,&lt;br /&gt;
	PR_ALIQ_ICMS,&lt;br /&gt;
	PR_ALIQ_IPI,&lt;br /&gt;
	--------------------------------------&lt;br /&gt;
	-- ANALISANDO &amp;quot;IPI&amp;quot; NA NOVA TABELA. --&lt;br /&gt;
	--------------------------------------&lt;br /&gt;
	(SELECT PR_ALIQ_IPI FROM IPI WHERE CD_PRODUTO = @CD_PRO AND CD_ORG_VENDA = (SELECT CD_ORG_VENDA FROM ORG_VENDA_CLIENTE WHERE CD_CLIENTE = @CD_CLI)) AS 'NEW IPI',&lt;br /&gt;
	--------------------------------------&lt;br /&gt;
	-- ANALISANDO &amp;quot;IPI&amp;quot; NA NOVA TABELA. --&lt;br /&gt;
	--------------------------------------&lt;br /&gt;
	(SELECT PR_ALIQ_ICMS FROM ICMS_PROPRIO WHERE UF_DESTINO = @UF_CLI AND CD_ORG_VENDA = (SELECT CD_ORG_VENDA FROM ORG_VENDA_CLIENTE WHERE CD_CLIENTE = @CD_CLI)) AS 'NEW ICMS'&lt;br /&gt;
FROM TRIBUTACAO T&lt;br /&gt;
WHERE CD_GRUPO_CLIENTE IN (SELECT CD_GRUPO FROM TRIBUTACAO_CLIENTE WHERE CD_CLIENTE = @CD_CLI)&lt;br /&gt;
AND CD_GRUPO_PRODUTO IN (SELECT CD_GRUPO FROM TRIBUTACAO_PRODUTO WHERE CD_PRODUTO = @CD_PRO)&lt;br /&gt;
AND UF = @UF_CLI&lt;br /&gt;
AND CD_ORG_VENDA IN (SELECT CD_ORG_VENDA FROM ORG_VENDA_CLIENTE WHERE CD_CLIENTE = @CD_CLI)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Fabio.jose</name></author>
	</entry>
</feed>