IF(
ISPICKVAL(PricebookEntry.Product2.Family, "Dues"),
IF( PricebookEntry.Product2.ProductCode = "DUES_STANDARD",
IF( Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c >= 11.01,
Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c * 2.5 + Additional_Amount__c ,
Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c * 2.0+ Additional_Amount__c ),
IF(
PricebookEntry.Product2.ProductCode = "DUES_MULTIPLIER",
Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c * PricebookEntry.Product2.CVRSOS__RateMultipler__c+ Additional_Amount__c ,
IF(
PricebookEntry.Product2.ProductCode = "DUES_MULTIPLIER_NOT_ROUNDED",
Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c * PricebookEntry.Product2.CVRSOS__RateMultipler__c+ Additional_Amount__c ,
IF(
PricebookEntry.Product2.ProductCode = "DUES_PERCENTAGE",
Order.CVRSOS__Job__r.JOB_BASE_SALARY__c * Order.CVRSOS__Job__r.JOB_D_STRUC_FACT__c + Additional_Amount__c ,
UnitPrice+ Additional_Amount__c
)
)
),
0.0
))
Hi,
you can use the "ROUND" function to specify whether you want to round to the first [ROUND ("your number", 1)] or second decimal [ROUND("your number", 2)].
So for example ROUND(Order.CVRSOS__Job__r.CVRSOS__HourlyRate__c * PricebookEntry.Product2.CVRSOS__RateMultipler__c+ Additional_Amount__c,1) would round that expression to the first decimal.