changeset ad1f105e5c87 in modules/account_es:default details: https://hg.tryton.org/modules/account_es?cmd=changeset;node=ad1f105e5c87 description: Add Regimen especial agricultura, ganaderia y pesca tax rules
issue9150 review299111002 diffstat: CHANGELOG | 1 + tax.xml | 173 +++++++++++++++++++++++++++++++------------------------- tax_normal.xml | 172 +++++++++++++++++++++++++++++++------------------------- tax_pyme.xml | 172 +++++++++++++++++++++++++++++++------------------------- 4 files changed, 286 insertions(+), 232 deletions(-) diffs (897 lines): diff -r 0dd35ac42aaf -r ad1f105e5c87 CHANGELOG --- a/CHANGELOG Sat Mar 28 14:17:49 2020 +0100 +++ b/CHANGELOG Mon Mar 30 09:54:29 2020 +0200 @@ -1,3 +1,4 @@ +* Add Regimen especial agricultura, ganaderia y pesca tax rules * Allow requests for advancements on SEPA payments * Exclude taxes from other reports on Spanish VAT List diff -r 0dd35ac42aaf -r ad1f105e5c87 tax.xml --- a/tax.xml Sat Mar 28 14:17:49 2020 +0100 +++ b/tax.xml Mon Mar 30 09:54:29 2020 +0200 @@ -235,15 +235,6 @@ <field name="invoice_account" ref="pgc_4700"/> <field name="credit_note_account" ref="pgc_4700"/> </record> - <record model="account.tax.template" id="irpf_1_purchase"> - <field name="name">Retención IRPF 1%</field> - <field name="description">Retención IRPF 1%</field> - <field name="account" ref="pgc_0"/> - <field name="type">percentage</field> - <field name="rate" eval="Decimal('-0.01')"/> - <field name="invoice_account" ref="pgc_4751"/> - <field name="credit_note_account" ref="pgc_4751"/> - </record> <record model="account.tax.template" id="irpf_2_purchase"> <field name="name">Retención IRPF 2%</field> <field name="description">Retención IRPF 2%</field> @@ -252,6 +243,7 @@ <field name="rate" eval="Decimal('-0.02')"/> <field name="invoice_account" ref="pgc_4751"/> <field name="credit_note_account" ref="pgc_4751"/> + <field name="sequence" eval="20"/> </record> <record model="account.tax.template" id="irpf_7_purchase"> <field name="name">Retención IRPF 7%</field> @@ -261,6 +253,7 @@ <field name="rate" eval="Decimal('-0.07')"/> <field name="invoice_account" ref="pgc_4751"/> <field name="credit_note_account" ref="pgc_4751"/> + <field name="sequence" eval="20"/> </record> <record model="account.tax.template" id="irpf_15_purchase"> <field name="name">Retención IRPF 15%</field> @@ -270,6 +263,7 @@ <field name="rate" eval="Decimal('-0.15')"/> <field name="invoice_account" ref="pgc_4751"/> <field name="credit_note_account" ref="pgc_4751"/> + <field name="sequence" eval="20"/> </record> <record model="account.tax.template" id="irpf_19_purchase_rent"> <field name="name">Retenciones IRPF Arrendamientos 19%</field> @@ -279,6 +273,7 @@ <field name="rate" eval="Decimal('-0.19')"/> <field name="invoice_account" ref="pgc_4751"/> <field name="credit_note_account" ref="pgc_4751"/> + <field name="sequence" eval="20"/> </record> <record model="account.tax.template" id="irpf_1_sale"> <field name="name">Retenciones a cuenta IRPF 1%</field> @@ -288,6 +283,7 @@ <field name="rate" eval="Decimal('-0.01')"/> <field name="invoice_account" ref="pgc_473"/> <field name="credit_note_account" ref="pgc_473"/> + <field name="sequence" eval="20"/> </record> <record model="account.tax.template" id="irpf_2_sale"> <field name="name">Retenciones a cuenta IRPF 2%</field> @@ -297,6 +293,7 @@ <field name="rate" eval="Decimal('-0.02')"/> <field name="invoice_account" ref="pgc_473"/> <field name="credit_note_account" ref="pgc_473"/> + <field name="sequence" eval="20"/> </record> <record model="account.tax.template" id="irpf_7_sale"> <field name="name">Retenciones a cuenta IRPF 7%</field> @@ -306,6 +303,7 @@ <field name="rate" eval="Decimal('-0.07')"/> <field name="invoice_account" ref="pgc_473"/> <field name="credit_note_account" ref="pgc_473"/> + <field name="sequence" eval="20"/> </record> <record model="account.tax.template" id="irpf_15_sale"> <field name="name">Retenciones a cuenta IRPF 15%</field> @@ -315,6 +313,31 @@ <field name="rate" eval="Decimal('-0.15')"/> <field name="invoice_account" ref="pgc_473"/> <field name="credit_note_account" ref="pgc_473"/> + <field name="sequence" eval="20"/> + </record> + <record model="account.tax.template" id="iva_reagp_12"> + <field name="name">IVA 12% Regimen especial agrÃcola y forestal</field> + <field name="description">IVA 12% REAGYP</field> + <field name="account" ref="pgc_0"/> + <field name="group" ref="tax_group_purchase"/> + <field name="type">percentage</field> + <field name="rate" eval="Decimal('0.12')"/> + <field name="invoice_account" ref="pgc_472"/> + <field name="credit_note_account" ref="pgc_472"/> + <field name="update_unit_price" eval="True"/> + <field name="sequence" eval="10"/> + </record> + <record model="account.tax.template" id="iva_reagp_105"> + <field name="name">IVA 10.5% Regimen especial ganaderÃa y pesca</field> + <field name="description">IVA 10.5% REAGYP</field> + <field name="account" ref="pgc_0"/> + <field name="group" ref="tax_group_purchase"/> + <field name="type">percentage</field> + <field name="rate" eval="Decimal('0.105')"/> + <field name="invoice_account" ref="pgc_472"/> + <field name="credit_note_account" ref="pgc_472"/> + <field name="update_unit_price" eval="True"/> + <field name="sequence" eval="10"/> </record> </data> <data grouped="1"> @@ -1287,20 +1310,6 @@ <field name="aeat_report">111</field> <field name="account" ref="pgc_0"/> </record> - <record model="account.tax.code.line.template" id="vat_code_irpf_purchase_base-irpf_1_purchase-invoice"> - <field name="code" ref="vat_code_irpf_purchase_base"/> - <field name="tax" ref="irpf_1_purchase"/> - <field name="operator">+</field> - <field name="amount">base</field> - <field name="type">invoice</field> - </record> - <record model="account.tax.code.line.template" id="vat_code_irpf_purchase_base-irpf_1_purchase-credit"> - <field name="code" ref="vat_code_irpf_purchase_base"/> - <field name="tax" ref="irpf_1_purchase"/> - <field name="operator">-</field> - <field name="amount">base</field> - <field name="type">credit</field> - </record> <record model="account.tax.code.line.template" id="vat_code_irpf_purchase_base-irpf_2_purchase-invoice"> <field name="code" ref="vat_code_irpf_purchase_base"/> <field name="tax" ref="irpf_2_purchase"/> @@ -1351,20 +1360,6 @@ <field name="parent" ref="vat_code_irpf_purchase"/> <field name="account" ref="pgc_0"/> </record> - <record model="account.tax.code.line.template" id="vat_code_irpf_purchase_tax-irpf_1_purchase-invoice"> - <field name="code" ref="vat_code_irpf_purchase_tax"/> - <field name="tax" ref="irpf_1_purchase"/> - <field name="operator">+</field> - <field name="amount">tax</field> - <field name="type">invoice</field> - </record> - <record model="account.tax.code.line.template" id="vat_code_irpf_purchase_tax-irpf_1_purchase-credit"> - <field name="code" ref="vat_code_irpf_purchase_tax"/> - <field name="tax" ref="irpf_1_purchase"/> - <field name="operator">-</field> - <field name="amount">tax</field> - <field name="type">credit</field> - </record> <record model="account.tax.code.line.template" id="vat_code_irpf_purchase_tax-irpf_2_purchase-invoice"> <field name="code" ref="vat_code_irpf_purchase_tax"/> <field name="tax" ref="irpf_2_purchase"/> @@ -1583,6 +1578,35 @@ <field name="amount">tax</field> <field name="type">credit</field> </record> + + <record model="account.tax.code.line.template" id="vat_code_iva_deducible_tax_reagp-iva_reagp_12-invoice"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp"/> + <field name="tax" ref="iva_reagp_12"/> + <field name="operator">+</field> + <field name="amount">tax</field> + <field name="type">invoice</field> + </record> + <record model="account.tax.code.line.template" id="vat_code_iva_deducible_tax_reagp-iva_reagp_12-credit"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp"/> + <field name="tax" ref="iva_reagp_12"/> + <field name="operator">-</field> + <field name="amount">tax</field> + <field name="type">credit</field> + </record> + <record model="account.tax.code.line.template" id="vat_code_iva_deducible_tax_reagp-iva_reagp_105-invoice"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp"/> + <field name="tax" ref="iva_reagp_105"/> + <field name="operator">+</field> + <field name="amount">tax</field> + <field name="type">invoice</field> + </record> + <record model="account.tax.code.line.template" id="vat_code_iva_deducible_tax_reagp-iva_reagp_105-credit"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp"/> + <field name="tax" ref="iva_reagp_105"/> + <field name="operator">-</field> + <field name="amount">tax</field> + <field name="type">credit</field> + </record> </data> <data grouped="1"> <record model="account.tax.rule.template" id="fp_recargo"> @@ -1610,16 +1634,6 @@ <field name="account" ref="pgc_0"/> <field name="kind">purchase</field> </record> - <record model="account.tax.rule.template" id="fp_irpf2_purchase"> - <field name="name">Retención IRPF 2%</field> - <field name="account" ref="pgc_0"/> - <field name="kind">purchase</field> - </record> - <record model="account.tax.rule.template" id="fp_irpf1_purchase"> - <field name="name">Retención IRPF 1%</field> - <field name="account" ref="pgc_0"/> - <field name="kind">purchase</field> - </record> <record model="account.tax.rule.template" id="fp_intra_purchase"> <field name="name">Compras Intracomunitarias</field> <field name="account" ref="pgc_0"/> @@ -1640,21 +1654,21 @@ <field name="account" ref="pgc_0"/> <field name="kind">sale</field> </record> - <record model="account.tax.rule.template" id="fp_irpf2_sale"> - <field name="name">Retención IRPF 2%</field> - <field name="account" ref="pgc_0"/> - <field name="kind">sale</field> - </record> - <record model="account.tax.rule.template" id="fp_irpf1_sale"> - <field name="name">Retención IRPF 1%</field> - <field name="account" ref="pgc_0"/> - <field name="kind">sale</field> - </record> <record model="account.tax.rule.template" id="fp_extra_sale"> <field name="name">Ventas Extracomunitarias</field> <field name="account" ref="pgc_0"/> <field name="kind">sale</field> </record> + <record model="account.tax.rule.template" id="fp_regp"> + <field name="name">Régimen especial ganaderÃa y pesca</field> + <field name="account" ref="pgc_0"/> + <field name="kind">purchase</field> + </record> + <record model="account.tax.rule.template" id="fp_reaf"> + <field name="name">Régimen especial agrÃcola y forestal</field> + <field name="account" ref="pgc_0"/> + <field name="kind">purchase</field> + </record> </data> <data grouped="1"> <record model="account.tax.rule.line.template" id="fptt_recargo_4_2"> @@ -1710,16 +1724,6 @@ <field name="tax" ref="irpf_7_purchase"/> </record> - <record model="account.tax.rule.line.template" id="fp_line_irpf2_purchase"> - <field name="rule" ref="fp_irpf2_purchase"/> - <field name="tax" ref="irpf_2_purchase"/> - </record> - - <record model="account.tax.rule.line.template" id="fp_line_irpf1_purchase"> - <field name="rule" ref="fp_irpf1_purchase"/> - <field name="tax" ref="irpf_1_purchase"/> - </record> - <record model="account.tax.rule.line.template" id="fp_line_irpf15_sale"> <field name="rule" ref="fp_irpf15_sale"/> <field name="tax" ref="irpf_15_sale"/> @@ -1754,21 +1758,34 @@ <field name="tax" ref="irpf_7_sale"/> </record> - <record model="account.tax.rule.line.template" id="fp_line_irpf2_sale"> - <field name="rule" ref="fp_irpf2_sale"/> - <field name="tax" ref="irpf_2_sale"/> - </record> - - <record model="account.tax.rule.line.template" - id="fp_line_irpf1_sale"> - <field name="rule" ref="fp_irpf1_sale"/> - <field name="tax" ref="irpf_1_sale"/> - </record> - <record model="account.tax.rule.line.template" id="fptt_extra_sale"> <field name="rule" ref="fp_extra_sale"/> <field name="tax" ref="iva_rep_exportaciones"/> <field name="group" ref="tax_group_sale"/> </record> + + <record model="account.tax.rule.line.template" id="fp_reaf_iva"> + <field name="rule" ref="fp_reaf"/> + <field name="tax" ref="iva_reagp_12"/> + <field name="group" ref="tax_group_purchase"/> + <field name="sequence" eval="10"/> + </record> + <record model="account.tax.rule.line.template" id="fp_reaf_irpf"> + <field name="rule" ref="fp_reaf"/> + <field name="tax" ref="irpf_2_purchase"/> + <field name="sequence" eval="20"/> + </record> + + <record model="account.tax.rule.line.template" id="fp_regp_iva"> + <field name="rule" ref="fp_regp"/> + <field name="tax" ref="iva_reagp_105"/> + <field name="group" ref="tax_group_purchase"/> + <field name="sequence" eval="10"/> + </record> + <record model="account.tax.rule.line.template" id="fp_regp_irpf"> + <field name="rule" ref="fp_regp"/> + <field name="tax" ref="irpf_2_purchase"/> + <field name="sequence" eval="20"/> + </record> </data> </tryton> diff -r 0dd35ac42aaf -r ad1f105e5c87 tax_normal.xml --- a/tax_normal.xml Sat Mar 28 14:17:49 2020 +0100 +++ b/tax_normal.xml Mon Mar 30 09:54:29 2020 +0200 @@ -235,15 +235,6 @@ <field name="invoice_account" ref="pgc_4700_normal"/> <field name="credit_note_account" ref="pgc_4700_normal"/> </record> - <record id="irpf_1_purchase_normal" model="account.tax.template"> - <field name="name">Retención IRPF 1%</field> - <field name="description">Retención IRPF 1%</field> - <field name="account" ref="pgc_0_normal"/> - <field name="type">percentage</field> - <field name="rate" eval="Decimal('-0.01')"/> - <field name="invoice_account" ref="pgc_4751_normal"/> - <field name="credit_note_account" ref="pgc_4751_normal"/> - </record> <record id="irpf_2_purchase_normal" model="account.tax.template"> <field name="name">Retención IRPF 2%</field> <field name="description">Retención IRPF 2%</field> @@ -252,6 +243,7 @@ <field name="rate" eval="Decimal('-0.02')"/> <field name="invoice_account" ref="pgc_4751_normal"/> <field name="credit_note_account" ref="pgc_4751_normal"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_7_purchase_normal" model="account.tax.template"> <field name="name">Retención IRPF 7%</field> @@ -261,6 +253,7 @@ <field name="rate" eval="Decimal('-0.07')"/> <field name="invoice_account" ref="pgc_4751_normal"/> <field name="credit_note_account" ref="pgc_4751_normal"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_15_purchase_normal" model="account.tax.template"> <field name="name">Retención IRPF 15%</field> @@ -270,6 +263,7 @@ <field name="rate" eval="Decimal('-0.15')"/> <field name="invoice_account" ref="pgc_4751_normal"/> <field name="credit_note_account" ref="pgc_4751_normal"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_19_purchase_rent_normal" model="account.tax.template"> <field name="name">Retenciones IRPF Arrendamientos 19%</field> @@ -279,6 +273,7 @@ <field name="rate" eval="Decimal('-0.19')"/> <field name="invoice_account" ref="pgc_4751_normal"/> <field name="credit_note_account" ref="pgc_4751_normal"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_1_sale_normal" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 1%</field> @@ -288,6 +283,7 @@ <field name="rate" eval="Decimal('-0.01')"/> <field name="invoice_account" ref="pgc_473_normal"/> <field name="credit_note_account" ref="pgc_473_normal"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_2_sale_normal" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 2%</field> @@ -297,6 +293,7 @@ <field name="rate" eval="Decimal('-0.02')"/> <field name="invoice_account" ref="pgc_473_normal"/> <field name="credit_note_account" ref="pgc_473_normal"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_7_sale_normal" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 7%</field> @@ -306,6 +303,7 @@ <field name="rate" eval="Decimal('-0.07')"/> <field name="invoice_account" ref="pgc_473_normal"/> <field name="credit_note_account" ref="pgc_473_normal"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_15_sale_normal" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 15%</field> @@ -315,6 +313,31 @@ <field name="rate" eval="Decimal('-0.15')"/> <field name="invoice_account" ref="pgc_473_normal"/> <field name="credit_note_account" ref="pgc_473_normal"/> + <field name="sequence" eval="20"/> + </record> + <record id="iva_reagp_12_normal" model="account.tax.template"> + <field name="name">IVA 12% Regimen especial agrÃcola y forestal</field> + <field name="description">IVA 12% REAGYP</field> + <field name="account" ref="pgc_0_normal"/> + <field name="group" ref="tax_group_purchase"/> + <field name="type">percentage</field> + <field name="rate" eval="Decimal('0.12')"/> + <field name="invoice_account" ref="pgc_472_normal"/> + <field name="credit_note_account" ref="pgc_472_normal"/> + <field name="update_unit_price" eval="True"/> + <field name="sequence" eval="10"/> + </record> + <record id="iva_reagp_105_normal" model="account.tax.template"> + <field name="name">IVA 10.5% Regimen especial ganaderÃa y pesca</field> + <field name="description">IVA 10.5% REAGYP</field> + <field name="account" ref="pgc_0_normal"/> + <field name="group" ref="tax_group_purchase"/> + <field name="type">percentage</field> + <field name="rate" eval="Decimal('0.105')"/> + <field name="invoice_account" ref="pgc_472_normal"/> + <field name="credit_note_account" ref="pgc_472_normal"/> + <field name="update_unit_price" eval="True"/> + <field name="sequence" eval="10"/> </record> </data> <data grouped="1"> @@ -1287,20 +1310,6 @@ <field name="aeat_report">111</field> <field name="account" ref="pgc_0_normal"/> </record> - <record id="vat_code_irpf_purchase_base-irpf_1_purchase-invoice_normal" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_base_normal"/> - <field name="tax" ref="irpf_1_purchase_normal"/> - <field name="operator">+</field> - <field name="amount">base</field> - <field name="type">invoice</field> - </record> - <record id="vat_code_irpf_purchase_base-irpf_1_purchase-credit_normal" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_base_normal"/> - <field name="tax" ref="irpf_1_purchase_normal"/> - <field name="operator">-</field> - <field name="amount">base</field> - <field name="type">credit</field> - </record> <record id="vat_code_irpf_purchase_base-irpf_2_purchase-invoice_normal" model="account.tax.code.line.template"> <field name="code" ref="vat_code_irpf_purchase_base_normal"/> <field name="tax" ref="irpf_2_purchase_normal"/> @@ -1351,20 +1360,6 @@ <field name="parent" ref="vat_code_irpf_purchase_normal"/> <field name="account" ref="pgc_0_normal"/> </record> - <record id="vat_code_irpf_purchase_tax-irpf_1_purchase-invoice_normal" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_tax_normal"/> - <field name="tax" ref="irpf_1_purchase_normal"/> - <field name="operator">+</field> - <field name="amount">tax</field> - <field name="type">invoice</field> - </record> - <record id="vat_code_irpf_purchase_tax-irpf_1_purchase-credit_normal" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_tax_normal"/> - <field name="tax" ref="irpf_1_purchase_normal"/> - <field name="operator">-</field> - <field name="amount">tax</field> - <field name="type">credit</field> - </record> <record id="vat_code_irpf_purchase_tax-irpf_2_purchase-invoice_normal" model="account.tax.code.line.template"> <field name="code" ref="vat_code_irpf_purchase_tax_normal"/> <field name="tax" ref="irpf_2_purchase_normal"/> @@ -1583,6 +1578,35 @@ <field name="amount">tax</field> <field name="type">credit</field> </record> + + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_12-invoice_normal" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_normal"/> + <field name="tax" ref="iva_reagp_12_normal"/> + <field name="operator">+</field> + <field name="amount">tax</field> + <field name="type">invoice</field> + </record> + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_12-credit_normal" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_normal"/> + <field name="tax" ref="iva_reagp_12_normal"/> + <field name="operator">-</field> + <field name="amount">tax</field> + <field name="type">credit</field> + </record> + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_105-invoice_normal" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_normal"/> + <field name="tax" ref="iva_reagp_105_normal"/> + <field name="operator">+</field> + <field name="amount">tax</field> + <field name="type">invoice</field> + </record> + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_105-credit_normal" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_normal"/> + <field name="tax" ref="iva_reagp_105_normal"/> + <field name="operator">-</field> + <field name="amount">tax</field> + <field name="type">credit</field> + </record> </data> <data grouped="1"> <record id="fp_recargo_normal" model="account.tax.rule.template"> @@ -1610,16 +1634,6 @@ <field name="account" ref="pgc_0_normal"/> <field name="kind">purchase</field> </record> - <record id="fp_irpf2_purchase_normal" model="account.tax.rule.template"> - <field name="name">Retención IRPF 2%</field> - <field name="account" ref="pgc_0_normal"/> - <field name="kind">purchase</field> - </record> - <record id="fp_irpf1_purchase_normal" model="account.tax.rule.template"> - <field name="name">Retención IRPF 1%</field> - <field name="account" ref="pgc_0_normal"/> - <field name="kind">purchase</field> - </record> <record id="fp_intra_purchase_normal" model="account.tax.rule.template"> <field name="name">Compras Intracomunitarias</field> <field name="account" ref="pgc_0_normal"/> @@ -1640,21 +1654,21 @@ <field name="account" ref="pgc_0_normal"/> <field name="kind">sale</field> </record> - <record id="fp_irpf2_sale_normal" model="account.tax.rule.template"> - <field name="name">Retención IRPF 2%</field> - <field name="account" ref="pgc_0_normal"/> - <field name="kind">sale</field> - </record> - <record id="fp_irpf1_sale_normal" model="account.tax.rule.template"> - <field name="name">Retención IRPF 1%</field> - <field name="account" ref="pgc_0_normal"/> - <field name="kind">sale</field> - </record> <record id="fp_extra_sale_normal" model="account.tax.rule.template"> <field name="name">Ventas Extracomunitarias</field> <field name="account" ref="pgc_0_normal"/> <field name="kind">sale</field> </record> + <record id="fp_regp_normal" model="account.tax.rule.template"> + <field name="name">Régimen especial ganaderÃa y pesca</field> + <field name="account" ref="pgc_0_normal"/> + <field name="kind">purchase</field> + </record> + <record id="fp_reaf_normal" model="account.tax.rule.template"> + <field name="name">Régimen especial agrÃcola y forestal</field> + <field name="account" ref="pgc_0_normal"/> + <field name="kind">purchase</field> + </record> </data> <data grouped="1"> <record id="fptt_recargo_4_2_normal" model="account.tax.rule.line.template"> @@ -1710,16 +1724,6 @@ <field name="tax" ref="irpf_7_purchase_normal"/> </record> - <record id="fp_line_irpf2_purchase_normal" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf2_purchase_normal"/> - <field name="tax" ref="irpf_2_purchase_normal"/> - </record> - - <record id="fp_line_irpf1_purchase_normal" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf1_purchase_normal"/> - <field name="tax" ref="irpf_1_purchase_normal"/> - </record> - <record id="fp_line_irpf15_sale_normal" model="account.tax.rule.line.template"> <field name="rule" ref="fp_irpf15_sale_normal"/> <field name="tax" ref="irpf_15_sale_normal"/> @@ -1754,20 +1758,34 @@ <field name="tax" ref="irpf_7_sale_normal"/> </record> - <record id="fp_line_irpf2_sale_normal" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf2_sale_normal"/> - <field name="tax" ref="irpf_2_sale_normal"/> - </record> - - <record id="fp_line_irpf1_sale_normal" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf1_sale_normal"/> - <field name="tax" ref="irpf_1_sale_normal"/> - </record> - <record id="fptt_extra_sale_normal" model="account.tax.rule.line.template"> <field name="rule" ref="fp_extra_sale_normal"/> <field name="tax" ref="iva_rep_exportaciones_normal"/> <field name="group" ref="tax_group_sale"/> </record> + + <record id="fp_reaf_iva_normal" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_reaf_normal"/> + <field name="tax" ref="iva_reagp_12_normal"/> + <field name="group" ref="tax_group_purchase"/> + <field name="sequence" eval="10"/> + </record> + <record id="fp_reaf_irpf_normal" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_reaf_normal"/> + <field name="tax" ref="irpf_2_purchase_normal"/> + <field name="sequence" eval="20"/> + </record> + + <record id="fp_regp_iva_normal" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_regp_normal"/> + <field name="tax" ref="iva_reagp_105_normal"/> + <field name="group" ref="tax_group_purchase"/> + <field name="sequence" eval="10"/> + </record> + <record id="fp_regp_irpf_normal" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_regp_normal"/> + <field name="tax" ref="irpf_2_purchase_normal"/> + <field name="sequence" eval="20"/> + </record> </data> </tryton> diff -r 0dd35ac42aaf -r ad1f105e5c87 tax_pyme.xml --- a/tax_pyme.xml Sat Mar 28 14:17:49 2020 +0100 +++ b/tax_pyme.xml Mon Mar 30 09:54:29 2020 +0200 @@ -235,15 +235,6 @@ <field name="invoice_account" ref="pgc_4700_pyme"/> <field name="credit_note_account" ref="pgc_4700_pyme"/> </record> - <record id="irpf_1_purchase_pyme" model="account.tax.template"> - <field name="name">Retención IRPF 1%</field> - <field name="description">Retención IRPF 1%</field> - <field name="account" ref="pgc_0_pyme"/> - <field name="type">percentage</field> - <field name="rate" eval="Decimal('-0.01')"/> - <field name="invoice_account" ref="pgc_4751_pyme"/> - <field name="credit_note_account" ref="pgc_4751_pyme"/> - </record> <record id="irpf_2_purchase_pyme" model="account.tax.template"> <field name="name">Retención IRPF 2%</field> <field name="description">Retención IRPF 2%</field> @@ -252,6 +243,7 @@ <field name="rate" eval="Decimal('-0.02')"/> <field name="invoice_account" ref="pgc_4751_pyme"/> <field name="credit_note_account" ref="pgc_4751_pyme"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_7_purchase_pyme" model="account.tax.template"> <field name="name">Retención IRPF 7%</field> @@ -261,6 +253,7 @@ <field name="rate" eval="Decimal('-0.07')"/> <field name="invoice_account" ref="pgc_4751_pyme"/> <field name="credit_note_account" ref="pgc_4751_pyme"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_15_purchase_pyme" model="account.tax.template"> <field name="name">Retención IRPF 15%</field> @@ -270,6 +263,7 @@ <field name="rate" eval="Decimal('-0.15')"/> <field name="invoice_account" ref="pgc_4751_pyme"/> <field name="credit_note_account" ref="pgc_4751_pyme"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_19_purchase_rent_pyme" model="account.tax.template"> <field name="name">Retenciones IRPF Arrendamientos 19%</field> @@ -279,6 +273,7 @@ <field name="rate" eval="Decimal('-0.19')"/> <field name="invoice_account" ref="pgc_4751_pyme"/> <field name="credit_note_account" ref="pgc_4751_pyme"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_1_sale_pyme" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 1%</field> @@ -288,6 +283,7 @@ <field name="rate" eval="Decimal('-0.01')"/> <field name="invoice_account" ref="pgc_473_pyme"/> <field name="credit_note_account" ref="pgc_473_pyme"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_2_sale_pyme" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 2%</field> @@ -297,6 +293,7 @@ <field name="rate" eval="Decimal('-0.02')"/> <field name="invoice_account" ref="pgc_473_pyme"/> <field name="credit_note_account" ref="pgc_473_pyme"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_7_sale_pyme" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 7%</field> @@ -306,6 +303,7 @@ <field name="rate" eval="Decimal('-0.07')"/> <field name="invoice_account" ref="pgc_473_pyme"/> <field name="credit_note_account" ref="pgc_473_pyme"/> + <field name="sequence" eval="20"/> </record> <record id="irpf_15_sale_pyme" model="account.tax.template"> <field name="name">Retenciones a cuenta IRPF 15%</field> @@ -315,6 +313,31 @@ <field name="rate" eval="Decimal('-0.15')"/> <field name="invoice_account" ref="pgc_473_pyme"/> <field name="credit_note_account" ref="pgc_473_pyme"/> + <field name="sequence" eval="20"/> + </record> + <record id="iva_reagp_12_pyme" model="account.tax.template"> + <field name="name">IVA 12% Regimen especial agrÃcola y forestal</field> + <field name="description">IVA 12% REAGYP</field> + <field name="account" ref="pgc_0_pyme"/> + <field name="group" ref="tax_group_purchase"/> + <field name="type">percentage</field> + <field name="rate" eval="Decimal('0.12')"/> + <field name="invoice_account" ref="pgc_472_pyme"/> + <field name="credit_note_account" ref="pgc_472_pyme"/> + <field name="update_unit_price" eval="True"/> + <field name="sequence" eval="10"/> + </record> + <record id="iva_reagp_105_pyme" model="account.tax.template"> + <field name="name">IVA 10.5% Regimen especial ganaderÃa y pesca</field> + <field name="description">IVA 10.5% REAGYP</field> + <field name="account" ref="pgc_0_pyme"/> + <field name="group" ref="tax_group_purchase"/> + <field name="type">percentage</field> + <field name="rate" eval="Decimal('0.105')"/> + <field name="invoice_account" ref="pgc_472_pyme"/> + <field name="credit_note_account" ref="pgc_472_pyme"/> + <field name="update_unit_price" eval="True"/> + <field name="sequence" eval="10"/> </record> </data> <data grouped="1"> @@ -1287,20 +1310,6 @@ <field name="aeat_report">111</field> <field name="account" ref="pgc_0_pyme"/> </record> - <record id="vat_code_irpf_purchase_base-irpf_1_purchase-invoice_pyme" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_base_pyme"/> - <field name="tax" ref="irpf_1_purchase_pyme"/> - <field name="operator">+</field> - <field name="amount">base</field> - <field name="type">invoice</field> - </record> - <record id="vat_code_irpf_purchase_base-irpf_1_purchase-credit_pyme" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_base_pyme"/> - <field name="tax" ref="irpf_1_purchase_pyme"/> - <field name="operator">-</field> - <field name="amount">base</field> - <field name="type">credit</field> - </record> <record id="vat_code_irpf_purchase_base-irpf_2_purchase-invoice_pyme" model="account.tax.code.line.template"> <field name="code" ref="vat_code_irpf_purchase_base_pyme"/> <field name="tax" ref="irpf_2_purchase_pyme"/> @@ -1351,20 +1360,6 @@ <field name="parent" ref="vat_code_irpf_purchase_pyme"/> <field name="account" ref="pgc_0_pyme"/> </record> - <record id="vat_code_irpf_purchase_tax-irpf_1_purchase-invoice_pyme" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_tax_pyme"/> - <field name="tax" ref="irpf_1_purchase_pyme"/> - <field name="operator">+</field> - <field name="amount">tax</field> - <field name="type">invoice</field> - </record> - <record id="vat_code_irpf_purchase_tax-irpf_1_purchase-credit_pyme" model="account.tax.code.line.template"> - <field name="code" ref="vat_code_irpf_purchase_tax_pyme"/> - <field name="tax" ref="irpf_1_purchase_pyme"/> - <field name="operator">-</field> - <field name="amount">tax</field> - <field name="type">credit</field> - </record> <record id="vat_code_irpf_purchase_tax-irpf_2_purchase-invoice_pyme" model="account.tax.code.line.template"> <field name="code" ref="vat_code_irpf_purchase_tax_pyme"/> <field name="tax" ref="irpf_2_purchase_pyme"/> @@ -1583,6 +1578,35 @@ <field name="amount">tax</field> <field name="type">credit</field> </record> + + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_12-invoice_pyme" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_pyme"/> + <field name="tax" ref="iva_reagp_12_pyme"/> + <field name="operator">+</field> + <field name="amount">tax</field> + <field name="type">invoice</field> + </record> + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_12-credit_pyme" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_pyme"/> + <field name="tax" ref="iva_reagp_12_pyme"/> + <field name="operator">-</field> + <field name="amount">tax</field> + <field name="type">credit</field> + </record> + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_105-invoice_pyme" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_pyme"/> + <field name="tax" ref="iva_reagp_105_pyme"/> + <field name="operator">+</field> + <field name="amount">tax</field> + <field name="type">invoice</field> + </record> + <record id="vat_code_iva_deducible_tax_reagp-iva_reagp_105-credit_pyme" model="account.tax.code.line.template"> + <field name="code" ref="vat_code_iva_deducible_tax_reagp_pyme"/> + <field name="tax" ref="iva_reagp_105_pyme"/> + <field name="operator">-</field> + <field name="amount">tax</field> + <field name="type">credit</field> + </record> </data> <data grouped="1"> <record id="fp_recargo_pyme" model="account.tax.rule.template"> @@ -1610,16 +1634,6 @@ <field name="account" ref="pgc_0_pyme"/> <field name="kind">purchase</field> </record> - <record id="fp_irpf2_purchase_pyme" model="account.tax.rule.template"> - <field name="name">Retención IRPF 2%</field> - <field name="account" ref="pgc_0_pyme"/> - <field name="kind">purchase</field> - </record> - <record id="fp_irpf1_purchase_pyme" model="account.tax.rule.template"> - <field name="name">Retención IRPF 1%</field> - <field name="account" ref="pgc_0_pyme"/> - <field name="kind">purchase</field> - </record> <record id="fp_intra_purchase_pyme" model="account.tax.rule.template"> <field name="name">Compras Intracomunitarias</field> <field name="account" ref="pgc_0_pyme"/> @@ -1640,21 +1654,21 @@ <field name="account" ref="pgc_0_pyme"/> <field name="kind">sale</field> </record> - <record id="fp_irpf2_sale_pyme" model="account.tax.rule.template"> - <field name="name">Retención IRPF 2%</field> - <field name="account" ref="pgc_0_pyme"/> - <field name="kind">sale</field> - </record> - <record id="fp_irpf1_sale_pyme" model="account.tax.rule.template"> - <field name="name">Retención IRPF 1%</field> - <field name="account" ref="pgc_0_pyme"/> - <field name="kind">sale</field> - </record> <record id="fp_extra_sale_pyme" model="account.tax.rule.template"> <field name="name">Ventas Extracomunitarias</field> <field name="account" ref="pgc_0_pyme"/> <field name="kind">sale</field> </record> + <record id="fp_regp_pyme" model="account.tax.rule.template"> + <field name="name">Régimen especial ganaderÃa y pesca</field> + <field name="account" ref="pgc_0_pyme"/> + <field name="kind">purchase</field> + </record> + <record id="fp_reaf_pyme" model="account.tax.rule.template"> + <field name="name">Régimen especial agrÃcola y forestal</field> + <field name="account" ref="pgc_0_pyme"/> + <field name="kind">purchase</field> + </record> </data> <data grouped="1"> <record id="fptt_recargo_4_2_pyme" model="account.tax.rule.line.template"> @@ -1710,16 +1724,6 @@ <field name="tax" ref="irpf_7_purchase_pyme"/> </record> - <record id="fp_line_irpf2_purchase_pyme" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf2_purchase_pyme"/> - <field name="tax" ref="irpf_2_purchase_pyme"/> - </record> - - <record id="fp_line_irpf1_purchase_pyme" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf1_purchase_pyme"/> - <field name="tax" ref="irpf_1_purchase_pyme"/> - </record> - <record id="fp_line_irpf15_sale_pyme" model="account.tax.rule.line.template"> <field name="rule" ref="fp_irpf15_sale_pyme"/> <field name="tax" ref="irpf_15_sale_pyme"/> @@ -1754,20 +1758,34 @@ <field name="tax" ref="irpf_7_sale_pyme"/> </record> - <record id="fp_line_irpf2_sale_pyme" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf2_sale_pyme"/> - <field name="tax" ref="irpf_2_sale_pyme"/> - </record> - - <record id="fp_line_irpf1_sale_pyme" model="account.tax.rule.line.template"> - <field name="rule" ref="fp_irpf1_sale_pyme"/> - <field name="tax" ref="irpf_1_sale_pyme"/> - </record> - <record id="fptt_extra_sale_pyme" model="account.tax.rule.line.template"> <field name="rule" ref="fp_extra_sale_pyme"/> <field name="tax" ref="iva_rep_exportaciones_pyme"/> <field name="group" ref="tax_group_sale"/> </record> + + <record id="fp_reaf_iva_pyme" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_reaf_pyme"/> + <field name="tax" ref="iva_reagp_12_pyme"/> + <field name="group" ref="tax_group_purchase"/> + <field name="sequence" eval="10"/> + </record> + <record id="fp_reaf_irpf_pyme" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_reaf_pyme"/> + <field name="tax" ref="irpf_2_purchase_pyme"/> + <field name="sequence" eval="20"/> + </record> + + <record id="fp_regp_iva_pyme" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_regp_pyme"/> + <field name="tax" ref="iva_reagp_105_pyme"/> + <field name="group" ref="tax_group_purchase"/> + <field name="sequence" eval="10"/> + </record> + <record id="fp_regp_irpf_pyme" model="account.tax.rule.line.template"> + <field name="rule" ref="fp_regp_pyme"/> + <field name="tax" ref="irpf_2_purchase_pyme"/> + <field name="sequence" eval="20"/> + </record> </data> </tryton>