Commit 511d7252 authored by gwendal's avatar gwendal
Browse files

hotfix: missing check key for member balance

parent 9505e768
<h1><%= t(:member_card) %></h1> <h1><%= t(:member_card) %></h1>
<br /> <br />
<h2>Balance</h2> <h2>Balance</h2>
<%if InvoicingLedgerItem.account_summary(@member.id).empty?%> <%if InvoicingLedgerItem.account_summary(@member.id).has_key? :EUR%>
<%= number_to_currency(0) %> <%= number_to_currency(0) %>
<%else%> <%else%>
<%= number_to_currency(InvoicingLedgerItem.account_summary(@member.id)[:EUR].balance) %> <%= number_to_currency(InvoicingLedgerItem.account_summary(@member.id)[:EUR].balance) %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment