How to format data in receipt?

Jul 01, 2009 1 Replies

I have created a new receipt based on the standard receipt.xml



In addition to showing the VAT rate (Entry.Taxrate ), I want to show the VAT Rate as well. However, most of the results of this formula will be a number with 2 digits after (such as 10.00%).



How can I format this so it always prints without digits after (look like



10%).

nguyenmhb snipped-for-privacy@gmail.com



No answer to this long time :) OK, our programmer did it through tax calculation: ...

Entry.QuantityPurchased 0 Entry.ExtendedExclsvPricePurchased <> 0

Int(abs(Entry.Tax*100/Entry.ExtendedExclsvPricePurchased)+0.5+0.0000000001)

MyTaxRate "%|" Entry.ExtendedExclsvPricePurchased "|" Entry.Tax "|" Entry.ExtendedPricePurchased

...

Regards, Koit Lahesoo

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required