Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pik
ambre
Commits
511d7252
Commit
511d7252
authored
Jan 04, 2020
by
gwendal
Browse files
hotfix: missing check key for member balance
parent
9505e768
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/members/show.html.erb
View file @
511d7252
<h1>
<%=
t
(
:member_card
)
%>
</h1>
<br
/>
<h2>
Balance
</h2>
<%
if
InvoicingLedgerItem
.
account_summary
(
@member
.
id
).
empty?
%>
<%
if
InvoicingLedgerItem
.
account_summary
(
@member
.
id
).
has_key?
:EUR
%>
<%=
number_to_currency
(
0
)
%>
<%
else
%>
<%=
number_to_currency
(
InvoicingLedgerItem
.
account_summary
(
@member
.
id
)[
:EUR
].
balance
)
%>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment