My Oracle Support Banner

Manage Currencies Task Extended Precision (Doc ID 2178439.1)

Last updated on MARCH 02, 2023

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.10.0.0 to 11.1.11.1.0 [Release 1.0]
Information in this document applies to any platform.

Goal

1. Manage Currencies -
Default Precision = 2
Extended Precision = 3

2. custom field - currency type, Decimal Places = 3

3. In the UI, for this custom field, user is able to enter 3 decimals, and even can see the field showing value along with 3 decimals

4. however when using a script based on this field, the return value shows only 2 decimals

How to get 3 decimals from the script as well
if ((isAttributeChanged('UnitPrice_c')) || (isAttributeChanged('QtyInvoiced2_c')) )
{
println("***Unit Price:"+UnitPrice_c)
def amount=nvl(UnitPrice_c,0) * nvl(QtyInvoiced2_c,0)
setAttribute('Amount_c',nvl(amount,0))
setAttribute('Amount_c',Math.round(Amount_c*100)/100)


}
 

Solution

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
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.