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.
128 lines
6.3 KiB
128 lines
6.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Report template -->
|
|
<template id="report_progress_billing">
|
|
<t t-call="web.html_container">
|
|
<t t-call="web.external_layout">
|
|
<div class="page">
|
|
<t t-foreach="docs" t-as="data">
|
|
<span style="font-size:35px;">
|
|
<strong>
|
|
<t t-esc="data['name']"/>
|
|
</strong>
|
|
</span>
|
|
<p t-if="data['partner_id']">Customer :
|
|
<t t-esc="data['partner_id'].name"/>
|
|
</p>
|
|
<p t-if="data['project_id']">Progress Bill :
|
|
<t t-esc="data['project_id'].name"/>
|
|
</p>
|
|
<p t-if="data['invoice_date']">Progress Bill Date :
|
|
<t t-esc="data['invoice_date']"/>
|
|
</p>
|
|
<br/>
|
|
<table class="table">
|
|
<tr>
|
|
<th style="min-width: 150px">Product</th>
|
|
<th style="min-width: 150px">Quantity</th>
|
|
<th style="min-width: 150px">Unit Price</th>
|
|
<th style="min-width: 150px">Taxes</th>
|
|
<th style="min-width: 150px">Subtotal</th>
|
|
</tr>
|
|
<tr t-foreach="data['invoice_line_ids']"
|
|
t-as="rec">
|
|
<td>
|
|
<t t-esc="rec['product_id'].name"/>
|
|
</td>
|
|
<td>
|
|
<t t-esc="rec['quantity']"/>
|
|
</td>
|
|
<td>
|
|
<t t-esc="rec['price_unit']"/>
|
|
</td>
|
|
<td>
|
|
<t t-esc="rec['tax_ids'].name"/>
|
|
</td>
|
|
<td>
|
|
<t t-esc="rec['price_subtotal']"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<span class="oe_subtotal_footer oe_right"
|
|
style="font-size:20px;">
|
|
<strong>Total:</strong>
|
|
<t t-esc="data['amount_total']"/>
|
|
</span>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<span style="font-size:20px;">Progress Billing
|
|
Information
|
|
</span>
|
|
<table class="table table-bordered"
|
|
style="border: 3px solid black;">
|
|
<tr style="border: 3px solid black;">
|
|
<th style="min-width: 150px">Total Progress
|
|
Billing
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['total_progress_billing']"/>
|
|
</td>
|
|
<th style="min-width: 150px">Previously
|
|
Invoiced
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['previously_invoice']"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="border: 3px solid black;">
|
|
<th style="min-width: 150px">Invoice To Date
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['invoice_to_date']"/>
|
|
</td>
|
|
<th style="min-width: 150px">Previously
|
|
Invoiced Due
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['previously_invoice_due']"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="border: 3px solid black;">
|
|
<th style="min-width: 150px">Remaining Progress
|
|
Billing
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['remaining_progress_billing']"/>
|
|
</td>
|
|
<th style="min-width: 150px">Current Invoiced
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['current_invoice']"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="border: 3px solid black;">
|
|
<th style="min-width: 150px"/>
|
|
<td style="min-width: 150px"/>
|
|
<th style="min-width: 150px">Less Paid Amount
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['less_paid_amount']"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="border: 3px solid black;">
|
|
<th style="min-width: 150px"/>
|
|
<td style="min-width: 150px"/>
|
|
<th style="min-width: 150px">Total Due Amount
|
|
</th>
|
|
<td style="min-width: 150px">
|
|
<t t-esc="data['total_due']"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|