Hi, I implemented POS in Mexico, and to make a receipt call Factura I need to do the following calculation that is printed in currency format (xx.xxx):
-- MarginBottom
- PaperHeight - MarginBottom - FooterHeight "Small" tbNone
- ">~" PageWidth " "
- Transaction.Type = transactionSales
-- "Large" tbNone
- ">" PageWidth * 0.85 ""
- ">~" PageWidth * 0.15 "$"Transaction.SubTotal-(Transaction.SubTotal*15/115)
- " " "|" "|$" Transaction.SubTotal-(Transaction.SubTotal*100/115) "|" Transaction.Total " "
However, when I do the same for each entry it does not format the number and prints more than 10 decimals. Could anyone tell me how can I truncate or round the calculation below?
-- ShowLineDiscounts & (Entry.ExtendedDiscountPurchased
0)- Entry.Quantity "|" "" "|" Entry.Description "|$" Entry.FullPrice-(Entry.FullPrice*15/115) "|$"Entry.ExtendedFullPrice-(Entry.ExtendedFullPrice*15/115)
- Entry.DiscountNegative 0
- "|Discount||" Entry.DiscountNegative "|" Entry.ExtendedDiscountNegative
- Entry.Quantity "|" "" "|" Entry.Description "|$" Entry.FullPrice-(Entry.FullPrice*15/115) "|$" Entry.ExtendedFullPrice-(Entry.ExtendedFullPrice*15/115)
Regards