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

Skip to content

Edit invoice#381

Merged
vipulnsward merged 15 commits intodevelopfrom
edit-invoice
May 23, 2022
Merged

Edit invoice#381
vipulnsward merged 15 commits intodevelopfrom
edit-invoice

Conversation

@sudeeptarlekar
Copy link
Contributor

@sudeeptarlekar sudeeptarlekar commented May 16, 2022

Notion card

https://www.notion.so/saeloun/Edit-Invoice-05b8cca4cf234559a51c3d49f7c39573

Summary

Added Edit invoice page

Preview

Edit Invoice

Type of change

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

How Has This Been Tested?

Test cases for APIs were already in place.

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

@pr-triage pr-triage bot added the PR: draft label May 16, 2022
@github-actions
Copy link

github-actions bot commented May 17, 2022

Current Code Coverage Percent of this PR:

83.23 %

Files having coverage below 100%

Impacted Files Coverage
/app/controllers/subscriptions_controller.rb 66.67 %
/app/controllers/invoices_controller.rb 57.14 %
/app/models/invoice.rb 96.3 %
/app/models/client.rb 92.68 %
/app/policies/timezone_policy.rb 66.67 %
/app/policies/subscriptions_policy.rb 66.67 %
/app/policies/client_policy.rb 95.45 %
/app/policies/invoice_policy.rb 94.12 %
/app/controllers/invoices/payments_controller.rb 61.11 %
/app/services/report/filters.rb 87.88 %
/app/services/invoice_payment/checkout.rb 43.48 %
/app/services/invoice_payment/pdf_generation.rb 66.67 %
/app/controllers/internal_api/v1/timezones_controller.rb 37.5 %
/app/controllers/internal_api/v1/clients_controller.rb 94.44 %
/app/controllers/internal_api/v1/invoices_controller.rb 94.87 %
/lib/benchmarking/benchmarker.rb 0.0 %
/lib/countries_info.rb 0.0 %

@sudeeptarlekar sudeeptarlekar requested review from ajinkyaa, apoorv-mishra and supriya3105 and removed request for ajinkyaa May 17, 2022 09:01
@sudeeptarlekar sudeeptarlekar marked this pull request as ready for review May 17, 2022 09:01
@supriya3105 supriya3105 requested a review from apoorv1316 May 17, 2022 10:32
@supriya3105
Copy link
Contributor

@apoorv1316 Please test this PR.

Copy link
Collaborator

@apoorv1316 apoorv1316 left a comment

Choose a reason for hiding this comment

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

@sudeeptarlekar Few concerns

  1. The amount is showing wrong after clicking on the edit invoice button. You can see in the video the amount was 5000 but it's showing 10,000.
  2. Even after changing the due date of an invoice it's showing I guess the default due date on the invoice edit page. Also, I was not able to change the due date on the edit invoice.
    https://www.loom.com/share/41e0d39a7a604c3db0054940ebd8a747

@sudeeptarlekar
Copy link
Contributor Author

@apoorv1316 Fixed bugs, let me know if I am missing something.

@sudeeptarlekar sudeeptarlekar requested a review from apoorv1316 May 19, 2022 11:13
@supriya3105 supriya3105 removed their request for review May 20, 2022 07:04
Copy link
Contributor

@apoorv-mishra apoorv-mishra left a comment

Choose a reason for hiding this comment

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

LGTM after resolving conflicts.

@supriya3105
Copy link
Contributor

@sudeeptarlekar Please resolve the conflicts on this PR.

@apoorv1316
Copy link
Collaborator

@sudeeptarlekar This still has bugs on editing discount. Please see the loom video https://www.loom.com/share/006958646bdf4a6eb3e1e980baadd316

Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
Signed-off-by: sudeeptarlekar <[email protected]>
@vipulnsward vipulnsward merged commit ce49a09 into develop May 23, 2022
@vipulnsward vipulnsward deleted the edit-invoice branch May 23, 2022 17:37
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
* Added routes for invoice edit

Signed-off-by: sudeeptarlekar <[email protected]>

* Added Edit invoice components

Signed-off-by: sudeeptarlekar <[email protected]>

* Added invoice total component

Signed-off-by: sudeeptarlekar <[email protected]>

* Added edit invoice components

Signed-off-by: sudeeptarlekar <[email protected]>

* Added invoice Total component

Signed-off-by: sudeeptarlekar <[email protected]>

* Added update invoice api call in react app

Signed-off-by: sudeeptarlekar <[email protected]>

* Added invoice line items in edit invoice page

Signed-off-by: sudeeptarlekar <[email protected]>

* Corrected subtotal calculation

Signed-off-by: sudeeptarlekar <[email protected]>

* Removed Rubocop error

Signed-off-by: sudeeptarlekar <[email protected]>

* Removed ESLint errors

Signed-off-by: sudeeptarlekar <[email protected]>

* Corrected discount input

Signed-off-by: sudeeptarlekar <[email protected]>

* Removed blank file

Signed-off-by: sudeeptarlekar <[email protected]>

* Fixed amount bug

Signed-off-by: sudeeptarlekar <[email protected]>

* Fixed invoice discount and tax issue

Signed-off-by: sudeeptarlekar <[email protected]>

* Fixed discount bug

Signed-off-by: sudeeptarlekar <[email protected]>
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.

5 participants