flectra/addons/stock_ageing_report/report/stock_ageing_report_template.xml
2018-08-21 12:24:37 +05:30

90 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<template id="stock_ageing_report.stock_ageing_report_template">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<h3>
<center>Stock Ageing Report</center>
</h3>
<br/>
<div>
<table class="table">
<tbody>
<tr>
<td><b>Company: </b></td>
<td t-foreach="data['company']" t-as="company_id">
<span t-esc="company_id.name"/>
</td>
<td><b>Period Length(days): </b></td>
<td t-foreach="data['period_length']" t-as="period_length">
<span t-esc="period_length"/>
</td>
</tr>
<tr>
<td><b>Branch: </b></td>
<td t-foreach="data['branch']" t-as="branch_id">
<span t-esc="branch_id.name"/>
</td>
<td><b>Date: </b></td>
<td t-foreach="data['date']" t-as="date">
<span t-esc="date"/>
</td>
</tr>
<tr>
<td><b>Warehouse: </b></td>
<td t-foreach="data['warehouse']" t-as="warehouse_id">
<span t-esc="warehouse_id"/>
</td>
<td><b>Location: </b></td>
<td t-foreach="data['location']" t-as="location_id">
<span t-esc="location_id"/>
</td>
</tr>
<tr>
<td><b>Product Category: </b></td>
<td t-foreach="data['product_category']" t-as="product_category_id">
<span t-esc="product_category_id"/>
</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<br/>
<table class="table table-condensed"
style="border-bottom: 0px solid white !important;">
<thead>
<tr>
<th>Products</th>
<th t-foreach="data['period_list']" t-as="period">
<span t-esc="period"/>
</th>
<th>Total Qty</th>
<th>Total Cost</th>
</tr>
</thead>
<tbody>
<tr t-foreach="data['product_list']" t-as="product">
<td>
<span t-esc="product['product_id']"/>
</td>
<td t-foreach="product['qty_period_list']" t-as="qty">
<span t-esc="qty"/>
</td>
<td>
<span t-esc="product['qty_available']"/>
</td>
<td>
<span t-esc="product['total_amount']"/>
</td>
</tr>
</tbody>
</table>
</div>
</t>
</t>
</template>
</flectra>