<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://documentacion.conarpesa.com.ar/index.php?action=history&amp;feed=atom&amp;title=Categor%C3%ADa%3ACALCULO_RETENCIONES</id>
	<title>Categoría:CALCULO RETENCIONES - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://documentacion.conarpesa.com.ar/index.php?action=history&amp;feed=atom&amp;title=Categor%C3%ADa%3ACALCULO_RETENCIONES"/>
	<link rel="alternate" type="text/html" href="https://documentacion.conarpesa.com.ar/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&amp;action=history"/>
	<updated>2026-05-05T17:26:30Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://documentacion.conarpesa.com.ar/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&amp;diff=1407&amp;oldid=prev</id>
		<title>Luciano Carou en 18:15 3 ene 2025</title>
		<link rel="alternate" type="text/html" href="https://documentacion.conarpesa.com.ar/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&amp;diff=1407&amp;oldid=prev"/>
		<updated>2025-01-03T18:15:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 20:15 3 ene 2025&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-l61&quot;&gt;Línea 61:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 61:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;==Emisión de los certificados de retención==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;==Emisión de los certificados de retención==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;Cuando las ordenes de pago se registran emiten los &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/CERTIFICADO|Certificado de retenciones (RTCAB)]]&amp;#039;&amp;#039;&amp;#039; necesarios, a través del trigger &amp;#039;&amp;#039;&amp;#039;OPCAB_TR_RTCAB_UPDATE&amp;#039;&amp;#039;&amp;#039; pero eso se explica en el artículo correspondiente a las ordenes de pago.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;Cuando las ordenes de pago se registran emiten los &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/CERTIFICADO|Certificado de retenciones (RTCAB)]]&amp;#039;&amp;#039;&amp;#039; necesarios, a través del trigger &amp;#039;&amp;#039;&amp;#039;OPCAB_TR_RTCAB_UPDATE&amp;#039;&amp;#039;&amp;#039; pero eso se explica en el artículo correspondiente a las ordenes de pago.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Artículos relacionados==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[CALCULO IMPUESTOS/PARAMETROS]] (impIMPCMPRET_PARAMS) recibe los datos de las ordenes de pago y facturas sobre las que hay que calcular retenciones.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[CALCULO RETENCIONES/FACTURAS]] (impIMPCMPRET) guarda cálculos intermedios.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[CALCULO RETENCIONES/RETENCIONES]] (impIMPCMPRET_RETENCION) guarda las retenciones practicadas sobre las ordenes de pago y facturas.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[CALCULO RETENCIONES/CERTIFICADO]] (RTCAB) es el certificado de retención emitido.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[CALCULO RETENCIONES/CERTIFICADO DETALLE]] (IMPCMPRET) es el detalle del certificado de retención, es muy similar a impIMPCMPRET_RETENCION y eventualmente debería reemplazarlo.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[CALCULO RETENCIONES/PROCEDIMIENTO]] describe el procedimiento del cálculo de retenciones, es casi idéntico a esta categoría y no tiene razón de ser.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Luciano Carou</name></author>
	</entry>
	<entry>
		<id>https://documentacion.conarpesa.com.ar/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&amp;diff=1406&amp;oldid=prev</id>
		<title>Luciano Carou en 18:10 3 ene 2025</title>
		<link rel="alternate" type="text/html" href="https://documentacion.conarpesa.com.ar/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&amp;diff=1406&amp;oldid=prev"/>
		<updated>2025-01-03T18:10:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 20:10 3 ene 2025&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-l5&quot;&gt;Línea 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;==Inicialización de parámetros de cálculo==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;==Inicialización de parámetros de cálculo==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;[[Category:MANUAL/USUARIO]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;[[Category:MANUAL/USUARIO]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:CALCULO RETENCIONES]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:PORTAL]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;Las ordenes de pago admiten la carga de:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;Las ordenes de pago admiten la carga de:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Luciano Carou</name></author>
	</entry>
	<entry>
		<id>https://documentacion.conarpesa.com.ar/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&amp;diff=1405&amp;oldid=prev</id>
		<title>Luciano Carou: Página creada con «==Introducción==  El cálculo de retenciones se realiza casi íntegramente usando la base de datos. Los objetos que participan del cálculo se describen en este artículo pero la mayor información vendrá del análisis de esos objetos en SQL por parte de personal especializado.  ==Inicialización de parámetros de cálculo== Category:MANUAL/USUARIO Category:CALCULO RETENCIONES Category:PORTAL  Las ordenes de pago admiten la carga de:  *Facturas. *Notas d…»</title>
		<link rel="alternate" type="text/html" href="https://documentacion.conarpesa.com.ar/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&amp;diff=1405&amp;oldid=prev"/>
		<updated>2025-01-03T18:10:00Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «==Introducción==  El cálculo de retenciones se realiza casi íntegramente usando la base de datos. Los objetos que participan del cálculo se describen en este artículo pero la mayor información vendrá del análisis de esos objetos en SQL por parte de personal especializado.  ==Inicialización de parámetros de cálculo== &lt;a href=&quot;/index.php?title=Categor%C3%ADa:MANUAL/USUARIO&quot; title=&quot;Categoría:MANUAL/USUARIO&quot;&gt;Category:MANUAL/USUARIO&lt;/a&gt; &lt;a href=&quot;/index.php?title=Categor%C3%ADa:CALCULO_RETENCIONES&quot; title=&quot;Categoría:CALCULO RETENCIONES&quot;&gt;Category:CALCULO RETENCIONES&lt;/a&gt; &lt;a href=&quot;/index.php?title=Categor%C3%ADa:PORTAL&quot; title=&quot;Categoría:PORTAL&quot;&gt;Category:PORTAL&lt;/a&gt;  Las ordenes de pago admiten la carga de:  *Facturas. *Notas d…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Introducción==&lt;br /&gt;
&lt;br /&gt;
El cálculo de retenciones se realiza casi íntegramente usando la base de datos. Los objetos que participan del cálculo se describen en este artículo pero la mayor información vendrá del análisis de esos objetos en SQL por parte de personal especializado.&lt;br /&gt;
&lt;br /&gt;
==Inicialización de parámetros de cálculo==&lt;br /&gt;
[[Category:MANUAL/USUARIO]]&lt;br /&gt;
[[Category:CALCULO RETENCIONES]]&lt;br /&gt;
[[Category:PORTAL]]&lt;br /&gt;
&lt;br /&gt;
Las ordenes de pago admiten la carga de:&lt;br /&gt;
&lt;br /&gt;
*Facturas.&lt;br /&gt;
*Notas de débito.&lt;br /&gt;
*Notas de crédito.&lt;br /&gt;
*Anticipos.&lt;br /&gt;
&lt;br /&gt;
(Las ordenes de pago se explican en su propia sección).&lt;br /&gt;
&lt;br /&gt;
Una vez cargada la información necesaria (y con las aprobaciones que correspondan) la orden de pago se puede &amp;#039;&amp;#039;&amp;#039;liquidar&amp;#039;&amp;#039;&amp;#039;. Cuando se liquida se ejecuta un procedimiento de Delphi &amp;#039;&amp;#039;&amp;#039;TOPCAB_implemented.CalcularRetenciones&amp;#039;&amp;#039;&amp;#039; que inserta los comprobantes de la orden de pago en [[CALCULO RETENCIONES/PARAMETROS|Retenciones, parámetros de ordenes de pago (impIMPCMPRET_PARAMS)]] dando inicio al proceso de cálculo de retenciones.&lt;br /&gt;
&lt;br /&gt;
Esta tabla tiene un trigger &amp;#039;&amp;#039;&amp;#039;impIMPCMPRET_PARAMS_TR_impIMPCMPRET_INS&amp;#039;&amp;#039;&amp;#039; que llama a un procedimiento &amp;#039;&amp;#039;&amp;#039;prx_impIMPCMPRET_Actualizar_FAST&amp;#039;&amp;#039;&amp;#039; que calcula las retenciones.&lt;br /&gt;
&lt;br /&gt;
==Vistas requeridas para el cálculo, impuestos distintos a IIBB C.A.B.A.==&lt;br /&gt;
&lt;br /&gt;
Las siguientes vistas son requeridas por el procedimiento de cálculo de impuestos distintos a IIBB C.A.B.A.&lt;br /&gt;
&lt;br /&gt;
===1. impIMPCMPRET_FACTURAS_FAST===&lt;br /&gt;
Para cada línea de la tabla &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/PARAMETROS|Retenciones, parámetros de ordenes de pago (impIMPCMPRET_PARAMS)]]&amp;#039;&amp;#039;&amp;#039; arma la lista de impuestos que corresponden a cada comprobante y toda información adicional necesaria (exenciones, comportamientos fiscales, etc.).&lt;br /&gt;
&lt;br /&gt;
===2. impIMPCMPRET_AGRUP===&lt;br /&gt;
Agrupa las facturas de la orden de pago cuyas retenciones estamos calculando según la definición de la familia de comprobantes. Por ejemplo la familia de Ganancias agrupa todas las facturas en un solo registro (denominado &amp;#039;&amp;#039;&amp;#039;&amp;lt;AGRUP&amp;gt;&amp;#039;&amp;#039;&amp;#039;) pero la familia de IVA no, dejando que cada comprobante sea una agrupación de sí mismo.&lt;br /&gt;
&lt;br /&gt;
===3. impIMPCMPRET_ACUMULADOS===&lt;br /&gt;
Acumula según la definición de la familia de impuestos. Por ejemplo la familia de Ganancias acumula los pagos mensuales pero las otras familias consideran siempre cada comprobante sin tomar montos previos.&lt;br /&gt;
&lt;br /&gt;
===4. impIMPCMPRET_AGRUP===&lt;br /&gt;
Suma los montos y retenciones agrupadas según la definición de la familia del impuesto, por ejemplo la familia de Ganancias agrupa por mes pero la de IVA no.&lt;br /&gt;
&lt;br /&gt;
===5. impIMPCMPRET_CALCULO_FAST===&lt;br /&gt;
Usa las vistas descriptas para calcular las retenciones que corresponda. En aquellos casos donde no se calcula retención por el motivo que sea, y la familia usa acumulados, los registros se guardan con el importe en retención en 0.&lt;br /&gt;
&lt;br /&gt;
Este resultado se inserta en &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/RETENCIONES|Retenciones, detalle de montos retenidos (impIMPCMPRET_RETENCION)]]&amp;#039;&amp;#039;&amp;#039; en el procedimiento &amp;#039;&amp;#039;&amp;#039;prx_impIMPCMPRET_Actualizar_FAST&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Vistas requeridas para el cálculo, IIBB C.A.B.A.==&lt;br /&gt;
El cálculo de retenciones de IIBB C.A.B.A. requiere de una sola vista.&lt;br /&gt;
&lt;br /&gt;
===1. impIMPCMPRET_CALCULO_IBCABA===&lt;br /&gt;
Junta los datos necesarios para poder realizar el cálculo de retenciones. Como el cálculo de retenciones de IIBB C.A.B.A. se basa en el padrón &amp;#039;&amp;#039;&amp;#039;[[CALCULO IMPUESTOS/PADRON IBCABA|Padrón de Regimenes generales por publicación (IBCABA_PRG)]]&amp;#039;&amp;#039;&amp;#039; el procedimiento es mucho más sencillo y esta vista proporciona todo lo necesario.&lt;br /&gt;
&lt;br /&gt;
El resultado de esta vista se inserta en &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/RETENCIONES|Retenciones, detalle de montos retenidos (impIMPCMPRET_RETENCION)]]&amp;#039;&amp;#039;&amp;#039; en el procedimiento &amp;#039;&amp;#039;&amp;#039;prx_impIMPCMPRET_Actualizar_FAST&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Procedimiento &amp;#039;&amp;#039;&amp;#039;prx_impIMPCMPRET_Actualizar_FAST&amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
&lt;br /&gt;
Este procedimiento es llamado por el trigger &amp;#039;&amp;#039;&amp;#039;impIMPCMPRET_PARAMS_TR_impIMPCMPRET_INS&amp;#039;&amp;#039;&amp;#039; sobre la tabla &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/PARAMETROS|Retenciones, parámetros de ordenes de pago (impIMPCMPRET_PARAMS)]]&amp;#039;&amp;#039;&amp;#039; y ejecuta el proceso completo de calcular y generar las retenciones.&lt;br /&gt;
&lt;br /&gt;
*Elimina registros de cualquier cálculo previo.&lt;br /&gt;
*Inserta en &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/FACTURAS|Retenciones, detalle de facturas (impIMPCMPRET)]]&amp;#039;&amp;#039;&amp;#039; y &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/RETENCIONES|Retenciones, detalle de montos retenidos (impIMPCMPRET_RETENCION)]]&amp;#039;&amp;#039;&amp;#039; lo calculado en &amp;#039;&amp;#039;&amp;#039;5. impIMPCMPRET_CALCULO_FAST&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
*Inserta en &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/FACTURAS|Retenciones, detalle de facturas (impIMPCMPRET)]]&amp;#039;&amp;#039;&amp;#039; y &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/RETENCIONES|Retenciones, detalle de montos retenidos (impIMPCMPRET_RETENCION)]]&amp;#039;&amp;#039;&amp;#039; lo calculado en &amp;#039;&amp;#039;&amp;#039;1. impIMPCMPRET_CALCULO_IBCABA&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Finalmente el trigger &amp;#039;&amp;#039;&amp;#039;IMPCMPRET&amp;#039;&amp;#039;&amp;#039; que ha llamado al procedimiento &amp;#039;&amp;#039;&amp;#039;prx_impIMPCMPRET_Actualizar_FAST&amp;#039;&amp;#039;&amp;#039; inserta los registros calculados de &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/RETENCIONES|Retenciones, detalle de montos retenidos (impIMPCMPRET_RETENCION)]]&amp;#039;&amp;#039;&amp;#039; en &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/CERTIFICADO DETALLE|Certificado retenciones, detalle de retenciones (IMPCMPRET)]]&amp;#039;&amp;#039;&amp;#039; que es la tabla de detalle del certificado.&lt;br /&gt;
&lt;br /&gt;
==Emisión de los certificados de retención==&lt;br /&gt;
Cuando las ordenes de pago se registran emiten los &amp;#039;&amp;#039;&amp;#039;[[CALCULO RETENCIONES/CERTIFICADO|Certificado de retenciones (RTCAB)]]&amp;#039;&amp;#039;&amp;#039; necesarios, a través del trigger &amp;#039;&amp;#039;&amp;#039;OPCAB_TR_RTCAB_UPDATE&amp;#039;&amp;#039;&amp;#039; pero eso se explica en el artículo correspondiente a las ordenes de pago.&lt;/div&gt;</summary>
		<author><name>Luciano Carou</name></author>
	</entry>
</feed>