How to round the transaction Sums

Nov 20, 2006 0 Replies

I need to round transaction exact sum to nearest rounded sum. Example: 10.07 -> 10.10 At first I used for that: TenderType->RoundToNearest on put there 0.10 If Tender Type.TendertypeÊsh, then everything looks like ok (interface shows 10.10 and I can finish transaction) But If Tender type.TenderType¬count, then I get an error: "The amount for this tender can not exceed the purchase amount." Interface by the way shows OK numbers and example with 10.02->10.00 works. But if I need to round up->I'll get an error.



I thought a little and the best solution would be the opportunity to round transaction sums before tendering, but I don't find appropriate way to solve that (I have hook and my add_ins com-object gets numbers, but I don't know tax sales structure and I can't use method: transaction.settransactionamountOnce because I can't spoil discount%. I am using VAT per item.



Can anyone know what should I do?



I'd like to add additional "Tax" what deals with roundings, but I don't know how.


Thanks, Ene


Join the Discussion

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

Didn't find your answer?

Ask the community — no account required