update rain bow land request

This commit is contained in:
Aung Myo
2018-06-11 17:47:36 +06:30
parent 8c5fce8516
commit c5c28bf44d
4 changed files with 24 additions and 9 deletions

View File

@@ -81,7 +81,7 @@
<% @response["data"].each do |transaction| %>
<tr>
<td><%= transaction["date"]%></td>
<% if transaction["status"] == 'Rebate' || transaction["status"] == 'Discount'%>
<% if transaction["status"] == 'Rebate' || transaction["status"] == 'Discount' || transaction["status"] == 'Reversal'%>
<td><%= transaction["deposit"] %></td>
<% else %>
<td>(<%= transaction["withdraw"] %>)</td>
@@ -95,7 +95,11 @@
<tr style="border-top:2px solid #666;">
<th>Balance</th>
<th colspan="4">
<%= @response["data"].first["balance"] %>
<% if @response["data"].first["status"] == 'Reversal'%>
<%= @response["data"].first["balance"] + @response["data"][1]["balance"]%>
<%else%>
<%= @response["data"].first["balance"] %>
<%end%>
</th>
</tr>
<%end%>