<?xml version="1.0" encoding="utf-8" ?>
<odoo auto_sequence="1">
    <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.cy"/>
        <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_line_1" model="account.report.line">
                <field name="name">1. VAT due on sales and other outputs</field>
                <field name="code">cy_1</field>
                <field name="expression_ids">
                    <record id="tax_report_line_1_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">1</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_2" model="account.report.line">
                <field name="name">2. VAT due on acquisitions from other EU Member States</field>
                <field name="code">cy_2</field>
                <field name="expression_ids">
                    <record id="tax_report_line_2_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">2</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_3" model="account.report.line">
                <field name="name">3. Total output VAT (sum of boxes 1 and 2)</field>
                <field name="hierarchy_level">0</field>
                <field name="code">cy_3</field>
                <field name="expression_ids">
                    <record id="tax_report_line_3_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">aggregation</field>
                        <field name="formula">cy_1.balance + cy_2.balance</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_4" model="account.report.line">
                <field name="name">4. Input VAT (including acquisitions from other EU Member States)</field>
                <field name="code">cy_4</field>
                <field name="expression_ids">
                    <record id="tax_report_line_4_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">4</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_5" model="account.report.line">
                <field name="name">5. VAT payable or refundable (difference between box 4 and 3)</field>
                <field name="code">cy_5</field>
                <field name="expression_ids">
                    <record id="tax_report_line_5_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">aggregation</field>
                        <field name="formula">cy_4.balance - cy_3.balance</field>
                        <field name="green_on_positive">False</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_6" model="account.report.line">
                <field name="name">6. Value of total sales and other outputs (excluding VAT)(including box 10)</field>
                <field name="code">cy_6</field>
                <field name="expression_ids">
                    <record id="tax_report_line_6_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">aggregation</field>
                        <field name="formula">cy_6.sub_balance + cy_10.balance</field>
                    </record>
                    <record id="tax_report_line_6_sub_amount" model="account.report.expression">
                        <field name="label">sub_balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">6</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_7" model="account.report.line">
                <field name="name">7. Value of total purchases and other inputs (excluding VAT)</field>
                <field name="code">cy_7</field>
                <field name="expression_ids">
                    <record id="tax_report_line_7_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">7</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_8A" model="account.report.line">
                <field name="name">8A. Total value of all supplies of goods (and directly related services) to other EU Member States</field>
                <field name="code">cy_8A</field>
                <field name="expression_ids">
                    <record id="tax_report_line_8A_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">8A</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_8B" model="account.report.line">
                <field name="name">8B. Total value of services provided to taxable persons in other EU Member States</field>
                <field name="code">cy_8B</field>
                <field name="expression_ids">
                    <record id="tax_report_line_8B_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">8B</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_9" model="account.report.line">
                <field name="name">9. Total value of sales taxed at the rate of 0% (other than those included in box 8A)</field>
                <field name="code">cy_9</field>
                <field name="expression_ids">
                    <record id="tax_report_line_9_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">9</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_10" model="account.report.line">
                <field name="name">10. Total value of sales which are outside the scope of Cyprus VAT</field>
                <field name="code">cy_10</field>
                <field name="expression_ids">
                    <record id="tax_report_line_10_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">external</field>
                        <field name="formula">sum</field>
                        <field name="subformula">editable</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_11A" model="account.report.line">
                <field name="name">11A. Total value of acquisitions of goods (and directly related services) from other EU Member States</field>
                <field name="code">cy_11A</field>
                <field name="expression_ids">
                    <record id="tax_report_line_11A_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">11A</field>
                    </record>
                </field>
            </record>
            <record id="tax_report_line_11B" model="account.report.line">
                <field name="name">11B. Total value of services received from taxable persons residence in other EU Member States</field>
                <field name="code">cy_11B</field>
                <field name="expression_ids">
                    <record id="tax_report_line_11B_amount" model="account.report.expression">
                        <field name="label">balance</field>
                        <field name="engine">tax_tags</field>
                        <field name="formula">11B</field>
                    </record>
                </field>
            </record>
        </field>
    </record>
</odoo>
