clinic/netforce_clinic/templates/payment_matching.hbs

180 lines
7.4 KiB
Handlebars
Raw Normal View History

2015-08-24 09:45:12 +00:00
<div class="row" style="margin-top:10px;">
2015-08-26 09:13:27 +00:00
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" style="width:{{currency pc_match}}%">
{{currency pc_match}}% Match (success)
</div>
<div class="progress-bar progress-bar-danger" role="progressbar" style="width:{{currency pc_unmatch}}%">
{{currency pc_unmatch}}% Un Match (fail)
</div>
</div>
</div>
<div class="row">
2015-08-24 09:45:12 +00:00
<table class="table table-bordered">
<thead>
2015-08-26 09:13:27 +00:00
<th style="text-align:center;width:25%">Total Item Waiting To Matching</th>
<th style="text-align:center;width:25%">Total Invoice</th>
<th style="text-align:center;width:25%">Match</th>
<th style="text-align:center;width:25%">Un Match</th>
2015-08-24 09:45:12 +00:00
</thead>
<tbody>
<tr>
2015-08-25 01:36:30 +00:00
<td style="text-align:center">{{currency total_item}}</td>
2015-08-24 09:45:12 +00:00
<td style="text-align:center">{{currency total_invoice}}</td>
2015-08-26 09:13:27 +00:00
<td style="text-align:center">
{{currency total_match_invoice}}
</td>
<td style="text-align:center">
{{currency total_unmatch_invoice}}
</td>
2015-08-24 09:45:12 +00:00
</tr>
</tbody>
</table>
2015-08-21 08:15:53 +00:00
</div>
2015-08-25 01:36:30 +00:00
<div class="row">
2015-08-21 08:15:53 +00:00
<table class="table table-hover">
{{#ifeq view_type 'invoice'}}
2015-08-24 09:45:12 +00:00
<thead class="scroll-header">
2015-08-21 08:15:53 +00:00
<th>Invoice Date</th>
<th>Number</th>
</thead>
<tbody>
{{#if lines}}
{{#each lines}}
<tr>
<td>{{date}}</td>
<td>{{number}}</td>
</tr>
{{/each}}
{{else}}
{{/if}}
</tbody>
<tfoot>
</tfoot>
{{else}}
2015-08-25 01:36:30 +00:00
{{#ifeq pcode "SSO"}}
<thead class="scroll-header">
<th style="text-align:center">No.</th>
<th style="text-align:center">Date</th>
<th style="text-align:center">PID</th>
<th style="text-align:center">HN</th>
<th style="text-align:center">Patient</th>
<th style="text-align:center">Fee</th>
<th style="text-align:center">Inv Fee</th>
<th style="text-align:center">EPO</th>
<th style="text-align:center">Inv EPO</th>
<th style="text-align:center">Service</th>
<th style="text-align:center">Inv Service</th>
<th style="text-align:center">Amount</th>
</thead>
<tbody>
{{#if lines}}
{{#each lines}}
<tr>
<td>{{no}}</td>
<td style="width:8%">{{date}}</td>
<td>{{pid}}</td>
<td>{{hn}}</td>
<td>{{patient_name}}</td>
<td style="text-align:right">{{currency fee}}</td>
<td>
<a style="text-decoration:None" href="ui#form_view_xml=cust_invoice_form&active_id={{inv_fee_id}}&name=cust_invoice&mode=form" target="_blank">
{{#if inv_fee_id}}
2015-08-26 09:13:27 +00:00
{{#ifeq inv_fee_state "paid"}}
<span class="label label-success">
{{else}}
<span class="label label-info">
{{/ifeq}}
2015-08-25 01:36:30 +00:00
{{inv_fee}}
</span>
{{/if}}
</a>
</td>
<td style="text-align:right">{{currency epo}}</td>
<td>
<a style="text-decoration:None" href="ui#form_view_xml=cust_invoice_form&active_id={{inv_epo_id}}&name=cust_invoice&mode=form" target="_blank">
{{#if inv_epo_id}}
<span class="label label-info">
{{inv_epo}}
</span>
{{/if}}
</a>
</td>
<td style="text-align:right">{{currency srv}}</td>
<td>
<a href="ui#form_view_xml=cust_invoice_form&active_id={{inv_srv_id}}&name=cust_invoice&mode=form" target="_blank">
{{#if inv_srv_id}}
<span class="label label-info">
{{inv_srv}}
</span>
{{/if}}
</a>
</td>
<td style="text-align:right">{{currency amount}}</td>
</tr>
{{/each}}
{{else}}
{{/if}}
</tbody>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th style="text-align:right;">{{currency total_fee}}</th>
<th></th>
<th style="text-align:right;">{{currency total_epo}}</th>
<th></th>
<th style="text-align:right">{{currency total_srv}}</th>
<th></th>
<th style="text-align:right">{{currency total_amount}}</th>
<tfoot>
</tfoot>
{{else}}
{{#ifeq pcode "UC"}}
<thead class="scroll-header">
<th>No.</th>
<th>Date</th>
<th>HN</th>
<th>ID</th>
<th>Patient</th>
<th>Fee</th>
<th>Invoice</th>
</thead>
<tbody>
{{#each lines}}
<tr>
<td>{{no}}</td>
<td>{{date}}</td>
<td>{{hn}}</td>
<td>{{pid}}</td>
<td>{{patient_name}}</td>
<td>{{currency fee}}</td>
<td>
{{#if inv_number}}
<a href="ui#form_view_xml=cust_invoice_form&active_id={{inv_id}}&name=cust_invoice&mode=form" target="_blank">
<span class="label label-info">
{{inv_number}}
</span>
</a>
2015-08-24 09:45:12 +00:00
{{/if}}
2015-08-25 01:36:30 +00:00
</td>
</tr>
{{/each}}
</tbody>
<tfoot>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th>{{currency total_fee}}</th>
<th></th>
</tfoot>
2015-08-24 09:45:12 +00:00
{{else}}
2015-08-25 01:36:30 +00:00
TODO
{{/ifeq}}
{{/ifeq}}
2015-08-21 08:15:53 +00:00
{{/ifeq}}
</table>
2015-08-25 01:36:30 +00:00
</div>