Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not touch payments on edited orders #39

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Zales0123
Copy link
Collaborator

@Zales0123 Zales0123 commented Aug 20, 2024

Fixes #38

There are two order payment processors in Sylius. The second one is handling payments on the completed orders and that's the one that resulted in a bug. Decorating it should fix the problem 🖖

The video shows that when editing the order that is not paid the payment amount would be changed as well, but when doing so on the paid order payments are not touched at all:

Nagranie.z.ekranu.2024-08-20.o.12.00.33.mov

@Zales0123 Zales0123 added the bug Something isn't working label Aug 20, 2024
@Zales0123 Zales0123 marked this pull request as draft August 20, 2024 08:57
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.67%. Comparing base (b91f44b) to head (8004c4f).
Report is 3 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #39      +/-   ##
============================================
+ Coverage     73.51%   74.67%   +1.16%     
- Complexity       72       79       +7     
============================================
  Files            28       30       +2     
  Lines           370      387      +17     
============================================
+ Hits            272      289      +17     
  Misses           98       98              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Zales0123 Zales0123 force-pushed the do-not-touched-payment-on-edited-orders branch from 7b19388 to 8004c4f Compare August 20, 2024 10:00
@Zales0123 Zales0123 marked this pull request as ready for review August 20, 2024 10:01
@Zales0123 Zales0123 requested a review from loevgaard August 20, 2024 10:02
@loevgaard loevgaard merged commit 52fac92 into master Aug 21, 2024
32 of 34 checks passed
@loevgaard loevgaard deleted the do-not-touched-payment-on-edited-orders branch August 21, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Multiple payments are added when editing order
2 participants