1. pay before ur firend paid and leave, so u don't need to care they pay less. 2. get the bill first when waiter put on the table and calculate each one who have to pay, tell them they should pay this amount, if they don't believe, tell how u calculate ( I do this way, becasue I had same situation with u many times)
Bring a calculator with you so that you know exactly how much 'you', not your friend, need to pay, then the rest is what s/he needs to pay. I used to eat out with my Japanese friend, and we did this way.