Hi Everyone !
I am currently working on a project where we are using CPQ (it's already implemented, so it's principaly maintenance and evolution).
Here are some aspects of our project :
- There is at least two different Tax Rate (Products have only one of the two).
- If some conditions are met (e.g "You took this product and this product"), a discount will be applied by a Price Rule (in percentage or amount).
- If there is several discountable products, the discount must distributed on all the product, weigthed by the weight of the product in the total price (e.g : Product A = 75$, Product B = 25$, Product A will receive 3/4 of the amount discounted and B 1/4)
My question is the following :
If there are two potential discounts that can be applied to a same quote, one that discounts 20$ (including taxes) and one that discounts 10% (including taxes) on the total price (including taxes), how could we determine which one will be the more interesting from the point of view of a customer ? (not hardcoded)
It implies that the discount are calculated on the total price including taxes. Our issue is that the Total Price including taxes is filled AFTER CALCULATION, and we cannot base our Price Rules (with evaluation event BEFORE CALCULATE) on it, in order to have the discount shown on the last screen of the QuoteLine configurator.
We thought to use the JavaScript Quote Calculator Plugin (QCP afterwards), but we faced a similiar issue : we do not have the calculated prices including taxes. So I must make all the calculations before CPQ, in order to fill in my discount and then let CPQ make its computation. Same for products that do not span over a year, where we can define a start date and end date : the SBQQ__ProrateMultiplier__c is not calculated. Making the same calculations as CPQ is not a problem, but it is not very efficient.
We are therefore looking for someone that has faced the same issues as us.
Thanks in advance for your time and do not hesitate to ask more precisions !