Skip to main content
In our instance an opportunity product has these fields:

 

UnitPrice (currency)

 

Quantity (number)

 

TotalPrice (currency)

 

When I create an opportunity product, specify the UnitPrice and Quantity, and save the opp product, the TotalPrice gets automatically calculated even though it is not a formula field.  I have checked triggers, classes, and workflows and can't find anywhere where the TotalPrice is getting set.

 

Can anyone please tell me how the TotalPrice is getting set for an opportunity product?

 

Thanks!
12 respuestas
  1. 22 jul 2014, 22:07
    I think I see the disconnect.

     

    Are you by chance typing in 10% into the Discount field AND typing in $40.99 in the Sale Price (UnitPrice) field? If so, this is your problem. TotalPrice takes into account the Discount field value as well when it contains a value. So Salesforce is doing the math of (UnitPrice*Quantity)*0.90.
0/9000