[REM] removed details_summary, sales_user, sales_user_today, payment_user reports, wizards and rml
[REM] dead code: pos_box_entries.py/xml, pos_box_out.py/xml, pos_return_view.py/xml
[ADD] lines, invoice, cashbox of the day, payment, receipt, users product reports converted to QWeb. Added YML tests for the bank statement reports.
[FIX] closed cashbox of the day sql using old fields in its queries, yml test not correctly generating an invoice from a pos order
bzr revid: sle@openerp.com-20140414104954-xj10wi640tyr3ufe
2014-04-14 10:49:54 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<template id="report_receipt">
|
|
|
|
<t t-call="report.html_container">
|
|
|
|
<t t-foreach="docs" t-as="o">
|
|
|
|
<div class="page">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 text-center">
|
|
|
|
<h2 t-esc="o.user_id.company_id.name"/>
|
|
|
|
<div t-field="o.partner_id"
|
|
|
|
t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
|
|
|
|
User: <span t-field="o.user_id"/><br/>
|
|
|
|
Date: <span t-field="o.date_order"/><br/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Description</th>
|
|
|
|
<th class="text-right">Quantity</th>
|
|
|
|
<th class="text-right">Price</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr t-foreach="o.lines" t-as="line">
|
|
|
|
<td><span t-field="line.product_id"/></td>
|
|
|
|
<td class="text-right">
|
|
|
|
<t t-if="o.state != 'cancel' and o.statement_ids">
|
2015-07-10 10:02:52 +00:00
|
|
|
<span t-field="line.qty"/>
|
[REM] removed details_summary, sales_user, sales_user_today, payment_user reports, wizards and rml
[REM] dead code: pos_box_entries.py/xml, pos_box_out.py/xml, pos_return_view.py/xml
[ADD] lines, invoice, cashbox of the day, payment, receipt, users product reports converted to QWeb. Added YML tests for the bank statement reports.
[FIX] closed cashbox of the day sql using old fields in its queries, yml test not correctly generating an invoice from a pos order
bzr revid: sle@openerp.com-20140414104954-xj10wi640tyr3ufe
2014-04-14 10:49:54 +00:00
|
|
|
</t>
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<t t-if="o.state != 'cancel' and o.statement_ids">
|
|
|
|
<span t-esc="formatLang(net(line.id), currency_obj=res_company.currency_id)"/>
|
|
|
|
</t>
|
|
|
|
<t t-if="line.discount != 0.0">
|
2016-01-05 11:20:16 +00:00
|
|
|
<span t-esc="line.discount"/>%
|
[REM] removed details_summary, sales_user, sales_user_today, payment_user reports, wizards and rml
[REM] dead code: pos_box_entries.py/xml, pos_box_out.py/xml, pos_return_view.py/xml
[ADD] lines, invoice, cashbox of the day, payment, receipt, users product reports converted to QWeb. Added YML tests for the bank statement reports.
[FIX] closed cashbox of the day sql using old fields in its queries, yml test not correctly generating an invoice from a pos order
bzr revid: sle@openerp.com-20140414104954-xj10wi640tyr3ufe
2014-04-14 10:49:54 +00:00
|
|
|
</t>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="row">
|
2016-12-14 10:07:56 +00:00
|
|
|
<div class="col-xs-12 pull-right">
|
[REM] removed details_summary, sales_user, sales_user_today, payment_user reports, wizards and rml
[REM] dead code: pos_box_entries.py/xml, pos_box_out.py/xml, pos_return_view.py/xml
[ADD] lines, invoice, cashbox of the day, payment, receipt, users product reports converted to QWeb. Added YML tests for the bank statement reports.
[FIX] closed cashbox of the day sql using old fields in its queries, yml test not correctly generating an invoice from a pos order
bzr revid: sle@openerp.com-20140414104954-xj10wi640tyr3ufe
2014-04-14 10:49:54 +00:00
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr class="border-black">
|
|
|
|
<td><strong>Taxes</strong></td>
|
|
|
|
<td class="text-right">
|
|
|
|
<strong t-esc="formatLang(o.amount_tax, currency_obj=res_company.currency_id)"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><strong>Total</strong></td>
|
|
|
|
<td class="text-right">
|
|
|
|
<strong t-esc="formatLang(o.amount_total, currency_obj=res_company.currency_id)"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Payment Mode</th>
|
|
|
|
<th>Amount</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr t-foreach="get_journal_amt(o)" t-as="d">
|
|
|
|
<td>
|
|
|
|
<span t-esc="d['name']"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span t-esc="formatLang(d['amt'], currency_obj=res_company.currency_id)"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
</data>
|
|
|
|
</openerp>
|