odoo/addons/point_of_sale/views/report_sessionsummary.xml

121 lines
6.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_sessionsummary">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="report.internal_layout">
<div class="page">
<h2>Session Summary: <span t-field="o.name"/></h2>
<div class="row mt32 mb32">
<div class="col-xs-3">
<strong>Responsible</strong>:<br/>
<span t-field="o.user_id"/>
</div>
<div class="col-xs-3">
<strong>Point of Sale</strong>:<br/>
<span t-field="o.config_id"/>
</div>
<div class="col-xs-3">
<strong>Opening Date</strong>:<br/>
<span t-field="o.start_at"/>
</div>
<div class="col-xs-3">
<strong>Closing Date</strong>:<br/>
<span t-field="o.stop_at"/>
</div>
</div>
<table class="table table-condensed">
<thead>
<tr>
<th>
<strong>Reference</strong>
</th>
<th>
<strong>Journal</strong>
</th>
<th class="text-right">
<strong>Starting Balance</strong>
</th>
<th class="text-right">
<strong>Total Transactions</strong>
</th>
<th class="text-right">
<strong>Ending Balance</strong>
</th>
<th class="text-right">
<strong>Difference</strong>
</th>
<th class="text-right" groups="base.group_multi_currency">
<strong>Currency</strong>
</th>
<th class="text-right">
<strong>Status</strong>
</th>
</tr>
</thead>
<tbody>
<t t-foreach="o.statement_ids" t-as="statement">
<tr>
<td><span t-field="statement.name"/></td>
<td><span t-field="statement.journal_id"/></td>
<td class="text-right">
<span t-field="statement.balance_start"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
</td>
<td class="text-right">
<span t-field="statement.total_entry_encoding"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
</td>
<td class="text-right">
<span t-field="statement.balance_end_real"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
</td>
<td class="text-right">
<span t-field="statement.difference"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
</td>
<td class="text-right" groups="base.group_multi_currency">
<span t-field="statement.currency"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
</td>
<td class="text-right"><span t-field="statement.state"/></td>
</tr>
<t t-foreach="statement.line_ids" t-as="line">
<tr t-if="line_first">
<th></th>
<th></th>
<th></th>
<th groups="base.group_multi_currency"></th>
<th>Description</th>
<th>Partner</th>
<th>Type</th>
<th class="text-right">Amount</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td groups="base.group_multi_currency"></td>
<td><span t-field="line.name"/></td>
<td><span t-field="line.partner_id"/></td>
<td><span t-field="line.type"/></td>
<td class="text-right">
<span t-field="line.amount"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
</div>
</t>
</t>
</t>
</template>
</data>
</openerp>