update crm and bill
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<th>NRC/Passport No</th>
|
||||
<th>Address</th>
|
||||
<th>DOB</th>
|
||||
<th>Membership Type</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -45,8 +46,16 @@
|
||||
<td><%= @customer.nrc_no %></td>
|
||||
<td><%= @customer.address%></td>
|
||||
<td><%= @customer.date_of_birth %></td>
|
||||
<% if @customer.membership_type.to_f > 0%>
|
||||
<td><%lookup= Lookup.find_by_value(@customer.membership_type) %>
|
||||
<%= lookup.name %>
|
||||
</td>
|
||||
<%else%>
|
||||
<td>-</td>
|
||||
<%end%>
|
||||
|
||||
</tr>
|
||||
<tr><th colspan="8"></th></tr>
|
||||
<tr><th colspan="9"></th></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -55,21 +64,19 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<%
|
||||
if @response["data"].present? %>
|
||||
|
||||
<tr>
|
||||
<th colspan="5">Membership Transactions</th>
|
||||
<% if @response["status"] == true %>
|
||||
<th>Current Balance : <%= @response["data"].last["balance"]%></th>
|
||||
<% end %>
|
||||
|
||||
<th>Current Balance : <%= @balance%></th>
|
||||
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Redeem</th>
|
||||
<th>Rebate</th>
|
||||
<th>Balance</th>
|
||||
<!-- <th>Account No</th> -->
|
||||
<th>From Account</th>
|
||||
<th>Status</th>
|
||||
<th>Receipt No</th>
|
||||
</tr>
|
||||
@@ -82,7 +89,7 @@
|
||||
<td><%= transaction["redeem"]%></td>
|
||||
<td><%= transaction["rebate"] %></td>
|
||||
<td><%= transaction["balance"] %></td>
|
||||
<!-- <td><%= transaction["account_no"] %></td> -->
|
||||
<td><%= transaction["account_status"] %></td>
|
||||
<td><%= transaction["status"] %></td>
|
||||
<td><%= transaction["receipt_no"] %></td>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user