on 02-25-2014 7:05 PM
Hello All,
I have the following formula set up the formula field. I want to concatenate "-" negative sign, if the first condition is true. The following formula gives me an error - A number or currency amount is required here.
numbervar dInvAmount;
if {@fmlCredit}="C" then
+"-"+(dInvAmount:=({InvoiceHeader.TotalInvAmount}-{InvoiceHeader.DepositAmount}-{InvoiceHeader.PostageDepositAmount}) * val({@fmlConvRate}))
else dInvAmount:=({InvoiceHeader.TotalInvAmount}-{InvoiceHeader.DepositAmount}-{InvoiceHeader.PostageDepositAmount}) * val({@fmlConvRate});
dInvAmount;
Thanks,
Amol
Hi Amol,
An easier way to do is:
1) Get rid of the "-" sign from the above code
2) Right-click the formula field > Format Field > Number tab > Customize > Click the formula button beside 'Reverse Sign for Display" and use this code:
{@fmlCredit}="C"
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abilash- It works. Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.