<?xml version="1.0" encoding="utf-8"?>
<terp>
    
    
    
    <data noupdate="True">
        
        
        
        <!-- VAT Code Definitions -->
        
        
        
        <!-- Invoiced VAT -->
        
        
        
        <!-- Input VAT -->
        
        
        
        <record id="vat_code_balance_net" model="account.tax.code">
            
            <field name="name">VAT balance to pay</field>
            
        </record>
        
        
        
        <record id="vat_code_input" model="account.tax.code">
            
            <field name="name">Input VAT</field>
            
            <field name="parent_id" ref="vat_code_balance_net"/>
            
        </record>
        
        
        
        <record id="vat_code_input_S" model="account.tax.code">
            
            <field name="name">Input VAT rate S (17.5%)</field>
            
            <field name="parent_id" ref="vat_code_input"/>
            
        </record>
        
        
        
        <record id="vat_code_input_R" model="account.tax.code">
            
            <field name="name">Input VAT rate R (5%)</field>
            
            <field name="parent_id" ref="vat_code_input"/>
            
        </record>
        
        
        
        <!-- Output VAT -->
        
        
        
        <record id="vat_code_output" model="account.tax.code">
            
            <field name="name">Output VAT</field>
            
            <field name="parent_id" ref="vat_code_balance_net"/>
            
        </record>
        
        
        
        <record id="vat_code_output_S" model="account.tax.code">
            
            <field name="name">Output VAT rate S (17.5%)</field>
            
            <field name="parent_id" ref="vat_code_output"/>
            
        </record>
        
        
        
        <record id="vat_code_output_R" model="account.tax.code">
            
            <field name="name">Output VAT rate R (5%)</field>
            
            <field name="parent_id" ref="vat_code_output"/>
            
        </record>
        
        
        
        <!-- Invoiced Base of VAT -->
        
        
        
        <!-- Purchases -->
        
        
        
        <record id="vat_code_base_net" model="account.tax.code">
            
            <field name="name">Tax bases</field>
            
        </record>
        
        
        
        <record id="vat_code_base_purchases" model="account.tax.code">
            
            <field name="name">Taxable purchases base</field>
            
            <field name="parent_id" ref="vat_code_base_net"/>
            
        </record>
        
        
        
        <record id="vat_code_purch_S" model="account.tax.code">
            
            <field name="name">Taxable purchases rated S (17.5%)</field>
            
            <field name="parent_id" ref="vat_code_base_purchases"/>
            
        </record>
        
        
        
        <record id="vat_code_purch_R" model="account.tax.code">
            
            <field name="name">Taxable purchases rated R (5%)</field>
            
            <field name="parent_id" ref="vat_code_base_purchases"/>
            
        </record>
        
        
        
        <record id="vat_code_purch_Z" model="account.tax.code">
            
            <field name="name">Taxable purchases rated Z (0%)</field>
            
            <field name="parent_id" ref="vat_code_base_purchases"/>
            
        </record>
        
        
        
        <record id="vat_code_purch_X" model="account.tax.code">
            
            <field name="name">Taxable purchases type X (Exempt)</field>
            
            <field name="parent_id" ref="vat_code_base_purchases"/>
            
        </record>
        
        
        
        <record id="vat_code_purch_O" model="account.tax.code">
            
            <field name="name">Taxable purchases type O (Out of scope)</field>
            
            <field name="parent_id" ref="vat_code_base_purchases"/>
            
        </record>
        
        
        
        <!-- Sales -->
        
        
        
        <record id="vat_code_base_sales" model="account.tax.code">
            
            <field name="name">Base of taxable sales</field>
            
            <field name="parent_id" ref="vat_code_base_net"/>
            
        </record>
        
        
        
        <record id="vat_code_sales_S" model="account.tax.code">
            
            <field name="name">Taxable sales rated S (17.5%)</field>
            
            <field name="parent_id" ref="vat_code_base_sales"/>
            
        </record>
        
        
        
        <record id="vat_code_sales_R" model="account.tax.code">
            
            <field name="name">Taxable sales rated R (5%)</field>
            
            <field name="parent_id" ref="vat_code_base_sales"/>
            
        </record>
        
        
        
        <record id="vat_code_sales_Z" model="account.tax.code">
            
            <field name="name">Taxable sales rated Z (0%)</field>
            
            <field name="parent_id" ref="vat_code_base_sales"/>
            
        </record>
        
        
        
        <record id="vat_code_sales_X" model="account.tax.code">
            
            <field name="name">Taxable sales type X (Exempt)</field>
            
            <field name="parent_id" ref="vat_code_base_sales"/>
            
        </record>
        
        
        
        <record id="vat_code_sales_O" model="account.tax.code">
            
            <field name="name">Taxable sales type O (Out of scope)</field>
            
            <field name="parent_id" ref="vat_code_base_sales"/>
            
        </record>
        
        
        
        
        
        <!-- VAT Codes -->
        
        
        
        <!-- Purchases + Input VAT -->
        
        
        
        <record id="ivats" model="account.tax">
            
            <field name="name">IVAT S</field>
            
            <field eval="0.175" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="account_collected_id" ref="iva"/>
            
            <field name="account_paid_id" ref="iva"/>
            
            <field name="base_code_id" ref="vat_code_purch_S"/>
            
            <field name="tax_code_id" ref="vat_code_input_S"/>
            
            <field name="ref_base_code_id" ref="vat_code_purch_S"/>
            
            <field name="ref_tax_code_id" ref="vat_code_input_S"/>
            
        </record>
        
        
        
        <record id="ivatr" model="account.tax">
            
            <field name="name">IVAT R</field>
            
            <field eval="0.005" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="account_collected_id" ref="iva"/>
            
            <field name="account_paid_id" ref="iva"/>
            
            <field name="base_code_id" ref="vat_code_purch_R"/>
            
            <field name="tax_code_id" ref="vat_code_input_R"/>
            
            <field name="ref_base_code_id" ref="vat_code_purch_R"/>
            
            <field name="ref_tax_code_id" ref="vat_code_input_R"/>
            
        </record>
        
        
        
        <record id="ivatz" model="account.tax">
            
            <field name="name">IVAT Z</field>
            
            <field eval="0.0" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="base_code_id" ref="vat_code_purch_Z"/>
            
            <field name="ref_base_code_id" ref="vat_code_purch_Z"/>
            
        </record>
        
        
        
        <record id="ivatx" model="account.tax">
            
            <field name="name">IVAT X</field>
            
            <field eval="0.0" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="base_code_id" ref="vat_code_purch_X"/>
            
            <field name="ref_base_code_id" ref="vat_code_purch_X"/>
            
        </record>
        
        
        
        <record id="ivato" model="account.tax">
            
            <field name="name">IVAT O</field>
            
            <field eval="0.0" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="base_code_id" ref="vat_code_purch_O"/>
            
            <field name="ref_base_code_id" ref="vat_code_purch_O"/>
            
        </record>
        
        
        
        <!-- Sales + Output VAT -->
        
        
        
        <record id="ovats" model="account.tax">
            
            <field name="name">OVAT S</field>
            
            <field eval="0.175" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="account_collected_id" ref="ova"/>
            
            <field name="account_paid_id" ref="ova"/>
            
            <field name="base_code_id" ref="vat_code_sales_S"/>
            
            <field name="tax_code_id" ref="vat_code_output_S"/>
            
            <field name="ref_base_code_id" ref="vat_code_sales_S"/>
            
            <field name="ref_tax_code_id" ref="vat_code_output_S"/>
            
        </record>
        
        
        
        <record id="ovatr" model="account.tax">
            
            <field name="name">OVAT R</field>
            
            <field eval="0.005" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="account_collected_id" ref="ova"/>
            
            <field name="account_paid_id" ref="ova"/>
            
            <field name="base_code_id" ref="vat_code_sales_R"/>
            
            <field name="tax_code_id" ref="vat_code_output_R"/>
            
            <field name="ref_base_code_id" ref="vat_code_sales_R"/>
            
            <field name="ref_tax_code_id" ref="vat_code_output_R"/>
            
        </record>
        
        
        
        <record id="ovatz" model="account.tax">
            
            <field name="name">OVAT Z</field>
            
            <field eval="0.0" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="base_code_id" ref="vat_code_sales_Z"/>
            
            <field name="ref_base_code_id" ref="vat_code_sales_Z"/>
            
        </record>
        
        
        
        <record id="ovatx" model="account.tax">
            
            <field name="name">OVAT X</field>
            
            <field eval="0.0" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="base_code_id" ref="vat_code_sales_X"/>
            
            <field name="ref_base_code_id" ref="vat_code_sales_X"/>
            
        </record>
        
        
        
        <record id="ovato" model="account.tax">
            
            <field name="name">OVAT O</field>
            
            <field eval="0.0" name="amount"/>
            
            <field name="type">percent</field>
            
            <field name="base_code_id" ref="vat_code_sales_O"/>
            
            <field name="ref_base_code_id" ref="vat_code_sales_O"/>
            
        </record>
        
        
        
    </data>
    
    
    
</terp>