61 lines
2.2 KiB
Handlebars
61 lines
2.2 KiB
Handlebars
|
<center>
|
||
|
<h2>
|
||
|
{{title}}
|
||
|
</h2>
|
||
|
<h3>
|
||
|
{{parent_company_name}} {{company_name}}<br/>
|
||
|
</h3>
|
||
|
<h4>
|
||
|
From {{date_from}} To {{date_to}}
|
||
|
</h4>
|
||
|
</center>
|
||
|
|
||
|
<table class="table table-hover">
|
||
|
<thead>
|
||
|
<th>วันที่ใบเสร็จ</th>
|
||
|
<th>ผู้ป่วย</th>
|
||
|
<th>เลขที่ใบเสร็จ</th>
|
||
|
<th></th>
|
||
|
<th>อ้างอิง #</th>
|
||
|
<th>รายการ</th>
|
||
|
<th style="text-align:right">จำนวนเงิน</th>
|
||
|
<th>วันที่นำฝาก</th>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{{#each lines}}
|
||
|
<tr>
|
||
|
<td>{{date}}</td>
|
||
|
<td>{{patient_name}}</td>
|
||
|
<td>
|
||
|
{{#if is_rd_shop}}
|
||
|
{{view "link" string=number action="clinic_shop" action_options="mode=form" active_id=id}}
|
||
|
{{else}}
|
||
|
{{view "link" string=number action="clinic_hd_case" action_options="mode=form" active_id=id}}
|
||
|
{{/if}}
|
||
|
</td>
|
||
|
<td>
|
||
|
{{#if is_rd_shop}}
|
||
|
<button class="btn btn-sm btn-default"
|
||
|
onclick="location.href='report?name=clinic_receipt_print&convert=pdf&refer_id={{../id}}'">
|
||
|
<i class="glyphicon glyphicon-print"></i> Print</button>
|
||
|
{{else}}
|
||
|
<button class="btn btn-sm btn-default"
|
||
|
onclick="location.href='report?payment_id={{../payment_id}}&convert=pdf&refer_id={{../id}}&name=report_clinic_payment_form'">
|
||
|
<i class="glyphicon glyphicon-print"></i> Print</button>
|
||
|
{{/if}}
|
||
|
</td>
|
||
|
<td>{{ref}}</td>
|
||
|
<td>{{list_item}}</td>
|
||
|
<td style="text-align:right">{{currency amount_total}}</td>
|
||
|
<td>{{date_send}}</td>
|
||
|
</tr>
|
||
|
{{/each}}
|
||
|
</tbody>
|
||
|
<tfoot>
|
||
|
<th colspan="5"></th>
|
||
|
<th>ทั้งหมด</th>
|
||
|
<th style="text-align:right">{{currency total_amount}}</th>
|
||
|
<th></th>
|
||
|
</tfoot>
|
||
|
</table>
|