Okay @Tut .

In this case what we can do is to show the total amount on which tax is applied :

Generalised case , when there is more than one tax code is applied on same invoice ,for ex.

In above case there is two tax code applied viz.

A) 14.5% which is divided into two parts 12.5% and 2 %

B) 5% which is further divided into 4 % & 1%

To calculate now taxable amount

A) first we get total line item value of 14.5% and 5 %

From subtotal separately . Ex.

For total 14.5 % vat items= (subtotal - total 5 % vat items )

B) now for taxable amount of 14.5% what we have to do is :

Value obtained from step A (let say ‘val’)

And taxable value of 14.5% let say 'sol’

Then

sol = val - 12.5% - 2 %

Where 12.5% and 2% = value which is showed in invoice.

And same foe 5%

And thus in this way we create this on the invoice despite of this value doesn’t exist in database.

But the problem is there any mathmetical value doesn’t work on themes . Inteager behaves like strings . @lubos can you tell me how to solve this problem.

And one problem more @Tut please help me how to show total in english words . In previous version {{ balance_due_in_words }} was worked .but since 4 versions it doesn’t work . Please help.