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

Bug: After max qty Pricing rule rate is not included within cart total #18006

Open
sapna-kcs opened this issue Jun 20, 2019 · 0 comments
Open
Labels
to-validate Old issues pending validation

Comments

@sapna-kcs
Copy link

sapna-kcs commented Jun 20, 2019

Ref: https://discuss.erpnext.com/t/pricing-rule-on-shopping-cart/17715/3

Pricing rule is applied over minimum and maximum qty of an item. After max qty, Price list rate should apply only on the new qty added. However, it is impacting all qty for the item and giving incorrect cart totals.

Eg: Item Price List rate is $100;
Pricing rule of 50% discount is applied for minimum 2 and maximum 5 qty for this Item, ie. discounted Rate = $50.

Within shopping cart, if user adds 8 qty of this item, then upto 5 pieces pricing rule rate should apply while additional 3 pieces should add at price list rate. However, after 5 qty, price list rate is applying over all 8 pieces, instead of only 3 pieces which is giving incorrect cart totals.

Current cart total: 8 * $100 = $800
while Correct cart total should be: (5 * $50) + (3 * $100) = $550

This has been resolved with solution video attached.
Pricing rule bug - 2.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-validate Old issues pending validation
Projects
None yet
Development

No branches or pull requests

2 participants