| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ||||||||||||||||||||||||||
2 | INPUTS GENERALES | |||||||||||||||||||||||||
3 | ||||||||||||||||||||||||||
4 | Inputs | Type | Reference | Note | ||||||||||||||||||||||
5 | Categoria de Producto | Configuracion | M_Product_Category | |||||||||||||||||||||||
6 | Socio de Negocios | Configuracion | C_BPartner | |||||||||||||||||||||||
7 | Producto | Configuracion | M_Product | |||||||||||||||||||||||
8 | Tipo Socio de Negocios Impositivo | Configuracion | C_BPartnerTypeTAX | Identificador No existente | ||||||||||||||||||||||
9 | Tipo Socio de Negocios | Configuracion | C_BPartnerType | |||||||||||||||||||||||
10 | Pais | Configuracion | C_Country | |||||||||||||||||||||||
11 | Localidad | Configuracion | C_Region | |||||||||||||||||||||||
12 | Impuesto | Configuracion | C_Tax | |||||||||||||||||||||||
13 | Retenido | Configuracion | Withheld_Tax | |||||||||||||||||||||||
14 | Tipo de Impuesto | Configuracion | C_TaxType | |||||||||||||||||||||||
15 | Tipo Compra y Venta | Configuracion | SOPOType | |||||||||||||||||||||||
16 | SubTotal de Factura | Valor | C_Invoice_GrandTotal | |||||||||||||||||||||||
17 | Sub Total de Producto | Valor | M_Product_Total | |||||||||||||||||||||||
18 | Cantidad | Valor | M_Product_QT | |||||||||||||||||||||||
19 | Factura CXC | Configuracion | AR_Invoice | |||||||||||||||||||||||
20 | Pago CXP | Configuracion | AP_Payment | |||||||||||||||||||||||
21 | ||||||||||||||||||||||||||
22 | ||||||||||||||||||||||||||
23 | Output | Type | Reference | Note | ||||||||||||||||||||||
24 | Tasa de Impuesto | Valor | TaxRate | Será el valor que tendrá por producto | ||||||||||||||||||||||
25 | ||||||||||||||||||||||||||
26 | CONFIGURACION DE IVA EN MEXICO | |||||||||||||||||||||||||
27 | ||||||||||||||||||||||||||
28 | IVA A MEDICAMENTOS | |||||||||||||||||||||||||
29 | parser.parse | IF((M_Product_Category='MEDICAMENTO' and Area="FARMACIA EXTERNA") ) | IF(M_Product_Category='NOMINA' and C_Country='MX' and C_Region= 'NL') | |||||||||||||||||||||||
30 | parser.setVariable | ('IVA', 0); | ('PayRollTAX',0.02) | |||||||||||||||||||||||
31 | IF(M_Product_Category='NOMINA' and C_Country='MX' and C_Region= 'DF') | |||||||||||||||||||||||||
32 | IVA A OTROS PRODUCTOS | ('PayRollTAX',0.03) | ||||||||||||||||||||||||
33 | parser.parse | IF(NOT(M_Product_Category='MEDICAMENTO' and Area="FARMACIA EXTERNA") ) | ||||||||||||||||||||||||
34 | parser.setVariable | ('IVA', 0.16); | ||||||||||||||||||||||||
35 | ||||||||||||||||||||||||||
36 | RETENCION DE IMPUESTOS IVA | |||||||||||||||||||||||||
37 | parser.getVariable | ('IVA') | ||||||||||||||||||||||||
38 | parser.parse | IF ('IVA'=0.16 AND C_BPartnerType = 'RETENCION_IVA') | ||||||||||||||||||||||||
39 | parser.setVariable | ('RETIVA', (0.16 / 3 * 2) * - 1 ); | ||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||
41 | RETENCION DE IMPUESTOS ISR | |||||||||||||||||||||||||
42 | parser.parse | IF ('IVA'=0.16 AND C_BPartnerType = 'RETENCION_ISR') | ||||||||||||||||||||||||
43 | parser.setVariable | ('RETISR', 0.10 ) | ||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | CONFIGURACIONES DE IVA KSA | |||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | IVA GENERAL MEDICAMENTOS | |||||||||||||||||||||||||
48 | parser.parse | IF((M_Product_Category='DRUG' AND C_BPartnerTypeTAX = "TaxYes") ) | ||||||||||||||||||||||||
49 | parser.parse | IF(M_Product_Total > 2000 ) | ||||||||||||||||||||||||
50 | parser.setVariable | ('IVA', 0.02); | ||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | IVA GENERAL MEDICAMENTOS | |||||||||||||||||||||||||
53 | parser.parse | IF((M_Product_Category='DRUG' AND C_BPartnerTypeTAX = "TaxYes") ) | ||||||||||||||||||||||||
54 | parser.parse | IF(M_Product_Total < 2000 ) | ||||||||||||||||||||||||
55 | parser.setVariable | ('IVA', 0.05); | ||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | IVA GENERAL MEDICAMENTOS SIN TAX | |||||||||||||||||||||||||
58 | parser.parse | IF((M_Product_Category='DRUG' AND NOT( C_BPartnerTypeTAX = "TaxYes" ) ) ) | ||||||||||||||||||||||||
59 | parser.setVariable | ('IVA', 0.00); | ||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | IVA GENERAL OTROS | |||||||||||||||||||||||||
62 | parser.parse | IF((M_Product_Category='DRUG' AND C_BPartnerTypeTAX = "TaxYes") ) | ||||||||||||||||||||||||
63 | parser.parse | IF(M_Product_Total > 2000 ) | ||||||||||||||||||||||||
64 | parser.setVariable | ('IVA', 0.02); | ||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | IVA GENERAL OTROS | |||||||||||||||||||||||||
67 | parser.parse | IF(NOT ( (M_Product_Category='MEDICAMENTO' AND C_BPartnerTypeTAX = "TaxYes" ) ) ) | ||||||||||||||||||||||||
68 | parser.parse | IF(M_Product_Total < 5000 ) | ||||||||||||||||||||||||
69 | parser.setVariable | ('IVA', 0.05); | ||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | IVA GENERAL OTROS | |||||||||||||||||||||||||
72 | parser.parse | IF(NOT ( (M_Product_Category='MEDICAMENTO' AND C_BPartnerTypeTAX = "TaxYes" ) ) ) | ||||||||||||||||||||||||
73 | parser.parse | IF(M_Product_Total > 5000 ) | ||||||||||||||||||||||||
74 | parser.setVariable | ('IVA', 0.04); | ||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | CONFIGURACIONES DE RETENCIONES ARGENTINA | |||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | Anexo II, inc B) pto 3 | |||||||||||||||||||||||||
80 | Rurales Sociedades | |||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | parser.parse | IF (DocType = AP_Payment) | ||||||||||||||||||||||||
83 | parser.parse | IF(( (M_Product_Category='ALQUILERES_RURAL' AND C_BPartnerTypeTAX = "Inscripto" ) ) ) | ||||||||||||||||||||||||
84 | parser.parse | IF(M_Product_Total > 7120 ) | ||||||||||||||||||||||||
85 | parser.setVariable | ('RetAII', 0.06); | ||||||||||||||||||||||||
86 | parser.parse | IF(( (M_Product_Category='ALQUILERES_RURAL' AND C_BPartnerTypeTAX = "No_Inscripto" ) ) ) | ||||||||||||||||||||||||
87 | parser.parse | IF(M_Product_Total > 7120 ) | ||||||||||||||||||||||||
88 | parser.setVariable | ('RetAII', 0.25); | ||||||||||||||||||||||||
89 | parser.parse | IF( (M_Product_Total * 'RetAII') < 150 ) | 150 | 0.25 | 37.5 | 150 | ||||||||||||||||||||
90 | parser.setVariable | ('C_Tax', 150); | ||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | Anexo II | |||||||||||||||||||||||||
94 | Retenciones con Uso de Escalas | |||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | parser.parse | IF (DocType = AP_Payment) | ||||||||||||||||||||||||
97 | parser.parse | IF(( (M_Product_Category='ALQUILERES_RURAL' AND C_BPartnerTypeTAX = "Inscripto" ) ) ) | ||||||||||||||||||||||||
98 | parser.parse | IF(M_Product_Total > 10700 ) | ||||||||||||||||||||||||
99 | parser.setVariable | ('RetAII', 'Escala'); | ||||||||||||||||||||||||
100 | parser.parse | IF(( (M_Product_Category='ALQUILERES_RURAL' AND C_BPartnerTypeTAX = "No_Inscripto" ) ) ) |