[IMP] point of sale: added a session summary report
bzr revid: sle@openerp.com-20140414144427-ry3yxybx385a4pop
This commit is contained in:
parent
11a0b506d0
commit
28fa8ebb8c
|
@ -77,6 +77,7 @@ Main Features
|
|||
'views/report_saleslines.xml',
|
||||
'views/report_detailsofsales.xml',
|
||||
'views/report_payment.xml',
|
||||
'views/report_sessionsummary.xml',
|
||||
],
|
||||
'demo': [
|
||||
'point_of_sale_demo.xml',
|
||||
|
|
|
@ -58,5 +58,14 @@
|
|||
name="point_of_sale.report_payment"
|
||||
file="point_of_sale.report_payment"
|
||||
/>
|
||||
|
||||
<report
|
||||
id="action_report_pos_session_summary"
|
||||
string="Session Summary"
|
||||
model="pos.session"
|
||||
report_type="qweb-pdf"
|
||||
name="point_of_sale.report_sessionsummary"
|
||||
file="point_of_sale.report_sessionsummary"
|
||||
/>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -0,0 +1,120 @@
|
|||
<?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>
|
Loading…
Reference in New Issue