If there are different types of items in the invoice then tax is calculated on each of them differentially as they might be carrying different percentages of tax. 

Did this answer your question?