Need To Update Values On A Revenue Table Field Of Each Row Based On Values Of Other Rows.
Last updated on JULY 30, 2017
Applies to:Oracle Fusion Sales - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
On : 184.108.40.206.0 version, Opportunities
I need to write a script which will run on a "Before update in database" condition and will do the following for each row of the revenue table:
- loop through the rows of the revenue table and retrieve some values
- make a calculation with the retrieved values
- update a field on the row.
ProductType_c (LOV with values ACCESSORY, OPTIONAL, PRIMARY)
The script needs to add the prices (RevnAmount) of PRIMARY and ACCESSORY products (OPTIONAL are ignored) between two "Primary" products and write the calculated amount on the field PackPrice_c in the same line as the first PRIMARY product.
In order to make things easier we have added the field (RowNumber_c) which the user manually fills in and can be used to sort the entries of the revenue table in the desired order.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms