erpnext
erpnext copied to clipboard
Discount on Other Item not working properly
Information about bug
Use Case If we create a pricing rule for Price based discount using the below conditions -
- Apply On = Item Group
- Fill the table with 2 Item Groups Apply Rule On Item Group (Item Group = Grocery and Electronics)
- Mixed Condition =1
- Price or Product Discount = Price
- Discount on Other Item >> Apply Rule On Other = Item (for example = Nike Sports Shoes) and Select any item which is not part of the above-selected group in Apply Rule On Item Group (Child Table).
- Party Information>> Selling =1
- Min Amt = INR 1000
- Price Discount Scheme>> Rate or Discount=Discount Percentage, Discount Percentage= 50.
So the above condition is summarised as If you buy for Rs 1000 from Grocery and(or) Electronics you will get 50% off on Nike Shoes.
Actual Result - The pricing rule is not applied because as per the code it searches the shoes into the above-selected item groups and then the discount is not applied because the shoes do not belong to the Grocery or Electronics group in the above example.
Expected Result -
The system should show 50% discount on item code of Nike if the above said condition is fulfilled and should remove the discount if not met.
Module
selling
Version
Frappe Framework: v13.41.6 ERPNext: v13.39.1
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response