Se solicita efectuar el desarrollo de la funcionalidad que dará cumplimiento a la nueva normativa “RG 4523-19”, referente al Régimen del SIRE (Sistema Integral de Retenciones Electrónicas).
El patch contiene la rutina:
Configuraciones previas
IVA Retenciones
IVA Percepciones
Tanto para IVA retenciones e IVA percepciones Incluir el archivo "SUSS.INI" dentro de la carpeta "system" del sistema.
Flujo de prueba

03. VALIDACIONES
Plantilla txt
A continuación se describe el formato que debe tener cada registro del archivo "txt" que se genera tanto para retenciones como para percepciones:
CAMPO | TIPO | LONGITUD | DESDE | HASTA | OBLIGATORIO | |
1 | VERSION | Integer | 4 | 1 | 4 | SI |
2 | CODIGO DE TRAZABILIDAD (USO NO FISCAL) | String | 10 | 5 | 14 | NO |
3 | IMPUESTO | Integer | 3 | 15 | 17 | SI |
4 | RÉGIMEN | Integer | 3 | 18 | 20 | SI |
5 | FECHA RETENCIÓN/RETENCIÓN | Date | 10 | 21 | 30 | SI |
6 | CONDICIÓN | Integer | 2 | 31 | 32 | NO |
7 | IMPOSIBILIDAD DE RETENCIÓN/PERCEPCIÓN | Boolean | 1 | 33 | 33 | SI |
8 | NO RETENCIÓN MOTIVO | String | 30 | 34 | 63 | NO |
9 | IMPORTE RETENCIÓN/PERCEPCIÓN | Decimal | 14 | 64 | 77 | SI |
10 | IMPORTE DE LA BASE DE CÁLCULO/CANTIDAD | Decimal | 14 | 78 | 91 | SI |
11 | RÉGIMEN DE EXCLUSIÓN | Boolean | 1 | 92 | 92 | SI |
12 | PORCENTAJE DE EXCLUSIÓN | Integer | 6 | 93 | 98 | NO |
13 | FECHA PUBLICACIÓN | Date | 10 | 99 | 108 | NO |
14 | TIPO COMPROBANTE | Integer | 2 | 109 | 110 | SI |
15 | FECHA COMPROBANTE | Date | 10 | 111 | 120 | SI |
16 | NRO COMPROBANTE | String | 16 | 121 | 136 | NO |
| 17 | COE | String | 12 | 137 | 148 | NO |
| 18 | COE ORIGINAL | String | 12 | 149 | 160 | NO |
| 19 | CAE | String | 14 | 161 | 174 | NO |
| 20 | IMPORTE COMPROBANTE | Decimal | 14 | 175 | 188 | SI |
21 | MOTIVO EMISIÓN DE NOTA DE CRÉDITO/AJUSTE | String | 30 | 189 | 218 | NO |
22 | RETENIDO/PERCIBIDO CLAVE | Integer | 11 | 219 | 229 | SI |
23 | CERTIFICADO ORIGINAL NRO | String | 25 | 230 | 254 | NO |
24 | CERTIFICADO ORIGINAL FECHA RETEN | Date | 10 | 255 | 264 | NO |
25 | CERTIFICADO ORIGINAL IMPORTE | Decimal | 14 | 265 | 278 | NO |
IVA Retenciones validación
CAMPO | VALIDACIONES | |
1 | VERSIÓN | “0100” |
2 | CÓDIGO DE TRAZABILIDAD | A2_NOME |
3 | IMPUESTO | “767” |
4 | RÉGIMEN | “214” |
5 | FECHA RETENCIÓN/PERCEPCIÓN | FE_EMISSAO |
6 | CONDICIÓN | A2_TIPO <> (“I”; “N” o “S”) à “0” A2_TIPO = “I” à “1” A2_TIPO = “N” à “2” A2_TIPO = “S” à “3” |
7 | IMPOSIBILIDAD DE RETENCIÓN/PERCEPCIÓN | 0: Retención efectuada 1: Retención no efectuada |
8 | NO RETENCIÓN MOTIVO | “” |
9 | IMPORTE RETENCIÓN/PERCEPCIÓN | FE_RETENC |
10 | IMPORTE DE LA BASE DE CÁLCULO/CANTIDAD | FE_VALBASE |
11 | RÉGIMEN DE EXCLUSIÓN | A2_PORIVA > “0” à “0” A2_PORIVA = “0” à “1” |
12 | PORCENTAJE DE EXCLUSIÓN | A2_PORIVA |
13 | FECHA PUBLICACIÓN | A2_IVPDCOB. |
14 | TIPO COMPROBANTE | “6” |
15 | FECHA COMPROBANTE | EK_EMISSAO |
16 | NRO COMPROBANTE | FE_ORDPAG |
17 | COE | “” |
18 | COE ORIGINAL | “” |
19 | CAE | “” |
20 | IMPORTE COMPROBANTE | EK_VALOR |
21 | MOTIVO EMISIÓN DE NOTA DE CRÉDITO/AJUSTE | “” |
22 | RETENIDO/PERCIBIDO CLAVE | A2_CGC |
23 | CERTIFICADO ORIGINAL NRO | Número certificado original obligatorio cuando sea reversión del documento. |
24 | CERTIFICADO ORIGINAL FECHA RETEN | Fecha certificado original obligatorio cuando sea reversión del documento. |
25 | CERTIFICADO ORIGINAL IMPORTE | Importe certificado original obligatorio cuando sea reversión del documento. |
IVA Percepciones validación para: Facturas de salida/Notas de Débito / Notas de Crédito
CAMPO | VALIDACIONES | |
1 | VERSIÓN | “0100” |
2 | CÓDIGO DE TRAZABILIDAD | A1_NOME |
3 | IMPUESTO | “767” |
4 | RÉGIMEN | ”214” |
5 | FECHA RETENCIÓN/PERCEPCIÓN | F3_EMISSAO |
6 | CONDICIÓN | A1_TIPO <> (“I”; “N” o “S”) à “0” A1_TIPO = “I” à “1” A1_TIPO = “N” à “2” A1_TIPO = “S” à “3” |
7 | IMPOSIBILIDAD DE RETENCIÓN/PERCEPCIÓN | 0: Retención efectuada 1: Retención no efectuada |
8 | NO RETENCIÓN MOTIVO | “” |
9 | IMPORTE RETENCIÓN/PERCEPCIÓN | F3_VALIMP |
10 | IMPORTE DE LA BASE DE CÁLCULO/CANTIDAD | F3_VALBASE |
11 | RÉGIMEN DE EXCLUSIÓN | FH_ISENTO =”S” à “1”, donde FH_IMPOSTO = “IVP” FH_ISENTO = “N” à “0”, donde FH_IMPOSTO = “IVP |
12 | PORCENTAJE DE EXCLUSIÓN | FH_PERCENT, donde FH_IMPOSTO = “IVP” |
13 | FECHA PUBLICACIÓN | FH_DTINI, donde FH_IMPOSTO = “IVP” |
14 | TIPO COMPROBANTE | Este campo se completará de acuerdo a la tabla TIPO_COMPROBANTE |
15 | FECHA COMPROBANTE | E3_EMISSAO |
16 | NRO COMPROBANTE | F3_NFISCAL |
17 | COE | “” |
18 | COE ORIGINAL | “” |
19 | CAE | F3_CAE |
20 | IMPORTE COMPROBANTE | F1_VALBRUT |
21 | MOTIVO EMISIÓN DE NOTA DE CRÉDITO/AJUSTE | Según F1_TPAJUS “Q” - Diferencia Cantidad |
22 | RETENIDO/PERCIBIDO CLAVE | A1_CGC |
23 | CERTIFICADO ORIGINAL NRO | Número del certificado correspondiente al comprobante aplicado obligatorio cuando es nota de crédito. |
24 | CERTIFICADO ORIGINAL FECHA RETEN | Fecha del certificado correspondiente al comprobante aplicado obligatorio cuando es nota de crédito. |
25 | CERTIFICADO ORIGINAL IMPORTE | Importe del certificado correspondiente al comprobante aplicado obligatorio cuando es nota de crédito. |
Tabla tipo comprobante
| Documento | Formato | |
1 | FACTURA | 99999-99999999 (5 dígitos, guión medio, 8 dígitos) |
2 | RECIBO | 99999-99999999 (5 dígitos, guión medio, 8 dígitos) |
3 | NOTA CRÉDITO | 99999-99999999 (5 dígitos, guión medio, 8 dígitos) |
4 | NOTA DÉBITO | 99999-99999999 (5 dígitos, guión medio, 8 dígitos) |
5 | OTRO COMPROBANTE | X(16) (hasta 16 caracteres alfanuméricos) |
6 | ORDEN DE PAGO | X(12) (hasta 12 caracteres alfanuméricos) |
Nombre | Descripción |
|---|---|
| SA1 | Clientes |
| SA2 | Proveedores |
| SFH | Empresa Vs Zona fiscal |
| SFF | Configuración adicional de impuestos |
| SFB | Impuestos variables |
| SFE | Retenciones de impuestos |
| SF3 | Percepción de impuestos |
Código del paquete: 006729
Paquete: DMICNS-6902 - RG 4523-19 - INCORPORACIÓN DEL IVA
* Código del paquete para uso interno.
TABLA SF1
NOMBRE | DESCRIPCIÓN | TIPO | TAMAÑO | DESDE | HASTA | OBLIGATORIO | USADO | PICTURE | CONTEXTO | LISTA OPCIONES |
F1_TPAJUS | Tipo de Ajuste | Carácter | 1 | 1 | 1 | NO | Si | @! | Real | Q=Diferencia Cantidad;P=Diferencia Precio; C=Diferencia de Cambio;O=Otros Ajustes |
TABLA SF2
Nombre | DESCRIPCIÓN | TIPO | TAMAÑO | DESDE | HASTA | OBLIGATORIO | USADO | PICTURE | CONTEXTO | LISTA OPCIONES |
F2_TPAJUS | Tipo de Ajuste | Carácter | 1 | 1 | 1 | NO | Si | @! | Real | Q=Diferencia Cantidad;P=Diferencia Precio; C=Diferencia de Cambio;O=Otros Ajustes |
12.1.17 | 12.1.23 | 12.1.25
006729 DMICNS-6902