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

feat(medusa): decorate order edit line items with totals #3108

Merged
merged 21 commits into from
Feb 6, 2023

Conversation

fPolic
Copy link
Contributor

@fPolic fPolic commented Jan 25, 2023

What

  • decorate order edit line items with totals on order edit responses

Testing

  • totals added for line items in a tax inclusive region
  • totals added for line items in a tax exclusive region

RESOLVES CORE-1042

@fPolic fPolic requested a review from a team as a code owner January 25, 2023 11:44
@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2023

🦋 Changeset detected

Latest commit: b87b53f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@medusajs/medusa Patch
@medusajs/inventory Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@srindom
Copy link
Collaborator

srindom commented Jan 25, 2023

@adrien2p - can you maybe take a look at this one. Think you will have a better perspective on the totals stuff :)

@adrien2p
Copy link
Member

@adrien2p - can you maybe take a look at this one. Think you will have a better perspective on the totals stuff :)

Yes sure, i ll add it to my list 💪 i ll do that sometime today @fPolic

Copy link
Collaborator

@srindom srindom left a comment

Choose a reason for hiding this comment

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

LGTM!

@fPolic fPolic marked this pull request as draft February 1, 2023 12:57
@fPolic fPolic marked this pull request as ready for review February 2, 2023 12:19
Comment on lines +2575 to +2576
discount_total: 2001,
total: 1099,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: change in total amounts in this test

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you know what change resulted in this happening now when it didn't occur previously?

Copy link
Contributor Author

@fPolic fPolic Feb 2, 2023

Choose a reason for hiding this comment

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

We decorate OE totals via order service now which uses the new totals service, previously we used "old" totals service directly from OE service.

Copy link
Member

Choose a reason for hiding this comment

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

should we do something about this rounding or did you agree to something?

@olivermrbl
Copy link
Contributor

@adrien2p Can I get you to run another review to see if your requested changes have been addressed?

Copy link
Member

@adrien2p adrien2p left a comment

Choose a reason for hiding this comment

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

Minor todo's LGTM 💪

packages/medusa/src/services/order-edit.ts Outdated Show resolved Hide resolved
Comment on lines +2575 to +2576
discount_total: 2001,
total: 1099,
Copy link
Member

Choose a reason for hiding this comment

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

should we do something about this rounding or did you agree to something?

@olivermrbl olivermrbl merged commit 4d6e63d into develop Feb 6, 2023
@olivermrbl olivermrbl deleted the feat/tax-inclusive-oe-items branch February 6, 2023 16:32
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.

None yet

4 participants