Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Hide canceled swaps from payment sum #210

Merged
merged 1 commit into from
Jan 2, 2022

Conversation

Zeusjonass
Copy link
Contributor

Hi, this is my solution for the issue #195

In the past, when we consulted the details of an order
Screen Shot 2021-12-30 at 9 30 48

When we checked the payment overview
Screen Shot 2021-12-30 at 9 31 54

In the sum, those swaps that were canceled were considered. This should not be like that. My solution was to add a filter to exclude those swaps canceled when we make the map for the sum.

Please let me know if there is anything I can improve :)

Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

This is great! Many thanks for the contribution :)

@olivermrbl olivermrbl merged commit 59ab7ca into medusajs:develop Jan 2, 2022
fPolic pushed a commit that referenced this pull request Mar 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants