on 12-14-2018 12:48 PM
local numbervar x := {Invoice_Detail.After_Invoice_Discount_Total};
local numbervar ipart;
local numberVar decpart;
ipart := int(x);
decpart := x - ipart;
Propercase(Replace(towords(ipart)," and xx / 100","")) & " Dollar" &
if decpart = 0 then "" else " and " & Propercase(Replace(towords(decpart*100)," and xx / 100","")) & " Cent Only";
This is 100 percent correct answer. but problem is if currency type change in my application dollar to Euro how to assign variable in crystal report formula work shop. if currency type change according to my application.
Hi Zahid,
Do you have a database field to identify the Currency?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abhilash
Check this how to add database fields in formula
CountryCurrency 'Suppose Dollar / Euro
CurrencySubunit 'Suppose Cent / Penny
local numbervar x := {Invoice_Detail.After_Invoice_Discount_Total};
local numbervar ipart;
local numberVar decpart;
ipart := int(x);
decpart := x - ipart;
Propercase(Replace(towords(ipart)," and xx / 100","")) & " Dollar" &
if decpart = 0 then "" else " and " & Propercase(Replace(towords(decpart*100)," and xx / 100","")) & " Cent Only";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Database fields
CountryCurrency 'Suppose Dollar / Euro
CurrencySubunit 'Suppose Cent / Penny
These two field define in database
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Database fields
CountryCurrency 'Suppose Dollar / Euro
CurrencySubunit 'Suppose Cent / Penny
these two field define in database
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.