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

[FEAT] Absolute discount benefit applied on each product #4168

Merged
merged 12 commits into from
Sep 15, 2023

Conversation

samar-hassan
Copy link
Contributor

I have added an absolute discount benefit that is added to each of the applicable lines. The value in the benefit defines the maximum discount amount regardless of the product quantity. If price * quantity is less than the value than the product is free.

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #4168 (0a5cd66) into master (5bb9df3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4168      +/-   ##
==========================================
+ Coverage   87.50%   87.53%   +0.02%     
==========================================
  Files         290      290              
  Lines       15912    15946      +34     
==========================================
+ Hits        13924    13958      +34     
  Misses       1988     1988              
Files Changed Coverage Δ
src/oscar/apps/offer/abstract_models.py 89.15% <100.00%> (+0.15%) ⬆️
src/oscar/apps/offer/benefits.py 94.80% <100.00%> (+0.65%) ⬆️

src/oscar/apps/offer/abstract_models.py Outdated Show resolved Hide resolved
src/oscar/apps/offer/abstract_models.py Outdated Show resolved Hide resolved
src/oscar/apps/offer/abstract_models.py Outdated Show resolved Hide resolved
src/oscar/apps/offer/benefits.py Outdated Show resolved Hide resolved
src/oscar/apps/offer/benefits.py Show resolved Hide resolved
tests/integration/offer/test_absolute_product_benefit.py Outdated Show resolved Hide resolved
src/oscar/apps/offer/abstract_models.py Outdated Show resolved Hide resolved
src/oscar/apps/offer/abstract_models.py Outdated Show resolved Hide resolved
src/oscar/apps/offer/benefits.py Outdated Show resolved Hide resolved
@specialunderwear specialunderwear merged commit 609e573 into master Sep 15, 2023
23 checks passed
@specialunderwear specialunderwear deleted the samar/fixed-discount-per-product-benefit branch September 15, 2023 11:46
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.

None yet

3 participants