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.
 
 
 
 
 

120 lines
6.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Pdf template of Prescription Report-->
<template id="report_prescription">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<div classtemplate="page">
<div class="oe_structure"/>
<div class="text-center">
<h2>DENTAL PRESCRIPTION REPORT</h2>
</div>
<br/>
<table class="table table-borderless">
<tbody>
<tr>
<td>
Patient Name :
<span t-field="o.patient_id"/>
</td>
<td>
Doctor Name :
<span t-field="o.prescribed_doctor_id"/>
</td>
</tr>
<tr>
<td>
Appointment ID :
<span t-field="o.appointment_id"/>
</td>
<td>
Treatment :
<span t-field="o.treatment_id"/>
</td>
</tr>
<tr>
<td>
Token NO :
<span t-field="o.token_no"/>
</td>
<td>
Date :
<span t-field="o.prescription_date"/>
</td>
</tr>
</tbody>
</table>
<table class="table table-bordered mt32">
<thead>
<tr>
<th>Sl.No</th>
<t t-set="counter" t-value="0"/>
<th class="text-center">
<span>Medicament</span>
</th>
<th class="text-center">
<span>Generic Name</span>
</th>
<th class="text-center">
<span>Dosage Strength</span>
</th>
<th class="text-center">
<span>Medicament Form</span>
</th>
<th class="text-center">
<span>Quantity</span>
</th>
<th class="text-center">
<span>Frequency</span>
</th>
</tr>
</thead>
<tbody>
<t t-foreach="o.medicine_ids" t-as="medicine">
<tr class="text-center">
<td style="text-align:center;">
<t t-set="counter"
t-value="counter + 1"/>
<t t-esc="counter"/>
</td>
<td style="text-align:center;">
<span>
<t t-esc="medicine.medicament_id.name"/>
</span>
</td>
<td style="text-align:center;">
<span>
<t t-esc="medicine.generic_name"/>
</span>
</td>
<td style="text-align:center;">
<span>
<t t-esc="medicine.dosage_strength"/>
</span>
</td>
<td style="text-align:center;">
<span>
<t t-esc="medicine.medicament_form"/>
</span>
</td>
<td style="text-align:center;">
<span>
<t t-esc="medicine.quantity"/>
</span>
</td>
<td style="text-align:center;">
<span>
<t t-esc="medicine.frequency_id.medicament_frequency"/>
</span>
</td>
</tr>
</t>
</tbody>
</table>
</div>
</t>
</t>
</t>
</template>
</odoo>