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

Skip to content

Adds ability to generate and send InvoicePDF as an attachment.#346

Merged
apoorv1316 merged 10 commits intodevelopfrom
323-pdf-attachment-for-invoice
May 9, 2022
Merged

Adds ability to generate and send InvoicePDF as an attachment.#346
apoorv1316 merged 10 commits intodevelopfrom
323-pdf-attachment-for-invoice

Conversation

@mohd-anas-ansari
Copy link
Contributor

@mohd-anas-ansari mohd-anas-ansari commented Apr 27, 2022

Notion card

https://www.notion.so/saeloun/Generate-PDF-attachment-of-the-invoice-21035ae1b67a4aa7820b1ae21d7290b6

Summary

Added generation of PDF AS attachment while mailing invoices.

Preview

Screenshot 2022-04-28 at 2 46 04 AM

Type of change

Please delete options that are not relevant.

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

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

@mohd-anas-ansari mohd-anas-ansari linked an issue Apr 27, 2022 that may be closed by this pull request
@apoorv1316
Copy link
Collaborator

@anasansari157 CI check failed.

@mohd-anas-ansari mohd-anas-ansari force-pushed the 323-pdf-attachment-for-invoice branch from fe932c0 to 36764b6 Compare April 28, 2022 06:24
@github-actions
Copy link

github-actions bot commented Apr 28, 2022

Current Code Coverage Percent of this PR:

94.4 %

Files having coverage below 100%

Impacted Files Coverage
/app/controllers/subscriptions_controller.rb 66.67 %
/app/controllers/invoices_controller.rb 63.64 %
/app/models/client.rb 92.5 %
/app/models/invoice.rb 96.3 %
/app/policies/timezone_policy.rb 66.67 %
/app/policies/subscriptions_policy.rb 66.67 %
/app/controllers/invoices/payments_controller.rb 61.11 %
/app/services/invoice_payment/checkout.rb 43.48 %
/app/services/invoice_payment/pdf_generation.rb 65.38 %
/app/controllers/internal_api/v1/timezones_controller.rb 37.5 %
/lib/countries_info.rb 0.0 %

Copy link
Member

@akhilgkrishnan akhilgkrishnan left a comment

Choose a reason for hiding this comment

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

@anasansari157 Added some suggestions, also Can you add test for helpers and mailers.

Copy link
Contributor

@rohitjoshixyz rohitjoshixyz left a comment

Choose a reason for hiding this comment

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

Some refactoring needed

@apoorv1316
Copy link
Collaborator

@mohd-anas-ansari Have you fixed all the review comments on this PR?

@mohd-anas-ansari
Copy link
Contributor Author

@apoorv1316 Yes, all reviews have been addressed.

Copy link
Contributor

@rohitjoshixyz rohitjoshixyz left a comment

Choose a reason for hiding this comment

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

Some non-blocking comments, LGTM 🎉

@mohd-anas-ansari mohd-anas-ansari requested review from shivamsinghchahar and removed request for apoorv-mishra and gowsik-ragunath May 6, 2022 06:08
@supriya3105 supriya3105 requested a review from apoorv1316 May 6, 2022 06:42
@supriya3105
Copy link
Contributor

@apoorv1316 Please test this .

@apoorv1316
Copy link
Collaborator

@shivamsinghchahar Please approve it so it can be merged.

Copy link
Contributor

@shivamsinghchahar shivamsinghchahar left a comment

Choose a reason for hiding this comment

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

LGTM🚀

@apoorv1316 apoorv1316 merged commit fcbddef into develop May 9, 2022
@apoorv1316 apoorv1316 deleted the 323-pdf-attachment-for-invoice branch May 9, 2022 11:50
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
* Adds ability to generate and send InvoicePDF as an attachment.

* Fixes CI build error

* Adds yarn

* - Fixes typo
- Fixes space between "Amount" and number.

* Adds helpers for invoice.

* Adds reply_to in mail.

* Minimizes serializer queries.

* Methods isolation.

* Moves pdf_generation to services.

* Shows quantity in hours.
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.

Generate PDF attachment for Invoice.

6 participants