fix(dashboard,order): preview pending diff summary (#14221)

* wip: preview pending diff summary

* fix: return test

* fix: rm return calc from processAction_

* chore: cleanup

* chore: changeset

* feat: add estimated diff for return,claim,exchange forms

* chore: changeset
This commit is contained in:
Frane Polić
2025-12-08 09:57:13 +01:00
committed by GitHub
parent fe49b567d6
commit 6176f93ac5
6 changed files with 54 additions and 20 deletions

View File

@@ -482,7 +482,7 @@ medusaIntegrationTestRunner({
expect.objectContaining({
transaction_total: 0,
current_order_total: 61,
pending_difference: 11,
pending_difference: 61, // item is not yet received
paid_total: 0,
refunded_total: 0,
})
@@ -710,6 +710,12 @@ medusaIntegrationTestRunner({
})
)
expect(result.data.order_preview.summary).toEqual(
expect.objectContaining({
pending_difference: 61 + 1002, // original total + newly added shipping
})
)
result = await api.post(
`/admin/returns/${returnId}/request`,
{},