How to Set Combined Pricing Rules in ERPNext?

In the Pricing Rule Doctype, the applied_on field has options: Item Group, Brand, Item Code and Transactions. These options appear to be mutually exclusive.

For example, I want to set a pricing rule that applies to:

Item Group A
Brand B
This would mean the rule applies only to items that belong to “Item Group A” and are of “Brand B”.

Currently, I am unable to set this combination because the applied_on field restricts me to select only one option at a time.

Is there a way to achieve this combination?
If not, what would be the best approach to handle such a scenario?

Looking forward to your suggestions!

1 Like

Pricing rule needs a complete rewrite. Frappe Devs have nearly abandoned further development of ERPNext’s functionality and are relying on the community to carry the torch.

This can be confirmed by the numerous unanswered forum posts and ignored bug reports.

With that said, only basic pricing rules are reliably functional. You’ll need a customization or the ability separate your rules.

1 Like

I’m also looking for solution for this topic. Maybe someone had found some golden method? Maybe we can use brand in dynamic condition brand?

Hey, have you found any solution? I’ve been trying to do it with dynamic conditions, but every condition I’ve tried results in a false return. For example, ‘brand == ‘BrandName’’ doesn’t work.

Why isn’t it working?

Hey there, I’m also interested in this function.

Example :

Pricing Rule
Price Discount Scheme Rate : 5%

Apply On
Item Group : A, B, C

Exclude On (This is probably a variable option, like Include/Exclude)
Item Code/Brand/Item Attribute (This is probably a variable option) : X, Y

is it possible to do that ?
@NCP

Only workaround I found is to create more&more item groups. Not so convenient but it works.

1 Like

Got the same feeling. And I’m not liking much where v16 is going, so I guess I’m staying on v15 forever.

I think the community really gotta start getting together, having a solid telegram group or something.
Help each other’s out relentlessly to keep this thing going forward.

Interesting. When It comes to the webshop, I also sometimes use margin and discount together, sometimes using negative discount even.