-
Notifications
You must be signed in to change notification settings - Fork 75
Export options for revenue & invoice reports #1851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/javascript/src/components/Reports/RevenueByClientReport/index.tsx
Outdated
Show resolved
Hide resolved
<% report_data[:clients].each do |client| %> | ||
<tr> | ||
<td><%= client[:name] %></td> | ||
<td><%= FormatAmountService.new(report_data[:base_currency],client[:overdue_amount]).process %></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use variable for report_data[:base_currency]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -26,6 +26,7 @@ | |||
</thead> | |||
<tbody> | |||
<% report_data[:clients].each do |client| %> | |||
<% base_currency = report_data[:base_currency] %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move it before the loop & reuse the same everywhere
<tbody> | ||
<% if report_data[:clients].present? %> | ||
<% report_data[:clients].each do |client| %> | ||
<% base_currency = report_data[:base_currency] %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto!
131c82a
to
838314a
Compare
No description provided.