92 lines
3.6 KiB
XML
92 lines
3.6 KiB
XML
<data inherit_id="account.document_tax_totals" priority="50">
|
|
<xpath expr="//t/t[1]" position="replace">
|
|
<style>
|
|
table.trimada_summary tr {
|
|
border-top: solid 1px !important;
|
|
border-bottom: solid 1px;
|
|
}
|
|
table.trimada_summary td {
|
|
padding-top: 8px;
|
|
}
|
|
table.trimada_details tr {
|
|
border-top: 0px !important;
|
|
border-bottom: 0px;
|
|
line-height: 0.7;
|
|
}
|
|
table.trimada_summary #amount_untaxed_label {
|
|
width: 15.5%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #amount_untaxed {
|
|
width: 23%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #amount_by_group_label {
|
|
width: 12%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #amount_by_group {
|
|
width: 17%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #current_subtotal_label {
|
|
width: 14%;
|
|
text-align: right;
|
|
}
|
|
table.trimada_summary #current_subtotal {
|
|
width: 18%;
|
|
text-align: right;
|
|
}
|
|
</style>
|
|
<table class="table table-borderless table-sm trimada trimada_summary o_main_table">
|
|
<tr>
|
|
<t t-foreach="tax_totals['subtotals']" t-as="subtotal">
|
|
<td id="amount_untaxed_label">
|
|
<strong>Warenwert</strong>
|
|
</td>
|
|
<td>
|
|
<span t-att-class="oe_subtotal_footer_separator" t-esc="subtotal['formatted_amount']"/>
|
|
</td>
|
|
<t t-set="subtotal_to_show" t-value="subtotal['name']"/>
|
|
<t t-foreach="tax_totals['groups_by_subtotal'][subtotal_to_show]" t-as="amount_by_group">
|
|
<t t-if="tax_totals['display_tax_base']">
|
|
<td>
|
|
<span t-esc="amount_by_group['tax_group_name']"/>
|
|
</td>
|
|
<td>
|
|
<span t-if="not amount_by_group['hide_base_amount']" class="text-nowrap"> on
|
|
<t t-esc="amount_by_group['formatted_tax_group_base_amount']"/>
|
|
</span>
|
|
</td>
|
|
<td class="text-end o_price_total">
|
|
<span class="text-nowrap" t-esc="amount_by_group['formatted_tax_group_amount']"/>
|
|
</td>
|
|
</t>
|
|
<t t-else="">
|
|
<td>
|
|
<span style="padding-right: 10px" class="text-nowrap" t-esc="amount_by_group['tax_group_name']"/>
|
|
<span class="text-nowrap" t-esc="amount_by_group['formatted_tax_group_amount']"/>
|
|
</td>
|
|
</t>
|
|
</t>
|
|
<t t-if="'formatted_rounding_amount' in tax_totals and tax_totals['rounding_amount'] != 0">
|
|
<td>Rounding</td>
|
|
<td class="text-end">
|
|
<span t-esc="tax_totals['formatted_rounding_amount']"/>
|
|
</td>
|
|
</t>
|
|
<td>
|
|
<strong>Total</strong>
|
|
</td>
|
|
<td class="text-end">
|
|
<span t-esc="tax_totals['formatted_amount_total_rounded']" t-if="'formatted_amount_total_rounded' in tax_totals"/>
|
|
<span t-esc="tax_totals['formatted_amount_total']" t-else=""/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</table>
|
|
</xpath>
|
|
<xpath expr="//tr[@class='border-black o_total']" position="replace">
|
|
</xpath>
|
|
</data>
|