English Boards > Support
How to Remove cent or comma in total ticket and price??
kelik123:
Hi Moderator
I have printed ticket, but our currency does not contain two digits behind the comma, and do not contain commas.
for example:
writing is true of our currency is Rp 15.000 for "Fiveteen thousand rupiah"
but the printed in Samba Rp 15.000,00 for product price, total price, tax, etc. I have changed the regional settings in Windows Control Panel, but the result remains the same.
how to remove the two-digit comma in ticket print, Rp 15.000,00 to Rp 15.000?
**Our currency is the Rupiah (Rp) -- Indonesia
Thanks Before
emre:
Hello kelik123
This feature is not supported for the application screens but with a small hack you can print values without decimals. But I have to say in advance this won't work for preformatted values such as {TAX DETAILS} or {SERVICE DETAILS}. You can only convert values that directly generates numbers.
For example for printing Ticket Total value, change {TICKET TOTAL} tag with:
[=F(TN('{TICKET TOTAL}'),'0')]
You can change {TICKET TOTAL} part with other number generating tags.
I hope it helps.
Thanks.
kelik123:
hi Emre
Thanks a lot for your Support... very smart and useful.....
warmest regards from Indonesia
ekoimron:
I already follow this way. 0 cent correct. but 1000, 10000, 100000, 1000000.. I want 1.000, 10.000, 100.000, 1.000.000 to the point. How do.... please help...
emre:
You can try
[=F(TN('{TICKET TOTAL}'),'#,##')]
or
[=F(TN('{TICKET TOTAL}'),'#,##0')]
Please let me know it they produces the expected result.
Navigation
[0] Message Index
[#] Next page
Go to full version