Files
Odoo-Build/snippets/account.report_invoice_document.replace_summary.xml
T

117 lines
5.1 KiB
XML

<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="//table[@name='invoice_line_table']" position="after">
<style>
table.trimada_summary tr {
border-top: solid 1px !important;
border-bottom: solid 1px;
page-break-inside: avoid;
}
table.trimada_details tr {
border-top: 0px !important;
border-bottom: 0px;
line-height: 0.7;
}
table.trimada_summary #amount_untaxed_label {
width: 11.5%;
text-align: left;
}
table.trimada_details td#amount_by_group0 {
width: 8%;
text-align: left;
}
table.trimada_details td#amount_by_group3 {
width: 21%;
text-align: right;
padding-right: 10%;
}
table.trimada_details td#amount_by_group4 {
width: 27%;
text-align: right;
padding-right: 15%;
}
table.trimada_summary td#amount_by_group_label {
width: 12%;
text-align: left;
}
table.trimada_summary td#amount_by_group {
width: 17%;
text-align: left;
}
table.trimada_summary #amount_total_label {
width: 14%;
text-align: right;
}
table.trimada_summary #amount_total {
width: 18%;
text-align: right;
}
</style>
<table class="table table-borderless table-sm trimada trimada_summary">
<td id="amount_untaxed_label">
<Strong>Warenwert</Strong>
</td>
<td>
<table class="trimada_details">
<t t-foreach="o.amount_by_group" t-as="amount_by_group">
<tr style="">
<td id="amount_by_group4">
<span>
<t t-esc="amount_by_group[4]"/>
</span>
</td>
<t t-if="len(o.line_ids.filtered(lambda line: line.tax_line_id)) in [0, 1] and o.amount_untaxed == amount_by_group[2]">
<td id="amount_by_group0">
<span class="text-nowrap" t-esc="amount_by_group[0]"/>
</td>
<td id="amount_by_group3" class="text-right o_price_total">
<span class="text-nowrap" t-esc="amount_by_group[3]"/>
</td>
</t>
<t t-else="">
<td id="amount_by_group0">
<span t-esc="amount_by_group[0]"/>
</td>
<td id="amount_by_group3" class="text-right o_price_total">
<span class="text-nowrap" t-esc="amount_by_group[3]"/>
</td>
</t>
</tr>
</t>
<t t-if="print_with_payments">
<t t-if="o.payment_state != 'invoicing_legacy'">
<t t-set="payments_vals" t-value="o.sudo()._get_reconciled_info_JSON_values()"/>
<t t-foreach="payments_vals" t-as="payment_vals">
<tr>
<td>
<i class="oe_form_field text-right oe_payment_label">Paid on <t t-esc="payment_vals['date']" t-options="{&quot;widget&quot;: &quot;date&quot;}"/>
</i>
</td>
<td class="text-right">
<span t-esc="payment_vals['amount']" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
</td>
</tr>
</t>
<t t-if="len(payments_vals) &gt; 0">
<tr class="border-black">
<td>
<strong>Amount Due</strong>
</td>
<td class="text-right">
<span t-field="o.amount_residual"/>
</td>
</tr>
</t>
</t>
</t>
</table>
</td>
<td id="amount_total_label">
<strong>Total</strong>
</td>
<td id="amount_total">
<span class="text-nowrap" t-field="o.amount_total"/>
</td>
</table>
</xpath>
</data>