<?xml version="1.0"?>
<t t-name="account_reports.pdf_journal_report_taxes_summary">
        <div class="container tax_summary" style="page-break-inside: avoid;">
            <t t-set="taxes" t-value="tax_summary.get('tax_report_lines')"/>
            <t t-if="taxes">
                <div class="row o_section_subtitle">
                    <p>Tax Applied</p>
                </div>
                <div class="row taxes">
                    <t t-set="extra_columns" t-value="tax_summary.get('extra_columns')"/>
                    <table class="o_table">
                        <thead>
                            <tr>
                                <th t-if="len(taxes) &gt; 1">Country</th>
                                <th>Name</th>
                                <th class="o_right_alignment">Base Amount</th>
                                <th class="o_right_alignment">Tax Amount</th>
                                <th t-if="tax_summary.get('tax_non_deductible_column')" class="o_right_alignment">Non-Deductible</th>
                                <th t-if="tax_summary.get('tax_deductible_column')" class="o_right_alignment">Deductible</th>
                                <th t-if="tax_summary.get('tax_due_column')" class="o_right_alignment">Due</th>
                            </tr>
                        </thead>
                        <tbody>
                            <t t-foreach="taxes" t-as="country_name">
                                <tr t-foreach="taxes[country_name]" t-as="tax">
                                    <t t-if="country_name_size &gt; 1">
                                        <td>
                                            <t t-if="tax_index == 0" t-out="country_name"/>
                                        </td>
                                    </t>
                                    <td t-out="tax['name']"/>
                                    <td class="o_right_alignment" t-out="tax['base_amount']"/>
                                    <td class="o_right_alignment" t-out="tax['tax_amount']"/>
                                    <td t-if="tax_summary.get('tax_non_deductible_column')" class="o_right_alignment" t-out="tax['tax_non_deductible']"/>
                                    <td t-if="tax_summary.get('tax_deductible_column')" class="o_right_alignment" t-out="tax['tax_deductible']"/>
                                    <td t-if="tax_summary.get('tax_due_column')" class="o_right_alignment" t-out="tax['tax_due']"/>
                                </tr>
                            </t>
                        </tbody>
                    </table>
                </div>
            </t>
            <t t-set="grids" t-value="tax_summary.get('tax_grid_summary_lines')"/>
            <t t-if="grids">
                <div class="row o_section_subtitle">
                    <p>Impacted Tax Grids</p>
                </div>
                <div class="row tax_grid">
                    <table class="o_table">
                        <thead>
                            <tr>
                                <th t-if="len(grids) &gt; 1">Country</th>
                                <th>Grid</th>
                                <th class="o_right_alignment">+</th>
                                <th class="o_right_alignment">-</th>
                                <th class="o_right_alignment">Impact On Grid</th>
                            </tr>
                        </thead>
                        <tbody>
                            <t t-foreach="grids" t-as="country_name">
                                <tr t-foreach="grids[country_name]" t-as="grid_name">
                                    <t t-if="country_name_size &gt; 1">
                                        <td>
                                            <t t-if="grid_name_index == 0" t-out="country_name"/>
                                        </td>
                                    </t>
                                    <td t-out="grid_name"/>
                                    <td class="o_right_alignment" t-out="grids[country_name][grid_name].get('+', 0)"/>
                                    <td class="o_right_alignment" t-out="grids[country_name][grid_name].get('-', 0)"/>
                                    <td class="o_right_alignment" t-out="grids[country_name][grid_name]['impact']"/>
                                </tr>
                            </t>
                        </tbody>
                    </table>
                </div>
            </t>
        </div>
    </t>
  