Algorithm for setting months on certain criteria
(Doc ID 2333537.1)
Last updated on DECEMBER 22, 2020
Applies to:Oracle Fusion Sales - Version 184.108.40.206.0 and later
Information in this document applies to any platform.
We have a requirement that, we need to filter the same year values from the building unit object(custom object) and set the months into Deal object (opty).
Example: we have Yr1 to yr 5 values in building unit (custom object).
But we are unable to filter the same values and get the months based on this scenario.
We are able to fetch the Building unit values into deal object and we have attached the screenshot for the reference (Deal Object screen shot)
Before Update into database:
def min_rent_step1= Unit_Obj_c?.BudgetRentYR1psf_c
def min_rent_step2 = Unit_Obj_c?.BudgetRentYr2psf_c
def min_rent_step3 = Unit_Obj_c?.BudgetRentYr3psf_c
def min_rent_step4 = Unit_Obj_c?.BudgetRentYr4psf_c
def min_rent_step5 = Unit_Obj_c?.BudgetRentYr5psf_c
In the above scenario yr 1 value, Yr2 value and Yr3, Yr5 values is matching.
Note: Based on these values we need to consider 1 year as 12 months,if two years is matching 24 months,if 3 yrs is matching 36 months and 4 yrs is matching 48 months and 5 yrs matches 60mnths.
As per the above scenario Yr1 value, Yr2 values is matching so we need to set 24 months into months (step 1) in deal object and Yr3, yr5 is matching so we need to set 24 months and Yr4 value is 10 so we need to set 12 months.
How to achieve this?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document