New Tutorial Video just added
Summary: Learn how to add new fields to the Revenue tab of a Proposal and use Groovy scripting to calculate input from the new fields to generate the Amount of a Revenue record.
Content (required): https://videohub.oracle.com/media/t/1_hiak309k/144764042
Code Snippet (add any code snippets that support your topic, if applicable):
def revenue = Revenue
revenue.reset()
while(revenue.hasNext()){
def eachRev = revenue.next()
def baseAmount = eachRev.BaseAmount_c
def multiplier = eachRev.Multiplier_c
def revAmount = eachRev.RevenueAmount
def multiple = (nvl(baseAmount,1.00) * nvl(multiplier,1.00))
eachRev.setAttribute("RevenueAmount",multiple)
}
Tagged:
1