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

Added Payments tab in the Navbar #294

Merged
merged 4 commits into from
Apr 20, 2022
Merged

Added Payments tab in the Navbar #294

merged 4 commits into from
Apr 20, 2022

Conversation

aniketkaushik
Copy link
Contributor

Added Payments tab

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have manually tested all workflows
  • I have performed a self-review of my own code
  • I have added automated tests for my code

@github-actions
Copy link

Current Code Coverage Percent of this PR:

98.18 %

Files having coverage below 100%

Impacted Files Coverage
/app/controllers/clients_controller.rb 38.89 %
/app/controllers/concerns/error_handler.rb 97.73 %
/app/models/project.rb 90.32 %

@@ -118,6 +119,11 @@
<%= t('navbar.reports') %>
</a>
<% end %>
<% if current_user.has_owner_or_admin_role?(current_company) %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Use PaymentPolicy here policy(:payment).index?

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

@@ -152,6 +158,11 @@
<%= t('navbar.reports') %>
</a>
<% end %>
<% if current_user.has_owner_or_admin_role?(current_company) %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Use PaymentPolicy here policy(:payment).index?

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

end
end

context "when user is a employee" do
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
context "when user is a employee" do
context "when the user is an employee" do

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

@aniketkaushik aniketkaushik merged commit 83c6388 into develop Apr 20, 2022
@aniketkaushik aniketkaushik deleted the payments-tab branch April 20, 2022 11:00
@rohitjoshixyz
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants