Formula Filed is returning for negative numbers like ##.###-

(Doc ID 2156324.1)

Last updated on JUNE 30, 2016

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.10.0.0 and later
Information in this document applies to any platform.

Goal

I have a formula field called "Net Outstanding" and its calculated based on the value of Invoice generated and payment received.
 
I have the following code
 
def a=nvl(InvoiceGenerated_c,0);
 def b=nvl(PaymentReceived_c,0);
def c;
c=a-b;
return c;
 
In the Front end if I have value for Invoice generated = 0 and Payment Received to be 1000. When Calculating my netoustanding I want the value to be -1000 instead its appearing as 1000-.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms