Skip to content

feat(orders): ORDERS-7965 add total for each line item in a return - #2733

Open
jpajar wants to merge 1 commit into
feature/PROJECT-7525-new-returns-flowfrom
ORDERS-7965_3
Open

feat(orders): ORDERS-7965 add total for each line item in a return#2733
jpajar wants to merge 1 commit into
feature/PROJECT-7525-new-returns-flowfrom
ORDERS-7965_3

Conversation

@jpajar

@jpajar jpajar commented Aug 27, 2026

Copy link
Copy Markdown

What?

In this PR we add line item totals to the new return details page.

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

Jira: ORDERS-7965

Screenshots (if appropriate)

Before:
image

image image

After:
image

image image

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.total English 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.

@denis-bc
denis-bc requested a balanced review from Copilot August 27, 2026 04:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants