feat(orders): ORDERS-7965 add total for each line item in a return - #2733
Open
jpajar wants to merge 1 commit into
Open
feat(orders): ORDERS-7965 add total for each line item in a return#2733jpajar wants to merge 1 commit into
jpajar wants to merge 1 commit into
Conversation
jpajar
requested review from
BC-SEven,
bc-vivekaggarwal,
denis-bc and
matt-evangelidis
August 27, 2026 04:50
bc-vivekaggarwal
approved these changes
Aug 27, 2026
denis-bc
approved these changes
Aug 27, 2026
There was a problem hiding this comment.
Pull request overview
Adds formatted totals to individual items on the return details page.
Changes:
- Conditionally displays each item’s formatted total.
- Adds the English “Total” translation.
- A required changelog entry remains missing.
Accessibility: Affected area: semantics/content. Static review completed; Lighthouse, reflow, and screen-reader checks were not run.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
templates/pages/account/return-details.html |
Adds the per-item total row. |
lang/en.json |
Adds the total label. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| <dt class="returnDetails-itemMetaLabel">{{lang 'account.returns.details.quantity'}}</dt> | ||
| <dd class="returnDetails-itemMetaValue">{{quantity}}</dd> | ||
| </div> | ||
| {{#if total}} |
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?
In this PR we add line item totals to the new return details page.
Requirements
Tickets / Documentation
Jira: ORDERS-7965
Screenshots (if appropriate)
Before:

After:

Note
Low Risk
Presentation-only template and locale changes; no logic or API changes in this diff.
Overview
Return details now shows a Total row for each returned line item (formatted amount), between quantity and preferred resolution, when the item context includes
total.Adds the
account.returns.details.totalEnglish string and wraps the new row in{{#if total}}so older payloads without per-item totals stay unchanged.Reviewed by Cursor Bugbot for commit fd09688. Bugbot is set up for automated code reviews on this repo. Configure here.