[TMP] Report Golem_member #9
@ -26,10 +26,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//td[@id='activity_inherit_td']" position="after">
|
<xpath expr="//td[@id='activity_inherit_td']" position="after">
|
||||||
<td>
|
<td class="col-xs-6">
|
||||||
<span t-field="t.state" />
|
<span t-field="t.state" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="col-xs-6">
|
||||||
<span t-field="t.activity_price" t-field-options="{'widget': 'monetary',
|
<span t-field="t.activity_price" t-field-options="{'widget': 'monetary',
|
||||||
'display_currency': o.currency_id}"/>
|
'display_currency': o.currency_id}"/>
|
||||||
</td>
|
</td>
|
||||||
@ -40,45 +40,85 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<xpath expr="//tr[@id='activity_inherit_sum']" position="inside">
|
<xpath expr="//tr[@id='activity_inherit_sum']" position="inside">
|
||||||
<t t-set="price_sum" t-value="price_sum + t.activity_price"/>
|
<t t-set="price_sum" t-value="price_sum + t.activity_price"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//tfoot[@id='activity_inherit_total']" position="inside">
|
<xpath expr="//tr[@id='activity_inherit_total']" position="replace">
|
||||||
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td><td><td><td><td><td><td>
|
||||||
<strong>TOTAL=<t t-esc="price_sum"
|
<td class="col-xs-6">
|
||||||
t-esc-options="{'widget': 'monetary',
|
<strong>
|
||||||
'display_currency': o.currency_id}" /></strong>
|
TOTAL
|
||||||
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="col-xs-6">
|
||||||
|
<t t-esc="price_sum"
|
||||||
|
t-esc-options="{'widget': 'monetary',
|
||||||
|
'display_currency': o.currency_id}"/>
|
||||||
|
</td>
|
||||||
|
</td></td></td></td></td></td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</tfoot>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<xpath expr="//table[@id='table_activity_ref']" position="after">
|
<xpath expr="//table[@id='table_activity_ref']" position="after">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead><h1>Invoices</h1></thead>
|
<thead>
|
||||||
|
<strong>Invoices</strong>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Number</th>
|
<th>Number</th>
|
||||||
<th>Activity</th>
|
<th>Activity</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<th>State</th>
|
<th>State</th>
|
||||||
|
<th>Residual</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
<t t-foreach="docs" t-as="o">
|
<t t-foreach="docs" t-as="o">
|
||||||
<tr t-foreach="o.activity_registration_ids" t-as="l">
|
<tr t-foreach="o.activity_registration_ids" t-as="l">
|
||||||
<td>
|
<td class="col-xs-6">
|
||||||
<spam t-field="l.invoice_id.date_invoice" />
|
<spam t-field="l.invoice_id.date_invoice" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="col-xs-6">
|
||||||
<spam t-field="l.invoice_id.number" />
|
<spam t-field="l.invoice_id[0].number" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="col-xs-6">
|
||||||
<spam t-field="l.invoice_line_id.product_id" />
|
<spam t-field="l.invoice_line_id.product_id" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="col-xs-6">
|
||||||
<spam t-field="l.invoice_id.amount_total" />
|
<spam t-field="l.invoice_id.amount_total"
|
||||||
|
t-field-options="{'widget': 'monetary',
|
||||||
|
'display_currency': o.currency_id}"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="col-xs-6">
|
||||||
<spam t-field="l.invoice_id.state" />
|
<spam t-field="l.invoice_id.state" />
|
||||||
</td>
|
</td>
|
||||||
|
<td class="col-xs-6">
|
||||||
|
<span t-field="l.invoice_id.residual"
|
||||||
|
t-field-options="{'widget': 'monetary',
|
||||||
|
'display_currency': o.currency_id}"/>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</t>
|
</t>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>payment</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<t t-foreach="docs" t-as="o">
|
||||||
|
<tr t-foreach="o.payment_ids" t-as="l">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<spam t-field="l.name" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
</t>
|
||||||
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
@ -42,18 +42,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
model="golem.member"
|
model="golem.member"
|
||||||
report_type="qweb-html"
|
report_type="qweb-html"
|
||||||
name="golem_member.report_golem_member_template" />
|
name="golem_member.report_golem_member_template" />
|
||||||
<!-- A la Fin remplacer qweb-html par report_type="qweb-pdf" -->
|
|
||||||
|
|
||||||
<template id="report_golem_member_template">
|
<template id="report_golem_member_template">
|
||||||
<t t-call="report.html_container">
|
<t t-call="report.html_container">
|
||||||
<t t-call="report.external_layout">
|
<t t-call="report.external_layout">
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Member</th>
|
<th>Member</th>
|
||||||
<th>Season</th>
|
<th>Season</th>
|
||||||
<th>Date of season</th>
|
<th>Date of season</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
<t t-foreach="docs" t-as="o">
|
<t t-foreach="docs" t-as="o">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="col-xs-6">
|
<td class="col-xs-6">
|
||||||
@ -78,10 +80,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</t>
|
</t>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<table id="table_activity_ref" class="table table-striped">
|
<table id="table_activity_ref" class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<strong>Activity</strong>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Activity</th>
|
<th>Name</th>
|
||||||
<th>Animator</th>
|
<th>Animator</th>
|
||||||
<th>Day</th>
|
<th>Day</th>
|
||||||
<th>Hour start</th>
|
<th>Hour start</th>
|
||||||
@ -89,6 +94,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<th>Date start</th>
|
<th>Date start</th>
|
||||||
<th id="activity_inherit_th">Date stop</th>
|
<th id="activity_inherit_th">Date stop</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
<t t-foreach="docs" t-as="o">
|
<t t-foreach="docs" t-as="o">
|
||||||
<tr id="activity_inherit_price_sum" t-foreach="o.activity_registration_ids" t-as="t">
|
<tr id="activity_inherit_price_sum" t-foreach="o.activity_registration_ids" t-as="t">
|
||||||
<td class="col-xs-6">
|
<td class="col-xs-6">
|
||||||
@ -109,14 +116,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<td class="col-xs-6">
|
<td class="col-xs-6">
|
||||||
<span t-field="t.activity_id.date_start" /><br></br>
|
<span t-field="t.activity_id.date_start" /><br></br>
|
||||||
</td>
|
</td>
|
||||||
<td id="activity_inherit_td" class="col-xs-6">
|
<td id="activity_inherit_td">
|
||||||
<span t-field="t.activity_id.date_stop" /><br></br>
|
<span t-field="t.activity_id.date_stop" /><br></br>
|
||||||
</td>
|
</td>
|
||||||
<tr id="activity_inherit_sum"></tr>
|
<tr id="activity_inherit_sum"></tr>
|
||||||
</tr>
|
</tr>
|
||||||
<tfoot id="activity_inherit_total"></tfoot>
|
<tr id="activity_inherit_total"></tr>
|
||||||
|
|
||||||
</t>
|
</t>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
|
Loading…
Reference in New Issue
Block a user