You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

89 lines
5.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_vehicle_contract">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="doc">
<div class="page" >
<t t-call="report.external_layout">
<div class="header" style="text-align:left;"><strong><h1><a>Vehicle Contract :</a><a t-field="doc.name"/></h1></strong></div>
<div style="text-align:left;"><strong><h2>Contract details</h2></strong></div>
<div style="text-align:left;"><strong><p><a>Vehicle:</a><a t-field="doc.vehicle_id.name"/></p></strong></div>
<div style="text-align:left;"><strong><p><a>Type:</a><a t-field="doc.cost_subtype_id.name"/></p></strong></div>
<div style="text-align:left;"><strong><p><a>Activation Cost:</a><a t-field="doc.amount"/></p></strong></div>
<div style="text-align:left;"><strong><p><a>Recurring Cost Amount:</a><a t-field="doc.cost_generated"/></p></strong></div>
<br/>
<div style="text-align:left;"><strong><h2>Odometer details</h2></strong></div>
<div style="text-align:left;"><strong><p><a>Odometer Value</a><a t-field="doc.odometer"/></p></strong></div>
<br/>
<br/>
<table width="100%" style="margin-left:50px;margin-top:5px;border: None solid black;">
<tr>
<td style="width:50px;height:25px;" ><span>Invoice Date: </span><span t-att-style="style" t-esc="doc.date"/></td>
<td style="width:50px;height:25px;" ><span>Contract Start Date : </span><span t-att-style="style" t-esc="doc.start_date"/></td>
<td style="width:50px;height:25px;" ><span>Contract Expiration Date: </span><span t-att-style="style" t-esc="doc.expiration_date"/></td>
</tr>
<tr>
<td style="width:50px;height:25px;" ><span>Vendor : </span><span t-att-style="style" t-esc="doc.insurer_id.name"/></td>
<td style="width:50px;height:25px;" ><span>Contractor : </span><span t-att-style="style" t-esc="doc.purchaser_id.name"/></td>
<td style="width:50px;height:25px;" ><span>Contract Reference : </span><span t-att-style="style" t-esc="doc.ins_ref"/></td>
</tr>
</table>
<t t-set="s" t-value="0"/>
<table class="table table-condensed">
<thead>
<tr >
<th style="background-color:#9b9da0 !important;">Service </th>
<th style="background-color:#9b9da0 !important;">Indicative Cost</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-foreach="doc.cost_ids" t-as="l">
<tr t-if="l.cost_subtype_id">
<td>
<span t-esc="l.cost_subtype_id.name"/>
</td>
<td class="text-right">
<span t-esc="l.amount"/>
<t t-set="s" t-value="s+l.amount"/>
</td>
</tr>
</t>
</tbody>
</table>
<div class="row" name="total">
<div class="col-xs-4 pull-right">
<table class="table table-condensed">
<tr class="border-black">
<td><strong>Total</strong></td>
<td class="text-right">
<span t-esc="s"/>
</td>
</tr>
</table>
</div>
</div>
<table>
<tr>
<td colspan="3" rowspan="3">Terms And Conditions :</td>
</tr>
</table>
<table>
<tr>
<td colspan="3" rowspan="3" class="text-right">
<span t-esc="doc.notes"/>
</td>
</tr>
</table>
</t>
</div>
<p style="page-break-after:always"></p>
</t>
</t>
</template>
</data>
</openerp>