Skip to content
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

Export options for revenue & invoice reports #1851

Merged
merged 7 commits into from
May 29, 2024

Conversation

apoorv1316
Copy link
Contributor

No description provided.

@apoorv1316 apoorv1316 requested a review from nisusam May 24, 2024 08:12
app/views/pdfs/client_revenues.html.erb 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>
Copy link
Contributor

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]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@apoorv1316 apoorv1316 requested a review from nisusam May 29, 2024 05:49
@@ -26,6 +26,7 @@
</thead>
<tbody>
<% report_data[:clients].each do |client| %>
<% base_currency = report_data[:base_currency] %>
Copy link
Contributor

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] %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto!

@apoorv1316 apoorv1316 requested a review from nisusam May 29, 2024 07:39
@apoorv1316 apoorv1316 force-pushed the export-options-for-remaining-reports branch from 131c82a to 838314a Compare May 29, 2024 07:51
@apoorv1316 apoorv1316 merged commit 3cd531f into develop May 29, 2024
1 check passed
@apoorv1316 apoorv1316 deleted the export-options-for-remaining-reports branch May 29, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants