mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-18 02:39:10 +02:00
work on invoice report
This commit is contained in:
@@ -10,23 +10,8 @@
|
|||||||
</t>
|
</t>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="row mt32 mb32">
|
<div class="row mt32 mb32">
|
||||||
<div class="col-6">
|
<div class="col-12">
|
||||||
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % to_text(company.logo)"
|
<font color="#fff"><img t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 250px;"/></font>
|
||||||
style="max-height: 50px;"/>
|
|
||||||
</div>
|
|
||||||
<div class="col-6 text-right" style="font:12px lucida-console,sans-serif !important;">
|
|
||||||
<span t-field="company.partner_id"/>
|
|
||||||
<br/>
|
|
||||||
<span t-field="company.partner_id.street"/>
|
|
||||||
<br/>
|
|
||||||
<span t-field="company.partner_id.street2"/>
|
|
||||||
<br/>
|
|
||||||
<span t-field="company.partner_id.city"/>
|
|
||||||
<br/>
|
|
||||||
<span t-field="company.partner_id.country_id"/>
|
|
||||||
<br/>
|
|
||||||
<span t-field="company.partner_id.vat"/>
|
|
||||||
<br/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -66,7 +51,7 @@
|
|||||||
|
|
||||||
<div class="col-3" t-if="o.invoice_date">
|
<div class="col-3" t-if="o.invoice_date">
|
||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>Invoice Date:</strong>
|
<strong>Invoice Date</strong>
|
||||||
<p t-field="o.invoice_date"/>
|
<p t-field="o.invoice_date"/>
|
||||||
</font>
|
</font>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,13 +59,13 @@
|
|||||||
<div class="col-3"
|
<div class="col-3"
|
||||||
t-if="o.invoice_date_due and o.type == 'out_invoice' and (o.state == 'draft' or o.state == 'posted')">
|
t-if="o.invoice_date_due and o.type == 'out_invoice' and (o.state == 'draft' or o.state == 'posted')">
|
||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>Due Date:</strong>
|
<strong>Due Date</strong>
|
||||||
<p t-field="o.invoice_date_due"/>
|
<p t-field="o.invoice_date_due"/>
|
||||||
</font>
|
</font>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3" t-if="o.invoice_payment_term_id">
|
<div class="col-3" t-if="o.invoice_payment_term_id">
|
||||||
<font color="#fff">
|
<font color="#fff">
|
||||||
<strong>Payment Term:</strong>
|
<strong>Payment Term</strong>
|
||||||
<p t-field="o.invoice_payment_term_id"/>
|
<p t-field="o.invoice_payment_term_id"/>
|
||||||
</font>
|
</font>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,25 +20,37 @@
|
|||||||
<span t-esc="o.txn_id"/><br/>
|
<span t-esc="o.txn_id"/><br/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
|
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
|
||||||
<strong>TRN#</strong>
|
<!-- <strong>TRN#</strong>
|
||||||
<span t-esc="o.txn_id"/><br/>
|
<span t-esc="o.txn_id"/><br/> -->
|
||||||
<strong>YOUR ORDER NO:</strong><br/>
|
<div class="row">
|
||||||
<span t-if="o.type == 'out_invoice'">
|
<div class="col-4">
|
||||||
<div class="text-right"><strong>D.O.NOS</strong><br/></div>
|
<strong>YOUR ORDER NO:</strong><br/>
|
||||||
<div class="text-right"><strong>M.R.V NO.</strong><br/></div>
|
</div>
|
||||||
</span>
|
<div class="col-4">
|
||||||
<span t-if="o.type == 'out_refund'">
|
</div>
|
||||||
<div class="text-right"><strong>Our D.O.NOS</strong><br/></div>
|
<div class="col-4">
|
||||||
<div class="text-right"><strong>Our M.R.V NO.</strong><br/></div>
|
<span t-if="o.type == 'out_invoice'">
|
||||||
</span>
|
<div class="text-right"><strong>D.O.NOS</strong><br/></div>
|
||||||
<strong>Sale Code:</strong>
|
<div class="text-right"><strong>M.R.V NO.</strong><br/></div>
|
||||||
<span t-esc="o.invoice_origin"/><br/>
|
</span>
|
||||||
<span t-if="o.type == 'out_refund'">
|
<span t-if="o.type == 'out_refund'">
|
||||||
<strong>Cost Code:</strong>
|
<div class="text-right"><strong>Our D.O.NOS</strong><br/></div>
|
||||||
</span>
|
<div class="text-right"><strong>Our M.R.V NO.</strong><br/></div>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6">
|
||||||
|
<strong>Sale Code:</strong>
|
||||||
|
<span t-esc="o.invoice_origin"/><br/>
|
||||||
|
<span t-if="o.type == 'out_refund'">
|
||||||
|
<strong>Cost Code:</strong>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//div[@style='padding-top:50px;']" position="after">
|
<xpath expr="//div[@style='padding-top:50px;']" position="after">
|
||||||
<span>NOTE:</span><br/>
|
<span>NOTE</span><br/>
|
||||||
<span t-esc="o.note"/>
|
<span t-esc="o.note"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//table[@class='table table-sm']/thead/tr/th[1]" position="before">
|
<xpath expr="//table[@class='table table-sm']/thead/tr/th[1]" position="before">
|
||||||
@@ -46,7 +58,7 @@
|
|||||||
<th style="background-color:#3498DB !important;color:#FFF">Code</th>
|
<th style="background-color:#3498DB !important;color:#FFF">Code</th>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before">
|
<xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before">
|
||||||
<td><span t-esc="i"/></td>
|
<td><span t-esc="i+1"/></td>
|
||||||
<td><span t-esc="l.product_id.default_code"/></td>
|
<td><span t-esc="l.product_id.default_code"/></td>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
|
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
|
||||||
@@ -61,13 +73,22 @@
|
|||||||
<span t-esc="o.txn_id"/><br/>
|
<span t-esc="o.txn_id"/><br/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
|
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
|
||||||
<strong>TRN#</strong>
|
<div class="row">
|
||||||
<span t-esc="o.txn_id"/><br/>
|
<div class="col-4">
|
||||||
<strong>YOUR ORDER NO:</strong><br/>
|
<strong>YOUR ORDER NO:</strong><br/>
|
||||||
<div class="text-right"><strong>D.O.NOS</strong><br/></div>
|
</div>
|
||||||
<div class="text-right"><strong>M.R.V NO.</strong><br/></div>
|
<div class="col-4">
|
||||||
<strong>Sale Code:</strong>
|
</div>
|
||||||
<span t-esc="o.invoice_origin"/>
|
<div class="col-4">
|
||||||
|
<div class="text-right"><strong>D.O.NOS</strong><br/></div>
|
||||||
|
<div class="text-right"><strong>M.R.V NO.</strong><br/></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6">
|
||||||
|
<strong>Sale Code:</strong>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
|
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
|
||||||
<p>E & OE</p><br/>
|
<p>E & OE</p><br/>
|
||||||
|
|||||||
Reference in New Issue
Block a user