Pricing Rule Best Practices

Hi,

This is for all those who are on v4 frappe. The v4 has got a beautiful new addition Pricing Rules. I know this is a big change from the item group based discount structure which was implemented more than 2 or 3 years ago.
But the new pricing rules have given us some headache, since the priority is not mentioned in the pricing rules which are converted from the old structure.
I would propose the standard good practices for the pricing rules, especially if they are based on Item Group (tree Structure).

Suppose we have a item group structure as below:

  • Group 1
    • Group 1.1
    • Group 1.2
      • Group 1.2.1
      • Group 1.2.2
The priority should be as per the below mentioned schema:

Group 1 - Priority 20
Group 1.1 - Priority 19
Group 1.2 - Priority 19
Group 1.2.1 - Priority 18
Group 1.2.2 - Priority 18

and so on with priority decreasing in number but getting more priority for lower most item group.

Kindly let me know if this a good idea to follow such schema for priority or is there a better method which is known to the developers or the 



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/7d87d123-ae22-4e0e-b427-17ef1fb7a6ef%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.