on 05-19-2015 11:07 AM
Hi all,
I have the below code and it will count the tax amount.
I will like to change to 2 decimal point. What should I add in the code?
Local StringVar taxBasis;
Local StringVar Currency := {MM020_CURRENCY_CODES.MM020_SYMBOL};
Local StringVar TaxRate;
if {ER207_INVOICE_DTL_TAXES.ER207_UNIT_CHRG_FC} > 0 then
If {ER207_INVOICE_DTL_TAXES.ER207_TAX_BASIS} = "A" Then
TaxRate := totext(({ER207_INVOICE_DTL_TAXES.ER207_UNIT_CHRG_FC} * 100), 4) & "%"
Else
TaxRate := Currency & totext({ER207_INVOICE_DTL_TAXES.ER207_UNIT_CHRG_FC}, 4);
if DistinctCount({ER207_INVOICE_DTL_TAXES.ER207_SEQ_NBR}, {@Resource Group}) > 1 then
"Multi"
else
TaxRate;
Thanks!
Hi Mavis,
The if-else should be:
TaxRate := totext(({ER207_INVOICE_DTL_TAXES.ER207_UNIT_CHRG_FC} * 100), 2) & "%"
Else
TaxRate := Currency & totext({ER207_INVOICE_DTL_TAXES.ER207_UNIT_CHRG_FC}, 2);
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.