function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Leticia Monteiro FreitasLeticia Monteiro Freitas 

How I Update a Total Value Amount on a order?

Hello, 

I'm using the Order Object and create a discount field on my order item. 
When I gave a discount on item, I need that my Total Amount Field, on my Order, be updated. 
Is There anyway to update a standard formula field?

 
Best Answer chosen by Leticia Monteiro Freitas
Waqar Hussain SFWaqar Hussain SF
- Create a formula field on Orderitem that will say Discounted price. The formula should be (Discount__c * ListPrice) 
- Then create a rollup summary field on Order object that should show the sum of all order items Discounted Price.

All Answers

Gajanan KadamGajanan Kadam
Hello,

I think , Here you need create new formula field (Data type) on Order object with lebal as Total Amount. Then you can create formula as per your reqiurement.

Thanks,
Gajanan
Waqar Hussain SFWaqar Hussain SF
- Create a formula field on Orderitem that will say Discounted price. The formula should be (Discount__c * ListPrice) 
- Then create a rollup summary field on Order object that should show the sum of all order items Discounted Price.
This was selected as the best answer
Leticia Monteiro FreitasLeticia Monteiro Freitas
Thank you Waqar.  This soluiton work it :)