<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="tax_report" model="account.report">
        <field name="name">Tax Report</field>
        <field name="root_report_id" ref="account.generic_tax_report"/>
        <field name="country_id" ref="base.nl"/>
        <field name="filter_fiscal_position" eval="True"/>
        <field name="availability_condition">country</field>
        <field name="column_ids">
            <record id="tax_report_balance" model="account.report.column">
                <field name="name">Balance</field>
                <field name="expression_label">balance</field>
            </record>
        </field>
        <field name="line_ids">
            <record id="tax_report_rub_1" model="account.report.line">
                <field name="name">Rubriek 1: Prestaties binnenland</field>
                <field name="sequence">10</field>
                <field name="aggregation_formula">1A_OMZET.balance + 1B_OMZET.balance + 1C_OMZET.balance + 1D_OMZET.balance + 1E_OMZET.balance</field>
                <field name="children_ids">
                    <record id="tax_report_rub_1a" model="account.report.line">
                        <field name="name">1a. Leveringen/diensten belast met hoog tarief (omzet)</field>
                        <field name="code">1A_OMZET</field>
                        <field name="sequence">20</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_1a_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1a (omzet)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_1b" model="account.report.line">
                        <field name="name">1b. Leveringen/diensten belast met laag tarief (omzet)</field>
                        <field name="code">1B_OMZET</field>
                        <field name="sequence">30</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_1b_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1b (omzet)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_1c" model="account.report.line">
                        <field name="name">1c. Leveringen/diensten belast met overige tarieven behalve 0% (omzet)</field>
                        <field name="code">1C_OMZET</field>
                        <field name="sequence">40</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_1c_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1c (omzet)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_1d" model="account.report.line">
                        <field name="name">1d. Privégebruik (omzet)</field>
                        <field name="code">1D_OMZET</field>
                        <field name="sequence">50</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_1d_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1d (omzet)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_1e" model="account.report.line">
                        <field name="name">1e. Leveringen/diensten belast met 0% of niet bij u belast (omzet)</field>
                        <field name="code">1E_OMZET</field>
                        <field name="sequence">60</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_1e_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1e (omzet)</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="tax_report_rub_2" model="account.report.line">
                <field name="name">Rubriek 2: Verleggingsregelingen binnenland (omzet)</field>
                <field name="sequence">100</field>
                <field name="aggregation_formula">2A_OMZET.balance</field>
                <field name="children_ids">
                    <record id="tax_report_rub_2a" model="account.report.line">
                        <field name="name">2a. Leveringen/diensten waarbij de heffing van omzetbelasting naar u is verlegd (omzet)</field>
                        <field name="code">2A_OMZET</field>
                        <field name="sequence">110</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_2a_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">2a (omzet)</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="tax_report_rub_3" model="account.report.line">
                <field name="name">Rubriek 3: Prestaties naar of in het buitenland (omzet)</field>
                <field name="sequence">200</field>
                <field name="aggregation_formula">3A_OMZET.balance + 3B_OMZET.balance + 3C_OMZET.balance</field>
                <field name="children_ids">
                    <record id="tax_report_rub_3a" model="account.report.line">
                        <field name="name">3a. Leveringen naar landen buiten de EU (uitvoer) (omzet)</field>
                        <field name="code">3A_OMZET</field>
                        <field name="sequence">210</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_3a_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">3a (omzet)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_3b" model="account.report.line">
                        <field name="name">3b. Leveringen naar/diensten in landen binnen de EU en ABC Sales (omzet)</field>
                        <field name="code">3B_OMZET</field>
                        <field name="sequence">220</field>
                        <field name="aggregation_formula">3BG_OMZET.balance + 3BT_OMZET.balance + 3BS_OMZET.balance</field>
                        <field name="children_ids">
                            <record id="tax_report_rub_3bg" model="account.report.line">
                                <field name="name">3bg. Leveringen producten naar landen binnen de EU (omzet)</field>
                                <field name="code">3BG_OMZET</field>
                                <field name="sequence">223</field>
                                <field name="expression_ids">
                                    <record id="tax_report_rub_3bg_tag" model="account.report.expression">
                                        <field name="label">balance</field>
                                        <field name="engine">tax_tags</field>
                                        <field name="formula">3bg (omzet)</field>
                                    </record>
                                </field>
                            </record>
                            <record id="tax_report_rub_3bt" model="account.report.line">
                                <field name="name">3bt. ABC Levering binnen de EU (Omzet)</field>
                                <field name="code">3BT_OMZET</field>
                                <field name="sequence">226</field>
                                <field name="expression_ids">
                                    <record id="tax_report_rub_3bt_tag" model="account.report.expression">
                                        <field name="label">balance</field>
                                        <field name="engine">tax_tags</field>
                                        <field name="formula">3bt (omzet)</field>
                                    </record>
                                </field>
                            </record>
                            <record id="tax_report_rub_3bs" model="account.report.line">
                                <field name="name">3bs. Diensten in landen binnen de EU (omzet)</field>
                                <field name="code">3BS_OMZET</field>
                                <field name="sequence">223</field>
                                <field name="expression_ids">
                                    <record id="tax_report_rub_3bs_tag" model="account.report.expression">
                                        <field name="label">balance</field>
                                        <field name="engine">tax_tags</field>
                                        <field name="formula">3bs (omzet)</field>
                                    </record>
                                </field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_3c" model="account.report.line">
                        <field name="name">3c. Installatie/afstandsverkopen binnen de EU (omzet)</field>
                        <field name="code">3C_OMZET</field>
                        <field name="sequence">230</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_3c_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">3c (omzet)</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="tax_report_rub_4" model="account.report.line">
                <field name="name">Rubriek 4: Prestaties vanuit het buitenland aan u verricht (omzet)</field>
                <field name="sequence">300</field>
                <field name="aggregation_formula">4A_OMZET.balance + 4B_OMZET.balance</field>
                <field name="children_ids">
                    <record id="tax_report_rub_4a" model="account.report.line">
                        <field name="name">4a. Leveringen/diensten uit landen buiten de EU (invoer) (omzet)</field>
                        <field name="code">4A_OMZET</field>
                        <field name="sequence">310</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_4a_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">4a (omzet)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_4b" model="account.report.line">
                        <field name="name">4b. Leveringen/diensten uit landen binnen de EU (omzet)</field>
                        <field name="code">4B_OMZET</field>
                        <field name="sequence">320</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_4b_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">4b (omzet)</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="tax_report_rub_btw_1" model="account.report.line">
                <field name="name">Rubriek 1: Prestaties binnenland (BTW)</field>
                <field name="code">NLTAX_B1</field>
                <field name="sequence">400</field>
                <field name="aggregation_formula">1A_BTW.balance + 1B_BTW.balance + 1C_BTW.balance + 1D_BTW.balance + 1E_BTW.balance</field>
                <field name="children_ids">
                    <record id="tax_report_rub_btw_1a" model="account.report.line">
                        <field name="name">1a. Leveringen/diensten belast met 21% (BTW)</field>
                        <field name="code">1A_BTW</field>
                        <field name="sequence">410</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_1a_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1a (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_1b" model="account.report.line">
                        <field name="name">1b. Leveringen/diensten belast met laag tarief (BTW)</field>
                        <field name="code">1B_BTW</field>
                        <field name="sequence">420</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_1b_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1b (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_1c" model="account.report.line">
                        <field name="name">1c. Leveringen/diensten belast met overige tarieven behalve 0% (BTW)</field>
                        <field name="code">1C_BTW</field>
                        <field name="sequence">430</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_1c_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1c (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_1d" model="account.report.line">
                        <field name="name">1d. Privégebruik (BTW)</field>
                        <field name="code">1D_BTW</field>
                        <field name="sequence">440</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_1d_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1d (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_1e" model="account.report.line">
                        <field name="name">1e. Leveringen/diensten belast met 0% of niet bij u belast (BTW)</field>
                        <field name="code">1E_BTW</field>
                        <field name="sequence">450</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_1e_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">1e (BTW)</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="tax_report_rub_btw_2" model="account.report.line">
                <field name="name">Rubriek 2: Verleggingsregelingen binnenland (BTW)</field>
                <field name="sequence">500</field>
                <field name="aggregation_formula">NLTAX_B2.balance</field>
                <field name="children_ids">
                    <record id="tax_report_rub_btw_2a" model="account.report.line">
                        <field name="name">2a. Leveringen/diensten waarbij de heffing van Heffing van omzetbelasting naar u is verlegd (BTW)</field>
                        <field name="code">NLTAX_B2</field>
                        <field name="sequence">510</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_2a_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">2a (BTW)</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="tax_report_rub_btw_4" model="account.report.line">
                <field name="name">Rubriek 4: Prestaties vanuit het buitenland aan u verricht (BTW)</field>
                <field name="sequence">600</field>
                <field name="aggregation_formula">NLTAX_B4a.balance + NLTAX_B4b.balance</field>
                <field name="children_ids">
                    <record id="tax_report_rub_btw_4a" model="account.report.line">
                        <field name="name">4a. Leveringen/diensten uit landen buiten de EU (BTW)</field>
                        <field name="code">NLTAX_B4a</field>
                        <field name="sequence">610</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_4a_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">4a (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_4b" model="account.report.line">
                        <field name="name">4b. Leveringen/diensten uit landen binnen de EU (BTW)</field>
                        <field name="code">NLTAX_B4b</field>
                        <field name="sequence">620</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_4b_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">4b (BTW)</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="tax_report_rub_btw_5" model="account.report.line">
                <field name="name">Rubriek 5: Voorbelasting, kleineondernemersregeling en totaal (BTW)</field>
                <field name="sequence">700</field>
                <field name="aggregation_formula"></field>
                <field name="children_ids">
                    <record id="tax_report_rub_btw_5a" model="account.report.line">
                        <field name="name">5a. Verschuldigde omzetbelasting (rubrieken 1a t/m 4b) (BTW)</field>
                        <field name="sequence">710</field>
                        <field name="aggregation_formula">NLTAX_B1.balance + NLTAX_B2.balance + NLTAX_B4a.balance + NLTAX_B4b.balance</field>
                    </record>
                    <record id="tax_report_rub_btw_5b" model="account.report.line">
                        <field name="name">5b. Voorbelasting (BTW)</field>
                        <field name="code">NLTAX_B5b</field>
                        <field name="sequence">720</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_5b_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">5b (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_5c" model="account.report.line">
                        <field name="name">5c. Subtotaal (rubriek 5a min 5b) (BTW)</field>
                        <field name="sequence">730</field>
                        <field name="aggregation_formula">NLTAX_B1.balance + NLTAX_B2.balance + NLTAX_B4a.balance + NLTAX_B4b.balance - NLTAX_B5b.balance</field>
                    </record>
                    <record id="tax_report_rub_btw_5d" model="account.report.line">
                        <field name="name">5d. Vermindering volgens de kleineondernemersregeling (BTW)</field>
                        <field name="code">NLTAX_B5d</field>
                        <field name="sequence">740</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_5d_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">5d. (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_5e" model="account.report.line">
                        <field name="name">5e. Schatting vorige aangifte(n) (BTW)</field>
                        <field name="code">NLTAX_B5e</field>
                        <field name="sequence">750</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_5e_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">5e. (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_5f" model="account.report.line">
                        <field name="name">5f. Schatting deze aangifte (BTW)</field>
                        <field name="code">NLTAX_B5f</field>
                        <field name="sequence">760</field>
                        <field name="expression_ids">
                            <record id="tax_report_rub_btw_5f_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">5f. (BTW)</field>
                            </record>
                        </field>
                    </record>
                    <record id="tax_report_rub_btw_5g" model="account.report.line">
                        <field name="name">5g. Totaal te betalen/terug te vragen (BTW)</field>
                        <field name="code">NLTAX_B5g</field>
                        <field name="sequence">770</field>
                        <field name="aggregation_formula">NLTAX_B1.balance + NLTAX_B2.balance + NLTAX_B4a.balance + NLTAX_B4b.balance - NLTAX_B5b.balance - NLTAX_B5d.balance - NLTAX_B5e.balance - NLTAX_B5f.balance</field>
                    </record>
                </field>
            </record>
        </field>
    </record>
</odoo>
