Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add API for outstanstding and overdue invoices report#539

Merged
supriya3105 merged 4 commits intodevelopfrom
outstanding-invoices-report
Jul 5, 2022
Merged

Add API for outstanstding and overdue invoices report#539
supriya3105 merged 4 commits intodevelopfrom
outstanding-invoices-report

Conversation

@shalapatil
Copy link
Contributor

@shalapatil shalapatil commented Jul 3, 2022

Notion card

https://www.notion.so/saeloun/Create-API-s-for-outstanding-and-overdue-invoices-report-03baa78301bc4ea692fe54be6243444c

Summary

Preview

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

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

github-actions bot commented Jul 4, 2022

Current Code Coverage Percent of this PR:

89.24 %

Files having coverage below 100%

Impacted Files Coverage
/lib/custom_failure.rb 80.0 %
/app/services/weekly_reminder_for_missed_entries_service.rb 31.82 %
/app/controllers/users/invitations_controller.rb 92.86 %
/app/controllers/users/sessions_controller.rb 85.71 %
/app/services/invoice_payment/checkout.rb 44.0 %
/app/services/invoice_payment/pdf_generation.rb 70.0 %
/app/controllers/internal_api/v1/payment_settings_controller.rb 93.33 %
/app/controllers/internal_api/v1/profile_controller.rb 96.88 %
/app/controllers/internal_api/v1/companies_controller.rb 95.45 %
/app/controllers/internal_api/v1/wise/recipients_controller.rb 90.0 %
/app/controllers/internal_api/v1/payments/providers_controller.rb 94.74 %
/lib/benchmarking/benchmarker.rb 0.0 %

Copy link
Contributor

@keshavbiswa keshavbiswa left a comment

Choose a reason for hiding this comment

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

Added few concerns.

total_outstanding_amount = clients.pluck(:total_outstanding_amount).sum
total_overdue_amount = clients.pluck(:total_overdue_amount).sum
{
total_outstanding_amount:,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add the name key directly here instead of merging in the clients method?

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

@supriya3105
Copy link
Contributor

@shalapatil Please check the review comments from Keshav and resolve them as required.

@supriya3105
Copy link
Contributor

@keshavbiswa Please check the review comments that have been incorporated by Shalaka. @shalapatil Please mark the resolved conversations as resolved .

@supriya3105 supriya3105 merged commit 332e283 into develop Jul 5, 2022
@supriya3105 supriya3105 deleted the outstanding-invoices-report branch July 5, 2022 12:18
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
* Add API for outstanstding and overdue invoices report

* Fix spec

* fix suggested changes
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