Repository navigation
feat: adds priceTags as tax - SFS-2970 - #3144
Merged
Merged
Conversation
- Updated UserOrderDeliveryOptionsItems type to include sellingPrice, taxPriceTags, and taxPriceTagsTotal. - Enhanced userOrder resolver to calculate item totals considering taxPriceTags. - Introduced filterTaxPriceTags function to process tax-related price tags.
…riceTagsTotal - Enhanced the ServerOrderDetailsQuery to include sellingPrice and taxPriceTagsTotal in the response. - Updated the gql function to reflect these changes in the GraphQL schema. - Adjusted the UserOrderDeliveryOptionsItems type to accommodate the new fields.
…ion components - Added new types for UserOrderDeliveryOption and UserOrderDeliveryOptionsData to improve type safety. - Updated deliveryOptionsData handling in MyAccountOrderDetails to cast to the new types. - Modified MyAccountDeliveryOptionAccordion to calculate total tax correctly by summing tax and taxPriceTagsTotal. - Adjusted item price handling to use sellingPrice instead of price for better accuracy.
eduardoformiga
requested review from
gabpaladino,
hellofanny,
lariciamota,
lemagnetic,
lucasfp13,
lucvysk and
ommeirelles
and removed request for
a team,
gabpaladino and
lucasfp13
December 4, 2025 23:32
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
priceTags as tax
priceTags as taxpriceTags as tax - SFS-2970
lariciamota
approved these changes
Dec 10, 2025
Co-authored-by: Larícia Mota <[email protected]>
thiagopereira-vtex
pushed a commit
that referenced
this pull request
Jan 8, 2026
## What's the purpose of this pull request? This PR aims to consider the `priceTags` in the tax price calculations for my account order details, within the delivery options card. ## How it works? It includes the `priceTags` because previously, the sum was only considering the `tax` field. And by investigating the previous logic from the old `my-orders`, we should also consider the `priceTags`. | Before | After | |--------|--------| | <img width="905" height="672" alt="Screenshot 2025-12-04 at 20 28 34" src="https://github.com/user-attachments/assets/554f1ae2-40f3-4328-b290-47d2df49b633" /> | <img width="805" height="697" alt="Screenshot 2025-12-04 at 20 30 27" src="https://github.com/user-attachments/assets/322d1dbc-fcd2-423a-9fad-139549296efa" /> | ## How to test it? - [Ask me in slack](https://vtex.slack.com/archives/C03L3CRCDC4/p1764892639291049) how to test because you need to replicate some cookies from my user in a specific account, but: - You will need a user with an order placed and tax/price tags included. - You can see the order with tax on the orders page. - Check the delivery options cards, including the tax. --------- Co-authored-by: Larícia Mota <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
This PR aims to consider the
priceTagsin the tax price calculations for my account order details, within the delivery options card.How it works?
It includes the
priceTagsbecause previously, the sum was only considering thetaxfield. And by investigating the previous logic from the oldmy-orders, we should also consider thepriceTags.How to test it?