odoo/addons/point_of_sale/views/report_payment.xml

92 lines
4.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_payment">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="report.internal_layout">
<div class="page">
<h2>Today's Payments</h2>
<div class="row mt32 mb32">
<div class="col-xs-3">
<strong>Company</strong>:
<br/>
<span t-field="res_company.name"/>
</div>
<div class="col-xs-3">
<strong>Print date</strong>:
<br/>
<t t-esc="formatLang(time.strftime('%Y-%m-%d'), date='True')"/>
</div>
</div>
<t t-set="pos_payment" t-value="pos_payment(o)"/>
<table class="table table-condensed" t-if="pos_payment">
<thead>
<tr>
<td>
<strong>Product</strong>
</td>
<td class="text-center">
<strong>Qty</strong>
</td>
<td class="text-center">
<strong>Disc.(%)</strong>
</td>
<td class="text-right">
<strong>Unit Price</strong>
</td>
<td class="text-right">
<strong>Total</strong>
</td>
</tr>
</thead>
<tbody>
<tr t-foreach="pos_payment" t-as="line_ids">
<td>
<t t-if="line_ids['code']">
<span t-esc="line_ids['code']"/>
</t>
<t t-if="line_ids['name']">
<span t-esc="line_ids['name']"/>
</t>
</td>
<td class="text-right">
<span t-esc="formatLang(line_ids['qty'])"/>
<t t-if="line_ids['uom']">
<span t-esc="line_ids['uom']"/>
</t>
</td>
<td class="text-right">
<span t-esc="formatLang(line_ids['discount'])"/>
</td>
<td class="text-right">
<span t-esc="formatLang(line_ids['price_unit'])"/>
</td>
<td class="text-right">
<span t-esc="formatLang(line_ids['total'], currency_obj=res_company.currency_id)"/>
</td>
</tr>
</tbody>
</table>
<div class="row" t-if="pos_payment_total(o)">
<div class="col-xs-4 pull-right">
<table class="table table-condensed">
<tr class="border-black">
<td>
<strong>Net Total</strong>
</td>
<td class="text-right">
<span t-esc="formatLang(pos_payment_total(o), currency_obj=res_company.currency_id)"/>
</td>
</tr>
</table>
</div>
</div>
</div>
</t>
</t>
</t>
</template>
</data>
</openerp>