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

Distribute discount over units #24

Merged
merged 5 commits into from
Jun 27, 2024
Merged

Conversation

Zales0123
Copy link
Collaborator

Should fix #14

I believe we should modify the Order::getFullDiscountedUnitPrice method, but I wanted to avoid adding the trait and changes in mapping for now so it's initially done on the template level. We can improve it later 🖖

discount-edit
discount-show

@Zales0123 Zales0123 added the bug Something isn't working label Jun 26, 2024
@Zales0123 Zales0123 force-pushed the distribute-discount-over-units branch from 2003840 to 792d24a Compare June 26, 2024 11:13
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.17%. Comparing base (69f2fe6) to head (06c23ae).

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #24      +/-   ##
============================================
+ Coverage     70.44%   74.17%   +3.73%     
- Complexity       60       71      +11     
============================================
  Files            26       28       +2     
  Lines           318      364      +46     
============================================
+ Hits            224      270      +46     
  Misses           94       94              

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

psalm.xml Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
@Zales0123 Zales0123 force-pushed the distribute-discount-over-units branch from dd62656 to 06c23ae Compare June 26, 2024 12:45
@Zales0123 Zales0123 merged commit 50b5c7e into master Jun 27, 2024
33 of 34 checks passed
@Zales0123 Zales0123 deleted the distribute-discount-over-units branch June 27, 2024 08:57
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]: Order item discounts not distributed among units it seems
2 participants