Last updated on JULY 30, 2017
Applies to:Oracle Fusion Sales - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
On : 22.214.171.124.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