erpnext icon indicating copy to clipboard operation
erpnext copied to clipboard

Pricing rule is applied even if UOM doesn't match

Open carstenblt opened this issue 2 years ago • 0 comments

Information about bug

We have a pricing rule that applies to item groups. Some of the assigned item groups also have a UOM set. Documentation says:

UoM: The Pricing Rule will apply only if the UoM set here matches with the transaction.

However, the pricing rule is applied to any item from these item groups, even though the UOM in the Sales Order does not match the UOM assigned to the item group. E.g. we created a pricing rule for "Bag (10 kg)" and create a Sales Order with an item from the item group with UOM "kg". The pricing rule is still applied.

Module

selling

Version

ERPNext: v13.37.0 Frappe Framework: v13.40.0

Installation method

No response

Relevant log output / Stack trace / Full Error Message.

No response

carstenblt avatar Sep 05 '22 14:09 carstenblt